PageSourceSearch

https://okotech.in/wp-content/themes/okatech/assets/js/scripts.js?ver=7.1.2

js okotech.in collected 2026-10-06 09:01:46 UTC 6,031 bytes, 428 lines download raw bytes

1$(document).ready(function() {
2
3
4
5    $('.carousel').carousel({
6
7        interval: 3000
8
9    });
10
11
12
13    $(window).on("scroll", function() {
14
15        if ($(window).scrollTop() > 0) {
16
17            $("header").addClass("sticky-header");
18
19        } else {
20
21
22
23            $("header").removeClass("sticky-header");
24
25        }
26
27    });
28
29
30
31    $(".mobile-filters").click(function() {
32
33        $(".filters-nav").slideToggle(400);
34
35
36
37    });
38
39
40
41
42
43
44
45    $('.home-block.advantages .block .bg').equalHeights({
46
47    });
48
49
50
51    $('.service-blocks .bg').equalHeights({
52
53    });
54
55
56
57    $('.our-projects .bg').equalHeights({
58
59    });
60
61
62
63    $('.become-partner .bg').equalHeights({
64
65    });
66
67
68
69    $('.performance-list .block').equalHeights({
70
71    });
72
73
74
75    $('.adv-service .installation .bg').equalHeights({
76
77    });
78
79    
80
81    $('.warranty .void .bg').equalHeights({
82
83    });
84
85
86
87    $('.warranty .maintenance .bg').equalHeights({
88
89    });
90
91
92     $('.blog-list-page .text').equalHeights({
93
94    });
95    
96
97
98
99
100
101
102
103
104
105});
106
107
108
109
110
111
112$(document).ready(function() {
113
114    $('.top-nav li.inner-sub-menu').hover(function() {
115
116        $(this).find('.dropdown-menu').stop(true, true).delay(200).fadeIn(200);
117
118    }, function() {
119
120        $(this).find('.dropdown-menu').stop(true, true).delay(100).fadeOut(50);
121
122    });
123
124});
125
126
127
128
129
130$(document).ready(function() {
131
132
133
134    $("#casement-slider").owlCarousel({
135
136        autoPlay: false,
137
138        touchDrag: true,
139
140        mouseDrag: true,
141
142        loop: true,
143
144        items: 3,
145
146        navigation : true,
147
148        rewindNav: true
149
150    });
151
152
153
154   $("#doors-slider").owlCarousel({
155
156        autoPlay: false,
157
158        touchDrag: true,
159
160        mouseDrag: true,
161
162        loop: true,
163
164        items: 3,
165
166        navigation: true,
167
168        rewindNav: true
169
170    });
171
172
173
174   $("#profiles-slider").owlCarousel({
175
176        autoPlay: false,
177
178        touchDrag: true,
179
180        mouseDrag: true,
181
182        loop: true,
183
184        items: 3,
185
186        navigation: true,
187
188        rewindNav: true
189
190    });
191
192
193
194
195
196   $("#projects-slider").owlCarousel({
197
198        autoPlay: false,
199
200        touchDrag: true,
201
202        mouseDrag: true,
203
204        loop: true,
205
206        items: 3,
207
208        navigation: true,
209
210        rewindNav: true
211
212    });
213
214
215
216   $("#recent-blogs-slider").owlCarousel({
217
218        autoPlay: false,
219
220        touchDrag: true,
221
222        mouseDrag: true,
223
224        loop: true,
225
226        items: 3,
227
228        navigation: true,
229
230        rewindNav: true
231
232    });
233
234
235
236   $("#certificates-slider").owlCarousel({
237
238        autoPlay: false,
239
240        touchDrag: true,
241
242        mouseDrag: true,
243
244        loop: true,
245
246        items: 4,
247
248        navigation: true,
249
250        rewindNav: true
251
252    });
253
254    
255
256
257
258
259
260
261
262});
263
264
265
266$(document).on('click', function(e) {
267
268    var menu_opened = $('#navbar').hasClass('in');
269
270
271
272    if (!$(e.target).closest('#navbar').length &&
273
274        !$(e.target).is('#navbar') &&
275
276        menu_opened === true) {
277
278        $('#navbar').collapse('toggle');
279
280    }
281
282
283
284});
285
286
287
288
289
290$(document).ready(function(){
291
292
293
294  $(".home-owners").click(function(){
295
296    $("li.home-owners").addClass("open-nav");
297
298    $("li.architects").removeClass("open-nav");
299
300    $("li.architects a").removeClass("toggle-active");
301
302    $("li.home-owners a").addClass("toggle-active");
303
304  });
305
306
307
308  $(".architects").click(function(){
309
310    $("li.architects").addClass("open-nav");
311
312    $("li.architects a").addClass("toggle-active");
313
314    $("li.home-owners").removeClass("open-nav");
315
316    $("li.home-owners a").removeClass("toggle-active");
317
318  });
319
320
321
322});
323
324
325
326
327$(document).ready(function () {
328
329
330
331
332
333    var hash = window.location.hash
334
335
336
337    if (hash == '' || hash == '#' || hash == undefined) return false;
338
339
340
341
342
343    var target = $(hash);
344
345
346
347    headerHeight = 104;
348
349
350
351    target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
352
353
354
355
356
357    if (window.matchMedia('(max-width: 991px)').matches) {
358
359
360
361        if (target.length) {
362
363            $('html,body').stop().animate({
364
365                scrollTop: target.offset().top - 200 //offsets for fixed header
366
367            }, 'linear');
368
369
370
371        }
372
373
374
375    } else {
376
377
378
379        if (target.length) {
380
381            $('html,body').stop().animate({
382
383                scrollTop: target.offset().top - 170 //offsets for fixed header
384
385            }, 'linear');
386
387
388
389        }
390
391
392
393    }
394
395});
396
397
398
399
400var validations ={
401                        email: [/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/, 'Please enter a valid email address']
402                     };
403                     $(document).ready(function(){
404                         // Check all the input fields of type email. This function will handle all the email addresses validations
405                         $("input[type=email]").change( function(){
406                             // Set the regular expression to validate the email 
407                             validation = new RegExp(validations['email'][0]);
408                             // validate the email value against the regular expression
409                             if (!validation.test(this.value)){
410                                 // If the validation fails then we show the custom error message
411                                 this.setCustomValidity(validations['email'][1]);
412                                 return false;
413                             } else {
414                                 // This is really important. If the validation is successful you need to reset the custom error message
415                                 this.setCustomValidity('');
416                             }
417                         });
418                     
419                         function testInput(event) {
420                           var value = String.fromCharCode(event.which);
421                           var pattern = new RegExp(/[A-Z@~`!@#$%^&*()_=+\\\\';:\"\\/?>.<,-]/i);
422                           return pattern.test(value);
423                        }
424                     
425                        $('#mx_Name1').bind('keypress', testInput);
426                     
427                     
428                     })

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.