PageSourceSearch

https://mungeruniversity.ac.in/collage/assets/js/index.js

js mungeruniversity.ac.in collected 2026-09-25 08:33:21 UTC 3,921 bytes, 127 lines download raw bytes

1
2function animate(element) {
3    //Animating the element if not animated before
4    if (!element.hasClass('ms-animated')) {
5        var maxval = element.data('max');
6        var html = element.html();
7        element.addClass("ms-animated");
8        $({
9            countNum: element.html()
10        }).animate({
11            countNum: maxval
12        }, {
13            //duration 5 seconds
14            duration: 5000,
15            easing: 'linear',
16            step: function() {
17                element.html(Math.floor(this.countNum) + html);
18            },
19            complete: function() {
20                element.html(this.countNum + html);
21            }
22        });
23    }
24
25}
26
27//When the document is ready
28$(function() {
29    //This is triggered when the
30    //user scrolls the page
31    $(window).scroll(function() {
32        //Checking if each items to animate are 
33        //visible in the viewport
34        $("h2[data-max]").each(function() {
35            inVisible($(this));
36        });
37    })
38});
39
40//turncate 
41
42
43$(document).ready(function() {
44    (function() {
45        var showChar = 230;
46        var ellipsestext = "...";
47
48        $(".truncate_product").each(function() {
49            var content = $(this).html();
50            if (content.length > showChar) {
51                var c = content.substr(0, showChar);
52                var h = content;
53                var html =
54                    '<div class="truncate_product-text" style="display:block">' +
55                    c +
56                    '<span class="moreellipses">' +
57                    ellipsestext +
58                    '&nbsp;&nbsp;<a href="" class="moreless more">Read more</a></span></span></div><div class="truncate_product-text" style="display:none">' +
59                    h +
60                    '<a href="" class="moreless less">Less view</a></span></div>';
61
62                $(this).html(html);
63            }
64        });
65
66        $(".moreless").click(function() {
67            var thisEl = $(this);
68            var cT = thisEl.closest(".truncate_product-text");
69            var tX = ".truncate_product-text";
70
71            if (thisEl.hasClass("less")) {
72                cT.prev(tX).toggle();
73                cT.slideToggle();
74            } else {
75                cT.toggle();
76                cT.next(tX).fadeToggle();
77            }
78            return false;
79        });
80        /* end iffe */
81    })();
82
83    /* end ready */
84});
85
86$(document).ready(function() {
87    (function() {
88        var showChar = 200;
89        var ellipsestext = "...";
90
91        $(".truncate_product3").each(function() {
92            var content = $(this).html();
93            if (content.length > showChar) {
94                var c = content.substr(0, showChar);
95                var h = content;
96                var html =
97                    '<div class="truncate_product3-text" style="display:block">' +
98                    c +
99                    '<span class="moreellipses">' +
100                    ellipsestext +
101                    '&nbsp;&nbsp;<a href="" class="moreless more">Read more</a></span></span></div><div class="truncate_product3-text" style="display:none">' +
102                    h +
103                    '<a href="" class="moreless less">Less view</a></span></div>';
104
105                $(this).html(html);
106            }
107        });
108
109        $(".moreless").click(function() {
110            var thisEl = $(this);
111            var cT = thisEl.closest(".truncate_product3-text");
112            var tX = ".truncate_product3-text";
113
114            if (thisEl.hasClass("less")) {
115                cT.prev(tX).toggle();
116                cT.slideToggle();
117            } else {
118                cT.toggle();
119                cT.next(tX).fadeToggle();
120            }
121            return false;
122        });
123        /* end iffe */
124    })();
125
126    /* end ready */
127});

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.