PageSourceSearch

https://www.picknbuy24.com/js/common.js

js picknbuy24.com collected 2026-10-08 01:43:17 UTC 7,769 bytes, 1 lines download raw bytes

1function print_page(){var e=document.f_select_option;return e.target="_blank",e._a.value="print",e.submit(),!1}function __promo_get_cookie(e){e+="=";var a=document.cookie+";",t=a.indexOf(e);if(-1!=t){var n=a.indexOf(";",t);return unescape(a.substring(t+e.length,n))}return!1}function __promo_set_cookie(e,a){var t=365;if(null!=e&&null!=a){var n=new Date;return n.setTime(n.getTime()+1e3*t*60*60*24),n=n.toGMTString(),document.cookie=e+"="+escape(a)+";expires="+n,!0}return!1}function __promo_get_query(e){var a=new String(e),t=new Array;return t=a.split("?"),t[1]?t[1]:""}function __promo_get_pcd(e){var a,t,n,c=__promo_get_query(e),o=c.split("&"),i=0;for(i=0;i<o.length;i++)if(a=o[i].split("="),!(a.lenght<2)&&(t=a[0],n=a[1],"utm_campaign"==t))return n;return""}function __promo_proc(){var e=document.location.href,a=document.referrer,t=__promo_get_cookie("__pb_pcd"),n=__promo_get_cookie("__pb_fpcd"),c=__promo_get_pcd(e);if(""!=c)t="__"+c;else{var o;(o=a.match(/^http[s]?:\/\/([^/]*google\.[^/]+)/i))?t="__pgaaaw00001":(o=a.match(/^http[s]?:\/\/([^/]*yahoo\.[^/]+)/i))?t="__pgbaaw00001":(o=a.match(/^http[s]?:\/\/([^/]*bing\.[^/]+)/i))&&(t="__pgcaaw00001")}""==t&&(t="__paaaaa00001"),""==n&&(n=t),__promo_set_cookie("__pb_fpcd",n),__promo_set_cookie("__pb_pcd",t)}var lang=$("html").attr("lang");$(function(){function e(e){var a=location.pathname.replace(/\/pt|\/fr|\/ru|\/e
1s|\/sw/g,""),t="";null!==location.search&&(t=location.search);var n="";"en"!==e&&(n="/"+e),location.href=n+a+t}function a(e,a){e.val(lang);var t=e.prev("div"),n=e.children(":selected");t.text(n.text()),"lang"===a&&t.addClass(n.val())}function t(e){var a="";if("maker"===e.attr("id")?a=$("#model"):"ad_maker"===e.attr("id")&&(a=$("#ad_model")),""!==a){var t=e.val();if(""===t){var c=a.children().first();a.children().remove().end().append(c)}else n(t,a)}}function n(e,a){var t=a.children().first();a.empty().append('<option value="">Loading...<option>');var n="&maker="+e,c=$("#special_price");1==c.val()&&(n+="&special_price=1"),$.ajax({type:"GET",url:"/user/index.php/ajax/pbdata?_a=search_model_list"+n,dataType:"xml",cache:!0}).done(function(e){var n="";$(e).find("item-model").each(function(){var e=$(this);n+='<option value="'+e.find("key").text().toLowerCase()+'">'+e.find("value").text()+"</option>"}),a.empty().append(t).append(n)}).fail(function(){a.empty().append(t)})}function c(e){var a=e.attr("id"),t="";if(""!==e.val()){switch(a){case"type":t="model";break;case"model":t="type";break;case"ad_type":t="ad_model";break;case"ad_model":t="ad_type"}var n=$("#"+t);""!==n.val()&&n.val("")}}function o(e){var a=e.attr("name"),t=a.slice(-1);switch(t){case"1":case"2":var n=0,c=a.slice(0,-1),o=$("select[name="+c+"1]"),i=$("select[name="+c+"2]"),r=o.prop("selectedIndex"),d=i.prop("selectedIndex");if(0===r||0===d)return;(d>r&&"year"===c||r>d&&"year"!==c)&&(n=1),1===n&&("1"===t?i.prop("selectedIndex",r):o.prop("selectedIndex",d))}}function i(e,a){""!==e?$.cookie("__pb_select_port",e+","+a,{expires:365,path:"/"}):$.removeCookie("__pb_select_port",{expires:365,path:"/"})}function r(e){var a=e.serialize(),t="";a=d(a),""!=a&&(t="?"+a),location.href=e.attr("action")+t}function d(e){var a=[];return $.each(e.split("&"),function(e,t){t.split("=")[1]?a.push(t):!1}),a.join("&")}function l(e){var a=$("#adCount span"),t=$("select,input[type=radio],input[type=checkbox],input[type=hidden],#ad_key",e).serialize();t=d(t),""!=t?$.ajax({type:"GET",url:"/usedcar/?_a=count&"+t,dataType:"text",cache:!0}).done(function(e){a.text(e)}):a.text("---")}var s=($.cookie("switch"),navigator.userAgent);if((s.indexOf("iPhone")>0||s.indexOf("iPad")>0||s.indexOf("Android")>0||s.indexOf("Windows Phone")>0)&&($("body").hasClass("mobile")?$("head").append('<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">'):($("head").append('<meta name="viewport" content="width=1280px">'),$("#btnMb").addClass("on"))),$("#btnPc, #btnMb").click(function(){$.cookie("switch","btnPc"===$(this).attr("id")?1:0,{path:"/"}),location.reload()}),$("#bar").on("change","#lang",function(){e($(this).children("option:selected").val())}),$("#footer").on("click","#lang>a",function(){e($(this).attr("class"))}),a($("#lang"),"lang"),$("#contents").on("click","#btnCalculate",function(){i($("#n_country_cd").val(),$("#n_port_id").val()),$("#ad_country_code").val($("#n_country_cd").val()),$("#ad_port_code").val($("#n_port_id").val()),$("#ad_warranty").val($("[id^=chk_warranty_]:checked").val()),$("#ad_inspection").val($("[id^=chk_inspection_]:checked").val()),r($("#f_search"))}).on("change","#btnSort",function(){$("#ad_sort").val($(this).val()),r($("#f_search"))}),$("form[name=f_search]").on("change","select",function(){var e=$
1(this).attr("name");switch(e){case"maker":t($(this));break;case"type":case"model":c($(this));break;default:o($(this))}}).on("focus","#ad_key",function(){$("#ad_maker").val(""),t($("#ad_maker"))}),$("body").hasClass("mobile")){var p=$("#globalNav");$("#header").on("click","#btnMenu,#closeNav",function(){p.is(":hidden")?$("#globalNav").before('<div id="closeNav"></div>'):$("#closeNav").remove(),p.toggle()})}var _=400;$('a[href^="#"]',"#contents").click(function(){var e=$(this).attr("href"),a=$("#"===e||""===e?"html":e),t=a.offset().top;return $("html, body").animate({scrollTop:t},_,"swing"),!1});var u=$("#backTop");u.hide(),$(window).scroll(function(){var e=$(this);e.scrollTop()>100?u.fadeIn():u.fadeOut()}),$("#backTop").click(function(){return $("html, body").animate({scrollTop:0},_,"swing"),!1}),$("#header").on("click","#btnQuick",function(){r($("#f_quick"))});var h=$("#searchItem");$("#labelSearch").on("click","a",function(){var e=$(this).attr("id").split("-"),a=e[0];switch(a){case"add":break;case"keyword":case"maker":case"type":case"model":case"year":case"fob":case"mileage":case"engine":case"seat":case"color":case"door":case"carry":$("input[name^="+a+"],select[name^="+a+"]","#f_search").val(""),"maker"===a&&$("select[name=model]").val("");break;case"trans":case"fuel":case"drive":case"steering":$("input[name^="+a+"]","#f_search").prop("checked",!1).first().prop("checked",!0);break;default:$("input[name^="+a+"]","#f_search").prop("checked",!1)}"add"!=a?r($("#f_search")):h.toggle()}),h.on("click","#btnSearch",function(){$("#ad_country_code,#ad_port_code,#ad_warranty,#ad_inspection,#ad_page").val(""),r($("#f_search"))}).on("change","select,input[type=radio],input[type=checkbox],input[type=hidden],#ad_key",function(){"44"===$("#n_country_cd").val()?$("#adCount span").text("---"):l("#f_search")}
1).on("click","#swAdvanced",function(){var e=$(this);e.toggleClass("on"),$("#advancedBox").slideToggle()}).on("click","#btnReset",function(){$("#f_search").find("textarea, :text, select").val("").end().find("#ad_key").val("").end().find(":checked").prop("checked",!1).end().find('input[type="radio"][value=""]').prop("checked",!0).end().find(".selected").removeClass("selected"),$("#keyword").val("");var e="#ad_model",a=$(e).children("option:first-child");$(e).empty(),a.appendTo(e),$("#adCount span").text("---")}),null!==$("#searchItem")&&("44"===$("#n_country_cd").val()?$("#adCount span").text("---"):l("#f_search")),$("select,input[type=text]","#searchItem").each(function(){""!==$(this).val()&&$(this).addClass("selected")}),$("#search")&&$("#search").on("click","#f_search a",function(){r($("#f_search"))}),$("#h_login").on("click","#btnHeadLogin",function(){var e=0,a="";""==$("#login_id").val()&&(a+="<div>Please enter your email address</div>",e=1),""==$("#login_pw").val()&&(a+="<div>Please enter your passowrd</div>",e=1),0==e?$("#h_login").submit():$('<div id="msg">'+a+"</div>").appendTo($("#h_login")).fadeIn(500).delay(4e3).fadeOut(500,function(){$(this).remove()})})}),__promo_proc();

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.