Meet PITAKA at CES 2019

CES 2019 is coming around the corner, and plans for it? How about...

Meet the PITAKA founder team at CES on January 8-11, 2019 in Las Vegas!

EXHIBITION TIME: JANUARY 8-11,2019
SANDS HALLS A-D
Booth NO.: 40318

Come and be the first one to experience charging without thought and try our new series of wireless charging products, including

  1. “AirPower” that Really Exists
  2. Best Pal for AirPods
  3. MagEZ Dock Debut
  4. The long-expected MagEZ Bar & MagEZ Bar Pro
  5. And more…

Book a meet with us & Win a FREE Ticket to CES exhibition here: 

PITAKA at CES 2018

 

Older Post Newer Post


Leave a comment

Please note, comments must be approved before they are published

PITAKA at CES 2018

`; var arr = []; while (re.exec(str) != null) { arr.push(RegExp.$2 + "\n"); //如果是RegExp.$1那么匹配的就是href里的属性了! } console.log(arr); return arr; } function writeHtml(id) { $(".bar-reviews").prepend( `
`); var reviewStr = ""; $.getJSON( `https://api.yotpo.com/v1/widget/j1blj6TlfDCoOKkflErQWd5DDUoq2RdHIFub5Ug7/products/${id}/reviews.json?per_page=10`, function (data) { //data is the JSON string var reviewArr = data.response.reviews; // console.log(reviewArr); reviewArr.forEach(function (review) { var reviewStar = ""; for (count = 0; count < review.score; count++) { reviewStar += ""; } var date = new Date(review.created_at); var reviewDate = (date.getMonth() + 1) + '/' + date.getDate() + '/' + date.getFullYear(); reviewStr += `
  • ${reviewStar}
    ${reviewDate}
    ${review.title}
    ${review.content}
    by ${review.user.display_name}
  • `; }); $('.review-slider').html(`
      ${reviewStr}
    `); $('.bxslider').bxSlider({ mode: 'horizontal', speed: 1200, pager: false, auto: true, captions: true }); }); } const tagsDiv = document.querySelectorAll('.article_tag'); const productsDiv = document.querySelectorAll('.article_product'); const tags = []; const products = []; tagsDiv.forEach(divDom => { tags.push(divDom.innerHTML); }) $('.article_product').each(function () { const productInfo = {}; const input = $(this).find("input"); input.each(function () { productInfo[$(this).attr('name')] = $(this).val(); if($(this).data('value')){ productInfo.name = $(this).data('value'); } }) products.push(productInfo); }) var random_list = []; if (tags.length > 0) { for (let i = 0; i < tags.length; i++) { const tag = tags[i]; for (let j = 0; j < products.length; j++) { const product = products[j]; if (product.title == tag) { random_list.push(product); } } } } else { random_list = [{ imgSrc: "//cdn.shopify.com/s/files/1/1036/4113/t/41/assets/hotsale-pro-4.jpg", title: "MagEZ Mount Qi", url: "/products/magez-mount-qi?variant=29226345627718", id: "3882236018758" }, { imgSrc: "//cdn.shopify.com/s/files/1/1036/4113/t/41/assets/hotsale-pro-1.jpg", title: "MagEZ Case for iPhone 11 Pro Max", url: "/products/magez-case-for-iphone-11?variant=29601541095494", id: "3981118308422", }, { imgSrc: "//cdn.shopify.com/s/files/1/1036/4113/t/41/assets/hotsale-pro-2.jpg?v=822592823389350595", title: "Air Quad", url: "/products/air-quad?variant=31313040408646", id: "4380059140166" }, { imgSrc: "//cdn.shopify.com/s/files/1/1036/4113/t/41/assets/hotsale-pro-3.jpg", title: "MagEZ Juice", url: "/products/magez-juice?variant=31229978378310", id: "4347225047110" }] } const m = random_list.length; const n = Math.floor(Math.random() * m + 1); const product = random_list[n % m]; const product_name = product.name? product.name: product.title; const hotsaleHTML = `hotsale
    ${product_name}
    `; $(".sidebar-hotsale").html(hotsaleHTML); writeHtml(product.id);