Replace single-quotes with double-quotes for consistency and to save a few extra bytes during GZIP/DEFLATE compression

This commit is contained in:
David Murdoch
2011-03-10 07:41:30 +08:00
committed by Divya Manian
parent ff3ed8f402
commit d7d467e69e
7 changed files with 49 additions and 49 deletions

View File

@@ -4,7 +4,7 @@
body { text-align: center;} body { text-align: center;}
h1 { font-size: 50px; text-align: center } h1 { font-size: 50px; text-align: center }
span[frown] { transform: rotate(90deg); display:inline-block; color: #bbb; } span[frown] { transform: rotate(90deg); display:inline-block; color: #bbb; }
body { font: 20px Constantia, 'Hoefler Text', "Adobe Caslon Pro", Baskerville, Georgia, Times, serif; color: #999; text-shadow: 2px 2px 2px rgba(200, 200, 200, 0.5); } body { font: 20px Constantia, "Hoefler Text", "Adobe Caslon Pro", Baskerville, Georgia, Times, serif; color: #999; text-shadow: 2px 2px 2px rgba(200, 200, 200, 0.5); }
::-moz-selection{ background:#FF5E99; color:#fff; } ::-moz-selection{ background:#FF5E99; color:#fff; }
::selection { background:#FF5E99; color:#fff; } ::selection { background:#FF5E99; color:#fff; }
article {display:block; text-align: left; width: 500px; margin: 0 auto; } article {display:block; text-align: left; width: 500px; margin: 0 auto; }
@@ -25,7 +25,7 @@
</div> </div>
<script> <script>
var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2), var GOOG_FIXURL_LANG = (navigator.language || "").slice(0,2),
GOOG_FIXURL_SITE = location.host; GOOG_FIXURL_SITE = location.host;
</script> </script>
<script src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script> <script src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>

View File

@@ -42,7 +42,7 @@ footer, header, hgroup, menu, nav, section {
blockquote, q { quotes: none; } blockquote, q { quotes: none; }
blockquote:before, blockquote:after, blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; } q:before, q:after { content: ""; content: none; }
ins { background-color: #ff9; color: #000; text-decoration: none; } ins { background-color: #ff9; color: #000; text-decoration: none; }

View File

@@ -443,8 +443,8 @@
<script> <script>
(function () { (function () {
if (! ('position' in document.createElement ('progress'))) { if (! ("position" in document.createElement ("progress"))) {
var elements = document.querySelectorAll ('meter, progress'); var elements = document.querySelectorAll ("meter, progress");
for (var i = 0, j = elements.length; i < j; i++) { for (var i = 0, j = elements.length; i < j; i++) {
elements [i].style.border = "1px solid red"; elements [i].style.border = "1px solid red";
elements [i].style.height = "12px"; elements [i].style.height = "12px";
@@ -455,10 +455,10 @@
return ; return ;
} }
document.getElementById ('no-support').style.display = 'none'; document.getElementById ("no-support").style.display = "none";
/** Setup the <progress> JavaScript example **/ /** Setup the <progress> JavaScript example **/
var progressExample = document.getElementById ('progress-javascript-example'); var progressExample = document.getElementById ("progress-javascript-example");
progressExample.min = 50; progressExample.min = 50;
progressExample.max = 122; progressExample.max = 122;
@@ -469,7 +469,7 @@
}, 1000); }, 1000);
/** We'd like some fancy <meter> examples too **/ /** We'd like some fancy <meter> examples too **/
var meterExample = document.getElementById ('meter-javascript-example'); var meterExample = document.getElementById ("meter-javascript-example");
meterExample.min = 0; meterExample.min = 0;
meterExample.max = 100; meterExample.max = 100;
meterExample.value = 50; meterExample.value = 50;
@@ -504,7 +504,7 @@
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary --> <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script>
<script>window.jQuery || document.write('<script src="../js/libs/jquery-1.5.1.min.js">\x3C/script>')</script> <script>window.jQuery || document.write("<script src='../js/libs/jquery-1.5.1.min.js'>\x3C/script>")</script>
<!-- scripts concatenated and minified via ant build script--> <!-- scripts concatenated and minified via ant build script-->
@@ -515,16 +515,16 @@
<!--[if lt IE 7 ]> <!--[if lt IE 7 ]>
<script src="../js/libs/dd_belatedpng.js"></script> <script src="../js/libs/dd_belatedpng.js"></script>
<script> DD_belatedPNG.fix('img, .png_bg'); //fix any <img> or .png_bg background-images </script> <script> DD_belatedPNG.fix("img, .png_bg"); //fix any <img> or .png_bg background-images </script>
<![endif]--> <![endif]-->
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID --> <!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
<script> <script>
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']]; var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"]];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1; (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js'; g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,'script')); s.parentNode.insertBefore(g,s)}(document,"script"));
</script> </script>
</body> </body>

View File

@@ -45,7 +45,7 @@ nav ul { list-style:none; }
blockquote, q { quotes:none; } blockquote, q { quotes:none; }
blockquote:before, blockquote:after, blockquote:before, blockquote:after,
q:before, q:after { content:''; content:none; } q:before, q:after { content:""; content:none; }
a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; } a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; }

View File

@@ -229,35 +229,35 @@
<!-- Grab Google CDN's jQuery. fall back to local if necessary --> <!-- Grab Google CDN's jQuery. fall back to local if necessary -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.js"></script>
<script>!window.jQuery && document.write(unescape('%3Cscript src="../js/libs/jquery-1.5.0.js"%3E%3C/script%3E'))</script> <script>!window.jQuery && document.write(unescape("%3Cscript src='../js/libs/jquery-1.5.0.js'%3E%3C/script%3E"))</script>
<script> <script>
$('#expand').click(function() { $("#expand").click(function() {
$('#container').css('height','auto').css('overflow',''); $("#container").css("height","auto").css("overflow","");
return false; return false;
}); });
$('#shorten').click(function() { $("#shorten").click(function() {
$('#container').css('height','300px').css('overflow','hidden'); $("#container").css("height","300px").css("overflow","hidden");
return false; return false;
}); });
$('#atag').click(function() { $("#atag").click(function() {
return false; return false;
}); });
$('.show').click(function(){ $(".show").click(function(){
$('.show').addClass('current') $(".show").addClass("current")
$('.hide').removeClass('current'); $(".hide").removeClass("current");
showStyle(); showStyle();
return false; return false;
}); });
$('.hide').click(function(){ $(".hide").click(function(){
$('.hide').addClass('current') $(".hide").addClass("current")
$('.show').removeClass('current'); $(".show").removeClass("current");
// freeze the size of each tests so the page doesnt jump. // freeze the size of each tests so the page doesnt jump.
$('dd').each(function(){ $("dd").each(function(){
$(this).height( $(this).height() ); $(this).height( $(this).height() );
}); });
@@ -265,28 +265,28 @@
return false; return false;
}); });
var linkTags = $('link'); var linkTags = $("link");
function hideStyle() { function hideStyle() {
// tee hee // tee hee
$('link[href*="style.css"]').attr('media','braille'); $("link[href*='style.css']").attr("media","braille");
} }
function showStyle() { function showStyle() {
$('link[href*="style.css"]').attr('media','all'); $("link[href*='style.css']").attr("media","all");
} }
$('.preventDefault').click(function() { $(".preventDefault").click(function() {
return false; return false;
}); });
$(function(){ $(function(){
$('.show').addClass('current'); $(".show").addClass("current");
}) })
</script> </script>
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary --> <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script>
<script>window.jQuery || document.write('<script src="../js/libs/jquery-1.5.1.min.js">\x3C/script>')</script> <script>window.jQuery || document.write("<script src='../js/libs/jquery-1.5.1.min.js'>\x3C/script>")</script>
<!-- scripts concatenated and minified via ant build script--> <!-- scripts concatenated and minified via ant build script-->
@@ -297,16 +297,16 @@
<!--[if lt IE 7 ]> <!--[if lt IE 7 ]>
<script src="../js/libs/dd_belatedpng.js"></script> <script src="../js/libs/dd_belatedpng.js"></script>
<script> DD_belatedPNG.fix('img, .png_bg'); //fix any <img> or .png_bg background-images </script> <script> DD_belatedPNG.fix("img, .png_bg"); //fix any <img> or .png_bg background-images </script>
<![endif]--> <![endif]-->
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID --> <!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
<script> <script>
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']]; var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"]];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1; (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js'; g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,'script')); s.parentNode.insertBefore(g,s)}(document,"script"));
</script> </script>
</body> </body>

View File

@@ -53,7 +53,7 @@
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary --> <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.5.1.min.js">\x3C/script>')</script> <script>window.jQuery || document.write("<script src='js/libs/jquery-1.5.1.min.js'>\x3C/script>")</script>
<!-- scripts concatenated and minified via ant build script--> <!-- scripts concatenated and minified via ant build script-->
@@ -64,16 +64,16 @@
<!--[if lt IE 7 ]> <!--[if lt IE 7 ]>
<script src="js/libs/dd_belatedpng.js"></script> <script src="js/libs/dd_belatedpng.js"></script>
<script>DD_belatedPNG.fix('img, .png_bg'); // Fix any <img> or .png_bg bg-images. Also, please read goo.gl/mZiyb </script> <script>DD_belatedPNG.fix("img, .png_bg"); // Fix any <img> or .png_bg bg-images. Also, please read goo.gl/mZiyb </script>
<![endif]--> <![endif]-->
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID --> <!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
<script> <script>
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']]; var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"]];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1; (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js'; g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,'script')); s.parentNode.insertBefore(g,s)}(document,"script"));
</script> </script>
</body> </body>

View File

@@ -5,22 +5,22 @@
// below are some general tests but feel free to delete them. // below are some general tests but feel free to delete them.
module("example tests"); module("example tests");
test('HTML5 Boilerplate is sweet',function(){ test("HTML5 Boilerplate is sweet",function(){
expect(1); expect(1);
equals('boilerplate'.replace('boilerplate','sweet'),'sweet','Yes. HTML5 Boilerplate is, in fact, sweet'); equals("boilerplate".replace("boilerplate","sweet"),"sweet","Yes. HTML5 Boilerplate is, in fact, sweet");
}) })
// these test things from plugins.js // these test things from plugins.js
test('Environment is good',function(){ test("Environment is good",function(){
expect(3); expect(3);
ok( !!window.log, 'log function present'); ok( !!window.log, "log function present");
var history = log.history && log.history.length || 0; var history = log.history && log.history.length || 0;
log('logging from the test suite.') log("logging from the test suite.")
equals( log.history.length - history, 1, 'log history keeps track' ) equals( log.history.length - history, 1, "log history keeps track" )
ok( !!window.Modernizr, 'Modernizr global is present') ok( !!window.Modernizr, "Modernizr global is present")
}) })