FruitsGame PassProducts(2x) Exp BoostsMoney
Sort :
Kitsune Fruit
25.9 USD
Mythical
Buddha Fruit
10.69 USD
Legendary
Leopard Fruit
19.49 USD
Mythical
Spirit Fruit
16.49 USD
Mythical
Venom Fruit
15.79 USD
Mythical
T-Rex
14.99 USD
Mythical
Barrier Fruit
8.19 USD
Rare
Blizzard Fruit
14.29 USD
Legendary
Bomb Fruit
1.43 USD
Common
Chop Fruit
0.66 USD
Common
Control Fruit
16.19 USD
Mythical
Dark Fruit
6.19 USD
Uncommon
Diamond Fruit
Dough Fruit
15.59 USD
Mythical
Falcon Fruit
4.29 USD
Uncommon
Flame Fruit
3.59 USD
Uncommon
Ghost Fruit
7.99 USD
Rare
Gravity Fruit
14.39 USD
Mythical
Ice Fruit
4.29 USD
Uncommon
Light Fruit
7.09 USD
Rare
Love Fruit
10.99 USD
Legendary
Magma Fruit
8.39 USD
Rare
Mammoth Fruit
14.99 USD
Mythical
Pain Fruit
13.99 USD
Legendary
Phoenix Fruit
12.99 USD
Legendary
Portal Fruit
12.99 USD
Legendary
Quake Fruit
9.79 USD
Legendary
Rocket Fruit
0.39 USD
Common
Rubber Fruit
7.79 USD
Rare
Rumble Fruit
13.59 USD
Legendary
Sand Fruit
5.49 USD
Uncommon
Shadow Fruit
15.69 USD
Mythical
Smoke Fruit
1.59 USD
Common
Sound Fruit
11.99 USD
Legendary
Spider Fruit
11.69 USD
Legendary
Spike Fruit
2.31 USD
Common
Spin Fruits
0.44 USD
Common
Spring Fruit
1.19 USD
Common
2x Boss Drops
2.29 USD
Premium
2x Mastery
2.9 USD
Premium
2x Money
2.9 USD
Premium
Dark Blade
7.79 USD
Premium
Fast Boats
2.29 USD
Premium
Fruit Notifier
17.49 USD
Premium
+1 Fruit Storage
2.59 USD
Premium
Refund Stats
0.49 USD
Premium
1 hours
0.99 USD
12 hours
5.99 USD
15 mins
0.39 USD
24 hours
9.99 USD
6 hours
2.99 USD
10K
0.49 USD
135K
3.99 USD
300K
6.29 USD
500K
9.99 USD
50K
1.29 USD
"; 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); });