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
/* | |
<svg class="icon" data-png-fallback="assets/img/src/icons/black/png/icon-modx"> | |
<title>Best CMS Ever</title> | |
<use xlink:href="assets/img/icons.svg#icon-modx"></use> | |
</svg> | |
*/ | |
var hasSVG = false; //your feature detection here | |
(function(hasSVG){ | |
if(!hasSVG) { |
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
module.exports = function(grunt) { | |
// Project configuration. | |
var initConfig = { | |
pkg: grunt.file.readJSON('package.json'), | |
dirs: { /* just defining some properties */ | |
lib: './lib/', | |
theme: '../', | |
assets: 'assets/', | |
img: 'img/' |
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 | |
/** | |
* Duplicates a MODX User Group | |
* USAGE: | |
* php duplicateusergroup.php 1 New\ Group | |
* php duplicateusergroup.php 1 New\ Group newuser [email protected] password | |
*/ | |
$tstart = microtime(true); | |
set_time_limit(0); |
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 IE 9]> | |
<script>alert('Your browser is ' + (Math.round((new Date() - new Date(2011,3,12)) / (1000 * 60 * 60 * 24)) + ' days') + 'out of date and does not properly support the Flexible Box Model. Problem is it thinks it does and will unsuccesfully attempt to. Please return in a modern browser.');</script> | |
<![endif]--> |
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 | |
$start = date('U', mktime(-12, 0, 0, 04, $d, date('Y'))); | |
$end = date('U', mktime(36, 0, 0, 04, $d, date('Y'))); | |
$z = date('Z') * -1; | |
$now = time() + $z; | |
if ( $now >= $start && $now <= $end ) { | |
return true; | |
} | |
return false; |
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
<!doctype html> | |
<!-- if you like markup please stop by and say hello over at http://markup.tips --> | |
<html class="no-js" lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title></title> | |
<meta name="description" content="HTML-first crack at a Flexible Media Browser"> | |
<meta name="viewport" content="width=device-width, initial-scale=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
<!-- try to load modernizr from a CDN, use h5bp-ish style fallback to load locally if needed --> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script> | |
<script>try{Modernizr} catch(e) {document.write('<script src="./assets/js/vendor/modernizr-2.8.3.min.js"><\/script>')}</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
$('.settings-table').each(function(){ | |
var _that = $(this); | |
_that.find('tbody > tr:not(.setting-form)').on((!Modernizr.touch) ? 'focusin' : 'click',function(e){ | |
$(this).toggleClass('open').siblings('.open').removeClass('open'); | |
}).addClass('clickable'); | |
}); |
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
$('.settings-table').each(function(){ | |
$(this).on('focusin click','tbody > tr:not(.setting-form)',function(e){ | |
$(this).addClass('open').siblings('.open').removeClass('open'); | |
}); | |
}); |
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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
html.js { | |
.js-hide { | |
display:none; | |
} | |
} |