PageSourceSearch

https://www.joggling.co.uk/Portals/_default/skins/lissom/js/jquery.theme.plugins.js

js joggling.co.uk collected 2026-10-04 02:12:26 UTC 5,174 bytes, 135 lines download raw bytes

1/*!
2* jquery.counterup.js 1.0
3*
4* Copyright 2013, Benjamin Intal http://gambit.ph @bfintal
5* Released under the GPL v2 License
6*
7* Date: Nov 26, 2013
8*/(function(e){"use strict";e.fn.counterUp=function(t){var n=e.extend({time:400,delay:10},t);return this.each(function(){var t=e(this),r=n,i=function(){var e=[],n=r.time/r.delay,i=t.text(),s=/[0-9]+,[0-9]+/.test(i);i=i.replace(/,/g,"");var o=/^[0-9]+$/.test(i),u=/^[0-9]+\.[0-9]+$/.test(i),a=u?(i.split(".")[1]||[]).length:0;for(var f=n;f>=1;f--){var l=parseInt(i/n*f);u&&(l=parseFloat(i/n*f).toFixed(a));if(s)while(/(\d+)(\d{3})/.test(l.toString()))l=l.toString().replace(/(\d+)(\d{3})/,"$1,$2");e.unshift(l)}t.data("counterup-nums",e);t.text("0");var c=function(){t.text(t.data("counterup-nums").shift());if(t.data("counterup-nums").length)setTimeout(t.data("counterup-func"),r.delay);else{delete t.data("counterup-nums");t.data("counterup-nums",null);t.data("counterup-func",null)}};t.data("counterup-func",c);setTimeout(t.data("counterup-func"),r.delay)};t.waypoint(i,{offset:"100%",triggerOnce:!0})})}})(jQuery);
9
10
11//ScrollTop
12/**
13    by Nemes Ioan Sorin - not an jQuery big fan 
14    therefore this script is for those who love the old clean coding style  
15    @id = the id of the element who need to bring  into view
16      
17    Note : this demo scrolls about 12.700 pixels from Link1 to Link3
18*/
19(function()
20{
21      window.setTimeout = window.setTimeout; //
22})();
23
24      var smoothScr = {
25      iterr : 300, // set timeout miliseconds ..decreased with 1ms for each iteration
26        tm : null, //timeout local variable
27      stopShow: function()
28      {
29        clearTimeout(this.tm); // stopp the timeout
30        this.iterr = 30; // reset milisec iterator to original value
31      },
32      getRealTop : function (el) // helper function instead of jQuery
33      {
34        var elm = el; 
35        var realTop = 0;
36        do
37        {
38          realTop += elm.offsetTop;
39          elm = elm.offsetParent;
40        }
41        while(elm);
42        return realTop;
43      },
44      getPageScroll : function()  // helper function instead of jQuery
45      {
46        var pgYoff = window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop;
47        return pgYoff;
48      },
49      anim : function (id) // the main func
50      {
51        this.stopShow(); // for click on another button or link
52        var eOff, pOff, tOff, scrVal, pos, dir, step;
53
54        eOff = document.getElementById(id).offsetTop; // element offsetTop
55
56        tOff =  this.getRealTop(document.getElementById(id).parentNode); // terminus point 
57
58        pOff = this.getPageScroll(); // page offsetTop
59
60        if (pOff === null || isNaN(pOff) || pOff === 'undefined') pOff = 0;
61
62        scrVal = eOff - pOff; // actual scroll value;
63
64        if (scrVal > tOff) 
65        {
66          pos = (eOff - tOff - pOff); 
67          dir = 1;
68        }
69        if (scrVal < tOff)
70        {
71          pos = (pOff + tOff) - eOff;
72          dir = -1; 
73        }
74        if(scrVal !== tOff) 
75        {
76          step = ~~((pos / 4) +1) * dir;
77
78          if(this.iterr > 1) this.iterr -= 1; 
79          else this.itter = 0; // decrease the timeout timer value but not below 0
80          window.scrollBy(0, step);
81          this.tm = window.setTimeout(function()
82          {
83             smoothScr.anim(id);  
84          }, this.iterr); 
85        }  
86        if(scrVal === tOff) 
87        { 
88          this.stopShow(); // reset function values
89          return;
90        }
91    }
92 }
93 
94 /*
95	By Osvaldas Valutis, www.osvaldas.info
96	Available for use under the MIT License
97*/
98; (function($, window, document, undefined) {
99    $.fn.doubleTapToGo = function(params) {
100        if (! ('ontouchstart' in window) && !navigator.msMaxTouchPoints && !navigator.userAgent.toLowerCase().match(/windows phone os 7/i)) return false;
101
102        this.each(function() {
103            var curItem = false;
104
105            $(this).on('click',
106            function(e) {
107                var item = $(this);
108                if (item[0] != curItem[0]) {
109                    e.preventDefault();
110                    curItem = item;
111                }
112            });
113
114            $(document).on('click touchstart MSPointerDown',
115            function(e) {
116                var resetItem = true,
117                parents = $(e.target).parents();
118
119                for (var i = 0; i < parents.length; i++) if (parents[i] == curItem[0]) resetItem = false;
120
121                if (resetItem) curItem = false;
122            });
123        });
124        return this;
125    };
126})(jQuery, window, document);
127
128//Window Phone Compatible:
129(function() {
130    if ("-ms-user-select" in document.documentElement.style && (navigator.userAgent.match(/IEMobile/) || navigator.userAgent.match(/ZuneWP7/) || navigator.userAgent.match(/WPDesktop/))) {
131        var msViewportStyle = document.createElement("style");
132        msViewportStyle.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}"));
133        document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
134    }
135})();

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.