PageSourceSearch

https://www.snh.cm/wp-content/plugins/industrie-addons/assets/js/custom.js?ver=201513434

js snh.cm collected 2026-10-02 19:11:06 UTC 2,719 bytes, 84 lines download raw bytes

1/**
2*
3* --------------------------------------------------------------------
4*
5* Template : RSAddon Plugin Js
6* Author : rs-theme
7* Author URI : http://www.rstheme.com/
8*
9* --------------------------------------------------------------------
10*
11**/
12(function($) {
13    "use strict";  
14    // magnificPopup init
15    
16    $(document).ready(function(){
17        $('[data-toggle="tooltip"]').tooltip();         
18    });    
19
20    $('.js-tilt').tilt({})
21
22    
23
24
25    $.fn.skillBars = function( options ) {
26 
27        var settings = $.extend({
28            from: 0,            // number start
29            to: false,          // number end
30            speed: 1000,        // how long it should take to count between the target numbers
31            interval: 100,    // how often the element should be updated
32            decimals: 0,          // the number of decimal places to show
33            onUpdate: null,   // callback method for every time the element is updated,
34            onComplete: null,     // callback method for when the element finishes updating
35            /*onComplete: function(from) {
36                console.debug(this);
37            }*/
38            classes:{
39                skillBarBar : '.skillbar-bar',
40                skillBarPercent : '.skill-bar-percent',
41            }
42        }, options );
43 
44        return this.each(function(){
45            
46            var obj = $(this),
47                to = (settings.to != false) ? settings.to : parseInt(obj.attr('data-percent'));
48                if(to > 100){
49                    to = 100;
50                };
51            var from = settings.from,
52                loops = Math.ceil(settings.speed / settings.interval),
53                increment = (to - from) / loops,
54                loopCount = 0,
55                interval = setInterval(updateValue, settings.interval);
56            
57            obj.find(settings.classes.skillBarBar).animate({
58                width: parseInt(obj.attr('data-percent'))+'%'
59            }, settings.speed);
60                        
61            function updateValue(){
62                from += increment;
63                loopCount++;
64                $(obj).find(settings.classes.skillBarPercent).text(from.toFixed(settings.decimals)+'%');
65
66                if (typeof(settings.onUpdate) == 'function') {
67                    settings.onUpdate.call(obj, from);
68                }
69
70                if (loopCount >= loops) {
71                    clearInterval(interval);
72                    from = to;
73
74                    if (typeof(settings.onComplete) == 'function') {
75                        settings.onComplete.call(obj, from);
76                    }
77                }
78            }
79            
80        });
81 
82    };    
83    
84})(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.