PageSourceSearch

https://www.thehewittfertilitycentre.org.uk/_frontend/js/main/functions/back-button.js

js thehewittfertilitycentre.org.uk collected 2026-10-04 13:27:13 UTC 1,044 bytes, 52 lines download raw bytes

1var initBackButton = function () {
2
3    // element variables
4
5    var $backButton = $('.js-back-button');
6
7    // functions
8
9    var goBack = function (e) {
10        e.preventDefault();
11
12        if (window.history.Length > 0) {
13            window.history.back();
14        } else {
15            document.location.href = window.location.origin;
16        }
17    };
18
19    // ui bindings
20    $backButton.on('click', function (e) {
21        goBack(e);
22    });
23
24    
25    var quickLinkButton = $('.quick-start .btn'),
26    selectElement = $('.quick-start .select_two');
27
28
29    selectElement.on('change', function() {
30      quickLinkButton.prop('disabled', false);
31  });
32
33
34    var gotoQuickLink = function (e) {
35
36        if (selectElement.val() == 'Please select an option') {
37            return;
38        } else {
39            window.location.href = selectElement.val();
40        }
41        
42    };
43
44    // ui bindings
45    quickLinkButton.on('click', function (e) {
46        gotoQuickLink(e);
47        
48    });
49
50
51
52};

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.