From e259920065a3fc21bf57ea39770334c3c4e4fa45 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Mon, 28 Feb 2011 02:45:16 -0800 Subject: [PATCH] * Remove unneeded `type="text/css"`. * Wrap all scripts in a closure to avoid polluting the global namespace as much as possible. * Use optimized asynchronous Google Analytics snippet (http://mathiasbynens.be/notes/async-analytics-snippet) instead of the ancient `document.write`-based one. --- index.php | 116 +++++++++++++++++++++++++++--------------------------- 1 file changed, 59 insertions(+), 57 deletions(-) diff --git a/index.php b/index.php index d338bd4..a89d118 100644 --- a/index.php +++ b/index.php @@ -6,9 +6,9 @@ function support($support, $url) { $live = isset($support->live) ? split(' ', $support->live) : array(); $nightly = isset($support->nightly) ? split(' ', $support->nightly) : array(); - + $html = ' '; - + foreach ($browsers as $browser) { $class = ''; if (in_array($browser, $live)) { @@ -18,10 +18,10 @@ function support($support, $url) { } else { $class .= ' none'; } - + $html .= '' . $browser . ':' . $class . ' '; } - + return $html; } @@ -31,7 +31,7 @@ function spans($list) { foreach ($items as $item) { $html .= '' . $item . ' '; } - + return $html; } ?> @@ -41,7 +41,7 @@ function spans($list) { HTML5 Demos and Examples - + @@ -58,7 +58,7 @@ function spans($list) {

- +

@@ -78,74 +78,76 @@ function spans($list) {
- +

All content, code, video and audio is Creative Commons Share Alike 2.0

HTML5 Powered with Connectivity / Realtime, Device Access, Graphics, 3D & Effects, Multimedia, Performance & Integration, Semantics, and Offline & Storage - + Fork me on GitHub - - + \ No newline at end of file