/
index.html
42 lines (40 loc) · 1.1 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
<!DOCTYPE html>
<html>
<head>
<title>Slide To Submit</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/demo.css">
<link rel="stylesheet" href="css/slide-to-submit.css">
<meta name="viewport" content="width=device-width">
</head>
<body>
<h1>Slide To Submit</h1>
<form method="POST" id="form1">
<label for="name">Name</label>
<input type="text" name="name" required>
<label for="email">Email</label>
<input type="email" name="email">
<div class="slide-submit">
<div class="slide-submit-text">Slide To Submit</div>
<div class="slide-submit-thumb">»</div>
</div>
</form>
<a href="#" id="reload" class="button">Reload Demo</a><br><a href="http://www.github.com/kthornbloom/slide-to-submit" class="button">Docs</a>
<script src="js/jquery.js"></script>
<script src="js/slide-to-submit.js"></script>
<script>
$('.slide-submit').slideToSubmit({
submitDelay: 1000,
successText: 'Looks Like You\x27re Human!'
});
// Demo only
$("#form1").submit(function(e) {
e.preventDefault();
$('#form1').slideUp();
});
$('#reload').click(function() {
location.reload();
});
</script>
</body>
</html>