From 35d678002fd7ecb1d60b47648437d900c52d66a2 Mon Sep 17 00:00:00 2001 From: ambrosechua Date: Sat, 24 Nov 2012 16:25:43 +0800 Subject: [PATCH] Update 1 --- README.md | 0 index.html | 33 ++++++++++++++++++++++++++------- index.html~ | 1 + jquery.min.js | 0 4 files changed, 27 insertions(+), 7 deletions(-) mode change 100644 => 100755 README.md mode change 100644 => 100755 index.html mode change 100644 => 100755 index.html~ mode change 100644 => 100755 jquery.min.js diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/index.html b/index.html old mode 100644 new mode 100755 index 9fa1a8d..347fb49 --- a/index.html +++ b/index.html @@ -2,6 +2,7 @@ + EyesOff @@ -66,9 +74,10 @@ color: #aaa;
Go on...
-

Type or say your search query

+

Type or say your search query

@@ -83,19 +92,29 @@ $(document).ready(function() { $(this).val(""); $(this).css("color", "#fff"); } - }); + });/* $("#searchbox").blur(function() { if ($(this).val() == "") { $(this).val("Search..."); $(this).css("color", "#aaa"); } - }); + });*/ $("#search").submit(function() { - ///ask youtube.com + // ask youtube.com + // http://gdata.youtube.com/feeds/api/videos?q=skateboarding+dog&start-index=0&max-results=10&v=2&key=AI39si6YeaDRSECPlD-FPnLV2r1T8rt6GHxYePHc94KTWRKgu3PnVMPmOaM0bISMORXolzcHLR7sCzCcN5K38carFyUTCH8jSg + // api: AI39si6YeaDRSECPlD-FPnLV2r1T8rt6GHxYePHc94KTWRKgu3PnVMPmOaM0bISMORXolzcHLR7sCzCcN5K38carFyUTCH8jSg $("#searchhead").fadeIn("slow").html("Search not available yet! Sorry for party rockng! "); setTimeout('$("#searchhead").fadeIn("slow").html("Type or say your search query");', 2000); }); + $("#showmewhy").click(function() { + $("#searchhead").html('Type or say your search query (Speech input is not supported in your browser, we recommend Google Chrome)'); + }); + if (document.createElement("input").webkitSpeech != undefined) { + // $("#searchhead").html('Type (Voice search is not supported in your browser, we recommend Google Chrome) your search query'); + $("#searchhead").html('Type or say your search query (Yay! Your browser supports speech input! )'); + } }); + diff --git a/index.html~ b/index.html~ old mode 100644 new mode 100755 index 152352f..9fa1a8d --- a/index.html~ +++ b/index.html~ @@ -2,6 +2,7 @@ +EyesOff