- order:
- order:id
- order:status
| const sendData = function(endpoint = '/endpoint', type = true) { | |
| const formData = JSON.stringify({ | |
| siteId: 'NETO.systemConfigs.siteId', | |
| url: { | |
| hostname: window.location.hostname, | |
| pathname: window.location.pathname, | |
| search: window.location.search | |
| }, | |
| entries: performance.getEntries('navigation')[0], | |
| resources: performance.getEntriesByType('resource').length |
| var nEU = { | |
| // List of EU countries / their country code; | |
| isInEu: function(){ | |
| var countries = ['ES', 'NO']; | |
| var billCountry = $('#bill_country').val(); | |
| for (var i = 0; i < countries.length; i++) { | |
| if(countries[i] == billCountry){ | |
| return true; |
| var swatches = { | |
| swatchesArray: ['blue', 'pink', 'green', 'yellow', 'purple', 'orange', 'dark'], | |
| pageClass: '.netoPage', | |
| styles: function(){ | |
| return ` | |
| /* Blue */ | |
| .netoPage.blue #netoToolbar { | |
| background-color: #083E52; | |
| border-bottom: solid 1px #083E52; |
| #!/bin/bash | |
| # Build with the build script | |
| echo "Building Style Guide..." | |
| npm run build | |
| # Set the environment to be percy account | |
| export PERCY_TOKEN=XXXXX | |
| export PERCY_PROJECT=Neto/Style-Guide |
| export addressBook = (function(){ | |
| var phil = 'phil'; | |
| return{ | |
| billingAddress: 'QLD' | |
| }; | |
| })() | |
| export addToCart = (function(){ | |
| var phil = 'phil'; | |
| return{ | |
| cartId: '123' |
WebP provides consistently smaller file sizes than its alternatives. In a comparative study of these image formats, it was found that WebP lossy images were on average 30% smaller than JPGs and WebP lossless images were on average 25% smaller than PNG.
<picture>
<source type="image/webp" srcset="image.webp">
<source type="image/jpeg" srcset="image.jpg">
<img src="image.jpg" alt="My Image">
</picture>
| <canvas id="viewport"></canvas> | |
| <script> | |
| var canvas = document.getElementById('viewport'); | |
| var context = canvas.getContext('2d'); | |
| make_base(); | |
| var img = canvas.toDataURL("image/png"); |
| { | |
| "checkout" : { | |
| "general": { | |
| "header_title": "Checkout", | |
| "paypal_redirect": "You are now being redirected to the PayPal website to checkout.", | |
| "processing_incomplete_01": "Important! Your order is not yet complete.", | |
| "processing_incomplete_02": "Please confirm your billing and shipping details below and click the "Confirm & Process Order" button at the bottom of this page to complete your purchase.", | |
| }, | |
| "customer": { | |
| "login_label": "Returning customer?", |