<script>
var suchiConfig = suchiConfig || [];
// EACH OF THE BELOW IS A SUCHI CONFIG... I JUST REMOVED THE NOISE
// Move related configs into their relevant objects
var exampleA = {
"prompt": {
"id": "notice",
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
/** | |
{ | |
"title": "Nth-Activated State Filters", | |
"type": "selector", | |
"description": "Provides pseudo-classes for selecting elements based on the number of times activated", | |
"package": "bkardell.nth-activated", | |
"version": "2" | |
} | |
========== | |
<h2>Nth-Activated State pseudo-class filters</h2> |
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
<div class="cars"> | |
<div class="domestic"> | |
<div class="new" id="a"> | |
<div class="cheap small efficient"><p class="car">2012 Ford Fiesta</p></div> | |
<div class="quality efficient"><p class="car">2012 Chrysler 300</p></div> | |
<div class="quality fast"><p class="car">2012 Dodge Charger</p></div> | |
</div> | |
<div class="used" id="b"> | |
<div class="cheap small efficient"><p class="car">2009 Ford Fiesta</p></div> | |
<div class="cheap"><p class="car">2004 Chevy Malibu</p></div> |
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
/** | |
{ | |
"title": "Goat 1000 Tag Cloud Widget", | |
"type": "html", | |
"description": "Custom hitch which allows you to use the <a href=\"http://www.goat1000.com/tagcanvas.php\">goat 1000 HTML5 canvas tag cloud via vendor attributes as a standard Hitch widget.", | |
"package": "bkardell.goat", | |
"version": "1" | |
} | |
========== | |
<h2>Goat Tag Cloud Attributes</h2> |
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
Hitch.add([ | |
{ | |
name: '-math-gt', | |
filter: function(match,argsString){ | |
var args = argsString.split(","); | |
var value = match.getAttribute(args[0]); | |
if(!isNaN(value) && !isNaN(args[1])){ | |
return (value > parseInt(args[1],10)); | |
} | |
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
(function(){ | |
var granularity = 250, | |
matches = [], | |
farFuture = new Date().getTime() + (1000 * 60 * 60 * 24 * 2), | |
test; | |
test = function(el,o){ | |
cTime = el.currentTime * 1000; | |
if(cTime >= o.start){ | |
if(o.end === ':-media-end' && !el.ended){ return true; } |
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><html><head><style>h2{ font-size: 1.2em; } cite{ display: block; border-bottom: 1px solid gray; } .true{ background-color: green; } .false{ background-color: red; }</style></head><body><h1>The Gaps</h1><h2>109 Properties Supported By At Least 3 Evergreen Browsers but Lacking in Some IE</h2><cite>Of 134 features reported by <a href="http://www.caniuse.com">caniuse.com</a></cite><table><tr><td>Feature</td><td>Chrome</td><td>Firefox</td><td>Opera</td><td>Safari</td><td>IE-10</td><td>IE-9</td><td>IE-8</td><td>IE-7</td><td>IE-6</td></tr><tr><td>png-alpha</td><td class="true">true</td><td class="true">true</td><td class="true">true</td><td class="true">true</td><td class="true">true</td><td class="true">true</td><td class="true">true</td><td class="true">true</td><td class="false">false</td></tr><tr><td>video</td><td class="true">true</td><td class="true">true</td><td class="true">true</td><td class="true">true</td><td class="true">true</td><td class="true">true</td><td class="false">false</td><td cl |
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
<div class="cars"> | |
<div class="domestic"> | |
<div class="new" id="a"> | |
<div class="cheap small efficient"><p class="car">2012 Ford Fiesta</p></div> | |
<div class="quality efficient"><p class="car">2012 Chrysler 300</p></div> | |
<div class="quality fast performance"><p class="car">2012 Dodge Charger</p></div> | |
</div> | |
<div class="used" id="b"> | |
<div class="cheap small efficient"><p class="car">2009 Ford Fiesta</p></div> | |
<div class="cheap"><p class="car">2004 Chevy Malibu</p></div> |
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
/* Style the cars that are new and have quality as well as domestic and peformance */ | |
.cars div:allof(.new .quality, .domestic .performance) p { | |
color: red; | |
} | |
/* Style the cars that are foreign and used or domestic, new and effiecient. */ | |
.cars div:anyof(.foreign .used, .domestic .new .efficient) p { | |
color: blue; | |
} | |
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
<style type="text/css" data-hitch-interpret> | |
/* Style the cars that are foreign and used or domestic, new and effiecient. */ | |
.cars div:-hitch-anyof(.foreign .used, .domestic .new .efficient) p { | |
color: blue; | |
} | |
</style> |