Browse Source

Made a nicer login

master
Joshua Moerman 12 years ago
parent
commit
3ec0075b4b
  1. 31
      index.css
  2. 12
      index.html

31
index.css

@ -1,3 +1,4 @@
/* General */
body {
color: #888;
background: #000;
@ -14,6 +15,34 @@ a {
position: relative;
text-align: center;
}
/* Login */
.modalDialog {
position: fixed;
font-family: Arial, Helvetica, sans-serif;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0,0,0,0.8);
z-index: 99999;
opacity:1;
-webkit-transition: opacity 400ms ease-in;
-moz-transition: opacity 400ms ease-in;
transition: opacity 400ms ease-in;
}
.modalDialog > div {
text-align: center;
width: 300px;
position: relative;
margin: 10% auto;
padding: 5px 20px 13px 20px;
border-radius: 10px;
background: #fff;
}
/* BALLS */
#ballscreen {
position: absolute;
background-color: rgba(0.0, 0.0, 0.0, 0.0);
@ -34,6 +63,8 @@ a {
border-radius: 5px;
background-color: #f00;
}
/* LINES */
#svgscreen {
position: absolute;
width: 1000px;

12
index.html

@ -6,6 +6,7 @@
<link href="index.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="timers.js"></script>
<script type="text/javascript" src="connection.js"></script>
<script type="text/javascript" src="websocket.js"></script>
<script type="text/javascript" src="drawing.js"></script>
@ -16,13 +17,17 @@
</head>
<body ontouchmove="prevent_scrolling(event);">
<div id="login">
<div id="login" class="modalDialog">
<div>
<form onSubmit="return init()">
Name: <input type="text" id="loginname"><br/>
<input type="submit" value="login">
Name:<br/>
<input type="text" id="loginname"><br/>
<input type="submit" value="Play!">
</form>
</div>
</div>
<div id="app">
<svg id="svgscreen" xmlns="http://www.w3.org/2000/svg" version="1.1">
<rect width="100%" height="100%" style="fill:rgb(255, 255, 255); opacity:0.1; stroke-width:1; stroke:rgb(0,0,0)"/>
</svg>
@ -33,6 +38,7 @@
(<span id="status">provide your name</span>)
<a onClick="changeKind();" href="#">Change line kind (to <span id="line_kind">guitar</span>)</a>
</div>
</div>
</body>
</html>