1 2 3/*----------------------------------------------------------------------------------- 4 5 Theme Name: Gov 6 Front-end developer: Samir Alley 7 Author Design: Samir Alley @samiralley 8 Author URI: http://www.revize.com/ 9 Date: 9/19/2024 10 11-----------------------------------------------------------------------------------*/ 12 13(function($) { 14 15 16var al = document.getElementById("alert_bar"); 17if (al != null) { 18 var tog = document.getElementById("toggles"); 19 tog.style.top = al.getBoundingClientRect().height + 15 + "px"; 20 window.addEventListener("resize", function() { 21 tog.style.top = al.getBoundingClientRect().height + 15 + "px"; 22 }); 23} 24 25(function($) { 26 27 'use strict'; 28 29 var $window = $(window), 30 $body = $('body'); 31 32 /*! 33 * IE10 viewport hack for Surface/desktop Windows 8 bug 34 * Copyright 2014-2015 Twitter, Inc. 35 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 36 */ 37 38 // See the Getting Started docs for more information: 39 // http://getbootstrap.com/getting-started/#support-ie10-width 40 if (navigator.userAgent.match(/IEMobile\/10\.0/)) { 41 var msViewportStyle = document.createElement('style'); 42 msViewportStyle.appendChild( 43 document.createTextNode( 44 '@-ms-viewport{width:auto!important}' 45 ) 46 ); document.querySelector('head').appendChild(msViewportStyle); 47 } 48 49 if(RZ.pageid === "index"){ 50 $("#video-bg").YTPlayer(); 51 } 52 53 $(".cookieConsentOK, #closeCookieConsent").on("click keydown", function() { 54 if (e.keyCode === 13 || e.type === 'click') { 55 $("#cookieConsent").slideUp(); 56 } 57 }); 58 59 $("#cookieConsent").remove(); 60 61 // RZ Class 62 if(typeof RZ !== "undefined"){ 63 if(RZ.login){ 64 $body.addClass("user-logged-in"); 65 } else{ 66 $body.addClass("user-not-logged-in"); 67 } 68 } 69 70 // Font resizer 71 function textResizer() { 72 var $dec, $inc; 73 $inc = $('#increase-font'); 74 $dec = $('#decrease-font'); 75 $inc.on('click', function(e) { 76 return $('body').css({ 77 'font-size': '+=1.5' 78 }); 79 }); 80 $dec.on('click', function(e) { 81 return $('body').css({ 82 'font-size': '-=1.5' 83 }); 84 }); 85 return $('#font-resizer a').on('click', function(e) { 86 return e.preventDefault(); 87 }); 88 89 // Hookup to use Userway's functions instead. 90 }; 91 textResizer(); 92 93 // Clone icons to each navigation link/span 94 $('#navicons li').each(function(){ 95 var navIconIndex = $(this).index(); 96 $(this).find('img').prependTo($('#nav>li').eq(navIconIndex).children('a,span')); 97 }); 98 99 // Keyboard Navigation: Nav, flyout 100 var isClick = false; 101 $("#nav li a").on('focusin', function(e) { 102 if( isClick === false ) { 103 $(".focused").removeClass("focused"); 104 $(e.currentTarget).parents("#nav li").addClass("focused"); 105 } else { 106 $(".focused").parents("#nav li").removeClass("focused"); 107 isClick = false; 108 } 109 }); 110 111 // prevent focused class changes on click - This way arrows wont pop when clicking nav links 112 $("#nav a,#flyout a").on('mousedown',function(){ 113 isClick = true; 114 }); 115 116 // Search Toggle 117 $('#search-toggle').on('click',function(e){ 118 $('#search').stop().slideToggle(200); 119 $(this).toggleClass('fa-search fa-times'); 120 }); 121 122 // Navigation Toggle 123 $("#nav-toggle").on("click", function(){ 124 $("#nav").stop().slideToggle(); 125 $(this).toggleClass("fa-bars fa-times"); 126 }); 127 128 // Menu Arrows and Toggles 129 $("#nav >li>ul,#flyout >li>ul").addClass('first-level'); 130 $("#nav li ul ul").addClass('second-level'); 131 $("#nav>li:has(ul)").each(function(){ 132 $('<a href="#" class="fa fa-angle-down toggle" tabindex="0" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="dropdown-toggle-'+$(this).index()+'" aria-label="Show Dropdown for '+ $(this).find('a:first').text() +'"></a>').insertAfter($(this).find('a:first')); 133 $(this).find('ul:first').attr('aria-labelledby', 'dropdown-toggle-'+$(this).index()); 134 }); 135 $('#nav li ul>li:has(ul)').each(function(index) { 136 $('<a href="#" class="fa fa-angle-down toggle2" tabindex="0" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="sub-dropdown-toggle-'+index+'" aria-label="Show Dropdown for '+ $(this).find('a:first').text() +'"></a>').insertAfter($(this).find('a:first')); 137 $(this).find('ul:first').attr('aria-labelledby', 'sub-dropdown-toggle-'+index); 138 }); 139 $('#flyout >li:has(ul)').each(function() { 140 $('<a href="#" class="fa fa-angle-down toggle" tabindex="0" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="flyout-dropdown-toggle-'+$(this).index()+'" aria-label="Show Flyout for '+ $(this).find('a:first').text() +'"></a>').insertAfter($(this).find('a:first')); 141 $(this).find('ul:first').attr('aria-labelledby', 'flyout-dropdown-toggle-'+$(this).index()); 142 }); 143 144 function addNavClass() { 145 if ($window.width() < 992) { 146 // Insert needed for mobile 147 } else{ 148 // Insert needed for desktop 149 $('#nav ul, #flyout ul').css('display', ''); 150 } 151 } 152 addNavClass(); 153 $window.resize(addNavClass); 154 155 function matchFlyout() { 156 if ($("body").outerWidth() < 992) { $("#flyout-wrap, #entry").css("height",""); return; } 157 var _max = 0; 158 var _temp = 0; 159 $("#flyout-wrap, #entry").each(function() { 160 _temp = $(this).outerHeight(); 161 if ( $(this).css("height","").outerHeight() > _max) { 162 _max = $(this).outerHeight(); 163 } 164 $(this).css("height",_temp); 165 }).css("height",_max); 166 } 167 168 if ($("#flyout").length) { 169 matchFlyout(); 170 $(window).on("resize", matchFlyout); 171 window.toggleCountdown = [null, 0]; 172 //$(".docs-toggle, [data-toggle]").on("click", function() { window.toggleCountdown = 20; window.toggleCountdown[0] = setInterval(function() { matchFlyout(); window.toggleCountdown[1]--; if (window.toggleCountdown[1] == 0) { clearInterval(window.toggleCountdown[0]); }}, 50)}); 173 } 174 175 // Flyout Dropdown toggling. 176 function toggleDropdown(el) { 177 $(el).toggleClass('opened').toggleClass('active'); 178 $(el).children("ul").stop(true).slideToggle({step : matchFlyout}); 179 if ($(el).hasClass("active")) { 180 $(el).children("ul").attr({'aria-expanded': 'true'}); 181 } else { 182 $(el).children("ul").attr({'aria-expanded': 'false'}); 183 } 184 } 185 186 // Make a slight delay on hover so you don't flick your cursor and open every single thing. 187 var slideTimeout = {el : null, t : null}; 188 $("#flyout .first-level, #flyout .second-level").parent().on("mouseenter", function(e) { 189 if ($(this).hasClass("active")) { return; } 190 slideTimeout.el = $(this); 191 slideTimeout.t = setTimeout(function() { 192 if ($(slideTimeout.el).hasClass("opened")) { return; } 193 toggleDropdown(slideTimeout.el); 194 },250); // Hover Delay 195 }).on("mouseleave", function() { 196 clearTimeout(slideTimeout.t); 197 }); 198 199 $(".toggle, .toggle2").on("click keydown",function(e) { 200 if (e.keyCode === 13 || e.type === 'click') { 201 e.preventDefault(); 202 toggleDropdown($(this).parent()); 203 } 204 }); 205 206 // close nav if left 207 /*$(".desktop *").focus(function(e){
208 var $opened = $(".opened"); 209 var $opened2 = $(".opened2"); 210 if( $opened.length > 0 || $opened2.length > 0 ) { 211 if( $(".opened :focus").length < 1 ){ 212 $opened.children("ul").slideUp(); 213 $opened.removeClass("opened").removeClass("active"); 214 $(".opened2").removeClass("opened2"); 215 } 216 if( $(".opened2 :focus").length < 1 ){ 217 $opened2.children("ul").slideUp(); 218 $opened2.removeClass("opened2").removeClass("active"); 219 } 220 } 221 });*/ 222 223 // Flyout 224 var flyout = $('#flyout'), 225 flyoutwrap = $('#flyout-wrap'); 226 227 if (flyout.text().length){ 228 flyoutwrap.prepend('<div id="flyout-toggle" class="hidden-lg hidden-md"><i class="fa fa-bars"></i> Sub Menu</div>'); 229 } 230 231 $("#flyout-toggle").on("click", function(){ 232 flyout.slideToggle(); 233 $(this).toggleClass("active"); 234 }); 235 236 237 function fillSide(){ 238 var whiteSpace = parseFloat($('.container').css('margin-right')) + 15; 239 $('.fillLeft').css('margin-left',-whiteSpace); 240 $('.fillLeft.withPadding').css('padding-left',whiteSpace); 241 $('.fillRight').css('margin-right',-whiteSpace); 242 $('.fillRight.withPadding').css('padding-right',whiteSpace); 243 } 244 fillSide(); 245 $window.resize(fillSide); 246 247 /* 248 * E-Notify Auto submit 249 */ 250 $.urlParam=function(n){var e=new RegExp("[?&]"+n+"=([^]*)").exec(window.location.href);return null==e?null:e[1]||0}; 251 var $enotify = $('iframe[src*="/revize/plugins/notify/notify.jsp"]'); 252 if( $enotify.length > 0 ){ 253 var emailStr = $.urlParam("email"); 254 if( emailStr != null ){ 255 $enotify.attr("src", $enotify.attr("src") + "&email=" + emailStr); 256 } 257 } 258 259 // Make sure all calendars have unique ids 260 $('iframe[name="calendar"]').each(function (index, calendar) { 261 calendar.id = 'calendar-' + index; 262 }); 263 264 // Start Frame Resizer 265 function resizeIframe(height, frameElement) { 266 if ( frameElement ) { 267 frameElement.height = ""; 268 frameElement.height = height; 269 } 270 } 271 272 var eventMethod = window.addEventListener ? "addEventListener" : "attachEvent"; 273 var eventHandler = window[eventMethod]; 274 var messageEvent = eventMethod === "attachEvent" ? "onmessage" : "message"; 275 eventHandler(messageEvent, function (e) { 276 if ( Array.isArray(e.data) ) { 277 if( e.data[0] === "setCalHeight" || e.data[0] === "setNotifyHeight") { 278 var frames = document.querySelectorAll('iframe'); 279 for( var i = 0; i < frames.length; i++ ) { 280 if( frames[i].contentWindow === e.source ){ 281 resizeIframe(e.data[1], frames[i]); 282 } 283 } 284 } 285 } 286 }); 287 288 // End Frame Resizer 289 290 // ADA MENU 291 if (Cookies.get("highcontrast") == "on") { 292 $("html").addClass("highcontrast"); 293 $(".highcontrast #flyout li:has(ul)>a").css({ color: "#fff" }); 294 $("#highcontrast").text("High Contrast Off"); 295 } 296 if (Cookies.get("yellowlinks") == "on") { 297 $("html").addClass("yellowlinks"); 298 $("#yellowlinks").text("Yellow Links Off"); 299 } 300 if (Cookies.get("greyscale") == "on") { 301 $("html").addClass("greyscale"); 302 $("#greyscale").text("Grey Scale Off"); 303 } 304 if (Cookies.get("underline-links") == "on") { 305 $("html").addClass("underline-links"); 306 $("#underline-links").text("Underline Links Off"); 307 } 308 $(".accessible-btn a").on("click keydown", function(e) { 309 if (e.keyCode === 13 || e.type === 'click') { 310 e.preventDefault(); 311 $(this).parent().parent().toggleClass("visible"); 312 } 313 }); 314 $("#highcontrast").on("click keydown", function(e) { 315 if (e.keyCode === 13 || e.type === 'click') { 316 e.preventDefault(); 317 if (Cookies.get("highcontrast")) { 318 Cookies.remove("highcontrast"); 319 } else { 320 Cookies.set("highcontrast", "on", { expires: 7 }); 321 } 322 if (Cookies.get("highcontrast") == "on") { 323 $("html").addClass("highcontrast"); 324 $('#calendar').contents().find('html').addClass('highcontrast'); 325 $(this).text("High Contrast Off"); 326 } else { 327 $("html").removeClass("highcontrast"); 328 $('#calendar').contents().find('html').removeClass('highcontrast'); 329 $(this).text("High Contrast"); 330 } 331 } 332 }); 333 $("#yellowlinks").on("click keydown", function(e) { 334 if (e.keyCode === 13 || e.type === 'click') { 335 e.preventDefault(); 336 if (Cookies.get("yellowlinks")) { 337 Cookies.remove("yellowlinks"); 338 } else { 339 Cookies.set("yellowlinks", "on", { expires: 7 }); 340 } 341 if (Cookies.get("yellowlinks") == "on") { 342 $("html").addClass("yellowlinks"); 343 $('#calendar').contents().find('html').addClass('yellowlinks'); 344 $(this).text("Yellow Links Off"); 345 } else { 346 $("html").removeClass("yellowlinks"); 347 $('#calendar').contents().find('html').removeClass('yellowlinks'); 348 $(this).text("Yellow Links"); 349 } 350 } 351 }); 352 $("#greyscale").on("click keydown", function(e) { 353 if (e.keyCode === 13 || e.type === 'click') { 354 e.preventDefault(); 355 if (Cookies.get("greyscale")) { 356 Cookies.remove("greyscale"); 357 } else { 358 Cookies.set("greyscale", "on", { expires: 7 }); 359 } 360 if (Cookies.get("greyscale") == "on") { 361 $("html").addClass("greyscale"); 362 $('#calendar').contents().find('html').addClass('greyscale'); 363 $(this).text("Greyscale Off"); 364 } else { 365 $("html").removeClass("greyscale"); 366 $('#calendar').contents().find('html').removeClass('greyscale'); 367 $(this).text("Grey Scale"); 368 } 369 } 370 }); 371 $("#underline-links").on("click keydown", function(e) { 372 if (e.keyCode === 13 || e.type === 'click') { 373 e.preventDefault(); 374 if (Cookies.get("underline-links")) { 375 Cookies.remove("underline-links"); 376 } else { 377 Cookies.set("underline-links", "on", { expires: 7 }); 378 } 379 if (Cookies.get("underline-links") == "on") { 380 $("html").addClass("underline-links"); 381 $('#calendar').contents().find('html').addClass('underlink-links'); 382 $(this).text("Underline Links Off"); 383 } else { 384 $("html").removeClass("underline-links"); 385 $('#calendar').contents().find('html').removeClass('underlink-links'); 386 $(this).text("Underline Links"); 387 } 388 } 389 }); 390 // ADA MENU END 391 392 // Alert Close Caching 393 if ($("div.alert-dismissible").length) { 394 if (window.sessionStorage) { 395 var hide = parseInt(window.sessionStorage.getItem("alertClosed")) > 1; 396 if (hide && $(".user-logged-in").length == 0) { 397 $("div.alert-dismissible").slideToggle(); 398 } 399 } 400 $("div.alert-dismissible button.alert-dismiss").on('click', function(e) { 401 if (window.sessionStorage) { 402 window.sessionStorage.setItem("alertClosed",parseInt(window.sessionStorage.getItem("alertClosed")||0)+1); 403 } 404 $("div.alert-dismissible").slideUp(); 405 }); 406 } 407 408 //Slider Date 409 if ($("#date_weather").length) { 410 var _date = new Date(); 411 $("#slider_date>time").hide().fadeIn().text(_date.toLocaleDateString('en-US', {weekday: 'long', month: 'short', day: 'numeric'})); 412 413 // revizeWeather 414 if( typeof $.fn.revizeWeather !== "undefined" ){ 415 $.fn.revizeWeather({ 416 zip: '48326', 417 city_name: '', 418 unit: 'f', 419 success: function(weather) { 420 var date = new Date(); 421 date = (date.getMonth() + 1) + "/" + date.getDate() + "/" + date.getFullYear(); 422 var html = '<span class="forecast">'+weather.forecast+' '+weather.temp+'° F</span>'; 423 $("#weather").hide().fadeIn().html(html); 424 }, 425 error: function(error) { 426 // better to just hide the secion if there is an error 427 $('.weather').hide(); 428 console.log(error); 429 } 430 }); 431 } 432 } 433 434 435 // Tabs 436 $('#tabs li a').on('click keypress', function(e) { 437 if (e.keyCode === 13 || e.type === 'click') { 438 $('#tabs li, #tabs-content .current').removeClass('current').removeClass('fadeInLeft'); 439 $(this).parent().addClass('current'); 440 441 var currentTab = $(this).attr('href'); 442 443 e.preventDefault(); 444 $(currentTab).addClass('current animated fadeInLeft'); 445 $(currentTab).find('h2').focus(); 446 } 447 }); 448 449 var $translateButton = $('#translate-button'); 450 $translateButton.on('keydown click', function(e){
451 if (e.keyCode === 13 || e.type === 'click') { 452 $('#translation-links ul').stop().fadeToggle(); 453 $translateButton.attr('aria-expanded', !('true' === $translateButton.attr('aria-expanded'))); 454 } 455 }); 456 457 $('#translation-links ul').on('mouseleave',function(){ 458 $(this).fadeOut(); 459 $translateButton.attr('aria-expanded', false); 460 }); 461 462 var translateURL = "//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"; 463 464 // Translate Script 465 $.getScript(translateURL); 466 var pre = document.cookie.match(/googtrans=\/auto\/([^;]+);/); 467 if (pre && pre.length > 1) { 468 $("#translate-button").html(pre[1].toUpperCase()+' <i class="fa fa-angle-down"></i>'); 469 } 470 $('#translation-links a').click(function() { 471 var lang = $(this).data('lang'); 472 var $frame = $('iframe.skiptranslate'); 473 if (!$frame.length) { 474 return false; 475 } 476 var $el = $frame.contents().find('span.text:contains(' + lang + ')').parent().parent().get(0); 477 478 if (!$el) { 479 $frame.contents().find('span.text:contains("English")').parent().parent().get(0); 480 } 481 $el.click(); 482 return false; 483 }); 484 485 // Tiny Slider 486 if (typeof tns !== "undefined") { 487 $('.tiny-slider').each(function(i, el) { 488 console.log(el); 489 tns({ 490 autoplay: true, 491 autoplayTimeout: 8000, 492 container: el, 493 items: 1, 494 lazyload: true, 495 nav: false, 496 lazyloadSelector: '.tns-lazy-img', // accompanied with data src or data-style 497 mode: "gallery", 498 preventScrollOnTouch: 'force', 499 autoplayButtonOutput: false, 500 controlsText: [ 501 '<i class="fa fa-angle-left"><span class="sr-only">Slide Left</span></i>', 502 '<i class="fa fa-angle-right"><span class="sr-only">Slide Right</span></i>' 503 ] 504 }); 505 }); 506 507 $('#slider_quicks').each(function(i, el) { 508 var $el = $(el); 509 var tinyItemCount = $el.children().length; 510 var tinyItemData = $el.data('tinyItems') ? $el.data('tinyItems') : 6; 511 tns({ 512 container: el, 513 items: Math.min(tinyItemCount, tinyItemData), 514 lazyload: true, 515 loop: false, 516 lazyloadSelector: '.tns-lazy-img', // accompanied with data src or data-style 517 preventScrollOnTouch: 'false', 518 controlsText: [ 519 '<i class="fa fa-angle-left"><span class="sr-only">Slide Left</span></i>', 520 '<i class="fa fa-angle-right"><span class="sr-only">Slide Right</span></i>' 521 ], 522 responsive : { 523 1200 : { items : Math.min($(".quick-item").length, 5) }, 524 990 : { items : Math.min($(".quick-item").length, 4) }, 525 800 : { items : Math.min($(".quick-item").length, 3) }, 526 660 : { items : Math.min($(".quick-item").length, 2) }, 527 0 : { items : Math.min($(".quick-item").length, 1) }, 528 } 529 }); 530 }); 531 } 532 533 // Events/News Tabs 534 $(".event-tab").click(function() { 535 $(".event-tab, .event-container").removeClass("current"); 536 $(this).addClass("current"); 537 $(".event-container").eq($(this).index()).addClass("current"); 538 }); 539 540 // Responsive Tables 541 $('.post table:not(.layout-table):not(.not-responsive)').wrap('<div class="table-responsive"></div>'); 542 $('.layout-table').attr('role', 'presentation'); 543 544 // Preloader 545 $window.load(function() { 546 547 setTimeout(function(){ 548 $body.addClass('loaded'); 549 $('#loader-wrapper').fadeOut(); 550 }, 600); 551 552 }); 553 554 $window.ready(function(){ 555 556 // matchHeight 557 if(typeof $.fn.matchHeight !== "undefined"){ 558 $('.equal').matchHeight({ 559 //defaults 560 byRow: true, 561 property: 'height', // height or min-height 562 target: null, 563 remove: false 564 }); 565 } 566 567 // Animations http://www.oxygenna.com/tutorials/scroll-animations-using-waypoints-js-animate-css 568 function onScrollInit( items, trigger ) { 569 items.each( function() { 570 var osElement = $(this), 571 osAnimationClass = osElement.data('os-animation'), 572 osAnimationDelay = osElement.data('os-animation-delay'); 573 574 osElement.css({ 575 '-moz-animation-delay': osAnimationDelay, 576 'animation-delay': osAnimationDelay, 577 '-webkit-animation-delay': osAnimationDelay 578 }); 579 580 var osTrigger = ( trigger ) ? trigger : osElement; 581 582 if(typeof $.fn.waypoint !== "undefined"){
583 osTrigger.waypoint(function() { 584 osElement.addClass('animated').addClass(osAnimationClass); 585 },{ 586 triggerOnce: true, 587 offset: '100%' 588 }); 589 } 590 }); 591 } 592 onScrollInit($('.os-animation')); 593 594 //#Smooth Scrolling 595 $('a[href*="#"]').not('[href="#"]').not('[href*="#collapse"]').click(function(event) { 596 if (location.pathname.replace(/^\//,'') === this.pathname.replace(/^\//,'') && location.hostname === this.hostname) { 597 var target = $(this.hash); 598 target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); 599 if (target.length) { 600 event.preventDefault(); 601 $('html,body').animate({ 602 scrollTop: target.offset().top 603 }, 1000, function() { 604 var $target = $(target); 605 $target.focus(); 606 if ($target.is(":focus")) { 607 return false; 608 } else { 609 $target.attr('tabindex','-1'); 610 $target.focus(); 611 $target.removeAttr('tabindex'); 612 }; 613 }); 614 } 615 } 616 }); 617 618 /*global jQuery */ 619 /*! 620 * FlexVerticalCenter.js 1.0 621 * 622 * Copyright 2011, Paul Sprangers http://paulsprangers.com 623 * Released under the WTFPL license 624 * http://sam.zoy.org/wtfpl/ 625 * 626 * Date: Fri Oct 28 19:12:00 2011 +0100 627 */ 628 $.fn.flexVerticalCenter = function( options ) { 629 var settings = $.extend({ 630 cssAttribute: 'margin-top', // the attribute to apply the calculated value to 631 verticalOffset: 0, // the number of pixels to offset the vertical alignment by 632 parentSelector: null, // a selector representing the parent to vertically center this element within 633 debounceTimeout: 25, // a default debounce timeout in milliseconds 634 deferTilWindowLoad: false // if true, nothing will take effect until the $(window).load event 635 }, options || {}); 636 637 return this.each(function(){ 638 var $this = $(this); // store the object 639 var debounce; 640 641 // recalculate the distance to the top of the element to keep it centered 642 var resizer = function () { 643 644 var parentHeight = (settings.parentSelector && $this.parents(settings.parentSelector).length) ? 645 $this.parents(settings.parentSelector).first().height() : $this.parent().height(); 646 647 $this.css( 648 settings.cssAttribute, ( ( ( parentHeight - $this.height() ) / 2 ) + parseInt(settings.verticalOffset) ) 649 ); 650 }; 651 652 // Call on resize. Opera debounces their resize by default. 653 $(window).resize(function () { 654 clearTimeout(debounce); 655 debounce = setTimeout(resizer, settings.debounceTimeout); 656 }); 657 658 if (!settings.deferTilWindowLoad) { 659 // call it once, immediately. 660 resizer(); 661 } 662 663 // Call again to set after window (frames, images, etc) loads. 664 $(window).load(function () { 665 resizer(); 666 }); 667 668 }); 669 670 }; 671 $('.v-align').flexVerticalCenter(); 672 673 }); // Ready 674 675})(jQuery); 676 677 678})(jQuery);
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.