1/*<![CDATA[*/ 2(function() { 3 var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js'; 4 var shopify_options = { 5 "product": { 6 "iframe": false, 7 "styles": { 8 "product": { 9 "@media (min-width: 601px)": { 10 "max-width": "calc(25% - 20px)", 11 "margin-left": "20px", 12 "margin-bottom": "50px" 13 }, 14 "text-align": "left" 15 }, 16 "button": { 17 "font-family": "Proxima Nova!important", 18 "font-weight": "bold", 19 "font-size": "14px", 20 "padding": "10px", 21 "line-height": "18px", 22 "border": "3px solid #fd4703", 23 "background-color": "#fd4703", 24 "color": "#fff", 25 "min-width": "initial", 26 "margin-top": "-20px!important", 27 "border-radius": "0px", 28 "width": "100%", 29 "max-width": "175px", 30 "text-transform": "uppercase", 31 ":hover": { 32 "color": "#fff", 33 "border-color": "#c82600", 34 "background-color": "#c82600", 35 }, 36 ":focus": { 37 "color": "#fff", 38 "border-color": "#c82600", 39 "background-color": "#c82600", 40 "outline": "none" 41 } 42 }, 43 "quantityInput": { 44 "font-size": "14px", 45 "padding-top": "15px", 46 "padding-bottom": "15px" 47 } 48 }, 49 "buttonDestination": "modal", 50 "contents": { 51 "img": false, 52 "title": false, 53 "price": false, 54 "options": false 55 }, 56 "text": { 57 "button": "BUY NOW" 58 }, 59 "googleFonts": [ 60 "Montserrat" 61 ] 62 }, 63 "productSet": { 64 "styles": { 65 "products": { 66 "@media (min-width: 601px)": { 67 "margin-left": "-20px" 68 } 69 } 70 } 71 }, 72 "modalProduct": { 73 "iframe": false, 74 "contents": { 75 "img": false, 76 "imgWithCarousel": true, 77 "button": false, 78 "buttonWithQuantity": true 79 }, 80 "styles": { 81 "product": { 82 "@media (min-width: 601px)": { 83 "max-width": "100%", 84 "margin-left": "0px", 85 "margin-bottom": "0px" 86 } 87 }, 88 "button": { 89 "font-family": "Proxima Nova!important", 90 "font-weight": "bold", 91 "font-size": "14px", 92 "padding-top": "15px", 93 "padding-bottom": "15px", 94 "text-transform": "uppercase", 95 ":hover": { 96 "background-color": "#e44003" 97 }, 98 "background-color": "#fd4703", 99 ":focus": { 100 "background-color": "#e44003" 101 }, 102 "padding-left": "25px", 103 "padding-right": "25px" 104 }, 105 "quantityInput": { 106 "font-size": "14px", 107 "padding-top": "15px", 108 "padding-bottom": "15px" 109 } 110 }, 111 "googleFonts": [ 112 "Montserrat" 113 ], 114 "text": { 115 "button": "Add to cart" 116 } 117 }, 118 "cart": { 119 // "iframe": false, 120 "styles": { 121 "button": { 122 "font-family": "Proxima Nova!important", 123 "font-weight": "bold", 124 "font-size": "14px", 125 "padding-top": "15px", 126 "padding-bottom": "15px", 127 "text-transform": "uppercase", 128 ":hover": { 129 "background-color": "#e44003" 130 }, 131 "background-color": "#fd4703", 132 ":focus": { 133 "background-color": "#e44003" 134 } 135 } 136 }, 137 "text": { 138 "total": "Subtotal", 139 "button": "Checkout" 140 }, 141 "googleFonts": [ 142 "Montserrat" 143 ] 144 }, 145 "toggle": { 146 "styles": { 147 "toggle": { 148 "font-family": "Proxima Nova!important", 149 "font-weight": "bold", 150 "background-color": "#fd4703", 151 ":hover": { 152 "background-color": "#e44003" 153 }, 154 ":focus": { 155 "background-color": "#e44003" 156 } 157 }, 158 "count": { 159 "font-size": "14px" 160 } 161 }, 162 "googleFonts": [ 163 "Montserrat" 164 ] 165 } 166 }; 167 168 169 if(shopify_enabled) { 170 if (window.ShopifyBuy) { 171 if (window.ShopifyBuy.UI) { 172 ShopifyBuyInit(); 173 } else { 174 loadScript(); 175 } 176 } else { 177 loadScript(); 178 } 179 } 180 181 function loadScript() { 182 var script = document.createElement('script'); 183 script.async = true; 184 script.src = scriptURL; 185 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(script); 186 script.onload = ShopifyBuyInit; 187 } 188 189 function ShopifyBuyInit() { 190 var client = ShopifyBuy.buildClient({ 191 domain: shopify_domain, 192 storefrontAccessToken: shopify_access_token 193 }); 194 195 ShopifyBuy.UI.onReady(client).then(function(ui) { 196 197 jQuery(".shopify-component").each(function() { 198 ui.createComponent('product', { 199 id: jQuery(this).attr("data-shopify-product-id"), 200 node: jQuery(this)[0], 201 moneyFormat: '%24%7B%7Bamount%7D%7D', 202 options: shopify_options, 203 }); 204 }); 205 }); 206 } 207})(); 208/*]]>*/
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.