1/* 2function googleTranslateElementInit() { 3 new google.translate.TranslateElement({ 4 pageLanguage: 'en' 5 }, 'google_translate_element'); 6} 7*/ 8 9 10function checkMobile() { 11 //Will append related block according to size 12 var topTabs = $('#topTabs'); 13 var logo = $('#logo'); 14 var translatorBox = $('#translatorBox'); 15 if ($(window).width() > 768) { 16 topTabs.appendTo('#header').show(); 17 logo.appendTo('#header').show(); 18 translatorBox.appendTo('#header').show(); 19 } else { 20 $('#topZone').insertBefore('.s4-ca'); 21 // $("#topTabs").hide(); 22 // $("#translatorBox").hide(); 23 translatorBox.insertAfter('#header') 24 topTabs.insertBefore('#header') 25 logo.insertBefore('#menuMobile') 26 } 27} 28 29function setBg() { 30 var bgArray = ['1.png', '2.png', '3.png', '4.png', '5.png', '6.png', '7.png', 31 '8.png', '9.png', '10.png' 32 ]; 33 var bg = bgArray[Math.floor(Math.random() * bgArray.length)]; 34 35 if (document.getElementById("bgimage")) { 36 document.getElementById("bgimage").src=""; 37 if ($(window).width() <= 768) { 38 document.getElementById("bgimage").src = 39 "/_web-items/images/system/mobile_header.png"; 40 } else { 41 document.getElementById("bgimage").src = 42 "https://www.collegeofthedesert.edu/Banner%20Pics/Create_Tomorrow_" + bg; 43 } 44 } 45} 46 47function random_imglink() { 48 var myimages = ['00.jpg', '01.jpg', '02.jpg', '03.jpg', '04.jpg', '05.jpg', '06.jpg', '07.jpg', '08.jpg']; 49 var ry = myimages[Math.floor(Math.random() * myimages.length)]; 50 51 if (document.getElementById("random-image")) { 52 document.getElementById("random-image").src = "https://www.collegeofthedesert.edu/_web-items/images/community/acad-senate/" + ry; 53 } 54} 55 56 57$(document).ready(function () { 58 59 setBg() 60 checkMobile(); 61 random_imglink(); 62 63 // $('#google_translate_element').attr('aria-hidden', 'true'); 64 // $('.skiptranslate goog-te-gadget').attr('aria-hidden', 'true'); 65 66}); 67 68 69$(window).resize(function () { 70 setBg() 71 checkMobile(); 72 random_imglink() 73}); 74 75 76 77$("#searchMobile").click(function () { 78 $(".header-trio").removeClass("show-mobile").addClass("hide-mobile"); 79 $(".search-overlay").removeClass("hide-mobile").addClass("show-mobile"); 80 $(".head-wrapper").after('<div class="dark-overlay"></div>'); 81}); 82 83$("#cancelSearch").click(function () { 84 $(".search-overlay").removeClass("show-mobile").addClass("hide-mobile"); 85 $(".header-trio").removeClass("hide-mobile").addClass("show-mobile"); 86 $(".dark-overlay").remove(); 87 $("#cod-workspace").css("position", ""); 88 $("body").css("overflow - y", "auto"); 89}); 90 91$("#menuMobile").click(function () { 92 $("#mobileNav").removeClass("mobile-nav-hidden").addClass("mobile-nav-open"); 93 $(".bg-blur").removeClass("bg-blur-hidden").addClass("bg-blur-show"); 94 $("#cod-workspace").css("position", "fixed"); 95 96}); 97 98$("#closeNav").click(function () { 99 $("#mobileNav").removeClass("mobile-nav-open").addClass("mobile-nav-hidden"); 100 $(".bg-blur").removeClass("bg-blur-show").addClass("bg-blur-hidden"); 101 $("#cod-workspace").css("position", ""); 102}); 103 104 105 106 107 108 109function ULSOro() { 110 var o = new Object; 111 o.ULSTeamName = "Microsoft SharePoint Foundation"; 112 o.ULSFileName = "msstring.js"; 113 return o; 114} 115 116function MSOWebPartPage_GetLocalizedStrings() { 117 ULSOro:; 118 var L_ResetPagePersonalizationDialog_TXT = "You are about to reset all personalized Web Parts to their shared values and delete any private Web Parts. Click OK to complete this operation. Click Cancel to keep your personalized Web Part settings and private Web Parts.", 119 L_ResetPartPersonalizationDialog_TXT = "Resetting this Web Part will cause you to lose any changes you made. Are you sure you want to do this? To reset this Web Part, click OK. To keep your changes, click Cancel.", 120 L_RemoveConnection_TXT = "Are you sure you want to remove the connection between the %0 Web Part and the %1 Web Part? To remove the connection, click OK. To keep the connection, click Cancel.", 121 L_ExportPersonalization_TXT = "This Web Part Page has been personalized. As a result, one or more Web Part properties may contain confidential information. Make sure the properties contain information that is safe for others to read. After exporting this Web Part, view properties in the Web Part description file (.webpart or .dwp) by using a text editor, such as Microsoft Notepad.", 122 L_GetPropertiesFailure_ERR = "Cannot retrieve properties at this time.", 123 L_SaveDirtyParts_TXT = "Changes have been made to the contents of one or more Web Parts on this page. To save the changes, press OK. To discard the changes, press Cancel.",
124 L_ToolPaneWidenToolTip_TXT = "Widen", 125 L_ToolPaneShrinkToolTip_TXT = "Narrow", 126 L_ToolPartExpandToolTip_TXT = "Expand Toolpart: %0", 127 L_ToolPartCollapseToolTip_TXT = "Collapse Toolpart: %0", 128 L_WebPartBackgroundColor_TXT = "Web Part Background Color", 129 L_TransparentTooltip_TXT = "Transparent Web Part Background Color", 130 L_InvalidURLPath_ERR = "The URL is not valid for the %0 property. Check the URL spelling and path and try again.", 131 L_InvalidFolderPath_ERR = "The path to the folder is not valid for the %0 property. Check the path name and try again.", 132 L_InvalidFilePath_ERR = "The path to the file or folder is not valid. Check the path and try again.", 133 L_FileOrFolderUnsupported_ERR = "The current browser does not support links to files or folders. To specify a link to a file or folder, you must use Microsoft Internet Explorer 5.0 or later", 134 L_Link_TXT = "Link", 135 L_TransparentLiteral_TXT = "Transparent", 136 L_ContentEditorSaveFailed_ERR = "Cannot save your changes.", 137 L_AccessDenied_ERR = "Access Denied saving Web Part properties: either the Web Part is embedded directly in the page, or you do not have sufficient permissions to save properties.", 138 L_NoInitArgs_ERR = "Cannot create or modify the connection. One of the Web Parts does not have any data fields.", 139 L_PageNotYetSaved_ERR = "page not yet saved", 140 a = {};a.ResetPagePersonalizationDialogText = L_ResetPagePersonalizationDialog_TXT;a.ResetPartPersonalizationDialogText = L_ResetPartPersonalizationDialog_TXT;a.RemoveConnection = L_RemoveConnection_TXT;a.ExportPersonalizationDialogText = L_ExportPersonalization_TXT;a.GetPropertiesFailure = L_GetPropertiesFailure_ERR;a.SaveDirtyPartsDialogText = L_SaveDirtyParts_TXT;a.ToolPaneWidenToolTip = L_ToolPaneWidenToolTip_TXT;a.ToolPaneShrinkToolTip = L_ToolPaneShrinkToolTip_TXT;a.ToolPartExpandToolTip = L_ToolPartExpandToolTip_TXT;a.ToolPartCollapseToolTip = L_ToolPartCollapseToolTip_TXT;a.WebPartBackgroundColor = L_WebPartBackgroundColor_TXT;a.TransparentTooltip = L_TransparentTooltip_TXT;a.InvalidURLPath = L_InvalidURLPath_ERR;a.InvalidFolderPath = L_InvalidFolderPath_ERR;a.InvalidFilePath = L_InvalidFilePath_ERR;a.FileOrFolderUnsupported = L_FileOrFolderUnsupported_ERR;a.Link = L_Link_TXT;a.TransparentLiteral = L_TransparentLiteral_TXT;a.ContentEditorSaveFailed = L_ContentEditorSaveFailed_ERR;a.AccessDenied = L_AccessDenied_ERR;a.NoInitArgs = L_NoInitArgs_ERR;a.PageNotYetSaved = L_PageNotYetSaved_ERR; 141 return a 142} 143var MSOStrings = MSOWebPartPage_GetLocalizedStrings(), 144 L_AccessibleMenu_Text = "Menu"; 145typeof Sys != "undefined" && Sys && Sys.Application && Sys.Application.notifyScriptLoaded(); 146typeof NotifyScriptLoadedAndExecuteWaitingJobs != "undefined" && NotifyScriptLoadedAndExecuteWaitingJobs("msstring.js") 147 148 149 150function ULSaew() { 151 var o = new Object; 152 o.ULSTeamName = "Microsoft SharePoint Foundation"; 153 o.ULSFileName = "blank.js"; 154 return o; 155} 156 157 158 159var MSOWebPartPageFormName = 'aspnetForm'; 160 161function CallServer_m1815608984(arg, context) { 162 WebForm_DoCallback('ctl00$ctl20', arg, SP.UI.MyLinksRibbon.MyLinksRibbonPageComponent.ribbonActionCallback, context, null, false); 163} 164 165function _myLinksRibbonLoad2() { 166 var fnd = function () { 167 try {
168 mylinks_init.MyLinksInit('CallServer_m1815608984'); 169 } catch (Ex) {} 170 }; 171 RegisterSod('mylinks_init', '../js/SP.UI.MyLinksRibbon.js'); 172 LoadSodByKey('mylinks_init', fnd); 173} 174 175function _myLinksRibbonLoad1() { 176 ExecuteOrDelayUntilScriptLoaded(_myLinksRibbonLoad2, 'SP.Ribbon.js'); 177} 178 179_spBodyOnLoadFunctionNames.push('_myLinksRibbonLoad1'); 180var g_presenceEnabled = false; 181var g_wsaEnabled = false; 182var g_wsaLCID = 1033; 183var g_wsaSiteTemplateId = 'CMSPUBLISHING#0'; 184var g_wsaListTemplateId = 850; 185var _fV4UI = true; 186var _spPageContextInfo = { 187 webServerRelativeUrl: "\u002ffs", 188 webLanguage: 1033, 189 currentLanguage: 1033, 190 webUIVersion: 4, 191 pageListId: "{009344df-d4c8-4b35-8c62-f4e370e64549}", 192 pageItemId: 1, 193 alertsEnabled: true, 194 siteServerRelativeUrl: "\u002f", 195 allowSilverlightPrompt: 'True' 196}; 197var L_Menu_BaseUrl = "/fs"; 198var L_Menu_LCID = "1033"; 199var L_Menu_SiteTheme = ""; 200 201 202 203var theForm = document.forms['aspnetForm']; 204if (!theForm) { 205 theForm = document.aspnetForm; 206} 207 208function __doPostBack(eventTarget, eventArgument) { 209 if (!theForm.onsubmit || (theForm.onsubmit() != false)) { 210 theForm.__EVENTTARGET.value = eventTarget; 211 theForm.__EVENTARGUMENT.value = eventArgument; 212 theForm.submit(); 213 } 214} 215 216var MSOWebPartPageFormName = 'aspnetForm'; 217 218function CallServer_m1815281304(arg, context) { 219 WebForm_DoCallback('ctl00$ctl20', arg, SP.UI.MyLinksRibbon.MyLinksRibbonPageComponent.ribbonActionCallback, 220 context, null, false); 221} 222 223function _myLinksRibbonLoad2() { 224 var fnd = function () { 225 try {
226 mylinks_init.MyLinksInit('CallServer_m1815281304'); 227 } catch (Ex) {} 228 }; 229 RegisterSod('mylinks_init', '/_layouts/SP.UI.MyLinksRibbon.js'); 230 LoadSodByKey('mylinks_init', fnd); 231} 232 233function _myLinksRibbonLoad1() { 234 ExecuteOrDelayUntilScriptLoaded(_myLinksRibbonLoad2, 'SP.Ribbon.js'); 235} 236 237function DoCallBack(filterText) { 238 WebForm_DoCallback('ctl00$ctl25$g_50009c9a_52d5_4c6a_9812_e452bc69d06a', filterText, UpdateFilterCallback, 0, 239 CallBackError, true) 240} 241 242function CallBackError(result, clientsideString) {} 243 244if (typeof (_spBodyOnLoadFunctionNames) != "undefined") { 245 if (_spBodyOnLoadFunctionNames != null) { 246 _spBodyOnLoadFunctionNames.push("ExpDataViewGroupOnPageLoad"); 247 } 248} 249g_ExpGroupSeparateQueuesGlobal = true; 250 251var L_Menu_BaseUrl = ""; 252var L_Menu_LCID = "1033"; 253var L_Menu_SiteTheme = ""; 254var dlc_fvsi = { 255 "DefaultViews": [], 256 "ViewUrls": [], 257 "WebUrl": "\/" 258}; 259 260function _spNavigateHierarchy(nodeDiv, dataSourceId, dataPath, url, listInContext, type) { 261 CoreInvoke('ProcessDefaultNavigateHierarchy', nodeDiv, dataSourceId, dataPath, url, listInContext, type, 262 document.forms.aspnetForm, "", "\u002fPages\u002fdefault.aspx"); 263 264} 265 266var _spWebPartComponents = new Object(); 267_spWebPartComponents["codWebPart7"] = new Object(); 268_spWebPartComponents["codWebPart7"].firstTabId = "Ribbon.ListItem"; 269_spWebPartComponents["codWebPart7"].initPageComponentScript = 270 "SP.Ribbon.WebPartComponent.fetchListViewWebPartPageComponent\u0028\u0027g_2e11f271_0ed1_46ff_9b8f_b99b093aa91f\u0027, \u0027codWebPart7\u0027, \u0027b8d6ee93-0f07-4ac2-945d-f28d31007853\u0027, \u00272e11f271-0ed1-46ff-9b8f-b99b093aa91f\u0027\u0029;"; 271_spWebPartComponents["codWebPart7"].contextualGroupCommands = ["ListContextualGroup"]; 272_spWebPartComponents["codWebPart7"].hasNonPromotedContextualGroups = true; 273_spWebPartComponents["codWebPart7"].isDefaultWebPart = false;
274_spWebPartComponents["codWebPart7"].pageComponentId = "codWebPart7"; 275_spWebPartComponents["codWebPart7"].storageId = "2e11f271-0ed1-46ff-9b8f-b99b093aa91f"; 276_spWebPartComponents["codWebPart11"] = new Object(); 277_spWebPartComponents["codWebPart11"].firstTabId = "Ribbon.ListItem"; 278_spWebPartComponents["codWebPart11"].contextualGroupCommands = ["ListContextualGroup"]; 279_spWebPartComponents["codWebPart11"].hasNonPromotedContextualGroups = true; 280_spWebPartComponents["codWebPart11"].isDefaultWebPart = false; 281_spWebPartComponents["codWebPart11"].pageComponentId = "codWebPart11"; 282_spWebPartComponents["codWebPart11"].storageId = "829fccbe-ee19-435b-bdd9-8bdd48d2b2a3"; 283 284var globalArg_g_2e11f271_0ed1_46ff_9b8f_b99b093aa91f; 285var globalContext_g_2e11f271_0ed1_46ff_9b8f_b99b093aa91f; 286 287function ExpGroupCallServerg_2e11f271_0ed1_46ff_9b8f_b99b093aa91f(arg, context) { 288 globalArg_g_2e11f271_0ed1_46ff_9b8f_b99b093aa91f = "GroupString=" + arg + "&ConnectionFilterString="; 289 globalContext_g_2e11f271_0ed1_46ff_9b8f_b99b093aa91f = context; 290 setTimeout( 291 "WebForm_DoCallback('ctl00$ctl25$g_2e11f271_0ed1_46ff_9b8f_b99b093aa91f',globalArg_g_2e11f271_0ed1_46ff_9b8f_b99b093aa91f,ExpGroupReceiveData,globalContext_g_2e11f271_0ed1_46ff_9b8f_b99b093aa91f,ExpGroupOnError,true)", 292 0); 293} 294 295function ExpGroupOnError(message, context) { 296 alert('An error has occurred with the data fetch. Please refresh the page and retry.'); 297} 298if (typeof (_spBodyOnLoadFunctionNames) != "undefined") { 299 if (_spBodyOnLoadFunctionNames != null) { 300 _spBodyOnLoadFunctionNames.push("ExpGroupOnPageLoad"); 301 } 302} 303 304if (typeof (DeferWebFormInitCallback) == 'function') DeferWebFormInitCallback(); 305 306function WebForm_OnSubmit() { 307 UpdateFormDigest('\u002f', 2880000); 308 var workspaceElem = GetCachedElement("cod-workspace"); 309 if (workspaceElem != null) { 310 var scrollElem = GetCachedElement("_maintainWorkspaceScrollPosition"); 311 if (scrollElem != null) { 312 scrollElem.value = workspaceElem.scrollTop; 313 } 314 }; 315 return _spFormOnSubmitWrapper(); 316 return true; 317} 318 319/* MultiLingual User Interface menu */ 320function OnSelectionChange(value) { 321 var today = new Date(); 322 var oneYear = new Date(today.getTime() + 365 * 24 * 60 * 60 * 1000); 323 var url = window.location.href; 324 document.cookie = "lcid=" + value + ";path=/;expires=" + oneYear.toGMTString(); 325 window.location.href = url; 326} 327 328var g_commandUIHandlers = { 329 "name": "CommandHandlers", 330 "attrs": {}, 331 "children": [] 332}; 333 334function loadMDN2() { 335 EnsureScript('MDN.js', typeof (loadFilterFn), null); 336} 337 338function loadMDN1() { 339 ExecuteOrDelayUntilScriptLoaded(loadMDN2, 'sp.ribbon.js'); 340} 341 342 343function _spNavigateHierarchyEx(nodeDiv, dataSourceId, dataPath, url, listInContext, type, additionalQString) { 344 SetAdditionalNavigateHierarchyQString(additionalQString); 345 g_originalSPNavigateFunc(nodeDiv, dataSourceId, dataPath, url, listInContext, type); 346} 347 348g_originalSPNavigateFunc = _spNavigateHierarchy; 349_spNavigateHierarchy = _spNavigateHierarchyEx; 350 351function EnsureScripts(scriptInfoList, finalFunction) { 352 if (scriptInfoList.length == 0) { 353 finalFunction(); 354 } else { 355 var scriptInfo = scriptInfoList.shift(); 356 var rest = function () { 357 EnsureScripts(scriptInfoList, finalFunction); 358 }; 359 var defd; 360 try { 361 eval('defd = typeof(' + scriptInfo[1] + ');'); 362 } catch (e) { 363 defd = 'undefined'; 364 } 365 if (scriptInfo[2]) { 366 EnsureScript(scriptInfo[0], defd, null); 367 ExecuteOrDelayUntilScriptLoaded(rest, scriptInfo[0]); 368 } else { 369 EnsureScript(scriptInfo[0], defd, rest); 370 } 371 } 372} 373 374function PublishingRibbonUpdateRibbon() { 375 var pageManager = SP.Ribbon.PageManager.get_instance(); 376 if (pageManager) { 377 pageManager.get_commandDispatcher().executeCommand('appstatechanged', null); 378 } 379} 380var _fV4UI = true; 381 382function _RegisterWebPartPageCUI() { 383 var initInfo = { 384 editable: false, 385 isEditMode: false, 386 allowWebPartAdder: false, 387 listId: "{d4e27d61-f016-4197-88ec-0564ce029f45}", 388 itemId: 1, 389 recycleBinEnabled: true, 390 enableMinorVersioning: false, 391 enableModeration: false, 392 forceCheckout: false, 393 rootFolderUrl: "\u002fPages", 394 itemPermissions: { 395 High: 16, 396 Low: 200769 397 } 398 }; 399 SP.Ribbon.WebPartComponent.registerWithPageManager(initInfo); 400 var wpcomp = SP.Ribbon.WebPartComponent.get_instance(); 401 var hid; 402 hid = document.getElementById("_wpSelected"); 403 if (hid != null) { 404 var wpid = hid.value; 405 if (wpid.length > 0) { 406 var zc = document.getElementById(wpid); 407 if (zc != null) 408 wpcomp.selectWebPart(zc, false); 409 } 410 } 411 hid = document.getElementById("_wzSelected"); 412 if (hid != null) { 413 var wzid = hid.value; 414 if (wzid.length > 0) { 415 wpcomp.selectWebPartZone(null, wzid); 416 } 417 } 418} 419 420var __wpmExportWarning = 421 'This Web Part Page has been personalized. As a result, one or more Web Part properties may contain confidential information. Make sure the properties contain information that is safe for others to read. After exporting this Web Part, view properties in the Web Part description file (.WebPart) by using a text editor such as Microsoft Notepad.'; 422var __wpmCloseProviderWarning = 423 'You are about to close this Web Part. It is currently providing data to other Web Parts, and these connections will be deleted if this Web Part is closed. To close this Web Part, click OK. To keep this Web Part, click Cancel.'; 424var __wpmDeleteWarning = 425 'You are about to permanently delete this Web Part. Are you sure you want to do this? To delete this Web Part, click OK. To keep this Web Part, click Cancel.'; 426 427function ctl00_ctl25_g_50009c9a_52d5_4c6a_9812_e452bc69d06a_init() { 428 EnsureScript('mediaplayer.js', 429 typeof (mediaPlayer) != 'undefined' ? typeof (mediaPlayer.attachToMediaLinks) : 'undefined');
430 ExecuteOrDelayUntilScriptLoaded( 431 function () { 432 if (Silverlight.isInstalled('2.0')) { 433 mediaPlayer.createOverlayPlayer(); 434 mediaPlayer.attachToMediaLinks(document.getElementById( 435 'cbqwpctl00_ctl25_g_50009c9a_52d5_4c6a_9812_e452bc69d06a'), ["wmv", "wma", "mp3", "mp4"], ''); 436 } 437 }, 'mediaplayer.js'); 438} 439 440var offlineBtnText = ''; 441var offlineBtnImg = ''; 442var databaseBtnText = ''; 443var databaseBtnDesc = ''; 444var fDBInstalled = false; 445 446try { 447 databaseBtnText = ExpDatabase.MenuTitle; 448 databaseBtnDesc = ExpDatabase.MenuDescription; 449 fDBInstalled = true; 450} catch (e) {} 451 452var g_disableCheckoutInEditMode = false; 453var _spWebPermMasks = { 454 High: 16, 455 Low: 200769 456}; 457 458// function SearchEnsureSOD() { 459// EnsureScript('search.js', typeof (GoSearch)); 460// } 461 462// function S8AF30516_Submit() { 463// if (document.getElementById('ctl00_PlaceHolderSearchArea_g_06619f37_9d02_447f_8d64_157258ba5b1d_ctl03').value == 464// '0') { 465// document.getElementById( 466// 'ctl00_PlaceHolderSearchArea_g_06619f37_9d02_447f_8d64_157258ba5b1d_S8AF30516_InputKeywords').value = ''; 467// } 468// SearchEnsureSOD(); 469// GoSearch('ctl00_PlaceHolderSearchArea_g_06619f37_9d02_447f_8d64_157258ba5b1d_ctl03', 470// 'ctl00_PlaceHolderSearchArea_g_06619f37_9d02_447f_8d64_157258ba5b1d_S8AF30516_InputKeywords', null, true, 471// false, null, null, null, null, null, '\u002fSearch\u002fResults.aspx', 'This Site', 'This List', 472// 'This Folder', 'Related Sites', '\u002f_layouts\u002fOSSSearchResults.aspx', '', 473// 'Please enter one or more search words.'); 474// if (document.getElementById('ctl00_PlaceHolderSearchArea_g_06619f37_9d02_447f_8d64_157258ba5b1d_ctl03').value == 475// '0') { 476// document.getElementById( 477// 'ctl00_PlaceHolderSearchArea_g_06619f37_9d02_447f_8d64_157258ba5b1d_S8AF30516_InputKeywords').value = 478// 'Search'; 479// } 480// } 481 482// function S8AF30516Mobile_Submit() { 483// if (document.getElementById('ctl00_PlaceHolderSearchArea_g_06619f37_9d02_447f_8d64_157258ba5b1d_ctl03Mobile').value == 484// '0') { 485// document.getElementById( 486// 'ctl00_PlaceHolderSearchArea_g_06619f37_9d02_447f_8d64_157258ba5b1d_S8AF30516_InputKeywordsMobile').value = ''; 487// } 488// SearchEnsureSOD(); 489// GoSearch('ctl00_PlaceHolderSearchArea_g_06619f37_9d02_447f_8d64_157258ba5b1d_ctl03Mobile', 490// 'ctl00_PlaceHolderSearchArea_g_06619f37_9d02_447f_8d64_157258ba5b1d_S8AF30516_InputKeywordsMobile', null, true, 491// false, null, null, null, null, null, '\u002fSearch\u002fResults.aspx', 'This Site', 'This List', 492// 'This Folder', 'Related Sites', '\u002f_layouts\u002fOSSSearchResults.aspx', '', 493// 'Please enter one or more search words.'); 494// if (document.getElementById('ctl00_PlaceHolderSearchArea_g_06619f37_9d02_447f_8d64_157258ba5b1d_ctl03Mobile').value == 495// '0') { 496// document.getElementById( 497// 'ctl00_PlaceHolderSearchArea_g_06619f37_9d02_447f_8d64_157258ba5b1d_S8AF30516_InputKeywordsMobile').value = 498// 'Search'; 499// } 500// } 501 502// function S8AF30516_OSBEK(event1) { 503// var kCode = String.fromCharCode(event1.keyCode); 504// if (kCode == "\n" || kCode == "\r") { 505// S8AF30516_Submit(); 506// return false; 507// } 508// } { 509// var searchTextBox = document.getElementById( 510// 'ctl00_PlaceHolderSearchArea_g_06619f37_9d02_447f_8d64_157258ba5b1d_S8AF30516_InputKeywords'); 511// if (searchTextBox.className.indexOf('s4-searchbox-QueryPrompt') == -1) searchTextBox.className += searchTextBox 512// .className ? ' s4-searchbox-QueryPrompt' : 's4-searchbox-QueryPrompt'; 513// } 514 515 516$(document).ready(function () { 517 $(".item-section").addClass("display-hide"); 518 519 $(".item-tab").on("click", function () { 520 let item = $(this).data("item"); 521 let section = $("#" + item + "-item"); 522 let statusSpan = $(this).find(".item-status"); 523 524 // Toggle visibility 525 section.toggleClass("display-hide"); 526 527 // Update Show / Hide text 528 if (section.hasClass("display-hide")) { 529 statusSpan.text("Show"); 530 } else { 531 statusSpan.text("Hide"); 532 } 533 534 // Toggle active class on the clicked item 535 $(this).toggleClass("active-sheet"); 536 }); 537}); 538 539 540 541 542 543 544 545 546 547/** 548 * jQuery changeElementType 549 * 550 * @author Karen Ziv <[email protected]> 551 */ 552 553; 554(function ($, window, document, undefined) { 555 556 'use strict'; 557 558 // Create the defaults once 559 var pluginName = 'changeElementType'; 560 var defaults = { 561 keepEvents: true 562 }; 563 564 // The actual plugin constructor 565 function Plugin(element, newType, options) { 566 this.element = element; 567 this.newType = newType; 568 569 // jQuery has an extend method which merges the contents of two or 570 // more objects, storing the result in the first object. The first object 571 // is generally empty as we don't want to alter the default options for 572 // future instances of the plugin 573 this.settings = $.extend({}, defaults, options); 574 this._defaults = defaults; 575 this._name = pluginName; 576 this.init(); 577 } 578 579 $.extend(Plugin.prototype, { 580 init: function () { 581 582 // Make sure the tag name is actually different 583 if (this.element.tagName === this.newType.toUpperCase()) { 584 return this.element; 585 } 586 587 // Collect the element attributes 588 var attrs = {}; 589 $.each(this.element.attributes, function (idx, attr) { 590 attrs[attr.nodeName] = attr.nodeValue; 591 }); 592 593 // Get the events bound to this element 594 if (this.settings.keepEvents) { 595 // We need to clone the events object using extend instead of just assigning 596 // because replaceWith will nullify the reference caused in pure assignment. 597 var events = $.extend(true, {}, $._data(this.element, 'events')); 598 } 599 600 // Build the new element and replace the old one 601 var newElement = $("<" + this.newType + "/>", attrs).append($(this.element).contents()); 602 $(this.element).replaceWith(newElement); 603 604 // Reattach any events that were lost in replaceWith 605 if (typeof events != 'undefined') { 606 $.each(events, function (event, handlers) { 607 $.each(handlers, function (j, handler) { 608 newElement.bind(event, handler); 609 }); 610 }); 611 } 612 613 return newElement; 614 } 615 }); 616 617 $.fn[pluginName] = function (newType, options) { 618 return this.each(function () { 619 if (!$.data(this, 'plugin_' + pluginName)) { 620 $.data(this, 'plugin_' + 621 pluginName, new Plugin(this, newType, options)); 622 } 623 }); 624 }; 625 626})(jQuery, window, document);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.