PageSourceSearch

https://www.tunnock.co.uk/scripts/timeline.js

js tunnock.co.uk collected 2026-10-02 04:49:11 UTC 1,151 bytes, 43 lines download raw bytes

1
2    initialise();
3
4    $(document).ready(function () {
5        $(".dates li a").click(function () {
6            clearallbuttons();
7            $(this).addClass("active");
8
9            $('html, body').animate({
10                scrollTop: $($.attr(this, 'href')).offset().top -70
11            }, 1000);
12
13            window.history.pushState("", "Tunnock's History ", "/about-us/" + $.attr(this, 'href'));
14            return false;
15        });
16    });
17
18    function initialise() {
19        // Check for product in URL
20        checkfordate();
21
22        // Check for product if 'back' has been pressed
23        window.onpopstate = function (e) {
24            checkfordate();
25        };
26    }
27
28    function checkfordate() {
29        var thispage = location.href;
30        if (thispage.indexOf("#") != -1) {
31            thispage = thispage.substring(thispage.indexOf("#") + 1);
32            highlightdatebutton(thispage);
33        }
34        else {
35            highlightfirstdate();
36        }
37    }
38
39    function highlightdatebutton(buttonid) {
40        clearallbuttons();
41        $("#button-" + buttonid).addClass("active");
42    }
43    

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.