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
/** | |
* This casper scipt checks for 404 internal links for a given root url. | |
* | |
* Usage: | |
* | |
* $ casperjs 404checker.js http://mysite.tld/ | |
* $ casperjs 404checker.js http://mysite.tld/ --max-depth=42 | |
*/ | |
/*global URI*/ |
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 $favicon_path = "/docroot/img/ico/"; ?> | |
<!-- Default --> | |
<link rel="shortcut icon" href="<?php echo $favicon_path; ?>favicon.ico"/> | |
<!-- For IE6+ --> | |
<link rel="shortcut icon" href="<?php echo $favicon_path; ?><?php echo $favicon_path; ?>favicon.ico" type="image/x-icon"> | |
<!-- For IE6+ --> | |
<link rel="shortcut icon" href="<?php echo $favicon_path; ?>favicon.ico"> |
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 whichTransitionEvent(){ | |
var t; | |
var el = document.createElement('fakeelement'); | |
var transitions = { | |
'transition':'transitionend', | |
'OTransition':'oTransitionEnd', | |
'MozTransition':'transitionend', | |
'WebkitTransition':'webkitTransitionEnd' | |
} |
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
opacity: .75; | |
filter: alpha(opacity=75); | |
-ms-filter: "alpha(opacity=75)"; | |
-khtml-opacity: .75; | |
-moz-opacity: .75; |
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 | |
/* Sets classes such as "first", "last", "odd", "even" and "active" | |
* @param $articles An array of articles to count | |
* @param $index The index to watch for | |
* @param $currentArticle The index of the current article | |
* @return string | |
**/ | |
function setCSSClasses($index = null, $articles = null, $currentArticle = null) { |
NewerOlder