PageSourceSearch

https://xn--80aaxgcr2a9bze.xn--p1ai/wp-content/themes/hotelone-pro/js/plugin.js?ver=7.1.2

js xn--80aaxgcr2a9bze.xn--p1ai collected 2026-10-05 00:05:13 UTC 26,943 bytes, 467 lines download raw bytes

vendor: 13,600 bytes, lines 1-341
1/*! lg-video - v1.2.0 - 2017-11-16
2* http://sachinchoolur.github.io/lightGallery
3* Copyright (c) 2017 Sachin N; Licensed GPLv3 */
4
5(function (root, factory) {
6  if (typeof define === 'function' && define.amd) {
7    // AMD. Register as an anonymous module unless amdModuleId is set
8    define(['jquery'], function (a0) {
9      return (factory(a0));
10    });
11  } else if (typeof exports === 'object') {
12    // Node. Does not work with strict CommonJS, but
13    // only CommonJS-like environments that support module.exports,
14    // like Node.
15    module.exports = factory(require('jquery'));
16  } else {
17    factory(jQuery);
18  }
19}(this, function ($) {
20
21(function() {
22    
23        'use strict';
24    
25        var defaults = {
26            videoMaxWidth: '855px',
27
28            autoplayFirstVideo: true,
29
30            youtubePlayerParams: false,
31            vimeoPlayerParams: false,
32            dailymotionPlayerParams: false,
33            vkPlayerParams: false,
34
35            videojs: false,
36            videojsOptions: {}
37        };
38    
39        var Video = function(element) {
40    
41            this.core = $(element).data('lightGallery');
42    
43            this.$el = $(element);
44            this.core.s = $.extend({}, defaults, this.core.s);
45            this.videoLoaded = false;
46    
47            this.init();
48    
49            return this;
50        };
51    
52        Video.prototype.init = function() {
53            var _this = this;
54    
55            // Event triggered when video url found without poster
56            _this.core.$el.on('hasVideo.lg.tm', onHasVideo.bind(this));
57    
58            // Set max width for video
59            _this.core.$el.on('onAferAppendSlide.lg.tm', onAferAppendSlide.bind(this));
60    
61            if (_this.core.doCss() && (_this.core.$items.length > 1) && (_this.core.s.enableSwipe || _this.core.s.enableDrag)) {
62                _this.core.$el.on('onSlideClick.lg.tm', function() {
63                    var $el = _this.core.$slide.eq(_this.core.index);
64                    _this.loadVideoOnclick($el);
65                });
66            } else {
67    
68                // For IE 9 and bellow
69                _this.core.$slide.on('click.lg', function() {
70                    _this.loadVideoOnclick($(this));
71                });
72            }
73    
74            _this.core.$el.on('onBeforeSlide.lg.tm', onBeforeSlide.bind(this));
75    
76            _this.core.$el.on('onAfterSlide.lg.tm', function(event, prevIndex) {
77                _this.core.$slide.eq(prevIndex).removeClass('lg-video-playing');
78            });
79        };
80    
81        Video.prototype.loadVideo = function(src, addClass, noPoster, index, html) {
82            var video = '';
83            var autoplay = 1;
84            var a = '';
85            var isVideo = this.core.isVideo(src, index) || {};
86    
87            // Enable autoplay based on setting for first video if poster doesn't exist
88            if (noPoster) {
89                if (this.videoLoaded) {
90                    autoplay = 0;
91                } else {
92                    autoplay = this.core.s.autoplayFirstVideo ? 1 : 0;
93                }
94            }
95    
96            if (isVideo.youtube) {
97    
98                a = '?wmode=opaque&autoplay=' + autoplay + '&enablejsapi=1';
99                if (this.core.s.youtubePlayerParams) {
100                    a = a + '&' + $.param(this.core.s.youtubePlayerParams);
101                }
102    
103                video = '<iframe class="lg-video-object lg-youtube ' + addClass + '" width="560" height="315" src="https://www.youtube.com/embed/' + isVideo.youtube[1] + a + '" frameborder="0" allowfullscreen></iframe>';
104    
105            } else if (isVideo.vimeo) {
106    
107                a = '?autoplay=' + autoplay + '&api=1';
108                if (this.core.s.vimeoPlayerParams) {
109                    a = a + '&' + $.param(this.core.s.vimeoPlayerParams);
110                }
111    
112                video = '<iframe class="lg-video-object lg-vimeo ' + addClass + '" width="560" height="315"  src="//player.vimeo.com/video/' + isVideo.vimeo[1] + a + '" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
113    
114            } else if (isVideo.dailymotion) {
115    
116                a = '?wmode=opaque&autoplay=' + autoplay + '&api=postMessage';
117                if (this.core.s.dailymotionPlayerParams) {
118                    a = a + '&' + $.param(this.core.s.dailymotionPlayerParams);
119                }
120    
121                video = '<iframe class="lg-video-object lg-dailymotion ' + addClass + '" width="560" height="315" src="//www.dailymotion.com/embed/video/' + isVideo.dailymotion[1] + a + '" frameborder="0" allowfullscreen></iframe>';
122    
123            } else if (isVideo.html5) {
124                var fL = html.substring(0, 1);
125                if (fL === '.' || fL === '#') {
126                    html = $(html).html();
127                }
128    
129                video = html;
130    
131            } else if (isVideo.vk) {
132    
133                a = '&autoplay=' + autoplay;
134                if (this.core.s.vkPlayerParams) {
135                    a = a + '&' + $.param(this.core.s.vkPlayerParams);
136                }
137    
138                video = '<iframe class="lg-video-object lg-vk ' + addClass + '" width="560" height="315" src="http://vk.com/video_ext.php?' + isVideo.vk[1] + a + '" frameborder="0" allowfullscreen></iframe>';
139    
140            }
141    
142            return video;
143        };
144
145        Video.prototype.loadVideoOnclick = function($el){
146
147            var _this = this;
148            // check slide has poster
149            if ($el.find('.lg-object').hasClass('lg-has-poster') && $el.find('.lg-object').is(':visible')) {
150
151                // check already video element present
152                if (!$el.hasClass('lg-has-video')) {
153
154                    $el.addClass('lg-video-playing lg-has-video');
155
156                    var _src;
157                    var _html;
158                    var _loadVideo = function(_src, _html) {
159
160                        $el.find('.lg-video').append(_this.loadVideo(_src, '', false, _this.core.index, _html));
161
162                        if (_html) {
163                            if (_this.core.s.videojs) {
164                                try {
165                                    videojs(_this.core.$slide.eq(_this.core.index).find('.lg-html5').get(0), _this.core.s.videojsOptions, function() {
166                                        this.play();
167                                    });
168                                } catch (e) {
169                                    console.error('Make sure you have included videojs');
170                                }
171                            } else {
172                                _this.core.$slide.eq(_this.core.index).find('.lg-html5').get(0).play();
173                            }
174                        }
175
176                    };
177
178                    if (_this.core.s.dynamic) {
179
180                        _src = _this.core.s.dynamicEl[_this.core.index].src;
181                        _html = _this.core.s.dynamicEl[_this.core.index].html;
182
183                        _loadVideo(_src, _html);
184
185                    } else {
186
187                        _src = _this.core.$items.eq(_this.core.index).attr('href') || _this.core.$items.eq(_this.core.index).attr('data-src');
188                        _html = _this.core.$items.eq(_this.core.index).attr('data-html');
189
190                        _loadVideo(_src, _html);
191
192                    }
193
194                    var $tempImg = $el.find('.lg-object');
195                    $el.find('.lg-video').append($tempImg);
196
197                    // @todo loading icon for html5 videos also
198                    // for showing the loading indicator while loading video
199                    if (!$el.find('.lg-video-object').hasClass('lg-html5')) {
200                        $el.removeClass('lg-complete');
201                        $el.find('.lg-video-object').on('load.lg error.lg', function() {
202                            $el.addClass('lg-complete');
203                        });
204                    }
205
206                } else {
207
208                    var youtubePlayer = $el.find('.lg-youtube').get(0);
209                    var vimeoPlayer = $el.find('.lg-vimeo').get(0);
210                    var dailymotionPlayer = $el.find('.lg-dailymotion').get(0);
211                    var html5Player = $el.find('.lg-html5').get(0);
212                    if (youtubePlayer) {
213                        youtubePlayer.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*');
214                    } else if (vimeoPlayer) {
215                        try {
216                            $f(vimeoPlayer).api('play');
217                        } catch (e) {
218                            console.error('Make sure you have included froogaloop2 js');
219                        }
220                    } else if (dailymotionPlayer) {
221                        dailymotionPlayer.contentWindow.postMessage('play', '*');
222
223                    } else if (html5Player) {
224                        if (_this.core.s.videojs) {
225                            try {
226                                videojs(html5Player).play();
227                            } catch (e) {
228                                console.error('Make sure you have included videojs');
229                            }
230                        } else {
231                            html5Player.play();
232                        }
233                    }
234
235                    $el.addClass('lg-video-playing');
236
237                }
238            }
239        };
240    
241        Video.prototype.destroy = function() {
242            this.videoLoaded = false;
243        };
244
245        function onHasVideo(event, index, src, html) {
246            /*jshint validthis:true */
247            var _this = this;
248            _this.core.$slide.eq(index).find('.lg-video').append(_this.loadVideo(src, 'lg-object', true, index, html));
249            if (html) {
250                if (_this.core.s.videojs) {
251                    try {
252                        videojs(_this.core.$slide.eq(index).find('.lg-html5').get(0), _this.core.s.videojsOptions, function() {
253                            if (!_this.videoLoaded && _this.core.s.autoplayFirstVideo) {
254                                this.play();
255                            }
256                        });
257                    } catch (e) {
258                        console.error('Make sure you have included videojs');
259                    }
260                } else {
261                    if(!_this.videoLoaded && _this.core.s.autoplayFirstVideo) {
262                        _this.core.$slide.eq(index).find('.lg-html5').get(0).play();
263                    }
264                }
265            }
266        }
267
268        function onAferAppendSlide(event, index) {
269            /*jshint validthis:true */
270            var $videoCont = this.core.$slide.eq(index).find('.lg-video-cont');
271            if (!$videoCont.hasClass('lg-has-iframe')) {
272                $videoCont.css('max-width', this.core.s.videoMaxWidth);
273                this.videoLoaded = true;
274            }
275        }
276
277        function onBeforeSlide(event, prevIndex, index) {
278            /*jshint validthis:true */
279            var _this = this;
280
281            var $videoSlide = _this.core.$slide.eq(prevIndex);
282            var youtubePlayer = $videoSlide.find('.lg-youtube').get(0);
283            var vimeoPlayer = $videoSlide.find('.lg-vimeo').get(0);
284            var dailymotionPlayer = $videoSlide.find('.lg-dailymotion').get(0);
285            var vkPlayer = $videoSlide.find('.lg-vk').get(0);
286            var html5Player = $videoSlide.find('.lg-html5').get(0);
287            if (youtubePlayer) {
288                youtubePlayer.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*');
289            } else if (vimeoPlayer) {
290                try {
291                    $f(vimeoPlayer).api('pause');
292                } catch (e) {
293                    console.error('Make sure you have included froogaloop2 js');
294                }
295            } else if (dailymotionPlayer) {
296                dailymotionPlayer.contentWindow.postMessage('pause', '*');
297
298            } else if (html5Player) {
299                if (_this.core.s.videojs) {
300                    try {
301                        videojs(html5Player).pause();
302                    } catch (e) {
303                        console.error('Make sure you have included videojs');
304                    }
305                } else {
306                    html5Player.pause();
307                }
308            } if (vkPlayer) {
309                $(vkPlayer).attr('src', $(vkPlayer).attr('src').replace('&autoplay', '&noplay'));
310            }
311
312            var _src;
313            if (_this.core.s.dynamic) {
314                _src = _this.core.s.dynamicEl[index].src;
315            } else {
316                _src = _this.core.$items.eq(index).attr('href') || _this.core.$items.eq(index).attr('data-src');
317
318            }
319
320            var _isVideo = _this.core.isVideo(_src, index) || {};
321            if (_isVideo.youtube || _isVideo.vimeo || _isVideo.dailymotion || _isVideo.vk) {
322                _this.core.$outer.addClass('lg-hide-download');
323            }
324
325        }
326    
327        $.fn.lightGallery.modules.video = Video;
328    
329    })();
330
331}));
332
333
334// Generated by CoffeeScript 1.6.2
335/*!
336Waypoints - 4.0.1
337Copyright © 2011-2016 Caleb Troughton
338Licensed under the MIT license.
339https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
340*/
341!function(){"use strict";function t(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");
vendor: 4,151 bytes, line 341
341this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var o in i)e.push(i[o]);for(var n=0,r=e.length;r>n;n++)e[n][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.Context.refreshAll();for(var e in i)i[e].enabled=!0;return this},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=n.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,n.windowContext||(n.windowContext=!0,n.windowContext=new e(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,o={},n=window.Waypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".waypoints"),delete o[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,n.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||n.isTouch)&&(e.didScroll=!0,n.requestAnimationFrame(t))})},e.prototype.handleResize=function(){n.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],n=o.newScroll>o.oldScroll,r=n?o.forward:o.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s];if(null!==a.triggerPoint){var l=o.oldScroll<a.triggerPoint,h=o.newScroll>=a.triggerPoint,p=l&&h,u=!l&&!h;(p||u)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHe
341ight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;n>o;o++)t[o].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),o={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var r in t){var s=t[r];for(var a in this.waypoints[r]){var l,h,p,u,c,d=this.waypoints[r][a],f=d.options.offset,w=d.triggerPoint,y=0,g=null==w;d.element!==d.element.window&&(y=d.adapter.offset()[s.offsetProp]),"function"==typeof f?f=f.apply(d):"string"==typeof f&&(f=parseFloat(f),d.options.offset.indexOf("%")>-1&&(f=Math.ceil(s.contextDimension*f/100))),l=s.contextScroll-s.contextOffset,d.triggerPoint=Math.floor(y+l-f),h=w<s.oldScroll,p=d.triggerPoint>=s.oldScroll,u=h&&p,c=!h&&!p,!g&&u?(d.queueTrigger(s.backward),o[d.group.id]=d.group):!g&&c?(d.queueTrigger(s.forward),o[d.group.id]=d.group):g&&s.oldScroll>=d.triggerPoint&&(d.queueTrigger(s.forward),o[d.group.id]=d.group)}}return n.requestAnimationFrame(function(){for(var t in o)o[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in o)o[t].refresh()},e.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){r&&r(),e.refreshAll()},n.requestAnimationFrame=function(e){var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;i.call(window,e)},n.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),o[this.axis][this.name]=this}var o={vertical:{},horizontal:{}},n=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;s>r;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints),o=i===this.waypoints.length-1;return o?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=n.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return o[t.axis][t.name]||new i(t)},n.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,o){t[o]=e[o]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],o=arguments[0];return t.isFunction(arguments[0])&&(o=t.extend({},arguments[1]),o.handler=arguments[0]),this.each(function(){var n=t.extend({},o,{element:this});"string"==typeof n.context&&(n.context=t(this).closest(n.context)[0]),i.push(new e(n))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}();
342
343
344
345/*!
346 * jquery.counterup.js 2.1.0
347 *
348 * Copyright 2013, Benjamin Intal http://gambit.ph @bfintal
349 * Released under the GPL v2 License
350 *
351 * Amended by Jeremy Paris, Ciro Mattia Gonano and others
352 *
353 * Date: Feb 24, 2017
354 */
355(function ($) {
356    "use strict";
357
358    $.fn.counterUp = function (options) {
359
360        // Defaults
361        var settings = $.extend({
362                'time': 400,
363                'delay': 10,
364                'offset': 100,
365                'beginAt': 0,
366                'formatter': false,
367                'context': 'window',
368                callback: function () {
369                }
370            }, options),
371            s;
372
373        return this.each(function () {
374
375            // Store the object
376            var $this = $(this),
377                counter = {
378                    time: $(this).data('counterup-time') || settings.time,
379                    delay: $(this).data('counterup-delay') || settings.delay,
380                    offset: $(this).data('counterup-offset') || settings.offset,
381                    beginAt: $(this).data('counterup-beginat') || settings.beginAt,
382                    context: $(this).data('counterup-context') || settings.context
383                };
384
385            var counterUpper = function () {
386                var nums = [];
387                var divisions = counter.time / counter.delay;
388                var num = $this.attr('data-num') ? $this.attr('data-num') : $this.text();
389                var isComma = /[0-9]+,[0-9]+/.test(num);
390                num = num.replace(/,/g, '');
391                var decimalPlaces = (num.split('.')[1] || []).length;
392                if (counter.beginAt > num)
393                    counter.beginAt = num;
394
395                var isTime = /[0-9]+:[0-9]+:[0-9]+/.test(num);
396
397                // Convert time to total seconds
398                if (isTime) {
399                    var times = num.split(':'),
400                        m = 1;
401                    s = 0;
402                    while (times.length > 0) {
403                        s += m * parseInt(times.pop(), 10);
404                        m *= 60;
405                    }
406                }
407
408                // Generate list of incremental numbers to display
409                for (var i = divisions; i >= counter.beginAt / num * divisions; i--) {
410
411                    var newNum = parseFloat(num / divisions * i).toFixed(decimalPlaces);
412
413                    // Add incremental seconds and convert back to time
414                    if (isTime) {
415                        newNum = parseInt(s / divisions * i);
416                        var hours = parseInt(newNum / 3600) % 24;
417                        var minutes = parseInt(newNum / 60) % 60;
418                        var seconds = parseInt(newNum % 60, 10);
419                        newNum = (hours < 10 ? "0" + hours : hours) + ":" + (minutes < 10 ? "0" + minutes : minutes) + ":" + (seconds < 10 ? "0" + seconds : seconds);
420                    }
421
422                    // Preserve commas if input had commas
423                    if (isComma) {
424                        while (/(\d+)(\d{3})/.test(newNum.toString())) {
425                            newNum = newNum.toString().replace(/(\d+)(\d{3})/, '$1' + ',' + '$2');
426                        }
427                    }
428                    if (settings.formatter) {
429                        newNum = settings.formatter.call(this, newNum);
430                    }
431                    nums.unshift(newNum);
432                }
433
434                $this.data('counterup-nums', nums);
435                $this.text(counter.beginAt);
436
437                // Updates the number until we're done
438                var f = function () {
439                    if (!$this.data('counterup-nums')) {
440                        settings.callback.call(this);
441                        return;
442                    }
443                    $this.html($this.data('counterup-nums').shift());
444                    if ($this.data('counterup-nums').length) {
445                        setTimeout($this.data('counterup-func'), counter.delay);
446                    } else {
447                        $this.data('counterup-nums', null);
448                        $this.data('counterup-func', null);
449                        settings.callback.call(this);
450                    }
451                };
452                $this.data('counterup-func', f);
453
454                // Start the count up
455                setTimeout($this.data('counterup-func'), counter.delay);
456            };
457
458            // Perform counts when the element gets into view
459            $this.waypoint(function (direction) {
460                counterUpper();
461                this.destroy(); //-- Waypoint 3.0 version of triggerOnce
462            }, {offset: counter.offset + "%", context: counter.context});
463        });
464
465    };
466
467})(jQuery);

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.