This file contains hidden or 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
@media only screen and (max-width : 320px) { | |
body { | |
background: red; | |
} | |
} | |
@media only screen and (min-width : 320px) { | |
body { | |
background: yellow; |
This file contains hidden or 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 class="frontpage"> | |
<body class="collection"> | |
<body class="page"> |
This file contains hidden or 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
jQuery("#inspiration #item span.original").click(function(){ | |
var link = jQuery(this).parent().parent().children('img').attr('rev'); | |
var str = '<div id="item" class="original">'; | |
str += '<img src="' + link + '" />'; | |
str += '</div>'; | |
jQuery(this).parent().parent().after(str); | |
}); |
This file contains hidden or 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 id="blog"> | |
{% assign feed_url = "http://shopledge.myshopify.com/blogs/news.atom" %} | |
<script type="text/javascript"> | |
var api = "http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&callback=?&q={{ feed_url }}&num=5"; | |
jQuery.getJSON(api, function(data){ | |
// Check for error | |
if (data.responseStatus == 200) { | |
// Process the feeds | |
var feed = data.responseData.feed; |
This file contains hidden or 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 id="items"> | |
{% assign twitter_id = "metamn" %} | |
{% assign twitter_limit = 50 %} | |
<script type="text/javascript"> | |
var counter = 0; | |
var BreakException= {}; | |
try { | |
jQuery.getJSON('http://twitter.com/statuses/followers.json?screen_name={{ twitter_id }}&callback=?',function(data){ |
This file contains hidden or 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
<link href="/css/mobile.css" charset="utf-8" media="screen and (max-width: 600px)" rel="stylesheet" type="text/css" /> |
This file contains hidden or 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
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
This file contains hidden or 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
<script language="javascript"> | |
writeCookie(); | |
function writeCookie() { | |
var today = new Date(); | |
var the_date = new Date("December 31, 2023"); | |
var the_cookie_date = the_date.toGMTString(); | |
var the_cookie = "screen="+ screen.width; | |
var the_cookie = the_cookie + ";expires=" + the_cookie_date; | |
document.cookie=the_cookie; | |
} |
This file contains hidden or 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
index.haml | |
%ul | |
= render :partial => "category", :collection => Category.roots | |
_category.haml | |
%li | |
= category.name | |
- unless category.children.blank? |