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
<style> | |
select { | |
color: #747474; | |
&:has(option:checked:not(:disabled)) { | |
color: #2c2c2c; | |
} | |
} | |
option { |
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
#!/bin/bash | |
shopt -s lastpipe | |
footerTags=() | |
echo "# Changelog | |
This document maintains a list of released versions and changes done in respective versions. | |
" > ./CHANGELOG.md |
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
<video autoplay loop muted playsinline class="video-background "> | |
<source src="to/the/video.mp4" type="video/mp4"> | |
</video> |
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
function getRealImageYStartEnd($imageId){ | |
var img = document.getElementById($imageId); | |
var canvas = document.createElement('canvas'); | |
canvas.width = img.width; | |
canvas.height = img.height; | |
canvas.getContext('2d').drawImage(img, 0, 0, img.width, img.height); | |
var context = canvas.getContext('2d'); | |
var middle = Math.floor(img.width/2); | |
var startImage = 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
<?php | |
// in functions.php | |
if (!is_admin()){ | |
remove_action( 'rest_api_init', 'wp_oembed_register_route' ); | |
add_filter( 'embed_oembed_discover', '__return_false' ); | |
remove_filter( 'oembed_dataparse', 'wp_filter_oembed_result', 10 ); | |
remove_action( 'wp_head', 'wp_oembed_add_discovery_links' ); | |
remove_action( 'wp_head', 'wp_oembed_add_host_js' ); |
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
function iubendaConsentGiven(){ | |
var pairs = document.cookie.split(";"); | |
var cookies = {}; | |
for (var i=0; i<pairs.length; i++){ | |
var pair = pairs[i].split("="); | |
if(pair[0].indexOf('_iub_cs-s') !== -1 || pair[0].indexOf('_iub_cs') !== -1 ) { | |
return true; | |
} | |
} | |
return false; |
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
html,body{ | |
-webkit-overflow-scrolling : touch !important; | |
overflow: auto !important; | |
height: 100% !important; | |
} |
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
Document.prototype.ready = function(callback) { | |
if(callback && typeof callback === 'function') { | |
document.addEventListener("DOMContentLoaded", function() { | |
if(document.readyState === "interactive" || document.readyState === "complete") { | |
return callback(); | |
} | |
}); | |
} | |
}; |
NewerOlder