Skip to Content

JavaScript File

URL: https://www.algo-textile.ru/misc/js/__js_functions.js
HTTP Status: 200 OK
MIME Type: application/x-javascript
Last Modified: Sat, 13 Oct 2018 13:24:14 GMT
Download Time: Less than a second
Cookies: None
Size: 24 KB
HTTP Headers:  7 headers
Links In:  1 pages
OK Issues: No issues found

1if(!defined('order_admin')){order_admin='';}

2if(!defined('alert_window_manual')){alert_window_manual='';}

3if(!defined('alert_window_manual')){alert_window_manual='';}

4if(!defined('float_header_height_to_scroll')){float_header_height_to_scroll=0;}

5if(!defined('rating__votes_count__position_1'))rating__votes_count__position_1='';if(!defined('rating__votes_count__position_2'))rating__votes_count__position_2='';if(!defined('rating__votes_count__position_3'))rating__votes_count__position_3='';if(!defined('rating__votes_count__position_4'))rating__votes_count__position_4='';var date_2039=new Date(2039,11,31,23,59,59);var expires_2039=date_2039.toGMTString();var date=new Date();date.setDate(date.getDate()+1);var expires=date.toGMTString();var check_spaces_only=/^\s+$/;var check_digits_only=/^\d+$/i;var check_email=/^[à-ÿa-z0-9-_.]+\@([à-ÿa-z0-9-]{1,}

6[\.]{1}

7)*[à-ÿa-z0-9-]{1,}

8\.[à-ÿa-z]{2,6}

9$/i;var check_url=/^http:\/\/(www.)*([à-ÿa-z0-9-]{1,}

10[\.]{1}

11)*[à-ÿa-z0-9-]{2,}

12\.[à-ÿa-z]{2,6}

13(\/.*)*$/i;var check_password_symbols=/^[a-z0-9\`\~\!\@\#\$\%\^\&\*\(\)\_\-\+\=\{\}

14\[\]\\\|\:\;\"\'\<\>\,\.\?\/]+$/i;var check_phone_symbols=/^[0-9-\s\(\)\+\,]+$/i;var check_fax_symbols=/^[0-9-\s\(\)\+\,]+$/i;var check_textarea_symbols=/^[\s\n\r]+$/ig;jQuery(document).ready(function(){functions_ready();}

15);function functions_ready(){$('div.input-select').prepend('<i></i><span></span>');$('div.input-select').prepend('<div class="i"></div><span></span>');$('div.input-select select').each(function(){elem=$(this);elem.prev().text(elem.find('option:selected').text());}

16);$('div.input-select select').on('change',function(){elem=$(this);elem.prev().text(elem.find('option:selected').text());}

17);$('.popup').on('click','.close, .closer',function(){if($('.popup:visible').length<2){$('.popup, #overlay').fadeOut('fast');}

18else{$(this).closest('.popup').fadeOut('fast');}

19return false;}

20);$('#privacy-disclaimer__close').on('click',function(){document.cookie='fz152_disclaimer_agree=yes; path=/; expires='+expires_2039;$('.privacy-disclaimer').slideUp();}

21);if(defined('site_phone_fields_mask')){if(site_phone_fields_mask!=''){$('input[name="phone"]').mask(site_phone_fields_mask);}

22}

23$('#up').click(function(){$('html, body').animate({scrollTop:0}

24);return false;}

25);if(defined('scroll_top_show')){$(window).scroll(function(){if($(this).scrollTop()>scroll_top_show){$('#up').fadeIn();}

26else{$('#up').fadeOut();}

27}

28);}

29$('.text img').each(function(){if($(this).css('float')=='left'){$(this).addClass('align-left');}

30else if($(this).css('float')=='right'){$(this).addClass('align-right');}

31}

32);}

33function getCookie(variable){if(variable==null){variable='report';}

34var prefix=variable+"=";var cookieStartIndex=document.cookie.indexOf(prefix);if(cookieStartIndex==-1)return"";var cookieEndIndex=document.cookie.indexOf(";",cookieStartIndex+prefix.length);if(cookieEndIndex==-1)cookieEndIndex=document.cookie.length;return unescape(document.cookie.substring(cookieStartIndex+prefix.length,cookieEndIndex));}

35function saveCookie(variable,value,expires){var newCookie=variable+"="+escape(value)+"; path=/; expires="+expires;document.cookie=newCookie;}

36function over(img,ref){document.images[img].src=ref;}

37function out(img,ref){document.images[img].src=ref;}

38function w_open(){var url=w_open.arguments[0];var w;var h;var settings;if(w_open.arguments[1]){w=w_open.arguments[1];}

39else{w=screen.width-100;}

40if(w_open.arguments[2]){var h=w_open.arguments[2];}

...

</html>