PageSourceSearch

https://tennisnewyork.com/assets/layouts/common.js

js tennisnewyork.com collected 2026-09-26 12:31:32 UTC 3,251 bytes, 104 lines download raw bytes

1function email_notifier(value, type){
2  jQuery.ajax({
3    url: "/change_email_notifier",
4    type: "GET",
5    data: {value:value,type:type},
6    beforeSend: function(xhr) {xhr.setRequestHeader('X-CSRF-Token', $('meta[name="csrf-token"]').attr('content'))},
7    success:function(data){
8      jQuery('#'+type).html(data);
9    }
10  })
11
12}
13
14// For Slider
15function loadSlider(){
16    jQuery('#tennis-leauge-slider').paradigm({
17        width:900,
18        height:300,
19        thumbWidth:130,
20        thumbHeight:75,
21        thumbAmount:5,
22        thumbSpaces:4,
23        thumbPadding:4,
24        thumbStyle:"thumb",
25        thumbVideoIcon:"on",
26        bulletXOffset:0,
27        bulletYOffset:0,
28        shadow:'true',
29        parallaxX:500,
30        parallaxY:10,
31        captionParallaxX:-40,
32        captionParallaxY:2,
33        touchenabled:'on',
34        timer:5
35    });
36}
37
38$(document).ready(function(){
39    // Notification Toggle
40
41    $('#fs-score, #fs-division, #playoff-score').click( function() {
42        var mytimer = setTimeout(function(){
43            $('.notification-text').hide();
44            mytimer = null;
45        }, 5000);
46
47        if($(this).is(":checked")) {
48            $(this).parent().next(".div1").show();
49            $(this).parent().next().next(".div2").hide();
50        } else {
51            $(this).parent().next().next(".div2").show();
52            $(this).parent().next(".div1").hide();
53        }
54    });
55    // We can attach the `fileselect` event to all file inputs on the page
56    $(document).on('change', ':file', function() {
57        var input = $(this),
58            numFiles = input.get(0).files ? input.get(0).files.length : 1,
59            label = input.val().replace(/\\/g, '/').replace(/.*\//, '');
60        input.trigger('fileselect', [numFiles, label]);
61    });
62    // We can watch for our custom `fileselect` event like this
63    $(':file').on('fileselect', function(event, numFiles, label) {
64        var input = $(this).parents('.input-group').find(':text'),
65        log = numFiles > 1 ? numFiles + ' files selected' : label;
66        if( input.length ) {
67            input.val(log);
68        } else {
69        //Image upload alert
70        //if( log ) alert(log);
71        }
72    });
73    // Responsive Tabs
74    $('#horizontalTab').easyResponsiveTabs({
75        type: 'default',
76        width: 'auto',
77        fit: true,
78        closed: 'accordion',
79        activate: function(event) {
80            var $tab = $(this);
81            var $info = $('#tabInfo');
82            var $name = $('span', $info);
83            $name.text($tab.text());
84            $info.show();
85        }
86    });
87
88    $('.resp-accordion').each(function(){
89        $(this).on('click', function(){
90            var offset_addition = $(this).attr('data-count') * 2 * 3;
91            $('html, body').animate({scrollTop: $($('.resp-accordion').get(0)).offset().top + offset_addition}, 1000);
92        });
93    });
94
95});
96
97function countText(limitField, limitCount, limitNum) {
98  var templength=document.getElementById(limitField).value.length;
99  if (templength > limitNum) {
100      document.getElementById(limitField).value = document.getElementById(limitField).value.substring(0, limitNum);
101  } else {
102      document.getElementById(limitCount).value=limitNum - templength;
103  }
104};

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.