1// Analytics on documents 2 window.onload = function() { 3 // var winWidth = window.outerWidth ? window.outerWidth : document.body.clientWidth; 4 // setup doc/pdf Google Analytics click tracking 5 if( window.ga || (window._gat && window._gat._getTracker) ) { 6 com.illuminage.doctrack.setupTracking(); 7 } 8 }; 9 10 if(!com) var com={}; 11 if(!com.illuminage) com.illuminage={}; 12 if(!com.illuminage.doctrack) com.illuminage.doctrack={}; 13 (function(){ 14 15 var pub = com.illuminage.doctrack; 16 pub.extensions = "doc,pdf,docx"; 17 pub.extensionArr = pub.extensions.split(","); 18 19 pub.setupTracking = function() { 20 var links = document.getElementsByTagName("a"); 21 22 // loop through all links on page 23 for( var i=0; i<links.length; i++ ) { 24 var link = links[i]; 25 var href = link.getAttribute("href"); 26 if( href ) { 27 href = href.replace("http://", ""); 28 href = href.substr(href.indexOf("/")); 29 30 // loop through and check for extensions 31 for( var j=0; j<pub.extensionArr.length; j++ ) { 32 var ext = pub.extensionArr[j]; 33 if( href.endsWith(ext) ) { 34 link.setAttribute("onclick", "javascript: ga('send', 'pageview', '" + href + "');"); 35 } 36 } 37 } 38 } 39 } 40 })(); 41 42 String.prototype.endsWith = function(suffix) { 43 return this.indexOf(suffix, this.length - suffix.length) !== -1; 44 }; 45 String.prototype.endsWith = function(suffix) { 46 return this.indexOf(suffix, this.length - suffix.length) !== -1; 47 }; 48 49// FONT SIZER 50 function illDoTextSize( size_index ) { 51 var bclass = ''; 52 switch(size_index) { 53 case 0: 54 bclass = ''; 55 break; 56 case 1: 57 bclass = 'big'; 58 break; 59 case 2: 60 bclass = 'bigger'; 61 break; 62 case 3: 63 bclass = 'biggest'; 64 break; 65 } 66 jQuery('body').removeClass('big').removeClass('bigger').removeClass('biggest'); 67 jQuery('body').addClass(bclass); 68 } 69 function illIncrementTextSize() { 70 var current_size = illReadCookie('text_size'); 71 if( current_size != null ) { 72 current_size++; 73 } else { 74 current_size = 0; 75 } 76 if( current_size > 3 ) { 77 current_size = 0; 78 } 79 80 illDoTextSize(current_size); 81 illCreateCookie('text_size', current_size, 30); 82 } 83 84// HIGH CONTRAST 85 function illDoHighContrast( high_contrast_status ) { 86 var body_elem = document.getElementsByTagName("body")[0]; 87 if( high_contrast_status == 1 ) { 88 body_elem.className += " high_contrast"; 89 } else { 90 body_elem.className = body_elem.className.replace(' high_contrast', '') 91 } 92 } 93 function toggleHighContrast() { 94 var high_contrast_status = illReadCookie("high_contrast"); 95 if( high_contrast_status == null || high_contrast_status == 0 ) { 96 high_contrast_status = 1; 97 } else { 98 high_contrast_status = 0; 99 } 100 illDoHighContrast(high_contrast_status); 101 illCreateCookie("high_contrast", high_contrast_status, 30); 102 } 103 104// COOKIES - CONTRAST AND FONT CHOICE 105 function illCreateCookie( name, value, days ) { 106 if(days) { 107 var date = new Date(); 108 date.setTime(date.getTime()+(days*24*60*60*1000)); 109 var expires = "; expires="+date.toGMTString(); 110 } else { 111 var expires = ""; 112 } 113 document.cookie = name+"="+value+expires+"; path=/"; 114 } 115 function illReadCookie( name ) { 116 var nameEQ = name + "="; 117 var ca = document.cookie.split(';'); 118 for( var i=0; i < ca.length; i++ ) { 119 var c = ca[i]; 120 while (c.charAt(0)==' ') c = c.substring(1,c.length); 121 if( c.indexOf(nameEQ) == 0 ) return c.substring(nameEQ.length,c.length); 122 } 123 return null; 124 } 125 126// 2018 127jQuery(document).ready(function($) { 128 // assign the dashicons to the appropriate menu items 129 $('.menu li').each(function(){ 130 var atext = $(this).find('a').text(); 131 var aclass = ''; 132 switch(atext) { 133 case 'Twitter': 134 //aclass = 'dashicons dashicons-twitter'; 135 aclass = 'fab fa-twitter'; 136 break; 137 case 'Email': 138 //aclass = 'dashicons dashicons-email-alt'; 139 aclass ='far fa-envelope'; 140 break; 141 case 'Google Plus': 142 //aclass = 'dashicons dashicons-googleplus'; 143 aclass = 'fab fa-google-plus-g'; 144 break; 145 case 'Facebook': 146 //aclass = 'dashicons dashicons-facebook-alt'; 147 aclass = 'fab fa-facebook-f'; 148 break; 149 case 'LinkedIn': 150 aclass = 'fab fa-linkedin-in'; 151 break; 152 case 'Pinterest': 153 aclass = 'fab fa-pinterest-p'; 154 break; 155 case 'YouTube': 156 aclass = 'fab fa-youtube'; 157 break; 158 case 'Instagram': 159 aclass = 'fab fa-instagram'; 160 break; 161 } 162 if(aclass != '') { 163 $(this).find('a').text(''); 164 $(this).find('a').html('<span class="'+ aclass +'"></span>'); 165 //$(this).find('span').addClass(aclass); 166 } 167 if(atext == 'Search') { 168 $(this).find('a').text(''); 169 $(this).find('a').parent().html( 170 '<form id="search" action="/" method="get" role="search">' + 171 '<fieldset>' + 172 '<label for="search_box">Search</label>' + 173 '<input id="search_box" type="text" name="s" placeholder="search site" value="" />' + 174 '<input type="submit" class="" value="" />' + 175 '</fieldset>' + 176 '</form><!--/search-->
176' 177 ); 178 } 179 }); 180 181 // font size changer 182 illDoTextSize(parseInt(illReadCookie("text_size"))); 183 $('#textsize').click(function() { 184 illIncrementTextSize(); 185 }); 186 187 // high contrast 188 illDoHighContrast(illReadCookie("high_contrast")); 189 $('#highcontrast').click(function() { 190 toggleHighContrast(); 191 }); 192 193 // search prevent empty submit 194 $("#search").on("submit", function(e) { 195 if( jQuery(this).find("input[type=text]").val() == "" ) { 196 e.preventDefault(); 197 return false; 198 } 199 $(this).find("input[type=text]").focus(); 200 }); 201 $("#search").hover(function(){ 202 $("#search").addClass("show"); 203 }, function(){ 204 setTimeout(function() { 205 $("#search").removeClass("show"); 206 }, 8000); 207 }); 208 209 // dropdown nav keyboard navigation helper 210 var nav_element_id = "nav_contain"; 211 var nav_ul_id = "menu-primary"; // first <ul> of the nav 212 var kid_class = "sub-menu"; 213 $("." + kid_class + " a").on("focus", function() { 214 jQuery(this).closest("." + kid_class).closest("li").addClass("active"); 215 }); 216 $("." + kid_class + " a").on("blur", function() { 217 jQuery(this).closest("." + kid_class).closest("li").removeClass("active"); 218 }); 219 220 // share button 221 $('#share div').click(function() { 222 $(this).parent().toggleClass('active'); 223 }); 224 225 // remove icon on document image links 226 $('a:has(img)').addClass('no_icon'); 227 228 // collapse-o-matic titles are annoying 229 $(".collapseomatic").hover(function(){ 230 // Get the current title 231 var title = $(this).attr("title"); 232 // Store it in a temporary attribute 233 $(this).attr("tmp_title", title); 234 // Set the title to nothing so we don't see the tooltips 235 $(this).attr("title",""); 236 }); 237 $(".collapseomatic").click(function(){// Fired when we leave the element 238 // Retrieve the title from the temporary attribute 239 var title = $(this).attr("tmp_title"); 240 // Return the title to what it was 241 $(this).attr("title", title); 242 }); 243 244 var winWidth = window.outerWidth ? window.outerWidth : document.body.clientWidth; 245 if(winWidth >= 901) { 246 $(window).on("scroll",function(){ 247 if($(window).scrollTop()>0){ 248 $('header').addClass("bkg"); 249 } else{ 250 $('header').removeClass("bkg"); 251 } 252 }); 253 } 254 //header_sizing(); 255 // responsive menu 256 $('#navbtn').click(function() { 257 $(this).toggleClass('open'); 258 $('header').toggleClass('open'); 259 }); 260 $('#closenav').click(function() { 261 // console.log('hi'); 262 $('#navbtn').removeClass('open'); 263 $('header').removeClass('open'); 264 }); 265 $('.menu-primary-container').on("scroll",function(){ 266 if($('.menu-primary-container').scrollTop()>0){ 267 $('header').addClass("drop-tools"); 268 } else{ 269 $('header').removeClass("drop-tools"); 270 } 271 }); 272}); 273 274 275// redo the header height on resize 276jQuery(document).resize(function() { 277 header_sizing(); 278}); 279 280// header sizing adjustments 281 function header_sizing() { 282 // move the hero down to accomodate 283 var header_height = jQuery('header').outerHeight(); 284 jQuery('.hero-wrap, .content-wrap, .ill_directory, .ill_assoc_directory').css({ 285 'padding-top' : header_height + 'px' 286 }); 287 } 288 289// menu responsive 290 // jQuery('#navbtn').click(function() { 291 // if(jQuery('header nav').hasClass('open')) { 292 // jQuery('header nav .menu').removeClass('open'); 293 // jQuery('header nav').removeClass('open'); 294 // } else { 295 // jQuery('header nav .menu').addClass('open'); 296 // jQuery('header nav').addClass('open'); 297 // } 298 // }); 299 // jQuery('#closenav').click(function() { 300 // if(jQuery('header nav').hasClass('open')) { 301 // jQuery('header nav .menu').removeClass('open'); 302 // jQuery('header nav').removeClass('open'); 303 // } else { 304 // jQuery('header nav .menu').addClass('open'); 305 // jQuery('header nav').addClass('open'); 306 // } 307 // }); 308 // responsive menu 309 // jQuery('#navbtn').click(function() { 310 // jQuery(this).toggleClass('open'); 311 // jQuery('header').toggleClass('open'); 312 // }); 313 // jQuery('#closenav').click(function() { 314 // // console.log('hi'); 315 // jQuery('#navbtn').removeClass('open'); 316 // jQuery('header').removeClass('open'); 317 // }); 318 319 320 321
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.