PageSourceSearch

https://content.nokair.com/App_Themes/Nokair/js/main.js

js nokair.com collected 2026-10-02 04:02:57 UTC 7,426 bytes, 294 lines download raw bytes

1
2// JavaScript Document
3
4
5
6	var widthSize;
7
8	$(document).ready(function(){
9			widthSize = (window.innerWidth > 0) ? window.innerWidth : screen.width;
10			//input animate
11			$(".input-slide").each(function() {
12				if ($(this).val() != "") {
13					$(this).parent().addClass("animation-input");
14				}
15			});
16
17			//validate input
18			$('input').keyup(function () {
19					$(this).parents('.input-container ').find('.chk-btn').empty();
20					$(this).removeClass('fail');
21					$(this).parents('.input-container ').find('.validdiv').removeClass('validdiv');
22
23			});
24
25			//Add animation-input when input is focused
26			$(".input-slide").focus(function(){
27				$(this).parent().addClass("animation-input");
28			});
29
30			//Remove animation-input(s) when input is no longer focused
31			$(".input-slide").focusout(function(){
32				if($(this).val() === "")
33				$(this).parent().removeClass("animation-input");
34			});
35			//end input animate
36
37			var heightChart= 600;
38			var widthChart = 990;
39			if(widthSize <=768){
40			  heightChart = '100%';
41			}
42			$('.fancybox-chart').fancybox({
43			    type: 'iframe',
44			    maxWidth: 990,
45			    maxHeight: heightChart,
46			    width: '100%',
47			    height: '100%',
48			    padding: 0,
49			    margin: 0,
50			    fitToView: false,
51			    autoSize: false,
52			    closeClick: false,
53			    openEffect: 'none',
54			    closeEffect: 'none',
55			    padding: 0,
56			    helpers: {
57			        overlay: {
58			            locked: false
59			        }
60			    },
61			    openMethod: 'dropIn',
62			    closeMethod: 'dropOut',
63			    closeBtn: false,
64			    scrolling: 'hidden'
65			    , fitToView: true
66			    , autoSize: false
67			    , closeClick: false
68			    , closeBtn: false
69			    , iframe: {
70			        'scrolling':'auto',
71			        'scrollOutside':'false'
72			    }
73                , beforeShow: function () {
74                    $('body').css({ 'overflow-y': 'hidden' });
75                }
76			    , afterLoad: function () {
77						if(widthSize < 769) {
78							$('.fancybox-overlay').css({ background: '#fff'});
79							$('body').css({ position: 'fixed'});
80						}
81						else {
82							$('.wrap-full-content,.header').addClass('blur-content');
83						 $('.fancybox-overlay').css({ background: 'url("../js/fancybox/fancybox_overlay.png")'});
84						}
85			    }
86			    , afterClose: function () {
87						$('.wrap-full-content,.header').removeClass('blur-content');
88						$('body').css({ 'overflow-y': 'visible' });
89						$('body').css({ position: 'static' });
90			    }
91			    , beforeClose: function () {
92			        var $iframe = $('.fancybox-iframe');
93			        //Get Data From Fancybox(Graph)
94			        var barSelectIndex = $('.txtcontent', $iframe.contents()).val();
95			        $('body').css({ position: 'static'});
96			    }
97
98			});
99
100
101
102			var heghtMedia= 650;
103			if(widthSize <=768){
104			  heghtMedia = '100%';
105			}
106			$(".facybox-media").fancybox({
107				type: 'iframe',
108				maxWidth: 1160,
109				maxHeight:heghtMedia,
110				width: '100%',
111				height: '80%',
112				padding: 0,
113				helpers: {
114				    overlay: {
115				        locked: false
116				    }
117				},
118				margin: 0
119				, fitToView: true
120				, autoSize: false
121				, closeClick: false
122				, closeBtn: false
123			    , scrolling: 'hidden'
124                , beforeShow: function () {
125                    $('body').css({ 'overflow-y': 'hidden' });
126                }
127				,afterLoad:function(){
128					$('.container-fluid').css({'-webkit-filter': 'blur(5px)','position':'fixed'});
129			    if(widthSize < 769) {
130			      $('.fancybox-overlay').css({ background: '#fff'});
131			    }
132			    else {
133			      $('.fancybox-overlay').css({ background: 'url("../js/fancybox/fancybox_overlay.png")'});
134			    }
135				}
136				,afterClose:function(){
137				    $('.container-fluid').css({ '-webkit-filter': '', 'position': 'static' });
138				    $('body').css({ 'overflow-y': 'visible' });
139
140				}
141			});
142
143
144
145			//login
146			var heightLogin= 703;
147			if(widthSize <=768){
148			  heightLogin = '100%';
149			}
150			$('.fancybox-login').fancybox({
151			    type: 'iframe',
152			    maxWidth: 650,
153			    maxHeight: heightLogin,
154			    width: '100%',
155			    height: '100%',
156			    padding: 0,
157			    margin: 0,
158			    fitToView: true,
159			    autoSize: false,
160			    closeClick: false,
161			    openEffect: 'none',
162			    closeEffect: 'none',
163			    padding: 0,
164			    helpers: {
165			        overlay: {
166			            locked: false
167			        }
168			    },
169			    openMethod: 'dropIn',
170			    closeMethod: 'dropOut',
171			    closeBtn: false,
172			    scrolling: 'hidden'
173			      , fitToView: true
174			      , autoSize: false
175			      , closeClick: false
176			      , closeBtn: false
177			      , scrolling: 'no'
178			      , iframe: {
179						'scrolling':'auto',
180						'scrollOutside':'false'
181			      }
182                , beforeShow: function () {
183                    $('body').css({ 'overflow-y': 'hidden' });
184                }
185			       , afterLoad: function () {
186
187			         if(widthSize < 769) {
188			           $('.fancybox-overlay').css({ background: '#fff'});
189								 $('body').css({ position: 'fixed'});
190			         }
191			         else {
192						 	 	$('.wrap-full-content,.header').addClass('blur-content');
193			          $('.fancybox-overlay').css({ background: 'url("../js/fancybox/fancybox_overlay.png")'});
194			         }
195			       }
196			       , afterClose: function () {
197						   $('.wrap-full-content,.header').removeClass('blur-content');
198						   $('body').css({ 'overflow-y': 'visible' });
199							 $('body').css({ position: 'static' });
200			       }
201			});
202
203
204
205	});
206
207
208$(window).resize(function(){
209widthSize = (window.innerWidth > 0) ? window.innerWidth : screen.width;
210
211});
212
213
214function logincsuccess(){
215
216}
217
218
219function chkNumber(e){
220	if(document.all){
221		if(event.keyCode < 48 || event.keyCode > 57) {
222			if(event.keyCode != 46){
223				event.returnValue = false;
224				return false;
225			}
226		}
227	}else{
228		if(e.keyCode!=8&&e.keyCode!=9&&e.keyCode!=46 && e.keyCode!=37&& e.keyCode!=38 && e.keyCode!=39 && e.keyCode!= 40 ){
229			if(e.charCode < 48 || e.charCode > 57) {
230				if(e.charCode != 46){
231					return false;
232				}
233			}
234		}
235	}
236}
237
238function chkString(e){
239		if(event.keyCode > 47 && event.keyCode < 59) {
240			return false;
241		}
242}
243
244
245//fancybox fadein/out
246(function($,F){
247  //open animate
248  F.transitions.dropIn = function(){
249    var endPos = F._getPosition(true);
250
251    endPos.top = (parseInt(endPos.top, 10) + 200 ) + 'px';
252    endPos.opacity = 0;
253
254    F.wrap.css(endPos).show().animate({
255      top:  '-=200px',
256      opacity: 1
257    }, {
258      duration : F.current.openSpeed,
259      complete : F._afterZoomIn
260    });
261  };
262
263  //close animate
264  F.transitions.dropOut = function(){
265    F.wrap.removeClass('fancybox-opened').animate({
266      top:  '+=200px',
267      opacity: 0
268    }, {
269      duration : F.current.closeSpeed,
270      complete : F._afterZoomOut
271    });
272
273  };
274}(jQuery, jQuery.fancybox));
275
276function isEmpty(str) {
277  if (str == null || str == "" )
278    return true;
279  else
280    return false;
281}
282
283function isEmail(email){
284  var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9_])+\.)+([a-zA-Z0-9]{2,4})$/;
285  return regex.test(email);
286}
287
288//   var widthChart;
289//   if ($(window).width() < 990) {
290//       widthChart = 2000;
291//   }
292//   else  {
293//       widthChart = 600;
294// }

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.