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> | |
<head> | |
<title>MouseContext</title> | |
</head> | |
<body> | |
<div class="box"> | |
<div class="context"> |
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 MouseContext = new Class({ | |
Implements : Options, | |
options : { | |
contextClass : '.context', | |
delay : 300 | |
}, | |
initialize : function(elements, options) { | |
this.setOptions(options); | |
this.elements = elements; | |
var self = this; |
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
body { text-rendering: optimizeLegibility; } |
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 $hsl = rand(0, 240) . ',' . rand(50, 80) . '%,60%'; ?> | |
<style type="text/css"> | |
a { | |
color: hsl(<?php echo $hsl ?>); | |
} | |
</style> |
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 | |
/* | |
* | |
* Copyright by Pete Warden: http://petewarden.typepad.com/searchbrowser/2008/06/how-to-post-an.html | |
* Adapted by Bastian Allgeier: http://bastian-allgeier.de | |
* | |
*/ | |
function async($url, $params) { |
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
http://zootool.com/post/?url={url}&title={title}&description={description}&tags={tags} |
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:not([width]):not([height]) { | |
border: 2px solid red !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
<html class="no-js"> | |
<head> | |
... | |
<script> | |
document.documentElement.className = | |
document.documentElement.className.replace("no-js", "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
img { | |
opacity: 0; | |
-webkit-transition: opacity .2s; | |
-moz-transition: opacity .2s; | |
-o-transition: opacity .2s; | |
transition: opacity .2s; | |
} | |
img:loaded { | |
opacity: 1; |
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
<? | |
$myimageURL = $pages->find('projects')->children()->last()->images()->findByExtension('jpg')->first()->url() | |
/* | |
I break that down a bit: | |
- find the page with the uri projects | |
- get all children of that page |
OlderNewer