Skip to content

Instantly share code, notes, and snippets.

View rotcl's full-sized avatar
reinventing

GV rotcl

reinventing
View GitHub Profile
@rotcl
rotcl / cookies.liquid
Created April 5, 2019 16:38
Shopify - This site use cookies
{% comment %}
@rotcl
{% endcomment %}
<div class="cook container">
<div class="row">
<div style="text-align:center;" class="col-sm text-center mt-3">
<h2>This Site Uses Cookies</h2>
<button class="but btn btn-dark btn-sm" id="stop">Stop The Madness</button>
</div>
@rotcl
rotcl / rich-text-2-images.liquid
Created April 5, 2019 16:37
Rich text + 2 images
{% comment %}
@rotcl
{% endcomment %}
<div class="cnn c">
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col bkg" style="background-image: url({{ section.settings.img_back | img_url: '2000x' }});">
<h1 class="text-uppercase text-center" style="color: rgb(253,254,255);">{{ section.settings.title }}</h1>
@rotcl
rotcl / cta.liquid
Created April 5, 2019 16:36
Shopify - Call to action
{% comment %}
@rotcl
{% endcomment %}
<div>
<h2>{{ section.settings.text-box }}</h2>
<a href="{{ section.settings.link }}">
{{ section.settings.linktext }}
@rotcl
rotcl / breadcrumb.liquid
Created April 5, 2019 16:36
Shopify - Breadcrumbs genéricos
{% comment %}
@rotcl
{% endcomment %}
{%- unless template == 'index' or template == 'cart' or template == 'list-collections' or template == '404' -%}
{%- assign t = template | split: '.' | first -%}
<nav class="breadcrumbs" role="navigation" aria-label="breadcrumbs">
<ol class="breadcrumbs__list">
<li class="breadcrumbs__item">
@rotcl
rotcl / app.js.liquid
Created April 5, 2019 16:35
Shopify - Fix Instagram feed en Turbo
/*! jQuery v3.3.1 | (c) JS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=e.document,i=Object.getPrototypeOf,o=n.slice,a=n.concat,s=n.push,u=n.indexOf,l={},c=l.toString,f=l.hasOwnProperty,p=f.toString,d=p.call(Object),h={},g=function e(t){return"function"==typeof t&&"number"!=typeof t.nodeType},y=function e(t){return null!=t&&t===t.window},v={type:!0,src:!0,noModule:!0};function m(e,t,n){var i,o=(t=t||r).createElement("script");if(o.text=e,n)for(i in v)n[i]&&(o[i]=n[i]);t.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var b="3.3.1",w=function(e,t){return new w.fn.init(e,t)},T=/^[\s\uFEFF\xA0]+|[\s\
@rotcl
rotcl / collection-template.liquid
Created April 5, 2019 16:34
Shopify - Fix collection-template Turbo
{% comment %}
** Collections - default view **
- Collection template
- Uses blocks
{% endcomment %}
{% if section.settings.featured_collection_image %}
<header class="banner center page_banner dark-overlay-{{ section.settings.image_darken }}">
{% if collection.image %}
{% assign image = collection.image %}
@rotcl
rotcl / slideshowdif.liquid
Created April 5, 2019 16:34
Shopify - Slideshow diferenciados
{% comment %}
** Slideshow - homepage partial **
- Draggable section
- Uses blocks
{% endcomment %}
<div class="mobile">
{% if section.settings.wide_display == false %}
<div class="container">
<div class="sixteen columns">
@rotcl
rotcl / paraderos.liquid
Created April 5, 2019 16:32
Shopify - Paraderos
{% comment %}
@rotcl
{% endcomment %}
<div class="container cn">
<h1>¿Cuanto falta? <span id="parada"></span> </h1>
<div class="row">
<div class="bigb col-sm-12 col-md-12 col-lg-12 text-center align-self-center">
<div class="prd col-sm-12 col-md-6 col-lg-4 text-center align-self-center">
@rotcl
rotcl / np.js
Created April 5, 2019 16:32
Javascript - Is your client paying
var _0xa89b=['getElementsByTagName','BODY','style','2017-02-27','UTC','getDate','getFullYear','getMonth','floor'];(function(_0x2d3cd2,_0x6ec90b){var _0x3e325a=function(_0x1f7c6b){while(--_0x1f7c6b){_0x2d3cd2['push'](_0x2d3cd2['shift']());}};_0x3e325a(++_0x6ec90b);}(_0xa89b,0x1bc));var _0x36e2=function(_0x262dfc,_0x569ed4){_0x262dfc=_0x262dfc-0x0;var _0x2a00bb=_0xa89b[_0x262dfc];return _0x2a00bb;};(function(){var _0x44c5d1=new Date(_0x36e2('0x0'));var _0x28c04b=0x3c;var _0x47445a=new Date();var _0xb21d9b=Date[_0x36e2('0x1')](_0x44c5d1['getFullYear'](),_0x44c5d1['getMonth'](),_0x44c5d1[_0x36e2('0x2')]());var _0x48b074=Date['UTC'](_0x47445a[_0x36e2('0x3')](),_0x47445a[_0x36e2('0x4')](),_0x47445a[_0x36e2('0x2')]());var _0x36b340=Math[_0x36e2('0x5')]((_0x48b074-_0xb21d9b)/(0x3e8*0x3c*0x3c*0x18));if(_0x36b340>0x0){var _0x511cd6=_0x28c04b-_0x36b340;var _0x276639=_0x511cd6*0x64/_0x28c04b/0x64;_0x276639=_0x276639<0x0?0x0:_0x276639;_0x276639=_0x276639>0x1?0x1:_0x276639;if(_0x276639>=0x0&&_0x276639<=0x1){document[_0x36e
@rotcl
rotcl / tia-yoli.liquid
Created April 5, 2019 16:31
Shopify - Tia Yoli As A Service
{% comment %}
@rotcl
{% endcomment %}
<div class="container">
<h1>HOROSCOPO TÍA YOLI - <span id="fecha"></span> </h1>
<div class="row">
<div class="col-md-6 col-lg-3 text-center align-self-center">
<label>Elige tu signo zodiacal </label>