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> | |
... | |
<env name="TELESCOPE_ENABLED" value="false"/> | |
</php> | |
... |
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
<template> | |
<div class="progress-bar"> | |
<div class="filled-bar" :style="{ transform: `translate3d(-${100-value}%, 0, 0)` }"></div> | |
</div> | |
</template> | |
<script> | |
export default { | |
props: ['value'] | |
} |
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
router: { | |
scrollBehavior: function(to, from, savedPosition) { | |
return { x: 0, y: 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
p, | |
font-size: 16px; | |
@screen xlarge { | |
font-size: 1.042vw; | |
} | |
@media (max-width: calc(20 / 1.042 * 100 * 1px)) and (min-width: theme('screens.xlarge')) { | |
font-size: 20px; | |
} |
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
Vue.config.devtools = true |
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
{% for year in now.year .. firstEntryEver.postDate.year %} | |
{{ year }} | |
{% endfor %} |
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 up the request params and queries. #} | |
{% set req = craft.request %} | |
{% set params = ['date', 'category'] %} | |
{% set query = {} %} | |
{% set search = [] %} | |
{% for param in params %} | |
{% set key = param | camel %} | |
{% set value = req.getParam(param) %} |
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
/* | |
Ajax submission of contact form within craft. ES6, vanilla js. | |
*/ | |
let contactForm = document.getElementById('footer_contact'); | |
if (contactForm) { | |
contactForm.addEventListener('submit', e => { | |
e.preventDefault(); | |
let formData = new FormData(contactForm); |
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="map-holder" data-lat="{{ office.map.lat }}" data-lng="{{ office.map.lng }}" data-zoom="{{ office.map.zoom }}"> |
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 prodConfig = { | |
apiKey: YOUR_API_KEY, | |
authDomain: YOUR_AUTH_DOMAIN, | |
databaseURL: YOUR_DATABASE_URL, | |
projectId: YOUR_PROJECT_ID, | |
storageBucket: '', | |
messagingSenderId: YOUR_MESSAGING_SENDER_ID, | |
} | |
const devConfig = { |