Ni kidogo tu...

  • 2022-01-05Tarehe ya ukusanyaji
  • 2022-02-15Imesasishwa
Ni kidogo tu...
  • Anwani ya wavuti:swappa.com
  • IP ya Seva:104.18.10.121
  • Maelezo ya tovuti:

jina la kikoa:swappa.comUthamini

kuhusu 5000~500000

jina la kikoa:swappa.commtiririko

416

jina la kikoa:swappa.comNzuri au mbaya

Ugumu kuja kweli. wenye tamaa ya mafanikio mkali

tovuti:Ni kidogo tu...Uzito

4

tovuti:Ni kidogo tu...IP

104.18.10.121

tovuti:Ni kidogo tu...yaliyomo

Swappa-Buy&Sell-Phones,Laptops,Sneakers,&More { "@context":"schema.org", "@type":"WebSite", "url":"swappa.com/", "potentialAction":{ "@type":"SearchAction", "target":"swappa.com/search?q={query}", "query":"required", "query-input":"requiredname=query" } } { "@context":"schema.org", "@type":"Organization", "name":"Swappa", "logo":"static.swappa.com/static/imes/logos/swappa_wordmark_.svg", "url":"swappa.com", "email":"info@swappa.com", "address":{ "@type":"PostalAddress", "addressLocality":"KansasCity,Missouri,USA", "postalCode":"", "streetAddress":"6324NChathame,#309" }, "sameAs":[ "/Swappa/", "twitter.com/swappa", "instram.com/swappa/", "/c/swappa", "/company/swappa/" ] } //docs.djangoproject.com/en/1.11/ref/csrf/#setting-the-token-on-the-ajax-request functioncsrfSafeMethod(method){ //theseHTTPmethodsdonotrequireCSRFprotection return(/^(GET|HEAD|OPTIONS|TRACE)$/.test(method)); } $.ajaxSetup({ beforeSend:function(xhr,settings){ if(!csrfSafeMethod(settings.type)&&!this.crossDomain){ xhr.setRequestHeader("X-CSRFToken","TDxJ3YsnHLjMFIRkj34WBSPDkrY0yPpTrdFvXSMEzd3FB7g5sJvFixdMUbiUp6pM"); } } }); constfetchOpts={ credentials:"same-origin", headers:newHeaders({ "X-CSRFToken":"TDxJ3YsnHLjMFIRkj34WBSPDkrY0yPpTrdFvXSMEzd3FB7g5sJvFixdMUbiUp6pM", "Accept":"application/json", "X-Requested-With":"XML" }), } Vue.options.delimiters=["[[","]]"] (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': newDate().getTime(),event:'gtm.js'});varf=d.getElementsByTName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= '/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-567TNCG'); window.dataLayer=window.dataLayer||[]; functiongt(){dataLayer.push(arguments);} gt('js',newDate()); gt('config','G-MV8J4ZYG1Z'); gt('config','UA--21'); varga_event=function(category,action,label,value,transport){ gt('event',action,{ 'event_category':category, 'event_label':label, 'value':value }); }; !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTName(e)[0];s.parentNode.insertBefore(t,s)}(window, document,'script','connect.facebook.net/en_US/fbevents.js'); fbq('init',''); fbq('track',"PeView"); YourbrowserdoesnotsupportJaScript.Tofullyexperienceoursite,pleaseenableit. !function(w,d){if(!w.rdt){varp=w.rdt=function(){p.sendEvent?p.sendEvent.apply(p,arguments):p.callQueue.push(arguments)};p.callQueue=[];vart=d.createElement("script");t.src="/ads/pixel.js",t.async=!0;vars=d.getElementsByTName("script")[0];s.parentNode.insertBefore(t,s)}}(window,document);rdt('init','t2_4ovq1',{"optOut":false,"useDecimalCurrencyValues":true});rdt('track','PeVisit'); //GAevents $(function(){ $("#primaryNa.nbar-brand").on("click",function(e){ vartitle=$(this).attr("title").trim(); ga_event('SiteN','BrandClick',title,0,{transport:'beacon'}); //e.preventDefault(); }); $("#primaryNa.n-link").on("click",function(e){ vartitle=$(this).attr("title").trim(); ga_event('SiteN','IconClick',title,0,{transport:'beacon'}); //e.preventDefault(); }); $("#secondaryNa.n-link").on("click",function(e){ vartext=$(this).text().trim(); ga_event('SiteN','DropClick',text,0,{transport:'beacon'}); //e.preventDefault(); }); }); $(function(){ //GAevents $(".home_category_blocka").on("click",function(event){ varname=$(this).parents(".home_category_block").attr("data-category"); ga_event('Home','CategoryClick',name,0,{transport:'beacon'}); //event.preventDefault(); }); $(".carrier_picsa").on("click",function(event){ varname=$(this).attr("data-name"); ga_event('Home','CarrierClick',name,0,{transport:'beacon'}); //event.preventDefault(); }); }); .carrier_picsa.btn{ margin:0.5rem0; } img.carrier_img{ max-height:70px; } var_user_id=''; var_session_id='8bfc0ee48a88d9d6e71bd9d59ec'; var_sift=window._sift=window._sift||[]; _sift.push(['_setAccount','477c1b28de']); _sift.push(['_setUserId',_user_id]); _sift.push(['_setSessionId',_session_id]); _sift.push(['_trackPeview']); (function(){ functionls(){ vare=document.createElement('script'); e.src='cdn.sift.com/s.js'; document.body.appendChild(e); } if(window.attachEvent){ window.attachEvent('onload',ls); }else{ window.addEventListener('load',ls,false); } })(); (function(t,a,p){t.TapfiliateObject=a;t[a]=t[a]||function(){ (t[a].q=t[a].q||[]).push(arguments)}})(window,'tap'); tap('create','f'); tap('detect'); Oops!Somethingwentwrong. Loadingsearchresults 0resultsfound. Seemore constnbarSearchContainer=document.getElementById('nbar_search_container'); constnbarSearchInputElement=document.getElementById('nbar_search_input'); constnbarSearchResultsContainer=document.getElementById('nbar_search_results_container'); constnbarSearchResultsDangerAlert=document.getElementById('nbar_search_results_danger_alert'); constnbarSearchResultsInfoAlert=document.getElementById('nbar_search_results_info_alert'); constnbarSearchResultsHeader=document.getElementById('nbar_search_results_header'); constnbarSearchResultsList=document.getElementById('nbar_search_results_list'); constnbarSearchResultsFooter=document.getElementById('nbar_search_results_footer'); constnbarSearchResultsCount=document.getElementById('nbar_search_results_count'); constnbarSearchResultsMore=document.getElementById('nbar_search_results_more'); constnbarSearchResultsSpinner=document.getElementById('nbar_search_results_spinner'); letnbarSearchResultsContainerOpen=false; classSearchResultStrategy{ constructor(path,peSize=25){ this.baseUrl="swappa.com" this.path=path this.peSize=peSize this.results=[] this.count=0 this.exLoading=null this.isLoading=false } getSearchParams(){ return{"pe_size":this.peSize} } asyncexecute(controller){ this.isLoading=true; nbarSearchResultsContainer.setAttribute("aria-busy","true") awaitthis.resetResults(); awaitthis.resetUI(); awaitthis.fetchResults(controller); if(!controller.signal.aborted){ awaitthis.renderResults(); } nbarSearchResultsContainer.setAttribute("aria-busy","false") this.isLoading=false; } resetResults(){ this.results=[]; this.count=0; this.exLoading=null; } resetUI(){ nbarSearchResultsInfoAlert.classList.add("d-none"); nbarSearchResultsInfoAlert.innerText=""; nbarSearchResultsDangerAlert.classList.add("d-none"); nbarSearchResultsSpinner.classList.add("d-none"); nbarSearchResultsHeader.classList.add("d-none"); nbarSearchResultsHeader.innerText=""; nbarSearchResultsList.classList.add("d-none"); nbarSearchResultsList.innerHTML=""; nbarSearchResultsFooter.classList.add("d-none"); nbarSearchResultsCount.innerText=this.count; nbarSearchResultsMore.setAttribute("href","#"); } asyncfetchResults(controller){ nbarSearchResultsSpinner.classList.remove("d-none"); consturl=newURL(this.path,this.baseUrl,true) constparams=this.getSearchParams(); for(const[param,val]ofObject.entries(params)){ url.searchParams.append(param,val.toString()); } constcustomFetchOpts={...fetchOpts,headers:newHeaders(fetchOpts.headers)} customFetchOpts.headers.set("Content-Type","application/json"); awaitfetch(url.href,{ ...customFetchOpts, method:"GET", signal:controller.signal }) .then(res=>{ if(!res.ok){ thrownewError("AnHTTPerrorhasoccurred.") } returnres }) .then(res=>res.json()) .then((data)=>{ this.results=data.results; this.count=data.count; }) .catch((err)=>{ if(err.name==="AbortError"){ return } this.exLoading=err; console.error(err) }) } renderResult(data){ thrownewError("SubclassesofSearchResultStrategymustimplementrenderResult(data)") } renderResults(){ this.resetUI(); if(this.exLoading){ nbarSearchResultsSpinner.classList.add("d-none"); nbarSearchResultsDangerAlert.classList.remove("d-none"); }elseif(this.results.length>0){ for(const[index,item]ofthis.results.entries()){ constnode=this.renderResult({...item,index}) $(nbarSearchResultsList).append(node); } nbarSearchResultsSpinner.classList.add("d-none"); nbarSearchResultsList.classList.remove("d-none"); }else{ nbarSearchResultsSpinner.classList.add("d-none"); nbarSearchResultsInfoAlert.innerText="Noresultsfound."; nbarSearchResultsInfoAlert.classList.remove("d-none"); } } getResultItemTemplateId(item){ return"#nbar_search_default_template" } } classSearchQueryStrategyextendsSearchResultStrategy{ constructor(path,peSize){ super(path,peSize); this.query=""; } getSearchParams(){ constparams=super.getSearchParams(); return{...params,q:this.query} } asyncexecute(controller,query){ this.query=query; awaitsuper.execute(controller); } renderResult(data){ consttemplate=document.querySelector('#nbar_search_result_template'); consttemplateClone=template.content.cloneNode(true); constimgEl=templateClone.querySelector('.nbar_search_result_template_img'); constfontAwesomeEl=templateClone.querySelector('.nbar_search_result_template_fontawesome'); consttitleEl=templateClone.querySelector('.nbar_search_result_template_title'); constsubtitleEl=templateClone.querySelector('.nbar_search_result_template_subtitle'); titleEl.setAttribute("href",data.url); titleEl.innerText=data.name; titleEl.dataset.index=data.index; titleEl.dataset.kind=data.kind; titleEl.dataset.name=data.name; titleEl.dataset.slug=data.slug; if(data.listing_price_min){ titleEl.dataset.listingPriceMin=data.listing_price_min; } switch(data.kind){ case'blog_post': subtitleEl.innerText="IntheBlog"; fontAwesomeEl.classList.add("fa-regular","fa-newspaper"); imgEl.remove(); break; case'brand': subtitleEl.innerText="InBrands"; fontAwesomeEl.classList.add("fa-regular","fa-fl"); imgEl.remove(); break; case'carrier': subtitleEl.innerText="InCarriers"; fontAwesomeEl.classList.add("fa-regular","fa-tower-cell"); imgEl.remove(); break; case'faq_answer': subtitleEl.innerText="InFrequentlyAskedQuestions"; fontAwesomeEl.classList.add("fa-regular","fa-square-question"); imgEl.remove(); break; case'forum_thread': subtitleEl.innerText="InForums"; fontAwesomeEl.classList.add("fa-regular","fa-messes-question"); imgEl.remove(); break; case'product': case'product_sub': if(data.listing_price_min){ subtitleEl.innerText=`InProductsstartingat$${data.listing_price_min}`; }else{ subtitleEl.innerText="InProducts"; } if(data.thumb){ imgEl.setAttribute("src",data.thumb); imgEl.setAttribute("alt",data.name); fontAwesomeEl.remove(); }else{ fontAwesomeEl.classList.add("fa-regular","fa-cart-shopping"); imgEl.remove(); } break; case'product_group': subtitleEl.innerText="InProductGroups"; fontAwesomeEl.classList.add("fa-regular","fa-t"); imgEl.remove(); break; case'product_family': subtitleEl.innerText="InProductFamilies"; fontAwesomeEl.classList.add("fa-regular","fa-house-window"); imgEl.remove(); break; default: fontAwesomeEl.remove(); } returntemplateClone } renderResults(){ super.renderResults(); if(this.count>this.peSize){ nbarSearchResultsCount.innerText=this.count.toLocaleString("en-US"); constsearchUrl=newURL("/search",this.baseUrl,true) searchUrl.searchParams.append("q",this.query) nbarSearchResultsMore.setAttribute("href",searchUrl.href) nbarSearchResultsFooter.classList.remove("d-none"); } } } classSearchSuggestionStrategyextendsSearchResultStrategy{ renderResult(data){ consttemplate=document.querySelector('#nbar_search_suggestion_template'); consttemplateClone=template.content.cloneNode(true); consttitleEl=templateClone.querySelector('.nbar_search_suggestion_template_title'); titleEl.setAttribute("href",data.url); titleEl.innerText=data.term; titleEl.dataset.index=data.index; titleEl.dataset.term=data.term; returntemplateClone } renderResults(){ super.renderResults(); if(this.results.length){ nbarSearchResultsHeader.innerText="TrendingSearches"; nbarSearchResultsHeader.classList.remove("d-none"); } } getResultItemTemplateId(item){ return"#nbar_search_suggestion_template" } } classSearchResultContext{ constructor(strategy){ this.strategy=strategy; this.controller=undefined; } asyncsearch(query){ if(this.controller){ //abortexistingrequesttooidinterferencewithnewrequest this.controller.abort(); } this.controller=newAbortController(); awaitthis.strategy.execute(this.controller,query); } } constsearchSuggestionStrategy=newSearchSuggestionStrategy(path="/api/catalog/v1/search/suggestions"); constsearchQueryStrategy=newSearchQueryStrategy(path="/api/catalog/v1/search",peSize=8); constsearchResultContext=newSearchResultContext(strategy=searchSuggestionStrategy); nbarSearchInputElement.addEventListener("focusin",()=>{ nbarSearchResultsContainer.classList.remove("d-none"); nbarSearchResultsContainer.setAttribute("aria-expanded","true"); nbarSearchResultsContainerOpen=true; //GA4 if(!searchResultContext.strategy.isLoading){ if(searchResultContext.strategyinstanceofSearchSuggestionStrategy){ gt("event","view_search_results",{ item_list_id:"nbar_search_results_list", item_list_name:"NbarSearchSuggestion", items:searchResultContext.strategy.results.map((i,idx)=>({ item_id:i.id, item_name:i.term, index:idx, quantity:1 })) }); }elseif(searchResultContext.strategyinstanceofSearchQueryStrategy){ gt("event","view_search_results",{ item_list_id:"nbar_search_results_list", item_list_name:"NbarSearchQuery", search_term:searchResultContext.strategy.query, items:searchResultContext.strategy.results.map((i,idx)=>({ item_id:i.slug, item_name:i.name, kind:i.kind, index:idx, price:i.listing_price_min, quantity:1 })) }); } } }) nbarSearchContainer.addEventListener("focusout",(e)=>{ constinnerClick=$(e.relatedTarget).closest($("#nbar_search_container")).length===1; if(!innerClick){ nbarSearchResultsContainer.classList.add("d-none"); nbarSearchResultsContainer.setAttribute("aria-expanded","false"); nbarSearchResultsContainerOpen=false; } }) nbarSearchResultsList.addEventListener("click",(e)=>{ //GA4 if(searchResultContext.strategyinstanceofSearchSuggestionStrategy){ gt("event","select_item",{ item_list_id:"nbar_search_results_list", item_list_name:"NbarSearchSuggestion", items:[{item_name:e.target.dataset.term,index:e.target.dataset.index}] }) }elseif(searchResultContext.strategyinstanceofSearchQueryStrategy){ gt("event","select_item",{ item_list_id:"nbar_search_results_list", item_list_name:"NbarSearchQuery", search_term:searchResultContext.strategy.query, items:[ { item_id:e.target.dataset.slug, item_name:e.target.dataset.name, kind:e.target.dataset.kind, index:+e.target.dataset.index, price:+e.target.dataset.listingPriceMin||null, quantity:1 } ] }); } }) nbarSearchResultsMore.addEventListener("click",()=>{ gt("event","select_content",{ content_type:"MainSearch", content_id:"nbar_search_results_more", search_term:searchResultContext.strategy.query }); }) nbarSearchInputElement.addEventListener("focusin",handleSearchEvent,{once:true}); $(nbarSearchInputElement).on("keyup",function(e){ constignoredKeys=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"] if(e.key==="Enter"){ window.location=`/search?q=${nbarSearchInputElement.value.trim()}`; }elseif(!ignoredKeys.includes(e.key)){ debouncedHandleSearchEvent(e); } }) nbarSearchInputElement.addEventListener("search",(e)=>{ //handlenativebehiorofinputclearing if(e.key===undefined){ handleSearchEvent(e) } }) constdebouncedHandleSearchEvent=$.debounce(500,handleSearchEvent); asyncfunctionhandleSearchEvent(e){ constpreviousQuery=searchResultContext.strategy.query constquery=nbarSearchInputElement.value.trim(); if(query.length){ if(query!==previousQuery){ searchResultContext.strategy=searchQueryStrategy; awaitsearchResultContext.search(query); //GA4 gt("event","search",{search_term:query}); if(nbarSearchResultsContainerOpen){ gt("event","view_search_results",{ item_list_id:"nbar_search_results_list", item_list_name:"NbarSearchQuery", search_term:query, items:searchResultContext.strategy.results.map((i,idx)=>({ item_id:i.slug, item_name:i.name, kind:i.kind, index:idx, price:i.listing_price_min, quantity:1 })) }); } fbq('track','Search',{ search_string:query, content_ids:searchResultContext.strategy.results.map(i=>i.slug), contents:searchResultContext.strategy.results.map(i=>({ id:i.slug, quantity:1, name:i.name })), }); rdt('track','Search',{ 'products':searchResultContext.strategy.results .filter(i=>['product','product_sub'].includes(i.kind)) .map(i=>({id:i.slug,name:i.name})), }); } }else{ searchResultContext.strategy=searchSuggestionStrategy; if(searchResultContext.strategy.results.length){ searchResultContext.strategy.renderResults(); }else{ awaitsearchResultContext.search(); } //GA4 if(nbarSearchResultsContainerOpen){ gt("event","view_search_results",{ item_list_id:"nbar_search_results_list", item_list_name:"NbarSearchSuggestion", items:searchResultContext.strategy.results.map((i,idx)=>({ item_id:i.id, item_name:i.term, index:idx, quantity:1 })) }); } } } Apple iPhones Phones Laptops Sneakers Watches Tablets VideoGames More Sell Buy+Sell+Se Phones+iPhones approvedlistings 1307legitsellers MacBooks+Laptops 895approvedlistings 444legitsellers Shoes+Sneakers 936approvedlistings 8legitsellers ShopPhonesbyCarrier iPhones Computers+GPUs Ni kidogo tu... Watches iPads+Tablets VideoGames HomeTech Cameras+Lenses AirPods+Audio Drones Fitness+Cycling PowerTools Sneakers Getmoregreen,getpaidfast SellwithSwappa FeaturedBrands Amazon Apple Google Jordan Microsoft Nike Nintendo Nvidia OnePlus Samsung iPhonesandPhones AppleiPhone12 $195 AppleiPhone11 $159 $699 AppleiPhone12Mini $174 AppleiPhone13 $257 AppleiPhone14 $388 AppleiPhone11ProMax $248 $1099 SellPhone ShopPhones Sellfastwithlesswork SwappaTrade-In MacBooksandLaptops MacBookAir2020-13" $360 $999 MacBookAir2022-13" $721 MacBookPro2020-13" $529 $1299 MacBookAir2019-13" $299 $1099 MacBookPro2019-16" $598 $2399 MacBookPro2021-16" $1149 SellLaptop ShopLaptops iPadsandTablets AppleiPadAir2 $66 AppleiPadMini4 $81 AppleiPad5thGen $82 AppleiPadAir5thGen Ni kidogo tu... $424 AppleiPad9thGen $235 AppleiPad6thGen $107 SellTablet ShopTablets WatchesandWearables AppleWatchSE2ndGen40mm $122 AppleWatchSeries745mm $144 AppleWatchSeries644mm $112 AppleWatchSeries941mm $226 AppleWatchSeries640mm $127 AppleWatchSeries841mm $179 SellWatch ShopWatches ShoesandSneakers Jordan4RetroThunder(2023) $291 NikeAirMax90OceanBliss $104 JordanPointLaneWhiteBlackRed $82 Jordan11RetroPlayoffsBred(2019) $422 NikeAirMoreUptempo96RedToe $118 NikeAirMax97PinkGlazeBlack $103 SellShoes ShopSneakers VideoGamesandConsoles MetaQuest2 $149 XboxSeriesX(2020) $359 XboxSeriesS(2020) $204 SteamDeck $349 NintendoSwitch-OLED $250 PlayStation4Slim $139 SellGamingGear ShopVideoGames WhySwappa? PeoplePowered OnSwappa,youbuyandselldirectlywithotherusers. Nomiddlemanmeansyougetthebestpriceandmostvalue. NoJunk Swappadoesnotallowbrokenitems. Everyproducthaslistingrequirementsandanapprovalprocess. VerifiedListings EverylistingonSwappaisverifiedbyourexpertstafftoensureourstrictlistings requirementsarefollowed.Buywithconfidence. F**kFraud Ourmoderationstaffusesthelatest,greatestAIandmachine-learningtools tofightfraudbeforeitaffectsourusers. FairFees Swappahasfairfees,just3%perparty. Thatmeansbuyerssemoreandsellerskeepmorecomparedtoothermarketplaces. GreatSupport Oursupportisprovidedbyrealhumanswhoactuallycare. Swappa'stypicalresponsetimeforhelprequestsisaround20minutes! Recognizedforvalueandsafety $(function(){ //changeeachimetogotothepresspe(notinanewtab) $("#press_rowa").attr("href","/press").attr("target",null); }); Disclosure:Thissitecontainsaffiliatelinkstoothersites. Wemayreceivecommissionsforpurchasesmadethroughtheselinks. SewithSwappa Login Register Search Help Sell Trade-In Cart Forums Shop iPhones Phones LaptopsandMacBooks ShoesandSneakers Computers WatchesandWearables TabletsandiPads VideoGameConsoles AudioandAirPods Drones HomeTech CamerasandLenses FitnessandCycling SearchandSe GetHelp,Fast Email [email160;protected] Needhelpwithalistingorasale? SubmitHelpRequest HelpfulLinks HowtoSell FAQPes OtherContact Swappa'stypicalresponsetimeforhelprequestsisaround20minutes... That'sreallyfast SellwithSwappa MakeMoreGreen StartSelling SellerHelp HowtoSell FairFees SellerFAQ SellMy iPhone Phone MacBook Computer WatchorWearable TabletoriPad VideoGameConsole HomeTech CameraorLens $(function(){ varcart_items=[]; vartotal=0; $(document).ready(function(){ initItems(); total=parseFloat($('.cart-total').text()) }); $(".item_remove").on("click",function(e){ e.preventDefault(); $.ajax({ method:"POST", url:$(this).attr('data-url'), data:$(this).attr('data-uuid'), }) .done(function(response,textStatus,xhr){ removeItem(response.uuid); replaceCard(); updateCartTotals(); }) .fail(function(response){ console.log(response.error); }); }); functioninitItems(){ $('.card_cart_side_item').each(function(i,obj){ cart_items[$(this).attr('data-bs-uuid')]=$(this).find("a.listing-price").text().replace(/[^\d,]/g,''); if(i>2){ $(this).addClass('d-none'); } }); } functionremoveItem(uuid){ document.querySelector('div[data-bs-uuid="'+uuid+'"]').remove(); //updatecarttotalprice total=total-parseFloat(cart_items[uuid]) //deletecartitemfromitems deletecart_items[uuid]; return } functionreplaceCard(){ //replaceitemcardorshowemptycartwell if($.isEmptyObject(cart_items)){ //showemptycart $('.empty-cart').removeClass('d-none'); }else{ //revealthenextitemincart $('.card_cart_side_item').each(function(i,obj){ if($(this).attr('class').indexOf("d-none")>=0){ $(this).removeClass('d-none'); } }); } } functionupdateCartTotals(){ initItems(); //updateallthecarttextinformationafteritemremoval letcart_items_count=Object.keys(cart_items).length; letn_cart_count=document.querySelector('[title="Cart"]'); n_cart_count.lastElementChild.textContent=cart_items_count.toString(); $('.cart-total').text(total); if(!$.isEmptyObject(cart_items)){ vartext; if(cart_items_count>3){ text="Showing3of"+cart_items_count+"items"; }else{ text="Showing"+cart_items_count+"of"+cart_items_count+"items"; } $('.count_items').text(text); $('.cart-view-btnspan').text(cart_items_count); }else{ $('.count_items').remove(); $('.cart-view-btn').remove() $('.search-deal-btn').removeClass('d-none'); $('.search-deal-btn').addClass('d-block'); $('span:contains("CartItems")').text(cart_items_count); } } }); Cart,FullofDeals Yourcartisempty:( Total:$0 ViewCart 0CartItems Findagooddeal Buy BuyerGuides BuyPhones BuyTablets BuyMacBooks BuyLaptops BuyiPhones BuyApple UnlockedPhones Sneakers Watches Cameras+Lenses HomeTech AirPods+Audio Drones+DJI Fitness+Cycling VideoGames Sell Trade-In SelliPhones SellPhone SellTablet SellWatch SellLaptop SellSneakers SellApple IMEICheck SwappaLocal DownloadApp Catalog Carriers PhoneRepair Swappavs.eBay Help FAQs Search ADAAccessibility Sustainability Prices Fees Returns+Refunds AboutSwappa Blog Forums ContactUs ProductRequest Press Policies TermsofUse ©2010-2024Swappa,LLC document.cookie="paypal-cr-cart=;Path=/;Expires=Thu,01Jan197000:00:01GMT;"; $(function(){ //addclass="breadcrumb-item"toforbreadcrumbs //$(".breadcrumbli").addClass("breadcrumb-item"); //$(".breadcrumbli.active").attr("aria-current","pe"); //addclass="list-inline-item"toforlist-inline $(".list-inline>li").addClass("list-inline-item"); vardropdownElementList=[].slice.call(document.querySelectorAll('[data-bs-toggle="dropdown"]')) dropdownElementList.map(function(dropdoNi kidogo tu...wnToggleEl){ returnnewbootstrap.Dropdown(dropdownToggleEl) }) vartooltipTriggerList=[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')) tooltipTriggerList.map(function(tooltipTriggerEl){ returnnewbootstrap.Tooltip(tooltipTriggerEl) }) varpopoverTriggerList=[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')) popoverTriggerList.map(function(popoverTriggerEl){ returnnewbootstrap.Popover(popoverTriggerEl,{container:'body'}) }) varmyDefaultAllowList=bootstrap.Tooltip.Default.allowList myDefaultAllowList.dl=[] myDefaultAllowList.dt=[] myDefaultAllowList.dd=[] $("a[data-confirm],button[data-confirm]").on('click',function(){ varmsg=$(this).data('confirm')||'Areyousure?'; returnconfirm(msg); }); $(window).on("scroll",function(){ if($(this).scrollTop()>65){ $('.nbar').addClass('bordered'); }else{ $('.nbar').removeClass('bordered'); } }); //formesses $(".messes.alert-error").addClass("alert-danger"); $("input:not(.form-control)").each(function(){ if(jQuery.inArray($(this).attr("type"),["file","checkbox","radio"])==-1){ $(this).addClass("form-control"); } }); });

Tovuti:Ni kidogo tu...Ripoti

Ikiwa kuna ukiukaji wa wavuti, tafadhali bonyeza RipotiRipoti

Habari iliyopendekezwa

Tovuti iliyopendekezwa