This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function enviarScript(scriptText){ | |
let main = document.querySelector("#main"), | |
textarea = main.querySelector(`div[contenteditable="true"]`) | |
const largo = 30 | |
if(!textarea) throw new Error("No hay una conversación iniciada") | |
let n = 0; | |
let sendButton = main.querySelector(`[data-testid="send"]`) || main.querySelector(`[data-icon="send"]`); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sections": { | |
"announcement": { | |
"label": "Anuncio", | |
"close": "Cerrar" | |
}, | |
"lookbook": { | |
"title": { | |
"product": "Producto", | |
"text": "Texto" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"less.compile": { | |
"compress": false, | |
"out": "./$1.css.liquid", | |
"autoprefixer": "> 5%, last 2 Chrome versions, not ie 6-9" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Llamaría al SDK de Shopify si se requiere | |
*/ | |
// require "vendor/autoload.php"; | |
// Esta llave la genera Shopify si el webhook se genera desde el administrador | |
define('SHOPIFY_APP_SECRET', 'a9f210ba885cf3cef74fe4b562a1c037f2e9f5XXXXXXXX'); | |
function verify_webhook($data, $hmac_header) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Check if elements are visible in the current viewport | |
* If is visible add a class in-view else remove | |
*/ | |
function isElementInViewport(el) { | |
var rect = el.getBoundingClientRect(); | |
return ( | |
rect.top >= 0 && | |
rect.left >= 0 && | |
rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Info of ip get with https://ipinfo.io/ service | |
* Free service have 50k request/month | |
* If have a user need use the url https://ipinfo.io/json?<YourToken> | |
*/ | |
/* | |
* Function to create a cookie, need | |
* cname = Name of cookie |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if section.settings.richtext_product %} | |
<div class="product__policies"> | |
{{ section.settings.richtext_product }} | |
</div> | |
{% endif %} | |
{% if section.settings.tags_tallas != blank %} | |
{% for tag in product.tags %} | |
{% if tag contains section.settings.tags_tallas %} | |
{% if section.settings.image_tallas %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="brands-page"> | |
{% if section.settings.display_brands %} | |
<div class="brands-container container mb__40"> | |
<div class="brands-row row"> | |
{% for block in section.blocks %} | |
{% if block.settings.brand_link != blank %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- comment -%} | |
------- Swatch ----------- | |
{%- endcomment -%} | |
{%- liquid | |
assign pos360 = '' | |
assign optVr1 = '' | |
assign imgsPos = '' | |
assign imgsPos0 = 0 | |
assign imgsPos1 = 0 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if product.type == "Celular" %} | |
<div class="product-form__controls-group"> | |
<div class="product-form__item"> | |
<label for="texto">Graba tu nombre</label> | |
<input type="text" id="texto" name="properties[Texto]"> | |
</div> | |
</div> | |
{% else %} | |
<div class="product-form__controls-group"> | |
<div class="product-form__item"> |
NewerOlder