PageSourceSearch

https://www.hopkinsguides.com/hopkins/js/runFirst.js?v=26.09.30_05

js hopkinsguides.com collected 2026-10-02 05:45:31 UTC 1,808 bytes, 63 lines download raw bytes

1// Any js we want to run before / during DOM content load
2// Useful for hiding / positioning elements without user seeing page rearrange
3
4// NOTE: Will prob run before jquery is loaded
5var init_cookies = {};
6var docTitleIsSticky = false;
7
8// Use server-provided cookies (supports httponly cookies)
9// Fallback to document.cookie for backwards compatibility
10if(window.ubCookies) {
11  init_cookies = window.ubCookies;
12  var cookies_arr = Object.keys(window.ubCookies).map(function(key) {
13    return key + '=' + window.ubCookies[key];
14  });
15}
16else {
17  var cookies_arr = document.cookie.split('; ');
18  cookies_arr.forEach(function(c) {
19    let cookie = c.split('=');
20    init_cookies[cookie[0]] = cookie[1];
21  });
22}
23
24var checkHide = function(b, hide) {
25  if(hide) {
26    let b_class = b.attributes['class'];
27    b_class = b_class == null ? '' : b_class.value;
28    b.setAttribute('class', b_class + ' hide');
29  }
30}
31
32var checkBanners = function() {
33  cookies_arr.forEach(function(c) {
34    if(c.indexOf("hide_banner") >= 0) {
35      var bid = c.replace(/hide_banner_([^=]+)=.*/g, '$1');
36      var b = document.getElementById("banner-push-down");
37      var hide = (b != null && b.attributes['banner_id'].value === bid);
38      checkHide(b, hide);
39    }
40  });
41}
42
43var checkSubBanners = function() {
44  cookies_arr.forEach(function(c) {
45    if(c.indexOf("hide_sub_banner") >= 0) {
46      var name = c.replace(/hide_(.*)=.*/g, '$1')
47      var b = document.getElementById(name);
48      var hide = (b != null);
49      checkHide(b, hide);
50    }
51  });
52}
53
54var checkFooterPopups = function() {
55  cookies_arr.forEach(function(c) {
56    if(c.indexOf("hide_fpopup") >= 0) {
57      var name = c.replace(/hide_(.*)=.*/g, '$1')
58      var b = document.getElementById(name);
59      var hide = (b != null);
60      checkHide(b, hide);
61    }
62  });
63}

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.