mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
Focus on input box onLoad
This commit is contained in:
parent
6a75c45968
commit
eecb45cbfd
1 changed files with 4 additions and 2 deletions
|
@ -86,12 +86,13 @@
|
||||||
input[type="submit"]::-moz-focus-inner { border: 0 }
|
input[type="submit"]::-moz-focus-inner { border: 0 }
|
||||||
@-moz-document url-prefix() { input[type="submit"] { padding: 7px } }
|
@-moz-document url-prefix() { input[type="submit"] { padding: 7px } }
|
||||||
</style>
|
</style>
|
||||||
|
<body onload="document.mainform.padname.focus();">
|
||||||
<link href="static/custom/index.css" rel="stylesheet">
|
<link href="static/custom/index.css" rel="stylesheet">
|
||||||
<script src="static/custom/index.js"></script>
|
<script src="static/custom/index.js"></script>
|
||||||
<div id="container">
|
<div id="container">
|
||||||
<div id="button" onclick="go2Random()">New Pad</div><br><div id="label">or create/open a Pad with the name</div>
|
<div id="button" onclick="go2Random()">New Pad</div><br><div id="label">or create/open a Pad with the name</div>
|
||||||
<form action="#" onsubmit="go2Name();return false;">
|
<form action="#" name=""mainform" "onsubmit="go2Name();return false;">
|
||||||
<input type="text" id="padname" autofocus>
|
<input type="text" name="padname" id="padname" autofocus>
|
||||||
<input type="submit" value="OK">
|
<input type="submit" value="OK">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -123,4 +124,5 @@
|
||||||
//start the costum js
|
//start the costum js
|
||||||
if(typeof costumStart == "function") costumStart();
|
if(typeof costumStart == "function") costumStart();
|
||||||
</script>
|
</script>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Add table
Add a link
Reference in a new issue