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
{% set image = item.icon.one() %} | |
{% if image and image.extension == 'svg' %} | |
{{ svg(image, class='h-full w-auto')|replace({ | |
'^fill="#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})"$': 'class="fill-current"', | |
'^stroke="#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})"$"': 'class="stroke-current"' | |
})|raw }} | |
{% endif %} |
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
<section class="py-40p lg:py-60p"> {# .bg-gray #} | |
<div class="container px-20p mx-auto lg:text-center mb-30p lg:mb-60p"> | |
<div class="font-bold text-36p leading-111 text-blue"> | |
<h2>Heading</h2> | |
</div> | |
<div class="text-20p leading-150 lg:max-w-8/12 mt-20p mx-auto text"> | |
<p>Lead</p> | |
</div> | |
</div> | |
<div class="container px-20p mx-auto"> |
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
const drodels = (selector) => { | |
const load = (el) => { | |
if (el.classList.contains('is-dynamic')) { | |
customizeDroedel(el); | |
} | |
el.classList.add('is-loaded'); | |
}; | |
const scrollTop = window.pageYOffset || document.documentElement.scrollTop; | |
const targets = document.querySelectorAll(selector); |
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
$data3 = array ( | |
'fields' => | |
array ( | |
0 => | |
array ( | |
'name' => 'email', | |
'value' => '[email protected]', | |
), | |
), | |
'context' => |
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
$data2 = array ( | |
'fields' => | |
array ( | |
0 => | |
array ( | |
'name' => 'email', | |
'value' => '[email protected]', | |
), | |
), | |
'context' => |
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
1. Download MS Office Deployment Tool: | |
https://www.microsoft.com/en-us/download/details.aspx?id=49117 | |
2. Extract it to desktop | |
3. Rename one of the config files to 'configuration.xml' | |
and replace its content with: | |
``` | |
<Configuration> |
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
import Cookies from 'js-cookie'; | |
const subscribe = formId => { | |
const nextStep = $(formId).attr('data-href'); | |
const mail = Cookies.get('mail'); | |
if (mail) { | |
$(formId + ' input[type=email]').val(mail); | |
} | |
$(formId).submit(function(ev) { |
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
import * as Sentry from '@sentry/browser'; | |
import lozad from 'lozad'; | |
import navBurger from './_partials/_nav-burger'; | |
import cookie from './_partials/_cookie'; | |
import accordion from './_partials/_accordion'; | |
import range from './_partials/_rangeSlider'; | |
import mobileNavAccordion from './_partials/_dropdownNav'; | |
import tabs from './_partials/_tabs'; | |
import featuresTable from './_partials/_featuresTable'; |
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
{% import '_inc/macros.twig' as macro %} | |
{% set imageQr = entry.image %} | |
{% if imageQr|length %} | |
{% set image = imageQr.one() %} | |
<picture class="lazy hero__media" style="display: block; min-height: 1rem" data-iesrc="{{ macro.fit(image, 1200, 'auto', 90)|trim }}" data-alt="{{ image.title }}"> | |
<source media="(min-width: 764px)" srcset="{{- | |
macro.fit(image, 1000, 'auto', 100)|trim ~ ' 1000w, ' ~ | |
macro.fit(image, 1600, 'auto', 100)|trim ~ ' 1600w, ' ~ | |
macro.fit(image, 2400, 'auto', 100)|trim ~ ' 2400w' -}}" |
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
{% import '_inc/macros.twig' as macro %} | |
{% set imageQr = entry.image %} | |
{% if imageQr|length %} | |
{% set image = imageQr.one() %} | |
<img class="lazy" | |
sizes="(min-width: 62.5rem) 62.5rem, 100vw" | |
data-src="{{ macro.crop(image, 10/4, 1000) }}" | |
data-srcset="{{- |