PageSourceSearch

https://client.iscreenyouscreen.com/Content/Theme/js/custom.js

js iscreenyouscreen.com collected 2026-10-06 13:42:16 UTC 9,829 bytes, 382 lines download raw bytes

1/* JS */
2
3
4/* Navigation */
5
6
7var fnHideDropdownNav = function() {
8    if ($(window).width() < 765) {
9        $(".sidebar #nav").slideUp(350);
10        $(".sidebar-dropdown a").removeClass("open");
11    }
12};
13
14$(document).ready(function () {
15
16    $(window).resize(function () {
17        if ($(window).width() >= 765) {
18            $(".sidebar #nav").slideDown(350);
19            if ($(".sidebar #nav").hasClass("sidebar-sm")) {
20                $(".sidebar #nav").removeClass("sidebar-sm");
21            }
22        } else {
23            if (!$(".sidebar #nav").hasClass("sidebar-sm")) {
24                $(".sidebar-dropdown a").removeClass("open");
25                $(".sidebar #nav").slideUp(350);
26                $(".sidebar #nav").addClass("sidebar-sm");
27            }
28        }
29    });
30
31    $(".sidebar #nav > li:not(.has_sub) > a").click(function (e) {
32        fnHideDropdownNav();
33    });
34
35    $(".has_sub > a").click(function (e) {
36        e.preventDefault();
37        var menu_li = $(this).parent("li");
38        var menu_ul = $(this).next("ul");
39
40        if (menu_li.hasClass("open")) {
41            menu_ul.slideUp(350);
42            menu_li.removeClass("open");
43        }
44        else {
45            $("#nav > li > ul").slideUp(350);
46            $("#nav > li").removeClass("open");
47            menu_ul.slideDown(350);
48            menu_li.addClass("open");
49        }
50    });
51
52    /* Old Code 
53    
54      $("#nav > li > a").on('click',function(e){
55          if($(this).parent().hasClass("has_sub")) {
56           
57              e.preventDefault();
58    
59              if(!$(this).hasClass("subdrop")) {
60                // hide any open menus and remove all other classes
61                $("#nav li ul").slideUp(350);
62                $("#nav li a").removeClass("subdrop");
63                
64                // open our new menu and add the open class
65                $(this).next("ul").slideDown(350);
66                $(this).addClass("subdrop");
67              }
68              
69              else if($(this).hasClass("subdrop")) {
70                $(this).removeClass("subdrop");
71                $(this).next("ul").slideUp(350);
72              } 
73          }   
74          
75      }); */
76});
77
78$(document).ready(function () {
79    $(".sidebar-dropdown a").on('click', function (e) {
80        e.preventDefault();
81
82        if (!$(this).hasClass("open")) {
83            // hide any open menus and remove all other classes
84            $(".sidebar #nav").slideUp(350);
85            $(".sidebar-dropdown a").removeClass("open");
86
87            // open our new menu and add the open class
88            $(".sidebar #nav").slideDown(350);
89            $(this).addClass("open");
90        }
91
92        else if ($(this).hasClass("open")) {
93            $(this).removeClass("open");
94            $(".sidebar #nav").slideUp(350);
95        }
96    });
97
98});
99
100/* Widget close */
101
102$('.wclose').click(function (e) {
103    e.preventDefault();
104    var $wbox = $(this).parent().parent().parent();
105    $wbox.hide(100);
106});
107
108/* Widget minimize */
109
110$('.wminimize').click(function (e) {
111    e.preventDefault();
112    var $wcontent = $(this).parent().parent().next('.widget-content');
113    if ($wcontent.is(':visible')) {
114        $(this).children('i').removeClass('fa fa-chevron-up');
115        $(this).children('i').addClass('fa fa-chevron-down');
116    }
117    else {
118        $(this).children('i').removeClass('fa fa-chevron-down');
119        $(this).children('i').addClass('fa fa-chevron-up');
120    }
121    $wcontent.toggle(500);
122});
123
124/* Calendar */
125
126$(document).ready(function () {
127
128    var date = new Date();
129    var d = date.getDate();
130    var m = date.getMonth();
131    var y = date.getFullYear();
132
133    $('#calendar').fullCalendar({
134        header: {
135            left: 'prev',
136            center: 'title',
137            right: 'month,agendaWeek,agendaDay,next'
138        },
139        editable: true,
140        events: [
141          {
142              title: 'All Day Event',
143              start: new Date(y, m, 1)
144          },
145          {
146              title: 'Long Event',
147              start: new Date(y, m, d - 5),
148              end: new Date(y, m, d - 2)
149          },
150          {
151              id: 999,
152              title: 'Repeating Event',
153              start: new Date(y, m, d - 3, 16, 0),
154              allDay: false
155          },
156          {
157              id: 999,
158              title: 'Repeating Event',
159              start: new Date(y, m, d + 4, 16, 0),
160              allDay: false
161          },
162          {
163              title: 'Meeting',
164              start: new Date(y, m, d, 10, 30),
165              allDay: false
166          },
167          {
168              title: 'Lunch',
169              start: new Date(y, m, d, 12, 0),
170              end: new Date(y, m, d, 14, 0),
171              allDay: false
172          },
173          {
174              title: 'Birthday Party',
175              start: new Date(y, m, d + 1, 19, 0),
176              end: new Date(y, m, d + 1, 22, 30),
177              allDay: false
178          },
179          {
180              title: 'Click for Google',
181              start: new Date(y, m, 28),
182              end: new Date(y, m, 29),
183              url: 'http://google.com/'
184          }
185        ]
186    });
187
188});
189
190/* Progressbar animation */
191
192setTimeout(function () {
193
194    $('.progress-animated .progress-bar').each(function () {
195        var me = $(this);
196        var perc = me.attr("data-percentage");
197
198        //TODO: left and right text handling
199
200        var current_perc = 0;
201
202        var progress = setInterval(function () {
203            if (current_perc >= perc) {
204                clearInterval(progress);
205            } else {
206                current_perc += 1;
207                me.css('width', (current_perc) + '%');
208            }
209
210            me.text((current_perc) + '%');
211
212        }, 200);
213
214    });
215
216}, 1200);
217
218/* Slider */
219
220$(function () {
221    // Horizontal slider
222    //$( "#master1, #master2" ).slider({
223    //	value: 60,
224    //	orientation: "horizontal",
225    //	range: "min",
226    //	animate: true
227    //});
228
229    //$( "#master4, #master3" ).slider({
230    //	value: 80,
231    //	orientation: "horizontal",
232    //	range: "min",
233    //	animate: true
234    //});        
235
236    //$("#master5, #master6").slider({
237    //	range: true,
238    //	min: 0,
239    //	max: 400,
240    //	values: [ 75, 200 ],
241    //	slide: function( event, ui ) {
242    //		$( "#amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] );
243    //	}
244    //});
245
246
247    // Vertical slider 
248    $("#eq > span").each(function () {
249        // read initial values from markup and remove that
250        var value = parseInt($(this).text(), 10);
251        $(this).empty().slider({
252            value: value,
253            range: "min",
254            animate: true,
255            orientation: "vertical"
256        });
257    });
258});
259
260
261
262/* Support */
263
264$(document).ready(function () {
265    $("#slist a").click(function (e) {
266        e.preventDefault();
267        $(this).next('p').toggle(200);
268    });
269});
270
271/* Scroll to Top */
272
273
274$(".totop").hide();
275
276$(function () {
277    $(window).scroll(function () {
278        if ($(this).scrollTop() > 300) {
279            $('.totop').fadeIn();
280        }
281        else {
282            $('.totop').fadeOut();
283        }
284    });
285
286    $('.totop a').click(function (e) {
287        e.preventDefault();
288        $('body,html').animate({ scrollTop: 0 }, 500);
289    });
290
291});
292
293/* jQuery Notification */
294
295$(document).ready(function () {
296
297    //setTimeout(function() {noty({text: '<strong>A new Candidate Application Form has been submitted for Zerry Zoria Zorbus of Zimbabwe...</strong>',layout:'topRight',type:'information',timeout:15000});}, 7000);
298
299    //setTimeout(function() {noty({text: 'Oh no, you said you was going to ring Jane Doe 45 minutes ago, what happened???',layout:'topRight',type:'alert',timeout:15000});}, 15000);
300
301});
302
303
304$(document).ready(function () {
305
306    $('.noty-alert').click(function (e) {
307        e.preventDefault();
308        noty({ text: 'Some notifications goes here...', layout: 'topRight', type: 'alert', timeout: 2000 });
309    });
310
311    $('.noty-success').click(function (e) {
312        e.preventDefault();
313        noty({ text: 'Some notifications goes here...', layout: 'top', type: 'success', timeout: 2000 });
314    });
315
316    $('.noty-error').click(function (e) {
317        e.preventDefault();
318        noty({ text: 'Some notifications goes here...', layout: 'topRight', type: 'error', timeout: 2000 });
319    });
320
321    $('.noty-warning').click(function (e) {
322        e.preventDefault();
323        noty({ text: 'Some notifications goes here...', layout: 'bottom', type: 'warning', timeout: 2000 });
324    });
325
326    $('.noty-information').click(function (e) {
327        e.preventDefault();
328        noty({ text: 'Some notifications goes here...', layout: 'topRight', type: 'information', timeout: 2000 });
329    });
330
331});
332
333
334/* Date picker */
335
336//$(function() {
337//    $('#datetimepicker1').datetimepicker({
338//      pickTime: false
339//    });
340//});
341
342//$(function() {
343//    $('#datetimepicker2').datetimepicker({
344//      pickDate: false
345//    });
346//});
347
348/* On Off pllugin */
349
350$(document).ready(function () {
351    $('.toggleBtn').onoff();
352});
353
354
355/* CL Editor */
356
357$(".cleditor").cleditor({
358    width: "auto",
359    height: "auto"
360});
361
362/* Modal fix */
363
364$('.modal').appendTo($('body'));
365
366/* Slim Scroll */
367
368/* Slim scroll for chat widget */
369
370$('.scroll-chat').slimscroll({
371    height: '350px',
372    color: 'rgba(0,0,0,0.3)',
373    size: '5px'
374});
375
376/* Data tables */
377
378$(document).ready(function () {
379    $('#data-table').dataTable({
380        "sPaginationType": "full_numbers"
381    });
382});

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.