2011-07-24 16:47:04 +00:00
|
|
|
<!doctype html>
|
2011-07-25 22:45:04 +00:00
|
|
|
<html>
|
|
|
|
<title>Etherpad Lite</title>
|
2011-07-24 16:47:04 +00:00
|
|
|
<style>
|
2011-07-26 00:09:24 +00:00
|
|
|
* { margin: 0; padding: 0; }
|
2011-07-25 22:45:04 +00:00
|
|
|
@-webkit-keyframes inception {
|
|
|
|
0% { opacity:0; -webkit-transform:scale(3); }
|
|
|
|
100% {}
|
|
|
|
}
|
|
|
|
@-moz-keyframes inception {
|
|
|
|
0% { opacity:0; -moz-transform:scale(3); }
|
|
|
|
100% {}
|
|
|
|
}
|
|
|
|
@-o-keyframes inception {
|
|
|
|
0% { opacity:0; -o-transform:scale(3); }
|
|
|
|
100% {}
|
|
|
|
}
|
2011-07-24 16:47:04 +00:00
|
|
|
body {
|
|
|
|
background: rgba(0, 0, 0, .05);
|
2011-07-26 00:09:24 +00:00
|
|
|
color: #333;
|
2011-07-24 16:47:04 +00:00
|
|
|
text-shadow: 0 1px 0 #fff;
|
|
|
|
font: 14px helvetica,sans-serif;
|
|
|
|
background: #ccc;
|
|
|
|
background: -moz-radial-gradient(circle, #aaa, #eee) no-repeat center center fixed;
|
|
|
|
background: -webkit-radial-gradient(circle, #aaa, #eee) no-repeat center center fixed;
|
|
|
|
background: -ms-radial-gradient(circle, #aaa, #eee) no-repeat center center fixed;
|
|
|
|
background: -o-radial-gradient(circle, #aaa, #eee) no-repeat center center fixed;
|
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
|
|
|
#container {
|
|
|
|
border-top: 1px solid #999;
|
|
|
|
margin-top: 160px;
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
padding: 15px;
|
|
|
|
background: #eee;
|
|
|
|
background: -webkit-linear-gradient(#fff, #ccc);
|
|
|
|
background: -moz-linear-gradient(#fff, #ccc);
|
|
|
|
background: -ms-linear-gradient(#fff, #ccc);
|
|
|
|
background: -o-linear-gradient(#fff, #ccc);
|
|
|
|
opacity: .9;
|
|
|
|
box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.3);
|
2011-07-25 22:45:04 +00:00
|
|
|
-webkit-animation: inception .3s linear 1;
|
|
|
|
-moz-animation: inception .3s linear 1;
|
|
|
|
-o-animation: inception .3s linear 1;
|
2011-07-24 16:47:04 +00:00
|
|
|
}
|
|
|
|
#button {
|
|
|
|
margin: 0 auto;
|
|
|
|
border-radius: 3px;
|
|
|
|
text-align: center;
|
|
|
|
font: 36px verdana,arial,sans-serif;
|
|
|
|
color: white;
|
|
|
|
text-shadow: 0 -1px 0 rgba(0,0,0,.8);
|
|
|
|
height: 70px;
|
|
|
|
line-height: 70px;
|
|
|
|
width: 300px;
|
|
|
|
background: #555;
|
|
|
|
background: -webkit-linear-gradient(#5F5F5F, #565656 50%, #4C4C4C 51%, #373737);
|
|
|
|
background: -moz-linear-gradient(#5F5F5F, #565656 50%, #4C4C4C 51%, #373737);
|
|
|
|
background: -ms-linear-gradient(#5F5F5F, #565656 50%, #4C4C4C 51%, #373737);
|
2011-07-25 10:37:09 +00:00
|
|
|
background: -o-linear-gradient(#5F5F5F, #565656 50%, #4C4C4C 51%, #373737);
|
2011-07-24 16:47:04 +00:00
|
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9);
|
|
|
|
}
|
|
|
|
#button:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
background: #666;
|
|
|
|
background: -webkit-linear-gradient(#707070, #666666 50%, #5B5B5B 51%, #474747);
|
|
|
|
background: -moz-linear-gradient(#707070, #666666 50%, #5B5B5B 51%, #474747);
|
|
|
|
background: -ms-linear-gradient(#707070, #666666 50%, #5B5B5B 51%, #474747);
|
|
|
|
background: -o-linear-gradient(#707070, #666666 50%, #5B5B5B 51%, #474747);
|
|
|
|
}
|
|
|
|
#button:active {
|
|
|
|
box-shadow: inset 0 1px 12px rgba(0, 0, 0, 0.9);
|
|
|
|
background: #444;
|
2011-07-25 22:45:04 +00:00
|
|
|
/*
|
|
|
|
background: -webkit-linear-gradient(#565656, #4C4C4C 50%, #424242 51%, #2D2D2D);
|
|
|
|
background: -moz-linear-gradient(#565656, #4C4C4C 50%, #424242 51%, #2D2D2D);
|
|
|
|
background: -ms-linear-gradient(#565656, #4C4C4C 50%, #424242 51%, #2D2D2D);
|
|
|
|
background: -o-linear-gradient(#565656, #4C4C4C 50%, #424242 51%, #2D2D2D);
|
|
|
|
*/
|
2011-07-26 13:11:39 +00:00
|
|
|
}
|
|
|
|
.label {
|
|
|
|
text-align: left;
|
2011-07-26 13:13:26 +00:00
|
|
|
margin: 0 auto;
|
|
|
|
padding-left: 0;
|
2011-07-26 13:11:39 +00:00
|
|
|
}
|
2011-07-24 16:47:04 +00:00
|
|
|
input[type="text"] {
|
|
|
|
font-weight: bold;
|
2011-07-26 13:11:39 +00:00
|
|
|
font-size: 17px;
|
2011-07-24 16:47:04 +00:00
|
|
|
padding: 5px;
|
|
|
|
width: 245px;
|
2011-07-25 22:45:04 +00:00
|
|
|
outline: none;
|
|
|
|
}
|
2011-07-24 16:47:04 +00:00
|
|
|
input[type="submit"] {
|
2011-07-26 13:11:39 +00:00
|
|
|
height: 35px;
|
2011-07-24 16:47:04 +00:00
|
|
|
width: 40px;
|
|
|
|
}
|
|
|
|
</style>
|
2011-07-25 22:45:04 +00:00
|
|
|
<div id="container">
|
2011-07-24 16:47:04 +00:00
|
|
|
<div id="button" onclick="go2Random()">New Pad</div>
|
2011-07-25 22:45:04 +00:00
|
|
|
<br>
|
2011-07-26 13:11:39 +00:00
|
|
|
<span class="label">or create/open a Pad with the name</span>
|
2011-07-25 22:45:04 +00:00
|
|
|
<form action="" onsubmit="go2Name();return false;">
|
|
|
|
<input type="text" id="padname" autofocus>
|
|
|
|
<input type="submit" value="OK">
|
|
|
|
</form>
|
2011-07-24 16:47:04 +00:00
|
|
|
</div>
|
|
|
|
<script>
|
2011-07-25 11:35:38 +00:00
|
|
|
function go2Name()
|
|
|
|
{
|
2011-07-24 16:47:04 +00:00
|
|
|
var padname = document.getElementById("padname").value;
|
2011-07-25 11:35:38 +00:00
|
|
|
if (padname.length > 0)
|
|
|
|
{
|
2011-07-24 16:47:04 +00:00
|
|
|
window.location = "p/" + padname;
|
2011-07-25 11:35:38 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2011-07-24 16:47:04 +00:00
|
|
|
alert("Please enter a name");
|
|
|
|
}
|
|
|
|
}
|
2011-07-25 22:45:04 +00:00
|
|
|
|
2011-07-25 11:35:38 +00:00
|
|
|
function go2Random()
|
|
|
|
{
|
2011-07-24 16:47:04 +00:00
|
|
|
window.location = "p/" + randomPadName();
|
|
|
|
}
|
2011-07-25 22:45:04 +00:00
|
|
|
|
2011-07-25 11:35:38 +00:00
|
|
|
function randomPadName()
|
|
|
|
{
|
2011-07-24 16:47:04 +00:00
|
|
|
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
|
|
|
|
var string_length = 10;
|
|
|
|
var randomstring = '';
|
2011-07-25 11:35:38 +00:00
|
|
|
for (var i = 0; i < string_length; i++)
|
|
|
|
{
|
2011-07-24 16:47:04 +00:00
|
|
|
var rnum = Math.floor(Math.random() * chars.length);
|
|
|
|
randomstring += chars.substring(rnum, rnum + 1);
|
|
|
|
}
|
|
|
|
return randomstring;
|
|
|
|
}
|
2011-07-26 12:07:23 +00:00
|
|
|
</script>
|
2011-07-25 22:45:04 +00:00
|
|
|
</html>
|