https://welcometotwinpeaks.com/wp-content/plugins/wpc-smart-messages/assets/js/frontend.js?ver=4.3.4
1(function($) { 2 'use strict'; 3 4 $(function() { 5 // live number 6 $('.wpcsm-live-number').each(function() { 7 var $this = $(this), 8 val = parseInt($this.data('val')), 9 step = parseInt($this.data('step')), 10 duration = parseInt($this.data('duration')), 11 text = $this.data('text'); 12 13 setInterval(function() { 14 var step_rand = wpcsm_random_int(0, step + 1); 15 var new_number = val + step_rand; 16 var number = '<span class="wpcsm-live-number-value">' + new_number + 17 '</span>'; 18 19 $this.html(text.replace('%s', number)); 20 }, duration * 1000); 21 }); 22 23 // text rotator 24 $('.wpcsm-text-rotator').each(function() { 25 var $this = $(this), 26 speed = parseInt($this.data('speed')), 27 animation = $this.data('animation'); 28 29 $this.textrotator({ 30 animation: animation, // You can pick the way it animates when rotating through words. Options are dissolve (default), fade, flip, flipUp, flipCube, flipCubeUp and spin. 31 separator: ',', // If you don't want commas to be the separator, you can define a new separator (|, &, * etc.) by yourself using this field. 32 speed: speed * 1000, // How many milliseconds until the next word show. 33 }); 34 }); 35 }); 36 37 function wpcsm_random_int(min, max) { 38 min = Math.ceil(min); 39 max = Math.floor(max); 40 return Math.floor(Math.random() * (max - min) + min); 41 } 42})(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.