1function ShowLoadingScreenCHELZNAK(text) 2{ 3 $("body").css("cursor", "wait"); 4 var fade_div = $("#id_admin_forms_fade1"); 5 if (fade_div.length == 0) 6 { 7 fade_div = $('<div></div>') 8 .appendTo(document.body) 9 .hide() 10 .attr('id', "id_admin_forms_fade1") 11 .addClass("shadowed") 12 .applyShadow() 13 .css('z-index', "15000") 14 .css('position', "absolute") 15 .css('left', "50%") 16 .css('top', "50%") 17 .append('<img src="/hostcmsfiles/images/ajax_loader.gif" id="id_fade_div_img" /><div class="faseDivText">'+text+'</div>') 18 .css('width', "254px"); 19 } 20 fade_div 21 .show() 22 .css('top', ($(window).height() - fade_div.outerHeight(true)) / 2 + $(window).scrollTop()) 23 .css('left', ($(window).width() - fade_div.outerWidth(true)) / 2 + $(window).scrollLeft()); 24} 25 26function HideLoadingScreenCHELZNAK() 27{ 28 $("body").css("cursor", "auto"); 29 $("#id_admin_forms_fade1").css('display', 'none'); 30} 31 32function AddIntoCartCHELZNAK(shop_path, item_id, item_count) 33{ 34 var order_options = ''; 35 if( $('select#order_options').length && $('select#order_options').val()!=0 ) { 36 order_options = '&order_options='+$('select#order_options').val() ; 37 } 38 //location.href = shop_path + 'cart/?ajax_add_item_id=' + item_id + '&count=' + item_count; 39 cmsrequest = shop_path + 'cart/?ajax_add_item_id=' + item_id + '&count=' + item_count + order_options; 40 sendRequestCHELZNAK(cmsrequest, 'get', callbackfunction_AddIntoCart, 'ÐозиÑÐ¸Ñ Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½Ð° в коÑзинÑ<br>ÐÑ Ð¼Ð¾Ð¶ÐµÑе пеÑейÑи в <a href="/shop/cart/">коÑзинÑ</a>'); 41 return false; 42} 43 44function AddIntoCartLandF(shop_path, item_id, item_count) 45{ 46 cmsrequest = shop_path + 'cart/?ajax_add_item_id_land=' + item_id + '&count=' + item_count; 47 sendRequestCHELZNAK(cmsrequest, 'get', callbackfunction_AddIntoCart, 'ÐозиÑÐ¸Ñ Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½Ð° в коÑзинÑ<br>ÐÑ Ð¼Ð¾Ð¶ÐµÑе пеÑейÑи в <a href="/shop/cart/">коÑзинÑ</a>'); 48 return false; 49} 50 51function sendRequestCHELZNAK(action, method, callback_function, text) 52{ 53 var req = new JsHttpRequest(); 54 ShowLoadingScreenCHELZNAK(text); 55 req.onreadystatechange = function() 56 { 57 if (req.readyState == 4) 58 { 59 setTimeout(function(){HideLoadingScreenCHELZNAK()}, 2000); 60 if (typeof callback_function != 'undefined') 61 { 62 callback_function(req.responseJS); 63 } 64 return true; 65 } 66 } 67 req.open(method, action, true); 68 req.send(null); 69} 70 71function Inc_demand(shop_path, item_id, item_count) 72{ 73 //location.href = shop_path + 'cart/?ajax_add_item_id=' + item_id + '&count=' + item_count; 74 cmsrequest = shop_path + '?action=inc_demand&shop_item_id=' + item_id + '&count=' + item_count; 75 // ÐÑпÑавлÑем запÑÐ¾Ñ backend-Ñ 76 sendRequestCHELZNAK(cmsrequest, 'get', function(){}, 'СпаÑибо, ÐаÑа заÑвка ÑÑÑена.'); 77 return false; 78} 79 80$(document).ready(function(){ 81 AddIntoCart = function(shop_path, item_id, item_count) 82 { 83 AddIntoCartCHELZNAK(shop_path, item_id, item_count); 84 return false; 85 } 86});
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.