PageSourceSearch

https://thepicloc.com/assets/js/custom.js

js thepicloc.com collected 2026-10-02 00:01:39 UTC 4,531 bytes, 161 lines download raw bytes

1(function ($) {
2	
3	"use strict";
4
5	// Header Type = Fixed
6  $(window).scroll(function() {
7    var scroll = $(window).scrollTop();
8    var box = $('.header-text').height();
9    var header = $('header').height();
10
11    if (scroll >= box - header) {
12      $("header").addClass("background-header");
13    } else {
14      $("header").removeClass("background-header");
15    }
16  });
17
18
19  // Acc
20    $(document).on("click", ".naccs .menu div", function() {
21      var numberIndex = $(this).index();
22
23      if (!$(this).is("active")) {
24          $(".naccs .menu div").removeClass("active");
25          $(".naccs ul li").removeClass("active");
26
27          $(this).addClass("active");
28          $(".naccs ul").find("li:eq(" + numberIndex + ")").addClass("active");
29
30          var listItemHeight = $(".naccs ul")
31            .find("li:eq(" + numberIndex + ")")
32            .innerHeight();
33          $(".naccs ul").height(listItemHeight + "px");
34        }
35    });
36
37
38	$('.owl-listing').owlCarousel({
39		items:1,
40		loop:true,
41		dots: true,
42		nav: false,
43		autoplay: true,
44		margin:30,
45		  responsive:{
46			  0:{
47				  items:1
48			  },
49			  600:{
50				  items:1
51			  },
52			  1000:{
53				  items:1
54			  },
55			  1600:{
56				  items:1
57			  }
58		  }
59	})
60	
61
62	// Menu Dropdown Toggle
63  if($('.menu-trigger').length){
64    $(".menu-trigger").on('click', function() { 
65      $(this).toggleClass('active');
66      $('.header-area .nav').slideToggle(200);
67    });
68  }
69
70
71	// Page loading animation
72	 $(window).on('load', function() {
73
74        $('#js-preloader').addClass('loaded');
75
76    });
77
78	
79
80	
81
82
83
84
85})(window.jQuery);
86
87
88
89// MY JAVASCRIPT FUNCTIONS
90function tinyLoadn(p1) {
91    $("#"+p1).html('<span class="" style="font-size: 10px;text-align: left;color:green;"> <span class="fa fa-rotate-right fa-spin"></span> checking...</span>');
92}
93var engloc = "";
94$('.responseJs').load('./js/engine.php', function(responseTxt, statusTxt, xhr)
95{
96    if(statusTxt=="success")
97        {
98            engloc = "./js/engine.php";
99        }
100    if(statusTxt=="error")
101        {
102            engloc = "../js/engine.php";
103        }
104});
105
106function responseJs(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17,p18,p19,p20,p21,p22,p23,p24,p25,p26,p27,p28,p29,p30)
107{
108    $("#checkn").html("<span style='text-align: left;color:orange;'> <span class='fa fa-rotate-right fa-spin'></span> checking...</span>");
109    $("#checkn1").html("<span style='text-align: left;color:orange;'> <span class='fa fa-rotate-right fa-spin'></span> checking...</span>");
110    $.post(engloc,{v1:p1,v2:p2,v3:p3,v4:p4,v5:p5,v6:p6,v7:p7,v8:p8,v9:p9,v10:p10,v11:p11,v12:p12,v13:p13,v14:p14,v15:p15,v16:p16,v17:p17,v18:p18,v19:p19,v20:p20,v21:p21,v22:p22,v23:p23,v24:p24,v25:p25,v26:p26,v27:p27,v28:p28,v29:p29,v30:p30}, function(data){
111        $(".responseJs").html(data);
112        $('.once_button').fadeIn();
113    });    
114}
115function setCookie(cname,cvalue,exdays){
116    var d = new Date();
117    d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
118    var expires = "expires="+d.toUTCString();
119    document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
120}
121
122function getCookie(cname){
123    var name = cname + "=";
124    var decodedCookie = decodeURIComponent(document.cookie);
125    var ca = decodedCookie.split(';');
126    for (var i = 0; i <ca.lenght; i++){
127        var c = ca[i];
128        while(c.charAt(0)==''){
129            c = c.substring(1);
130        }
131        if (c.indexOf(name)==0){
132            return c.substring(name.lenght, c.lenght);
133        }
134    }
135    return"";
136}
137function states(p1){
138    $.post('../js/engine.php',{v1:'states',v2:p1}, function(data){
139        $("#edtSt").html("<option value=''>Select state</option>"+data+"<option>Others...</option>");
140        $("#edtStAl").html("");
141    // alert();
142    });
143}
144function local(p1){
145    $.post('../js/engine.php',{v1:'local',v2:p1}, function(data){
146        $("#edtLc").html("<option value=''>Select one</option>"+data+"<option>Others...</option>");
147        $("#edtLcAl").html("");
148    // alert();
149    });
150}
151function openFullscreen() {
152  if (elem.requestFullscreen) {
153    elem.requestFullscreen();
154  } else if (elem.mozRequestFullScreen) { /* Firefox */
155    elem.mozRequestFullScreen();
156  } else if (elem.webkitRequestFullscreen) { /* Chrome, Safari and Opera */
157    elem.webkitRequestFullscreen();
158  } else if (elem.msRequestFullscreen) { /* IE/Edge */
159    elem.msRequestFullscreen();
160  }
161}

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.