Skip to content

Instantly share code, notes, and snippets.

View jordandobson's full-sized avatar
🥽

Jordan Dobson jordandobson

🥽
View GitHub Profile
<div id="the_div">
<ul id="the_list">
<li id="the_item">Click me!</li>
</ul>
</div>
<p id="log"></p>
<script type="text/javascript" charset="utf-8">
function log(string){
@jordandobson
jordandobson / CLS.js
Created June 8, 2011 00:15
Mobile JavaScript Library for HTML Class Attribute Manipulation
(function(document){
window.CLS = window.CLS || {};
CLS.add = function(el, cn){
if(!CLS.exists(el, cn)){
el.className = el.className ? el.className + ' ' + cn : cn;
}
}
@jordandobson
jordandobson / gist:1541922
Created December 30, 2011 22:59
Markup for a review
<blockquote>
<header>
<meter>
<strong>5</strong><span> of 5</span>
</meter>
<address>
<strong>Diane S</strong> from Edmonds, WA
</address>
<h1>We came to the Westin to check out the beds.</h1>
</header>
@jordandobson
jordandobson / gist:2245096
Created March 30, 2012 00:04
Grid CSS @ 10px for Compass
$grid-color: #000;
$grid-opacity: .15;
$clear: transparent;
#grid{
width: 100%;
height: 100%;
position: absolute;
/* Old Webkit */
@jordandobson
jordandobson / orientation-detection.css
Created August 10, 2012 06:05
Orientation detection CSS
/***************************************************************************
** Orientation Indicators
***************************************************************************/
.orientation{
position: absolute;
top: .5em;
right: .5em;
z-index: 1000;
@jordandobson
jordandobson / css.css
Created November 15, 2012 07:46
Update to Ribbon
/* Update to Ribbon *****************************************************************/
#page-content header.affix {
position: fixed;
top: 0px;
}
#page-content header > .panelContainer{
width: 100%;
/* ---------------------------------------------------------- */
/* */
/* A media query that captures: */
/* */
/* - Retina iOS devices */
/* - Retina Macs running Safari */
/* - High DPI Windows PCs running IE 8 and above */
/* - Low DPI Windows PCs running IE, zoomed in */
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */
/* - Android hdpi devices and above */
@jordandobson
jordandobson / gist:5148914
Last active December 14, 2015 21:09
Recipe example for Trevor. Timer is in secconds... I figured that was better than minutes.
"recipe":{
"overview":{
"title": "Easy Layered Taco Bake",
"total": "35 min",
"prep": "15 min.",
"makes": "6 servings, 1 cup each."
},
"steps": [{
"step": ["Heat oven to 400\u2109.", "Brown meat in large skillet on medium-high heat."],
"pic": "/assets/images/taco-bake/intro.jpg"
/* Loader */
$loader-size = 2.1334em
@keyframes rotate
0%
transform: rotate(0deg)
100%
transform: rotate(360deg)
@jordandobson
jordandobson / ua-css.js
Created August 22, 2013 00:45
Add User Agent info to the html tag for CSS
var b = document.documentElement;
b.setAttribute('data-ua', navigator.userAgent);
b.setAttribute('data-pf', navigator.platform );