PageSourceSearch

https://static.hobie.com/epcc/cartoverlay.js?v=kiFYYk12m

js hobie.com collected 2026-10-02 05:00:35 UTC 3,832 bytes, 110 lines download raw bytes

1/* var globalUrl = hobie_url;
2var latestSKU = localStorage.getItem('sku');
3var displayImg = ''; */
4
5//set cookie function Rajib Karthik1
6/* var setCookies = (cname, cvalue, exdays = 60) => {
7  var d = new Date();
8  d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1000);
9  var expires = 'expires=' + d.toGMTString();
10  document.cookie = cname + '=' + cvalue + ';' + expires + ';path=/';
11}; */
12
13
14//get cookie function
15/* var getCookie = (cname) => {
16  var name = cname + '=';
17  var decodedCookie = decodeURIComponent(document.cookie);
18  var ca = decodedCookie.split(';');
19  for (var i = 0; i < ca.length; i++) {
20    var c = ca[i];
21    while (c.charAt(0) == ' ') {
22      c = c.substring(1);
23    }
24    if (c.indexOf(name) == 0) {
25      return c.substring(name.length, c.length);
26    }
27  }
28  return '';
29}; */
30
31//This function fetch the product data
32/* async function getPopUpData(){
33  latestSKU = localStorage.getItem('sku');
34  if (!latestSKU) {
35    alert('unable to get Product details please try again');
36  } else {
37    console.log(latestSKU);
38    const getCart_reference = await getCookie('cart_reference');
39    console.log('getCart_reference   ::: ', getCart_reference);
40    if (getCart_reference !== '') {
41      getCartOverlay(getCart_reference);
42    } else {
43      console.log('something went wrong');
44    }
45  }
46};
47
48
49var getCartOverlay = async (cart_reference) => {
50  console.log('cart');
51  var cartRES;
52  var cart_subTotal;
53  var globalUrl = hobie_url;
54  await fetch(globalUrl + 'cartoverlay/', {
55    method: 'POST',
56    headers: {
57      Accept: 'application/json',
58      'Content-Type': 'application/json',
59    },
60    body: JSON.stringify({
61      cart_reference: cart_reference,
62    }),
63  })
64    .then((data) => data.json())
65    .then(async (data) => {
66      cartRES = await data;
67      prod_reco(cartRES.product_recommendation);
68      lastSelectedItem(cartRES.cart_details.data);
69      console.log('cartRES.cart_details.data.length = ',cartRES.cart_details.data.length);
70      console.log('cartRES.cart_details.meta.display_price.without_tax.amount = ',cartRES.cart_details.meta.display_price.without_tax.amount);
71      $("#item_numbers").text(cartRES.cart_details.data.length+ ' Items');
72      $("#subtotal").text('$ ' + cartRES.cart_details.meta.display_price.without_tax.amount);
73      $('#add-to-cart-modal').modal('show');
74    });
75};
76
77var prod_reco = (data) => {
78  console.log(data.items);
79  var item = '';
80  const items = data.items;
81  items.forEach((element) => {
82    item += `<div class="col-md-6">
83        <img src="${element.image}" class="d-block mx-auto my-0 w-75" />
84        <a href="#" class="text-uppercase din-2014-narrow" 
85                                        style="font-size: 1.2rem;"><u>${element.name}</u></a>&nbsp;&nbsp;<span
86                                        class="text-uppercase din-2014-narrow text-darker-gray"
87                                        style="font-size: 1.2rem;">${element.retail_price.formatted}</span>
88                                    <br />
89                                    <a href="#" data-sku="${element.sku}" data-quantity="1" class="text-orange text-uppercase din-2014-narrow add-to-cart-button"
90                                        style="font-size: 1.2rem;">Add to Cart</a>
91                                        </div>
92        `;
93  });
94  document.getElementById('cartoverlay_products').innerHTML = item;
95};
96
97var lastSelectedItem = (data) => {
98  data.forEach((element) => {
99    if (element.sku === latestSKU) {
100      displayImg = element.image.href;
101      document.getElementById('latest_img').src = element.image.href;
102      document.getElementById('prod_name').innerHTML = element.name;
103
104    } else {
105      console.log('no');
106    }
107  });
108};
109 */
110

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.