-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
50 lines (47 loc) · 1.37 KB
/
demo.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>
<head>
<title>hole demo</title>
<link type="text/css" rel="stylesheet" href="hole.css" />
<style type="text/css">
body {
font-family: 'Lucida Grande', sans-serif;
}
</style>
</head>
<body>
<h1>Hole demo</h1>
<p><a href="https://github.com/antris/hole">GitHub</a></p>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.0.js"></script>
<script type="text/javascript" src="bacon.js"></script>
<script type="text/javascript" src="bacon.model.js"></script>
<script type="text/javascript" src="bacon.jquery.js"></script>
<script type="text/javascript" src="hole.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('body').append(
hole.create({
$inputElem: $('<input>').attr('required', 'required'),
$labelElem: $('<label>').text('First name')
}),
hole.create({
$inputElem: $('<input>').attr('required', 'required'),
$labelElem: $('<label>').text('Last name')
}),
hole.create({
$inputElem: $('<input>'),
$labelElem: $('<label>').text('Phone')
}),
hole.create({
$inputElem: $('<input>').attr('required', 'required'),
$labelElem: $('<label>').text('Email')
}),
hole.create({
$inputElem: $('<textarea>'),
$labelElem: $('<label>').text('Description')
})
)
})
</script>
</body>
</html>