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
/* | |
You used the drop-down menu! | |
That appears automatically when give Intelligist multiple gists to display. | |
You'll also notice that the page styles have changed. | |
Intelligist has an option that lets you execute the Gist code after it's been | |
loaded onto the page. | |
*/ | |
body { |
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
/* | |
* jQuery Backstretch | |
* Version 1.2.6 | |
* http://srobbin.com/jquery-plugins/jquery-backstretch/ | |
* | |
* Add a dynamically-resized background image to the page | |
* | |
* Copyright (c) 2011 Scott Robbin (srobbin.com) | |
* Dual licensed under the MIT and GPL licenses. | |
*/ |
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
<noscript><img src="Koala.jpg" alt="A koala" /></noscript> | |
<script> | |
$('noscript').each(function(){ | |
var $self = $(this) | |
, $img = $( $self.text() ) | |
, src = $img.attr("src") + ( screen.width < 500 ? "?width=420" : "" ); | |
$self.replaceWith( $img.attr("src", src) ); | |
}); |
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 lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Responsive image test with NOSCRIPT</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> | |
<style> | |
.container { width: 960px; margin: 0 auto; } | |
img { max-width: 100%; } | |
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> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<style type="text/css"> | |
html { height: 100% } | |
body { height: 100%; margin: 0px; padding: 0px } | |
#map_canvas { height: 100% } | |
</style> | |
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> | |
</head> |
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
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script type="text/javascript" src="/path/to/jquery.backstretch.min.js"></script> | |
<script type="text/javascript"> | |
$.backstretch("http://static.tumblr.com/aa0lt19/0qql9lazk/img_8038.jpg"); | |
</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
$("#backstretch img").attr("src", "/path/to/new/image.jpg"); | |
$(window).trigger("resize"); |
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
# Add to your .htaccess file | |
FileETag none | |
ExpiresActive On | |
ExpiresDefault A0 | |
ExpiresByType image/gif A2592000 | |
ExpiresByType image/png A2592000 | |
ExpiresByType image/jpg A2592000 | |
ExpiresByType image/jpeg A2592000 | |
ExpiresByType image/ico A2592000 | |
ExpiresByType text/css A2592000 |
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
<!-- Google-hosted jQuery --> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></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
<!-- Typical script include --> | |
<script src="/_scripts/file1.js"></script> | |
<script src="/_scripts/file2.js"></script> | |
<script src="/_scripts/file2.js"></script> | |
<!-- Using Minify, it becomes this --> | |
<!-- http://code.google.com/p/minify/ --> | |
<script src="/_min/b=_scripts&f=file1.js,file2.js,file.js"></script> |