PageSourceSearch

https://www.uajms.edu.bo/wp-content/plugins/rselements-lite/assets/js/custom.js?ver=201513434

js uajms.edu.bo collected 2026-10-04 02:40:35 UTC 3,274 bytes, 108 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    if ($('.rs-counter').length) {
17        $('.rs-counter').counterUp({
18            delay: 20,
19            time: 1500
20        });
21    }
22
23
24
25    $(document).ready(function(){
26        $('[data-toggle="tooltip"]').tooltip();         
27    }); 
28
29    
30
31    // Magnific Popup Box
32
33    var rsaddon_Litebox = $('.rsaddon_lite_box');
34    if(rsaddon_Litebox.length) {
35        $('.rsaddon_lite_box').magnificPopup({
36            delegate: '.pointer-events',
37            removalDelay: 500, 
38            callbacks: {
39                beforeOpen: function() {
40                   this.st.mainClass = this.st.el.attr('data-effect');
41                }
42            },
43            midClick: true 
44        });
45    }
46
47
48    $.fn.skillBars = function( options ) {
49 
50        var settings = $.extend({
51            from: 0,            // number start
52            to: false,          // number end
53            speed: 1000,        // how long it should take to count between the target numbers
54            interval: 100,    // how often the element should be updated
55            decimals: 0,          // the number of decimal places to show
56            onUpdate: null,   // callback method for every time the element is updated,
57            onComplete: null,     // callback method for when the element finishes updating
58            /*onComplete: function(from) {
59                console.debug(this);
60            }*/
61            classes:{
62                skillBarBar : '.skillbar-bar',
63                skillBarPercent : '.skill-bar-percent',
64            }
65        }, options );
66 
67        return this.each(function(){
68            
69            var obj = $(this),
70                to = (settings.to != false) ? settings.to : parseInt(obj.attr('data-percent'));
71                if(to > 100){
72                    to = 100;
73                };
74            var from = settings.from,
75                loops = Math.ceil(settings.speed / settings.interval),
76                increment = (to - from) / loops,
77                loopCount = 0,
78                interval = setInterval(updateValue, settings.interval);
79            
80            obj.find(settings.classes.skillBarBar).animate({
81                width: parseInt(obj.attr('data-percent'))+'%'
82            }, settings.speed);
83                        
84            function updateValue(){
85                from += increment;
86                loopCount++;
87                $(obj).find(settings.classes.skillBarPercent).text(from.toFixed(settings.decimals)+'%');
88
89                if (typeof(settings.onUpdate) == 'function') {
90                    settings.onUpdate.call(obj, from);
91                }
92
93                if (loopCount >= loops) {
94                    clearInterval(interval);
95                    from = to;
96
97                    if (typeof(settings.onComplete) == 'function') {
98                        settings.onComplete.call(obj, from);
99                    }
100                }
101            }
102            
103        });
104 
105    };
106
107    
108})(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.