├── scriptReplaceFilesWithExtension.ps1 ├── EmployeeDirectory.css ├── Item_LargePicture_Hero.html ├── Item_Person_Table.html ├── Control_Slideshow_Hero.html └── Control_SearchResults_Table.html /scriptReplaceFilesWithExtension.ps1: -------------------------------------------------------------------------------- 1 | $goodFiles = Read-Host -Prompt 'Input the path of the directory you want to copy from' 2 | $badFiles = Read-Host -Prompt 'Input the path of the directory you want to past to' 3 | $fileExtensionType = Read-Host -Prompt 'Input the extension type you want to replace (make sure to include .extensionname)' 4 | Get-ChildItem $goodFiles | ForEach-Object { 5 | $currentFile = $_ 6 | $currentFileName = $_.BaseName 7 | Write-Host $currentFile 8 | $badFileLocation = Get-ChildItem -Recurse $badFiles | Where-Object { $_.BaseName -Match "$currentFileName" -and $_.extension -eq $fileExtensionType} | Select-Object -ExpandProperty DirectoryName 9 | 10 | if($badFileLocation) { # if this variable is not null, we've found original file location 11 | Write-Host "found file [$currentFile] in location: [$badFileLocation]. overwriting the original." 12 | Copy-Item -Path $goodFiles\$currentFile -Destination $badFileLocation -Force 13 | Write-Host "Deleting [$fileExtensionType] : [$badFileLocation][$currentFileName].jse file" 14 | Remove-Item -Path $badFileLocation\$currentFileName.jse -Force 15 | } 16 | else { 17 | Write-Warning "Could not find a [$fileExtensionType] file named [$currentFileName] in location [$badFiles]." 18 | } 19 | 20 | } -------------------------------------------------------------------------------- /EmployeeDirectory.css: -------------------------------------------------------------------------------- 1 | /* Alpha links for search */ 2 | #DeltaPlaceHolderSearchArea{ 3 | display:none; 4 | } 5 | .ms-core-suiteLinkList{ 6 | display:none; 7 | } 8 | #ResultHeader{ 9 | margin:5px 5px 5px 5px!important; 10 | display:block!important; 11 | } 12 | .note{ 13 | width:33%; 14 | float:right; 15 | } 16 | #edir-alpha-links { 17 | margin-top:10px; 18 | } 19 | #edir-alpha-links span { 20 | padding:0 3px 0 3px; 21 | width:35px; 22 | font-size:18px; 23 | } 24 | #edir-alpha-links span.no-link { 25 | padding:0 6px 0 6px; 26 | } 27 | #edir-alpha-links span a { 28 | padding:0 3px 0 3px; 29 | border-radius:6px 6px 6px 6px; 30 | background-color:#26917b; 31 | color:#fff; 32 | } 33 | #edir-alpha-links span a.selected { 34 | background-color:#26917b; 35 | } 36 | /* Alpha links for search */ 37 | .ms-listviewtable{ 38 | border-collapse:collapse!important; 39 | } 40 | .peopleItem td{ 41 | border:thin black solid; 42 | } 43 | .peopleHeader { 44 | } 45 | .peopleHeader td{ 46 | border:thin black solid; 47 | } 48 | 49 | tbody:nth-child(even) { 50 | background-color: #d3d3d3; 51 | 52 | } 53 | tr:nth-child(even) { 54 | /*background-color: #d3d3d3;*/ 55 | } 56 | .ms-viewheadertr { 57 | background:#26917b; 58 | } 59 | .ms-vh2{ 60 | color:white; 61 | font-weight:bold; 62 | font-size:10pt; 63 | text-align:center; 64 | } 65 | .label { 66 | width:46%; 67 | margin-top:8px; 68 | margin-right:10px; 69 | font-weight:bold; 70 | float:none!important; 71 | } 72 | .ms-vh2 { 73 | } 74 | .clear { 75 | clear:both; 76 | } 77 | .left{ 78 | float:left; 79 | width:40% 80 | } 81 | .right{ 82 | float:right; 83 | width:40%; 84 | } 85 | .btnRight{ 86 | float:right; 87 | width:20%; 88 | } 89 | .profileDetail{ 90 | padding:15px; 91 | position:fixed; 92 | width:800px; 93 | top: 40%; 94 | left: 50%; 95 | margin-left: -400px; 96 | margin-top: -40px; 97 | z-index:100; 98 | } 99 | .ms-srch-sb-border{ 100 | border:thin black solid!important; 101 | } -------------------------------------------------------------------------------- /Item_LargePicture_Hero.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
48 |
49 |
50 |
51 |
52 |
53 |