158 lines
4.6 KiB
HTML
Executable File
158 lines
4.6 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!-- <meta http-equiv="refresh" content="5" /> -->
|
|
<link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,700' rel='stylesheet' type='text/css' />
|
|
<title>EyesOff</title>
|
|
<style>
|
|
::-moz-selection {
|
|
background-color: rgba(200, 100, 0, 0.7);
|
|
}
|
|
::selection {
|
|
background-color: rgba(200, 100, 0, 0.7);
|
|
}
|
|
* {
|
|
padding: 0;
|
|
margin: 0;
|
|
outline:none;
|
|
}
|
|
body, html {
|
|
padding: 0;
|
|
margin: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
font-size: 25px;
|
|
font-family: "Ubuntu Light", Ubuntu, Arial;
|
|
color: #fff;
|
|
background-color: #000;
|
|
}
|
|
#appa, #appb, #intro {
|
|
padding: 40px;
|
|
}
|
|
::-moz-select {
|
|
background-color: rgba(200, 200, 0, 0.5);
|
|
}
|
|
h1 {
|
|
font-size: 50px;
|
|
font-weight: 0;
|
|
padding: 20px;
|
|
}
|
|
p {
|
|
padding: 5px;
|
|
}
|
|
.coolbox {
|
|
font-family: "Ubuntu Light", Ubuntu, Arial;
|
|
font-size: 25px;
|
|
border: 1px solid rgb(200, 100, 0);
|
|
border-bottom-color: rgb(180, 80, 0);
|
|
border-right-color: rgb(180, 80, 0);
|
|
border-radius: 10px;
|
|
padding: 10px 15px;
|
|
margin: 20px 3px;
|
|
background-color: rgba(200, 100, 0, 0.2);
|
|
color: #fff;
|
|
cursor: pointer;
|
|
}
|
|
.coolbox:hover {
|
|
border: 1px solid rgb(255, 155, 0);
|
|
border-bottom-color: rgb(235, 135, 0);
|
|
border-right-color: rgb(235, 135, 0);
|
|
background-color: rgba(200, 100, 0, 0.3);
|
|
}
|
|
.coolbox:active {
|
|
border: 1px solid rgb(220, 120, 0);
|
|
border-bottom-color: rgb(200, 100, 0);
|
|
border-right-color: rgb(200, 100, 0);
|
|
background-color: rgba(200, 100, 0, 0.25);
|
|
}
|
|
input.coolbox:focus {
|
|
border: 1px solid rgb(230, 130, 0);
|
|
border-bottom-color: rgb(210, 110, 0);
|
|
border-right-color: rgb(210, 110, 0);
|
|
background-color: rgba(200, 100, 0, 0.28);
|
|
}
|
|
.nextpg {
|
|
margin: 15px 40px;
|
|
width: 90px;
|
|
}
|
|
#intro {
|
|
display: block;
|
|
}
|
|
#appa {
|
|
display: none;
|
|
}
|
|
#searchbox {
|
|
color: #aaa;
|
|
}
|
|
.headsup {
|
|
font-size: 15px;
|
|
}
|
|
#showmewhy {
|
|
cursor: pointer;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="intro">
|
|
<h1>Project EyesOff</h1>
|
|
<p>Inspired by <b>'No screen at night! '</b>, we give you <b>Project EyesOff</b>! It is a service that allows you to surf YouTube and listen to music via voice recognition and speech. Powered by <b>Google Voice Recognition</b> and <b>text to voice</b>, you can ensure it will give you the best possible results. </p>
|
|
<div class="coolbox nextpg">Go on...</div>
|
|
</div>
|
|
<div id="appa">
|
|
<h1 id="searchhead">Type <del id="showmewhy">or say</del> your search query</h1>
|
|
<form action="#" id="search">
|
|
<input type="text" id="searchbox" class="coolbox" value="Search..." x-webkit-speech="x-webkit-speech" />
|
|
<input type="submit" class="coolbox" value="Search" />
|
|
</form>
|
|
</div>
|
|
<div id="appb">
|
|
</div>
|
|
|
|
|
|
<script type="text/javascript" src="jquery.min.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$(".nextpg").click(function() {
|
|
$("#intro").fadeOut("slow").css("display", "none");
|
|
$("#appa").fadeIn("slow").css("display", "block");
|
|
});
|
|
$("#searchbox").focus(function() {
|
|
if ($(this).val() == "Search...") {
|
|
$(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
|
|
// 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! ");
|
|
if (document.createElement("input").webkitSpeech != undefined) {
|
|
setTimeout('$("#searchhead").fadeIn("slow").html("Type or say your search query <sup class=\\"headsup\\">(Yay! Your browser supports speech input! )</sup>");', 2000);
|
|
} else {
|
|
setTimeout('$("#searchhead").fadeIn("slow").html("Type <del id=\\"showmewhy\\">or say</del> your search query");', 2000);
|
|
}
|
|
return false;
|
|
});
|
|
$("#searchbox").bind("onwebkitspeechchange", function() {
|
|
$("#search").submit();
|
|
});
|
|
$("#showmewhy").click(function() {
|
|
$("#searchhead").html('Type <del id="showmewhy">or say</del> your search query <sup class="headsup">(Speech input is not supported in your browser, we recommend <a target="_blank" href="http://chrome.google.com/">Google Chrome</a>)</sup>');
|
|
});
|
|
if (document.createElement("input").webkitSpeech != undefined) {
|
|
// $("#searchhead").html('Type <sup class="headsup">(Voice search is not supported in your browser, we recommend <a target="_blank" href="http://chrome.google.com/">Google Chrome</a>)</sup> your search query');
|
|
$("#searchhead").html('Type or say your search query <sup class="headsup">(Yay! Your browser supports speech input! )</sup>');
|
|
}
|
|
});
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|