Removed unnecessary comments, changed label class to id and moved the custom js to the appropriate place
parent
8ca57ffde4
commit
17472a7270
|
@ -57,14 +57,8 @@
|
||||||
#button:active {
|
#button:active {
|
||||||
box-shadow: inset 0 1px 12px rgba(0, 0, 0, 0.9);
|
box-shadow: inset 0 1px 12px rgba(0, 0, 0, 0.9);
|
||||||
background: #444;
|
background: #444;
|
||||||
/*
|
|
||||||
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);
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
.label {
|
#label {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
width: 300px;
|
width: 300px;
|
||||||
|
@ -82,17 +76,17 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<link href="static/custom/index.css" rel="stylesheet">
|
<link href="static/custom/index.css" rel="stylesheet">
|
||||||
<script src="static/custom/index.js"></script>
|
|
||||||
<div id="container">
|
<div id="container">
|
||||||
<div id="button" onclick="go2Random()">New Pad</div>
|
<div id="button" onclick="go2Random()">New Pad</div>
|
||||||
<br>
|
<br>
|
||||||
<div class="label">or create/open a Pad with the name</div>
|
<div id="label">or create/open a Pad with the name</div>
|
||||||
<form action="#" onsubmit="go2Name();return false;">
|
<form action="#" onsubmit="go2Name();return false;">
|
||||||
<input type="text" id="padname" autofocus>
|
<input type="text" id="padname" autofocus>
|
||||||
<input type="submit" value="OK">
|
<input type="submit" value="OK">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script src="static/custom/index.js"></script>
|
||||||
|
<script>
|
||||||
function go2Name()
|
function go2Name()
|
||||||
{
|
{
|
||||||
var padname = document.getElementById("padname").value;
|
var padname = document.getElementById("padname").value;
|
||||||
|
|
Loading…
Reference in New Issue