1$(function () { 2 'use strict'; 3 4 var grayscaleConfig = window.POWER_GRAYSCALE_CONFIG; 5 var startDateTime = new Date(grayscaleConfig.StartDateTime); 6 var endDateTime = new Date(grayscaleConfig.EndDateTime); 7 var nowDate = new Date(); 8 9 if (grayscaleConfig.Enabled & 10 nowDate.getTime() >= startDateTime.getTime() & 11 nowDate.getTime() <= endDateTime.getTime()) { 12 var navStr = navigator.userAgent.toLowerCase(); 13 if (navStr.indexOf("msie 10.0") !== -1 || navStr.indexOf("rv:11.0") !== -1) { 14 $.when($.ajax()).then(function () { 15 grayscale($("html")); 16 }); 17 18 $('.mainNav li a').hover( 19 function () { 20 $(this).css("background", "#545454"); 21 }, 22 function () { 23 $(this).css("background", "#585858"); 24 }); 25 26 subMenuFixed = true; 27 var subMenuTop = $(".topNav").offset().top; 28 $(window) 29 .scroll(function () { 30 if (subMenuFixed) { 31 if ($(window).scrollTop() >= subMenuTop) { 32 $(".topNav").addClass("topNav-fixed"); 33 $(".topNav").css("background", "#585858"); 34 } else { 35 $(".topNav").removeClass("topNav-fixed"); 36 $(".topNav").css("background", ""); 37 } 38 } 39 }); 40 } 41 } 42})
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.