function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i0) { document.write('feed id empty; '); return; } var jq_ad = jQuery.noConflict(); if(typeof bank == "undefined") { var bank = getQueryVariable('finance_filter_bank'); } if(typeof payment_system == "undefined") { var payment_system = getQueryVariable('finance_filter_payment_system'); } var action_url = 'http://cityads.ru/service/get-finance-feed/old/1/feed/' + feed_id + '/ftype/' + ftype + '/'; /* if(typeof items_per_page != "undefined" && items_per_page != null) { action_url = action_url + 'items_per_page/' + items_per_page + '/'; } if(typeof type != "undefined" && type != null && type != 0) { action_url = action_url + 'type/' + type + '/'; } if(typeof payment_system != "undefined" && payment_system != null && payment_system != 0) { action_url = action_url + 'payment_system/' + payment_system + '/'; } */ if(typeof filter != "undefined" && filter != null) { action_url = action_url + 'filter/' + filter + '/'; } if(typeof bank_from_js != "undefined" && bank_from_js != null && bank_from_js.length) { action_url = action_url + 'bank/' + bank_from_js + '/'; } if(typeof st != "undefined" && st != null && st!='') { subtype = st; } action_url = action_url + 'subtype/' + subtype + '/'; if(typeof filterval != "undefined" && filterval != null) { action_url = action_url + filterval; } if (ftype == 'menu') { var action_type = "get_menu"; var action_div = "menuFeedDiv"; } else if (ftype == 'filter') { var action_type = "get_filter"; var action_div = "filterFeedDiv"; } else { var action_type = "get_json"; var action_div = "cardsFeedDiv"; } jq_ad.ajax({ url: template_url, error: function(jqXHR, textStatus, errorThrown) { document.write('ERROR: скопируйте все *.jqtmpl файлы на свой домен и пропишите новые ссылки;
'); }, success: function(data) { var template = data; jq_ad.ajax({ url: action_url + action_type +'/1/', jsonp: "jsonp_callback", dataType: "jsonp", error: function(jqXHR, textStatus, errorThrown) { console.log(jqXHR); }, success: function(data) { if (data['data']) { var json_data = data['data']; var ref = data['ref']; } else { var json_data = data; } jq_ad('#'+action_div).html(jq_ad.tmpl(template, json_data)); if(ftype == 'feed') { if (subtype == 1) dtext = '* Подробности об условиях заказа и обслуживания кредитной карты смотрите на странице онлайн-заявки. Мы стараемся, чтобы указанная здесь информация регулярно обновлялась и отвечала действительности, но не гарантируем её точность. Нажав на кнопку «Заказать», Вы сможете узнать всю актуальную информацию о кредитной карте на сайте банка-эмитента.'; else dtext = '* Подробности об условиях заказа и обслуживания кредита или займа смотрите на странице онлайн-заявки. Мы стараемся, чтобы указанная здесь информация регулярно обновлялась и отвечала действительности, но не гарантируем её точность. Нажав на кнопку «Заказать», Вы сможете узнать всю актуальную информацию на сайте банка-эмитента.'; jq_ad('#'+action_div).append('
'+dtext+' Информация предоставлена '+ref+'
'); } } }); } }); if (method==1) { } else { //document.write('
'); document.write('
'); } } document.write(''); document.write('');