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
$(".element-with-transition").on('webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd transitionend', function(){ | |
//add jQuery code here, it's executed after the transition ended | |
}); |
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
var doubleTouchStartTimestamp = 0; | |
$(document).bind("touchstart", function(event){ | |
var now = +(new Date()); | |
if (doubleTouchStartTimestamp + 500 > now){ | |
event.preventDefault(); | |
}; | |
doubleTouchStartTimestamp = now; | |
}); |
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
var doubleTouchStartTimestamp = 0; | |
document.addEventListener("touchstart", function(event){ | |
var now = +(new Date()); | |
if (doubleTouchStartTimestamp + 500 > now){ | |
event.preventDefault(); | |
}; | |
doubleTouchStartTimestamp = now; | |
}); |
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
jQuery('img.svg').each(function(){ | |
var $img = jQuery(this); | |
var imgID = $img.attr('id'); | |
var imgClass = $img.attr('class'); | |
var imgURL = $img.attr('src'); | |
jQuery.get(imgURL, function(data){ | |
var $svg = jQuery(data).find('svg'); | |
if(typeof imgID !== 'undefined') { | |
$svg = $svg.attr('id', imgID); | |
}; |
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
<img id="unique_ID" class="svg" src="/images/file.svg"/> |
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
#logo_container{ | |
background-image: | |
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='87px' height='51px'><g id=”ink_x5F_icon”><rect x=”6" y=”9" fill=”#010203" width=”6" height=”6"></rect><rect x=”6" y=”18" fill=”#010203" width=”6" height=”15"></rect><rect x=”15" y=”27" fill=”#010203" width=”6" height=”6"></rect><rect x=”15" y=”9" fill=”#010203" width=”6" height=”15"></rect></g><g id=”ink_x5F_menu”><rect x=”42" y=”9" fill=”#010203" width=”24" height=”6"></rect><rect x=”42" y=”18" fill=”#010203" width=”24" height=”6"></rect><rect x=”42" y=”27" fill=”#010203" width=”24" height=”6"></rect></g><path id=”ink_x5F_rame” fill=”#010203" d=”M75–3H-3h-3v48h3h78h3V-3H75z M-3,42V0h33v42H-3z M75,42H33V0h42V42z”></path><polygon id=”ink_x5F_shadow” fill=”#010203" points=”78,3 78,45 0,45 0,48 78,48 79,48 81,48 81,3 “></polygon></svg>"); | |
} |
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
article p:first-child::first-letter{} |
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
article p{ | |
font-family: sans-serif; | |
} | |
article p:first-child::first-letter{ | |
float: left; | |
display: block; | |
font-family: serif; | |
font-weight: bold; |
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
#unique_ID path{ | |
fill: green; | |
} | |
#unique_ID:hover path{ | |
fill: red; | |
} |
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 | |
/* COMBINE THESE JS-FILES */ | |
$GLOBALS['TL_JAVASCRIPT'][] = $GLOBALS['TL_CONFIG']['uploadPath'] . '/theme_files/js/filename.js|static'; | |
$GLOBALS['TL_JAVASCRIPT'][] = $GLOBALS['TL_CONFIG']['uploadPath'] . '/theme_files/js/filename2.js|static'; | |
/* ... */ | |
?> |
OlderNewer