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 'leaflet/dist/leaflet.css'; | |
import L from 'leaflet'; | |
const baseUrl = window.location.origin; | |
const accessToken = | |
'<-- insert access token here -->'; | |
const selectorMap = '.c-map'; | |
const initMap = () => { |
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 | |
# DateTime when forced exit is due: | |
$mbtk_time_to_stop = new DateTime("2022-11-23 17:00:00"); | |
# DateTime now: | |
$mbtk_date_time_now = new DateTime(); | |
if($mbtk_time_to_stop < $mbtk_date_time_now) { | |
exit('silence is golden :/ - set working time'); | |
} |
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 dataAttributeWebPCheck = 'data-webp-support-flag'; | |
const selectorWebPCheck = `[${dataAttributeWebPCheck}]`; | |
const classnameHasSupport = 'webp-supported'; | |
const classnameHasNoSupport = 'webp-not-supported'; | |
let elements = null; | |
let hasWebPSupport = false; | |
async function supportsWebp() { | |
if (!window.createImageBitmap) return false; | |
const webpData = 'data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA='; |
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 | |
# DateTime when forced exit is due: | |
$datetime_to_stop = new DateTime("2021-03-30 17:00:00"); | |
# DateTime now: | |
$datetime_now = new DateTime(); | |
if($datetime_to_stop < $datetime_now) { | |
exit('silence is golden :/ - set working time'); | |
} |
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 in config file when using | |
$swiper-bullet-point-color: #ffffff; | |
$swiper-bullet-point-size: 13px; | |
$swiper-bullet-point-border-width: 2px; | |
.swiper-pagination-bullet { | |
display: inline-block; | |
width: $swiper-bullet-point-size; | |
height: $swiper-bullet-point-size; | |
background-color: transparent; |
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 | |
function add_twig_function() { | |
function get_translation_url_by_langcode($target_langcode) { | |
// docs: https://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/ | |
if ( function_exists('icl_get_languages') ) { | |
$langlist = icl_get_languages(); | |
$url = ''; | |
foreach ($langlist as $item) { |