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
<!-- Javascript at the bottom for fast page loading --> | |
<!-- Grab Google CDN's jQuery. fall back to local if necessary --> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"></script> | |
<script>!window.jQuery && document.write(unescape('%3Cscript src="js/libs/jquery-1.4.4.js"%3E%3C/script%3E'))</script> | |
<!-- scripts concatenated and minified via ant build script--> | |
<script src="js/plugins.js"></script> | |
<script src="js/script.js"></script> |
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
//one - more flexible possibility since it's made with flexible If snippet | |
[[!If? &subject=`[[+introtext]]` &operator=`isnotempty` &then=`[[+introtext]]` &else=`[[+content:strip_tags:ellipsis=`500`]]` ]] | |
//the better one when it comes to performance (thank you Mark-H) | |
[[+introtext:default=`[[+content:strip_tags:ellipsis=`500`]]`]] |
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
// code from my template | |
// should result the meta-description | |
// should strip html-tags from content and limit to 175 characters | |
// actually doesn't stripTags but limits to 175 characters | |
[[*content:stripTags:strip:limit=`175`]] |
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
// if you have analytics, set them in pagevisibility mode to get real-user-trackig according to prerender-issues in Chrome/WebKit. | |
var viewCounted = false; | |
function handleVisibilityChange(evt) { | |
//Only count the view once we're done prerendering AND the document is done loading | |
if (document.webkitVisibilityState == 'prerender' | |
|| document.readyState != 'complete' || viewCounted) | |
return; | |
/* Implementation of view counting system starts here */ | |
// Code for Google Analytics | Change UA-XXXXX-X to be your site's ID |
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
<!-- backwards compatible solution --> | |
<!-- the browser should read media-query and then download the right file for the actual screen size --> | |
<img media-xs="(min-width:640px)" media-xs-src="http://cdn.url.com/img/myimage_xs.jpg" media-m="(max-width:1024px)" media-m-src="http://cdn.url.com/img/myimage_m.jpg" media-xl="(min-width:1025px)" media-xl-src="http://cdn.url.com/img/myimage_xsl.jpg" src="http://cdn.url.com/img/myimage_xs.jpg" /> | |
<img media-xs="(max-width:640px)" | |
media-xs-src="http://cdn.url.com/img/myimage_xs.jpg" | |
media-m="(max-width:1024px)" | |
media-m-src="http://cdn.url.com/img/myimage_m.jpg" | |
media-xl="(min-width:1025px)" | |
media-xl-src="http://cdn.url.com/img/myimage_xsl.jpg" |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
body{ | |
background: #CCC; | |
padding: 500px; | |
} | |
#map_de_muc { |
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
#id{ | |
background: #999; | |
position: fixed; | |
top:0; | |
width: 100%; | |
height: 10em; | |
z-index: 99999999999999; | |
padding-top:4em; | |
-webkit-transition: all linear 1s; | |
-moz-transition: all linear 1s; |
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
/** | |
* circled-font | |
*/ | |
/* currently it's an ellipse not a circle */ | |
.iconstyle { | |
background: #000; | |
color: #B4E3FF; | |
border-radius: 50%; | |
padding: .6em; |
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 src="large-default-file.jpg" media="screen and (min-width:601px)" alt="this is alternative text for default file" title="this is title for default file"> | |
<source src="smaller.jpg" media="screen and (max-device-width:600px)" alt="this is alternative text for smaller file" title="this is title for smaller file"> | |
<source src="tiny.jpg" media="screen and (max-device-width:320px)" alt="this is alternative text for tiny file" title="this is title for tiny file"> | |
<source src="monochrome.jpg" media="monochrome" alt="this is alternative text for monochrome file" title="this is title for monochrome file"> | |
</img> |
OlderNewer