1// UPDATED ON 01/15/2017 @ 06:09PM 2 3////////////////////////////////////////////////////////////////////////////////////////////// 4////////////////////////////////////////////////////////////////////////////////////////////// 5 6$(document).ready(function() { 7 8//////////////////////////////////////////////////////////////////////////////////////////////////////// 9 10$('.PostArticle iframe').wrap('<div class="Video"></div>'); //wrap this around video iframes to scale on mobile devices 11$('.IndexTopStory .Post .Text').css({opacity: 0.0, visibility: "visible"}).animate({opacity: 1}, 500); 12window.addEventListener("resize", CheckSize); 13 14//////////////////////////////////////////////////////////////////////////////////////////////////////// 15 16var vDate = new Date(); 17var vYear = vDate.getFullYear(); 18$('.Copyright').html(vYear); //add date to footer 19 20var vDomain = document.URL; 21var vDomain = vDomain.substring(0, vDomain.lastIndexOf("/") + 1); //assumes the file is kept in the root, not subfolders 22 23//////////////////////////////////////////////////////////////////////////////////////////////////////// 24 25$('.Container').click(function() { TurnOff(); }); 26$('.FooterContainer').click(function() { TurnOff(); }); 27 28//////////////////////////////////////////////////////////////////////////////////////////////////////// 29 30$('#Logo').click(function() { 31if ($('#MenuButton').hasClass('IconClose')) { 32TurnOff(); 33} else { 34window.location.href = vDomain; 35}; 36}); 37 38//////////////////////////////////////////////////////////////////////////////////////////////////////// 39 40$('#MenuButton').click(function() { 41if ($('#MenuButton').hasClass('IconClose')) { 42TurnOff(); 43} else { 44ShowLeft(); 45}; 46}); 47 48//////////////////////////////////////////////////////////////////////////////////////////////////////// 49 50$('#SearchButton').click(function() { 51if ($('#SearchButton').hasClass('IconClose')) { 52TurnOff(); 53} else { 54ShowRight(); 55}; 56}); 57 58//////////////////////////////////////////////////////////////////////////////////////////////////////// 59 60$("#query").focus(function() { 61if ($('#query').val() == "Search") { 62$('#query').val('') 63} 64}); 65 66//////////////////////////////////////////////////////////////////////////////////////////////////////// 67$("#query").blur(function() { 68if ($('#query').val() == "") { 69$('#query').val('Search') 70} 71}); 72 73//////////////////////////////////////////////////////////////////////////////////////////////////////// 74 75$('#Search .SearchBox .Button').click(function() { 76 77if ($('#query').val() == "Search" || "") { 78//alert ("Please enter a keyword or phrase."); 79$('#query').focus(); 80} else { 81$('#GoodGopherSearch').submit(); 82} 83}); 84 85//////////////////////////////////////////////////////////////////////////////////////////////////////// 86 87}); 88 89////////////////////////////////////////////////////////////////////////////////////////////// 90////////////////////////////////////////////////////////////////////////////////////////////// 91 92$(window).load(function(){ 93 94 95}); 96 97////////////////////////////////////////////////////////////////////////////////////////////// 98////////////////////////////////////////////////////////////////////////////////////////////// 99 100function CheckSize() { 101if ($(window).width() > 768) { 102TurnOff(); 103} 104}; 105 106//////////////////////////////////////////////////////////////////////////////////////////////////////// 107 108function TurnOff() { 109if ($(window).width() > 768) { 110$('#Page').css("position","static"); 111} else { 112$('#Page').css("position","absolute"); 113}; 114$('#Page').css("left","0px"); 115$('#Menu').css("left","-250px"); 116$('#Search').css("right","-250px"); 117$('#MenuButton').removeClass("IconClose"); 118$('#MenuButton').addClass("IconMenu"); 119$('#SearchButton').removeClass("IconClose"); 120$('#SearchButton').addClass("IconSearch"); 121}; 122 123//////////////////////////////////////////////////////////////////////////////////////////////////////// 124 125function ShowLeft() { 126$('#Page').css("position","fixed"); 127$('#Page').css("left","250px"); 128$('#Menu').css("left","0px"); 129$('#Search').css("right","-250px"); 130$('#MenuButton').removeClass("IconMenu"); 131$('#MenuButton').addClass("IconClose"); 132$('#SearchButton').removeClass("IconClose"); 133$('#SearchButton').addClass("IconSearch"); 134}; 135
136//////////////////////////////////////////////////////////////////////////////////////////////////////// 137 138function ShowRight() { 139$('#Page').css("position","fixed"); 140$('#Page').css("left","-250px"); 141$('#Menu').css("left","-250px"); 142$('#Search').css("right","0px"); 143$('#MenuButton').removeClass("IconClose"); 144$('#MenuButton').addClass("IconMenu"); 145$('#SearchButton').removeClass("IconSearch"); 146$('#SearchButton').addClass("IconClose"); 147}; 148 149//////////////////////////////////////////////////////////////////////////////////////////////////////// 150 151
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.