PageSourceSearch

https://www.bchydro.com/etc.clientlibs/bchydro-web/clientlibs/hydro/global-r3.min.js?v=1.0.19

js bchydro.com collected 2026-10-01 10:24:51 UTC 5,823 bytes, 13 lines download raw bytes

1var mouseActive=!1;
2$(function(a){var b=!1;a("header#bchheader").on("touchstart",function(){b=!0});a("ul.bchh-utilmenu \x3e li").hoverIntent(function(){if(!mouseActive)return!1;a("ul.bchh-utilmenu \x3e li").removeClass("on");a(this).addClass("on")},function(){a("ul.bchh-utilmenu \x3e li").removeClass("on")});a("ul.bchh-utilmenu \x3e li").on("focusin",function(){if(!mouseActive)return!1;a("ul.bchh-utilmenu \x3e li").removeClass("on");a(this).addClass("on")});a("ul.bchh-utilmenu \x3e li").on("focusout",function(){if(!mouseActive)return!1;
3a("ul.bchh-utilmenu \x3e li").removeClass("on")});a("ul.bchh-utilmenu \x3e li.bchh-sub \x3e a").on("click",function(d){b&&!a(this).hasClass("touched")&&(d.preventDefault(),a(this).parent().trigger("mouseenter"),a("ul.bchh-utilmenu \x3e li.bchh-sub \x3e a").removeClass("touched"),a(this).addClass("touched"))});a("ul#bchh-nav \x3e li").hoverIntent(function(){if(!mouseActive)return!1;a("ul#bchh-nav \x3e li").removeClass("on");a(this).addClass("on")},function(){a("ul#bchh-nav \x3e li").removeClass("on")});
4a("ul#bchh-nav \x3e li").on("focus",function(){a("ul#bchh-nav \x3e li").removeClass("on");a(this).addClass("on")});a("ul#bchh-nav \x3e li").on("blur",function(){a("ul#bchh-nav \x3e li").removeClass("on")});a("ul.bchh-sub_nav \x3e li").hoverIntent({over:function(){if(!mouseActive)return!1;a(this).hasClass("current")?a("ul.bchh-sub_nav \x3e li.current").removeClass("alt"):a("ul.bchh-sub_nav \x3e li.current").addClass("alt");a("ul.bchh-sub_nav \x3e li").removeClass("on");a(this).addClass("on");"function"!==
5typeof a.fn.masonry?console.warn("masonry is not present"):a(this).find(".bchh-menu div.bchh-menu-container").masonry({itemSelector:"ul",columnWidth:175})},out:function(){a("ul.bchh-sub_nav \x3e li").removeClass("on");setTimeout(function(){a("ul.bchh-sub_nav \x3e li.on").length||a("ul.bchh-sub_nav \x3e li.current").removeClass("alt")},350)}});a("ul.bchh-sub_nav \x3e li.bchh-sub \x3e a").on("click",function(d){b&&!a(this).hasClass("touched")&&(d.preventDefault(),a(this).parent().trigger("mouseenter"),
6a("ul.bchh-sub_nav \x3e li.bchh-sub \x3e a").removeClass("touched"),a(this).addClass("touched"))});a("div.bchh-menu div.bchh-menu-close a").each(function(d){a(this).on("click",function(f){a("ul.bchh-sub_nav \x3e li.bchh-sub \x3e a").removeClass("touched");a("ul.bchh-sub_nav \x3e li").trigger("mouseleave");f.preventDefault()})});a("#bchh-sub_nav li.bchh-sub \x3e div.bchh-menu").prev("a").append('\x3cspan class\x3d"bchh-icon bchh-i-arrow"\x3e\x3c/span\x3e').addClass("hasChildren");a("#bchh-searchblock input#search").placeholder();
7a(function(){a("body").on("mousemove",function(){mouseActive=!0})});$('button#btnLogout, .cmp-loginblock__profile__links--signout a, .user_account_tools li, .account_list a, .acctsrv_shortcuts li a, a[href$\x3d"accountsOverview.html"]').on("click",function(){document.cookie="requestSelectors\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/; domain\x3d.bchydro.com"});$("button#btnLogout, .cmp-loginblock__profile__links--signout a").on("click",function(){document.cookie="uname\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/; domain\x3d.bchydro.com"});
8$("button#csr_login_btn, button#csr_search_btn").on("click",function(){document.cookie="requestSelectors\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/; domain\x3d.bchydro.com";document.cookie="csrRequestSelectors\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/; domain\x3d.bchydro.com"});-1<window.location.pathname.indexOf("accountsOverview.html")&&(document.cookie="requestSelectors\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/; domain\x3d.bchydro.com");$("form#csrSearchForm, form#CSR_header_search").on("submit",
9function(){document.cookie="requestSelectors\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/; domain\x3d.bchydro.com";document.cookie="csrRequestSelectors\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/; domain\x3d.bchydro.com";document.cookie="uname\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/; domain\x3d.bchydro.com"});$("form#login-form select, form#forgot-password-form select, form#sign-up-form select").each(function(){var d=$(this);$(this).children("option");d.wrap('\x3cdiv class\x3d"select-style"\x3e\x3c/div\x3e')});
10if("function"!==typeof $.fn.cookie)console.warn("jQuery.cookie is not present.");else var c=$.cookie("uid");window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:"login",userId:"undefined"===typeof c||null==c||0==c.length?"":c})});
11$(function(){function a(k){var e,g=document.cookie.split(";");for(e=0;e<g.length;e++){var h=g[e].substr(0,g[e].indexOf("\x3d"));var l=g[e].substr(g[e].indexOf("\x3d")+1);h=h.replace(/^\s+|\s+$/g,"");if(h==k)return unescape(l)}}var b=a("uname");void 0==b&&(b=null);var c=document.getElementById("bchh-hello");if(null!=c){var d=document.getElementById("bchh-loginblock-in"),f=document.getElementById("bchh-loginblock-out");document.getElementById("bchf-hello");var m=document.getElementById("bchh-welcome");
12null==b||0==b.length?(null!=d&&c.removeChild(d),null!=f&&f.setAttribute("id","bchh-loginblock")):(null!=f&&c.removeChild(f),m.firstChild.nodeValue=b,null!=d&&d.setAttribute("id","bchh-loginblock"));c.style.display="flex"}b=a("csrname");void 0==b&&(b=null);c=document.getElementById("CSR_name");void 0!=c&&null!=c&&(null==b||0==b.length?(b=document.getElementById("CSR_header"),c=document.getElementById("csr-loginblock"),null!=b&&b.hasChildNodes()&&b.removeChild(c)):(c.firstChild.nodeValue="Hi "+b,$("#bchh-loginblock #btnLogin").prop("disabled",
13!0),$("#bchh-loginblock #btnCreate").prop("disabled",!0),$("#bchh-loginblock #btnLogout").prop("disabled",!0),$("#bchh-my-profile #bchh-change-password a").on("click",!1)),0==$("#CSR_header.csr").eq(1).length&&$("#CSR_header.csr").show())});

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.