2011-08-16 22:25:42 +02:00
|
|
|
<!doctype html>
|
2012-01-26 17:22:44 +01:00
|
|
|
<html>
|
|
|
|
|
|
|
|
<title>Etherpad Lite</title>
|
|
|
|
|
|
|
|
<meta charset="utf-8">
|
2012-02-19 17:00:43 +01:00
|
|
|
<meta name="viewport" content="width=device-width, user-scalable=0">
|
2012-01-26 17:22:44 +01:00
|
|
|
|
2012-02-19 17:00:43 +01:00
|
|
|
<style>
|
2011-07-24 18:47:04 +02:00
|
|
|
body {
|
2012-02-19 17:00:43 +01:00
|
|
|
margin: 0;
|
|
|
|
height: 100%;
|
2011-08-16 22:25:42 +02:00
|
|
|
color: #333;
|
2012-02-19 17:00:43 +01:00
|
|
|
font: 14px helvetica, sans-serif;
|
|
|
|
background: #ddd;
|
2011-08-16 22:25:42 +02:00
|
|
|
background: -webkit-radial-gradient(circle,#aaa,#eee 60%) center fixed;
|
|
|
|
background: -moz-radial-gradient(circle,#aaa,#eee 60%) center fixed;
|
|
|
|
background: -ms-radial-gradient(circle,#aaa,#eee 60%) center fixed;
|
|
|
|
background: -o-radial-gradient(circle,#aaa,#eee 60%) center fixed;
|
2011-12-06 18:48:28 +01:00
|
|
|
border-top: 8px solid rgba(51,51,51,.8);
|
2011-07-24 18:47:04 +02:00
|
|
|
}
|
2012-02-19 17:00:43 +01:00
|
|
|
#wrapper {
|
2011-08-16 22:25:42 +02:00
|
|
|
border-top: 1px solid #999;
|
|
|
|
margin-top: 160px;
|
|
|
|
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;
|
2011-12-06 18:48:28 +01:00
|
|
|
box-shadow: 0px 1px 8px rgba(0,0,0,0.3);
|
2011-07-24 18:47:04 +02:00
|
|
|
}
|
2012-02-19 17:00:43 +01:00
|
|
|
#inner {
|
|
|
|
width: 300px;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
2011-07-24 18:47:04 +02:00
|
|
|
#button {
|
2011-08-16 22:25:42 +02:00
|
|
|
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;
|
|
|
|
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);
|
|
|
|
background: -o-linear-gradient(#5F5F5F,#565656 50%,#4C4C4C 51%,#373737);
|
2011-12-06 18:48:28 +01:00
|
|
|
box-shadow: inset 0 1px 3px rgba(0,0,0,0.9);
|
2011-08-16 22:25:42 +02:00
|
|
|
}
|
2011-07-24 18:47:04 +02:00
|
|
|
#button:hover {
|
2011-08-16 22:25:42 +02:00
|
|
|
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);
|
2011-12-06 18:48:28 +01:00
|
|
|
background: -o-linear-gradient(#707070,#666666 50%,#5B5B5B 51%,#474747);
|
2011-07-24 18:47:04 +02:00
|
|
|
}
|
|
|
|
#button:active {
|
2011-08-16 22:25:42 +02:00
|
|
|
box-shadow: inset 0 1px 12px rgba(0,0,0,0.9);
|
2011-12-06 18:48:28 +01:00
|
|
|
background: #444;
|
2011-07-26 15:11:39 +02:00
|
|
|
}
|
2011-08-02 13:56:55 +02:00
|
|
|
#label {
|
2011-07-26 15:19:01 +02:00
|
|
|
text-align: left;
|
2012-02-19 17:00:43 +01:00
|
|
|
text-shadow: 0 1px 1px #fff;
|
|
|
|
margin: 16px auto 0;
|
2011-08-16 22:25:42 +02:00
|
|
|
}
|
2012-02-19 17:00:43 +01:00
|
|
|
form {
|
|
|
|
height: 38px;
|
|
|
|
background: #fff;
|
|
|
|
border: 1px solid #bbb;
|
|
|
|
border-radius: 3px;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
button, input {
|
2011-08-16 22:25:42 +02:00
|
|
|
font-weight: bold;
|
2011-12-06 18:48:28 +01:00
|
|
|
font-size: 15px;
|
2011-07-26 15:11:39 +02:00
|
|
|
}
|
2011-07-24 18:47:04 +02:00
|
|
|
input[type="text"] {
|
2011-08-16 22:25:42 +02:00
|
|
|
border-radius: 3px;
|
2012-02-19 17:00:43 +01:00
|
|
|
box-sizing: border-box;
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
padding: 0 45px 0 10px;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
outline: none;
|
|
|
|
border: none;
|
|
|
|
position: absolute;
|
2011-08-16 22:25:42 +02:00
|
|
|
}
|
2012-02-19 17:00:43 +01:00
|
|
|
button[type="submit"] {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
2011-08-16 22:25:42 +02:00
|
|
|
width: 45px;
|
2012-02-19 17:00:43 +01:00
|
|
|
height: 38px;
|
2011-07-24 18:47:04 +02:00
|
|
|
}
|
2012-01-14 21:41:41 +01:00
|
|
|
@media only screen and (min-device-width: 320px) and (max-device-width: 720px) {
|
2011-12-06 18:48:28 +01:00
|
|
|
body {
|
|
|
|
background: #bbb;
|
|
|
|
background: -webkit-linear-gradient(#aaa,#eee 60%) center fixed;
|
2012-02-19 17:00:43 +01:00
|
|
|
background: -moz-linear-gradient(#aaa,#eee 60%) center fixed;
|
|
|
|
background: -ms-linear-gradient(#aaa,#eee 60%) center fixed;
|
2011-12-06 18:48:28 +01:00
|
|
|
}
|
2012-02-19 17:00:43 +01:00
|
|
|
#wrapper {
|
2011-12-06 18:48:28 +01:00
|
|
|
margin-top: 0;
|
|
|
|
}
|
2012-02-19 17:00:43 +01:00
|
|
|
#inner {
|
2011-12-06 18:48:28 +01:00
|
|
|
width: 95%;
|
|
|
|
}
|
2012-02-19 17:00:43 +01:00
|
|
|
#label {
|
|
|
|
text-align: center;
|
2011-12-06 18:48:28 +01:00
|
|
|
}
|
|
|
|
}
|
2012-02-19 17:00:43 +01:00
|
|
|
</style>
|
2011-08-16 22:25:42 +02:00
|
|
|
<link href="static/custom/index.css" rel="stylesheet">
|
2012-01-26 17:22:44 +01:00
|
|
|
|
2012-02-19 17:00:43 +01:00
|
|
|
<div id="wrapper">
|
|
|
|
<div id="inner">
|
|
|
|
<div id="button" onclick="go2Random()" class="translate">New Pad</div>
|
|
|
|
<div id="label" class="translate">or create/open a Pad with the name</div>
|
|
|
|
<form action="#" onsubmit="go2Name();return false;">
|
2012-01-26 17:22:44 +01:00
|
|
|
<input type="text" id="padname" autofocus x-webkit-speech>
|
2012-02-19 17:00:43 +01:00
|
|
|
<button type="submit">OK</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
2012-01-26 17:22:44 +01:00
|
|
|
</div>
|
|
|
|
|
2012-02-19 17:00:43 +01:00
|
|
|
<script src="static/custom/index.js"></script>
|
2011-08-16 22:25:42 +02:00
|
|
|
<script>
|
2011-08-17 20:58:07 +02:00
|
|
|
function go2Name()
|
|
|
|
{
|
|
|
|
var padname = document.getElementById("padname").value;
|
|
|
|
padname.length > 0 ? window.location = "p/" + padname : alert("Please enter a name")
|
2011-07-24 18:47:04 +02:00
|
|
|
}
|
2011-08-17 20:58:07 +02:00
|
|
|
|
|
|
|
function go2Random()
|
|
|
|
{
|
|
|
|
window.location = "p/" + randomPadName();
|
2011-07-24 18:47:04 +02:00
|
|
|
}
|
2011-08-17 20:58:07 +02:00
|
|
|
|
|
|
|
function randomPadName()
|
|
|
|
{
|
|
|
|
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
|
|
var string_length = 10;
|
|
|
|
var randomstring = '';
|
|
|
|
for (var i = 0; i < string_length; i++)
|
|
|
|
{
|
|
|
|
var rnum = Math.floor(Math.random() * chars.length);
|
|
|
|
randomstring += chars.substring(rnum, rnum + 1);
|
2011-07-24 18:47:04 +02:00
|
|
|
}
|
2011-08-17 20:58:07 +02:00
|
|
|
return randomstring;
|
2011-07-24 18:47:04 +02:00
|
|
|
}
|
2011-08-17 20:58:07 +02:00
|
|
|
|
2012-02-05 00:22:25 +01:00
|
|
|
// start the custom js
|
|
|
|
if (typeof customStart == "function") customStart();
|
2012-01-26 17:22:44 +01:00
|
|
|
</script>
|
|
|
|
|
2012-01-14 21:41:41 +01:00
|
|
|
</html>
|