PageSourceSearch

https://www.cyclingonline.nl/template/user/default/js/globalScripts.js?v=70

js cyclingonline.nl collected 2026-10-02 13:32:10 UTC 2,046 bytes, 58 lines download raw bytes

1
2$( document ).ready(function () {
3    $('[placeholder]').focus(function () {
4        var input = $(this);
5        if (input.val() == input.attr('placeholder')) {
6            input.val('');
7            input.removeClass('placeholder');
8        }
9    }).blur(function () {
10        var input = $(this);
11        if (input.val() == '' || input.val() == input.attr('placeholder')) {
12            input.addClass('placeholder');
13            input.val(input.attr('placeholder'));
14        }
15    }).blur();
16    $('.form').submit(function(){
17        $('.form .placeholder').each(function(){
18            $(this).val('');
19            $(this).removeClass('placeholder');
20        })
21    })
22});
23
24function setCookie(cname, cvalue, exdays) {
25    var d = new Date();
26    d.setTime(d.getTime() + (exdays*24*60*60*1000));
27    var expires = "expires="+d.toUTCString();
28    document.cookie = cname + "=" + cvalue + "; " + expires + "; path=/";
29}
30
31function mobileMenuFolding(thisItem,open){
32    if(thisItem.parent().parent().parent().children('ul.submenu').length) {
33        if (open) {
34            thisItem.parent().children('.circle_minus').show();
35            thisItem.parent().children('.circle_plus').hide();
36            thisItem.parent().parent().parent().children('ul.submenu').show();
37        } else {
38            thisItem.parent().children('.circle_minus').hide();
39            thisItem.parent().children('.circle_plus').show();
40            thisItem.parent().parent().parent().children('ul.submenu').hide();
41        }
42    }
43    return false;
44}
45
46function mobileMenuToggle(thisItem,class1,class2){
47    if(thisItem.parent().children('ul.submenu').length) {
48        thisItem.find('.submenu-anchor i').toggleClass(class1);
49        thisItem.find('.submenu-anchor i').toggleClass(class2);
50        var isDisabled = thisItem.parent().children('ul.submenu').is(':hidden');
51        if (isDisabled) {
52            thisItem.parent().children('ul.submenu').show();
53        } else {
54            thisItem.parent().children('ul.submenu').hide();
55        }
56    }
57    return false;
58}

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.