-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (38 loc) · 1.73 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Weather widget</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.indigo-pink.min.css">
<script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="style.css">
<script type="text/javascript" src="core.js"></script>
</head>
<body>
<div class="mdl-grid">
<div class="mdl-cell mdl-cell--12-col">
<form action="http://localhost:3000/login" method="post" id="form">
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" name="username" type="text" id="username">
<label class="mdl-textfield__label" for="username">Username</label>
</div>
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" name="password" type="password" id="password">
<label class="mdl-textfield__label" for="password">Password</label>
</div>
<button id="login" type="submit" class="mdl-button">Войти</button>
<button id="register" type="button" class="mdl-button">Регистрация</button>
</form>
</div>
</div>
<script type="text/javascript">
$('#register').click(function() {
var form = $('#form');
form.attr('action', 'http://localhost:3000/register');
form.submit();
});
</script>
</body>
</html>