PageSourceSearch

https://bernardzitzer.com/wp-content/plugins/hypotext/js/hypotext.js?ver=7.1.2

js bernardzitzer.com collected 2026-10-04 16:39:27 UTC 1,516 bytes, 50 lines download raw bytes

1(function($) {
2  // code using $ as alias to jQuery
3  $(function() {
4    // Hide the hypotext content.
5    $('.hypotext-content').hide();
6    // When a hypotext link is clicked.
7    $('a.hypotext.closed').click(function (e) {
8      // custom handling here
9      e.preventDefault();
10
11      // Create the class reference from the rel value.
12      var id = '.' + $(this).attr('rel');
13
14      // If the content is hidden, show it now.
15      if ( $(id).css('display') == 'none' ) {
16        $(id).show('slow');
17        if (jQuery.ui) {
18          // UI loaded
19          $(id).effect("highlight", {}, 1000);
20        }
21      }
22      // If the content is shown, hide it now.
23      else {
24        $(id).hide('slow');
25      }
26    });
27
28    // If we have a hash value in the url.
29    if (window.location.hash) {
30      // If the anchor is within a hypotext block, expand it, by clicking the
31      // relevant link.
32      console.log(window.location.hash);
33      var anchor = $(window.location.hash);
34      var hypotextLink = $('#' + anchor.parents('.hypotext-content').attr('rel'));
35      console.log(hypotextLink);
36      hypotextLink.click();
37      // Wait until the content has expanded before jumping to anchor.
38      //$.delay(1000);
39      setTimeout(function(){
40        scrollToAnchor(window.location.hash);
41      }, 1000);
42    }
43  });
44
45  function scrollToAnchor(id) {
46    var anchor = $(id);
47    $('html,body').animate({scrollTop: anchor.offset().top},'slow');
48  }
49
50})(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.