This file contains hidden or 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
website: | |
type: text | |
label: Website sponsor | |
postfix: 'formaat: http://www.sponsor.nl' | |
pattern: "^http(s?):\/\/.*" # see: http://html5pattern.com/ | |
error: "Vul een url in inclusief 'http://' of 'https://'" |
This file contains hidden or 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
setCookie('ppkcookie','testcookie',7); | |
var x = getCookie('ppkcookie'); | |
if (x) { | |
[do something with x] | |
} | |
// source https://stackoverflow.com/questions/14573223/set-cookie-and-get-cookie-with-javascript |
This file contains hidden or 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
custom: | |
type: hidden | |
options: | |
label: 'Custom' | |
required: false | |
attr: | |
class: hidden | |
constraints: [ Blank ] |
This file contains hidden or 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
Source: https://stackoverflow.com/questions/20541306/how-to-write-a-css-hack-for-ie-11 | |
IE 6 | |
============ | |
* html .ie6 {property:value;} | |
or | |
.ie6 { _property:value;} |
This file contains hidden or 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
<script> | |
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; | |
ga('create', 'UA-XXXXXXX', 'auto'); | |
ga('set', 'forceSSL', true); | |
ga('set', 'anonymizeIp', true); | |
ga('send', 'pageview'); | |
</script> | |
<script async="" src="https://www.google-analytics.com/analytics.js"></script> |
This file contains hidden or 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
<!-- Google Analytics --> | |
<script> | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); | |
ga('create', 'UA-XXXXX-X', 'auto'); |
This file contains hidden or 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
<!-- Global site tag (gtag.js) - Google Analytics --> | |
<script async src="https://www.googletagmanager.com/gtag/js?id=XX-XXXX-XX"></script> | |
<script> | |
window.dataLayer = window.dataLayer || []; | |
function gtag(){dataLayer.push(arguments);} | |
gtag('js', new Date()); | |
gtag('config', 'XX-XXXXXX-XX', { 'anonymize_ip': true }); | |
</script> |
This file contains hidden or 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
{# extra supernested lookup table #} | |
{% set personinfo = { | |
'1198' : { | |
'color' : '#ff0099', | |
'number' : '9', | |
'title' : 'My fingers are cold', | |
'portraitsrc' : 'portrait_piet.png', | |
'imgsrc' : 'image_piet.png' | |
}, |
This file contains hidden or 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
/* sauce: https://www.paulirish.com/2009/random-hex-color-code-snippets/ */ | |
<script> | |
bgcolor = ''; | |
bgcolor = '#'+Math.floor(Math.random()*16777215).toString(16); | |
coverimg += 'background-color:' + bgcolor; | |
$('.background').removeAttr('style').attr('style', coverimg); | |
</script> |