Items
Sort :
Festive Star Platinum The World
12.24 GBP
Spirit Bomb Sword
24.48 GBP
Grim Reaper
Made in christmas future
21.22 GBP
Tyrant kc
11.42 GBP
10x lucky arrow
24.41 GBP
Jack o platinum base
22.03 GBP
Bloodthirster
40.81 GBP
Waifu v3 | the waifu over heaven
48.16 GBP
the waifu over heaven
Jack O Platinum SPTW
31.83 GBP
Lightbringer twoh
22.85 GBP
Horseman of heaven
18.77 GBP
Retro The World Over Heaven
21.22 GBP
Ghost the world over heaven
37.55 GBP
Mirage of phantoms
146.13 GBP
Twauoh
38.36 GBP
Overseer Crazy Diamond
45.71 GBP
"; if (url == null || number == null) { $(".shopping-cart").html(html); ShowCar(result); } else { $(".shopping-cart").html(html); ShowCar(result); } } } } $(".items-quantity").live("change keyup", function () { var value = $(this).val(); var row = $(this).parents(".goldrl-box"); row.find("input.rlbtn").each(function () { var input = $(this); $.each([ { attr: "tag", value: input.attr("tag") }, { attr: "href", value: input.attr("href") }], function (i, e) { var v = e.value; v = v.replace(/goldNum=\d*&/gi, "goldNum=" + value + "&"); input.attr(e.attr, v); }); }); }); var doSearch = function () { $(".gold-list").hide(); window.searchItems = []; var item = $(".itemname").val().trim(); if (item.length == 0) { var tag = $(".coin-title em.on").attr("tag"); $(".search-list").html("").hide(); $(".gold-list[data-method='" + tag + "']").show(); } else { $(".gold-list .goldrl-box").each(function (i) { var f = true, e = $(this).show(), egl = e.parents(".gold-list"); var itemname = e.find(".rl-name").text(); var regExp = new RegExp(item, "gi"); var n0 = itemname.replace(/[\s+\-]+/gi, "").toLowerCase(); var n1 = item.replace(/[\s+\-]+/gi, "").toLowerCase(); if (!(regExp.test(itemname) || n0.indexOf(n1) > -1)) { f &= false; } if (f) { var item2 = $(e.prop("outerHTML")); window.searchItems.push({ i: i, isnum: egl.data("isnum"), item: item2, name: item2.find(".rl-name").text(), price: parseFloat(item2.find(".poeprice").text()) }); } }); sortSearchItems(); loadItemImages(false); } } $(".itemname").live("keyup", doSearch); $(".priceup select").live("change", function () { var expires = new Date(); expires.setHours(expires.getHours() + 4); $.cookie("_gasort", $(this).val(), { expires: expires }); sortSearchItems(); }); var sortSearchItems = function () { //排序方法 var s = parseInt($.cookie("_gasort") || "1"); var itemSort = function (a, b) { var v = 0; switch (s) { case 2: v = b.price - a.price; if (v != 0) { return v; } case 3: v = a.price - b.price; if (v != 0) { return v; } } if (a.isnum && b.isnum) { v = a.price - b.price; if (v != 0) { return v; } } var array1 = [a.name, b.name]; var array2 = array1.slice(0); array1.sort(); return array1[0] == array2[0] ? -1 : 1; }; if (window.searchItems) { var thisSearchItems = [], copySearchItems = window.searchItems.slice(0), searchPanel = $(".search-list").html(""); $.each(copySearchItems, function (i, e) { var items = derivedItems(e); thisSearchItems = thisSearchItems.concat(items); }); thisSearchItems.sort(itemSort); $.each(thisSearchItems, function (i, e) { searchPanel.append(e.item).show(); if (e.change) e.change(); }); pagingItems(searchPanel); } else { //排序当前选中分类 $(".gold-list").each(function () { var gl = $(this); if (!gl.is(":hidden")) { var categoryItems = [], originalItems = []; gl.find(".goldrl-box").each(function (i, e) { var item2 = $(this).clone(true); var item = { i: parseInt(item2.attr("data-index")), isnum: gl.data("isnum"), item: item2, name: item2.find(".rl-name").text(), price: parseFloat(item2.find(".poeprice").text()), sort: parseInt(item2.attr("data-sort")) }; if (s == 1 && item.sort > 0) { originalItems.push(item); } else { categoryItems.push(item); } }); categoryItems.sort(itemSort); if (originalItems.length > 0) { originalItems.sort(function (a, b) { return b.sort - a.sort; }) $.each(originalItems, function (i, e) { categoryItems.splice(e.i, 0, e); }); } gl.find(".goldrl-box").remove(); $.each(categoryItems, function (i, e) { gl.append(e.item).show(); }); } }); } }; var derivedItems = function (obj) { //展示不同颜色只针对输入了物品名称 var searchItemname = $(".itemname").val().trim(); if (searchItemname == "") { return [obj]; } var html = obj.item.prop("outerHTML"), item = $(html); return [{ i: obj.id, name: obj.name, item: item, price: obj.price, isnum: obj.isnum }]; }; var pagingItems = function (panel) { var size = 28; var count = $(panel).find(".goldrl-box").length; var pageDiv = $("
"); if (count > size) { $(".search-list").append(pageDiv); var total = (count + size - 1) / size; for (var i = 1; i <= total; i++) { pageDiv.append("" + i + "\r\n"); } pageDiv.find("a").each(function () { $(this).live("click", function () { pageDiv.find("a").removeClass("on"); $(this).addClass("on"); var page = parseInt($(this).text()); var skip = (page - 1) * size; $(panel).find(".goldrl-box").each(function (i, e) { if (i < skip || i > (skip + size - 1)) { $(this).hide(); } else { $(this).show(); } }); }); })[0].click(); } else { $(".items-page").remove(); } }; $(".goldrl-box").live("mouseenter mousemove mouseleave", function (event) { var info = $(this).find(".fallout-infoimg"); if (info.length > 0) { var isright = $(this).width() + "px"; if ($(this).offset().left > 1000 && $("body").width() < 2200) { isright = "-" + ($(this).width() / 2) + "px"; if ($(this).width() / 2 < 100) { isright = "-311px"; } } if (event.type == "mouseenter") { var ispad = parseInt("0") == 1; var ismmo = "aoeah.com" == "mtmmo.com"; var index = ($(this).parents(".gold-list,.search-list").find(".goldrl-box::visible").index(this)) % (ispad ? 4 : (ismmo ? 8 : 7)); info.html(info.data("html")); info.css({ left: (index > (ispad ? 1 : 3)) ? (ismmo ? "-363px" : "-333px") : isright}).show(); } else if (event.type == "mousemove") { info.css({ left: (index > (ispad ? 1 : 3)) ? (ismmo ? "-363px" : "-333px") : isright}).show(); } else { info.hide(); } } }); $(".fallout-infoimg").live("hover", function () { $(this).hide(); }); $(".min, .add").live("click", function () { var value = $(this).attr("class"); if (value == "min") { var tinput = $(this).next(); var min = parseInt(tinput.attr("min")); var current = parseInt(tinput.val()); if (current - min >= min) { tinput.val((current - min)); tinput.change(); } } else { var tinput = $(this).prev(); var min = parseInt(tinput.attr("min")); var current = parseInt(tinput.val()); tinput.val((current + min)); tinput.change(); } }); $(document).ready(function () { loadItemImages(false); });