165 lines
6.5 KiB
HTML
165 lines
6.5 KiB
HTML
<%
|
|
var settings = require("ep_etherpad-lite/node/utils/Settings");
|
|
%>
|
|
<!doctype html>
|
|
<html>
|
|
|
|
<title><%=settings.title%></title>
|
|
<meta charset="utf-8">
|
|
<meta name="referrer" content="no-referrer">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
|
|
<link rel="shortcut icon" href="favicon.ico">
|
|
|
|
<link rel="localizations" type="application/l10n+json" href="locales.json">
|
|
<script type="text/javascript" src="static/js/vendors/html10n.js?v=<%=settings.randomVersionString%>"></script>
|
|
<script type="text/javascript" src="static/js/l10n.js?v=<%=settings.randomVersionString%>"></script>
|
|
<script src="static/js/vendors/jquery.js"></script>
|
|
<script src="static/js/index.js"></script>
|
|
|
|
<style>
|
|
html, body {
|
|
height: 100%;
|
|
}
|
|
body {
|
|
margin: 0;
|
|
color: #333;
|
|
font: 14px helvetica, sans-serif;
|
|
background: #ddd;
|
|
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;
|
|
border-top: 8px solid rgba(51,51,51,.8);
|
|
}
|
|
#wrapper {
|
|
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);
|
|
box-shadow: 0px 1px 8px rgba(0,0,0,0.3);
|
|
}
|
|
#inner {
|
|
position:relative;
|
|
max-width: 300px;
|
|
margin: 0 auto;
|
|
}
|
|
#button {
|
|
margin: 0 auto;
|
|
text-align: center;
|
|
font: 36px verdana,arial,sans-serif;
|
|
width:300px;
|
|
border:none;
|
|
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);
|
|
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;
|
|
}
|
|
#label {
|
|
text-align: left;
|
|
text-shadow: 0 1px 1px #fff;
|
|
margin: 16px auto 0;
|
|
display:block;
|
|
}
|
|
#padname{
|
|
height:38px;
|
|
max-width:280px;
|
|
}
|
|
form {
|
|
height: 38px;
|
|
background: #fff;
|
|
border: 1px solid #bbb;
|
|
border-radius: 3px;
|
|
position: relative;
|
|
}
|
|
button, input {
|
|
font-weight: bold;
|
|
font-size: 15px;
|
|
}
|
|
input[type="text"] {
|
|
border-radius: 3px;
|
|
box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
line-height:36px; /* IE8 hack */
|
|
padding: 0px 45px 0 10px;
|
|
*padding: 0; /* IE7 hack */
|
|
width: 100%;
|
|
height: 100%;
|
|
outline: none;
|
|
border: none;
|
|
position: absolute;
|
|
}
|
|
button[type="submit"] {
|
|
position: absolute;
|
|
left:253px;
|
|
width: 45px;
|
|
height: 38px;
|
|
}
|
|
@media only screen and (min-device-width: 320px) and (max-device-width: 800px) {
|
|
body {
|
|
background: #bbb;
|
|
background: -webkit-linear-gradient(#aaa,#eee 60%) center fixed;
|
|
background: -moz-linear-gradient(#aaa,#eee 60%) center fixed;
|
|
background: -ms-linear-gradient(#aaa,#eee 60%) center fixed;
|
|
}
|
|
#wrapper {
|
|
margin-top: 0;
|
|
}
|
|
#inner {
|
|
width: 95%;
|
|
}
|
|
#label {
|
|
text-align: center;
|
|
}
|
|
}
|
|
</style>
|
|
<% e.begin_block("indexCustomStyles"); %>
|
|
<link href="static/skins/<%=encodeURI(settings.skinName)%>/index.css?v=<%=settings.randomVersionString%>" rel="stylesheet">
|
|
<% e.end_block(); %>
|
|
|
|
<div id="wrapper">
|
|
<% e.begin_block("indexWrapper"); %>
|
|
<div id="inner">
|
|
<% if (!settings.requireSession) { %>
|
|
<% if (settings.editOnly) { %>
|
|
<label id="label" for="padname" data-l10n-id="index.openPad"></label>
|
|
<% } else {%>
|
|
<button id="button" data-l10n-id="index.newPad"></button>
|
|
<label id="label" for="padname" data-l10n-id="index.createOpenPad"></label>
|
|
<% } %>
|
|
<form action="#" id="go2Name">
|
|
<input type="text" id="padname" maxlength="50" autofocus x-webkit-speech>
|
|
<button type="submit">OK</button>
|
|
</form>
|
|
<% } %>
|
|
</div>
|
|
<% e.end_block(); %>
|
|
</div>
|
|
|
|
<% e.begin_block("indexCustomScripts"); %>
|
|
<script src="static/skins/<%=encodeURI(settings.skinName)%>/index.js?v=<%=settings.randomVersionString%>"></script>
|
|
<% e.end_block(); %>
|
|
<div style="display:none"><a href="/javascript" data-jslicense="1">JavaScript license information</a></div>
|
|
</html>
|