PageSourceSearch

https://www.historytoday.com/modules/custom/ht_signup/js/ht_signup.js?tm7zuo

js historytoday.com collected 2026-10-01 09:16:59 UTC 1,420 bytes, 48 lines download raw bytes

1
2(function ($, Drupal) {
3
4  'use strict'
5
6/**
7 * Handle width and position for the ad, while page is scrolling.
8 */
9Drupal.behaviors.signup = {
10  attach: function (context) {
11      var winHeight = $(document).height();
12      var popup = $('#signup-popup', context);
13
14      var handlePopup = function() {
15        var scrollTop = $(document).scrollTop();
16        if(scrollTop > (winHeight/4)){
17          popup.show('500').animate({right: '0'});
18        } else {
19          //popup.animate({right: '-' + popHidden + 'px' }, 'slow');
20          popup.hide('500');
21        }
22      }
23
24      var myInterval = setInterval(handlePopup, 500);
25
26      $(once("handle-signup-click", "#pop-close span", context)).each(function() {
27        $(this).on("click", function(e) {
28          if(popup) {
29            // Inline screen-reader only class details (which can otherwise be overriden)
30            popup.css('display', 'none');
31            popup.css('visibility', 'hidden');
32            popup.css('z-index', '-10');
33            popup.css('width', '1px');
34            popup.css('height', '1px');
35            popup.css('clip', 'rect(0 0 0 0)');
36            popup.css('clip-path', 'inset(50%)');
37            popup.css('overflow', 'hidden');
38            popup.css('white-space', 'nowrap');
39            popup.hide();
40            popup = null;
41            clearInterval(myInterval);
42          }
43        });
44      })
45  }
46};
47
48})(jQuery, Drupal)

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.