-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
47 lines (42 loc) · 1.69 KB
/
index.html
File metadata and controls
47 lines (42 loc) · 1.69 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Syncano User Registration</title>
<script src="js/jquery.min.js"></script>
<script src="js/syncano.min.js"></script>
<!-- Materialize CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/css/materialize.min.css">
<link rel="stylesheet" href="styles/index.css">
</head>
<body>
<div class="navbar-fixed">
<nav>
<div class="nav-wrapper">
<a class="brand-logo" href="http://syncano.io"><img id="syncanoLogo" src="images/syncano-logo-white.png"></a>
<ul class="right hide-on-med-and-down">
<li id="navTitle">User Registration Mini Hack</li>
</ul>
</div>
</nav>
</div>
<div class="user-input">
<label>Username</label>
<input type="text" id="username" /></br>
<label>Password</label>
<input type="password" id="password" /></br>
<input type="submit" id="submit" />
</div>
<p class="center-align">Need help? View the docs for more information about <a href="http://docs.syncano.io/docs/user-management">User Management</a></p>
<script type="text/javascript">
// Update this with your Syncano Account Key and Instance Name
var syncano = new Syncano({accountKey: "YOUR_SYNCANO_ACCOUNT_KEY"}).instance("YOUR_SYNCANO_INSTANCE_NAME");
$('#submit').on('click', function() {
var username = $('#username').val(),
password = $('#password').val();
// YOUR CODE GOES HERE
// Write your Syncano Login API Call here
// If successful, you will be able to see your created user in the Syncano Dashboard
});
</script>
</body>
</html>