-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
92 lines (83 loc) · 2.68 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ChChanges Demo</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-7s5uDGW3AHqw6xtJmNNtr+OBRJUlgkNJEo78P4b0yRw= sha512-nNo+yCHEyn0smMxSswnf/OnX6/KwJuZTlNZBjauKhTK0c+zT+q5JOCx0UFhXQ6rJR9jg6Es8gPuD2uZcYDLqSw==" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
<script src="jquery.chchanges.js"></script>
<script>
$(function(){
$(".container").chchanges();
});
</script>
<style>
.unsaved, form-container.unsaved {
border: 2px solid #ed9c28;
}
.checkbox.unsaved,
.radio-group.unsaved {
background-color: #ed9c28;
}
</style>
</head>
<body>
<div class="container form-container">
<h2>ChChanges Demo</h2>
<form>
<div class="form-group">
<label for="exampleInputFirstName">First Name</label>
<input type="text" class="form-control" id="exampleInputFirstName">
</div>
<div class="form-group">
<label for="exampleInputLastName">Last Name</label>
<input type="text" class="form-control" id="exampleInputLastName">
</div>
<div class="form-group">
<label for="exampleInputDescription">Description</label>
<textarea id="exampleInputDescription" class="form-control" rows="3"></textarea>
</div>
<div class="form-group">
<div class="checkbox">
<label>
<input type="checkbox" value="y"> Yes
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="n"> No
</label>
</div>
</div>
<div class="form-group radio-group">
<div class="radio">
<label>
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
Option 1
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
Option 2
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="optionsRadios" id="optionsRadios3" value="option3">
Option 3
</label>
</div>
</div>
<div class="form-group">
<select class="form-control">
<option selected="true">Select 1</option>
<option>Select 2</option>
<option>Select 3</option>
</select>
</div>
<button type="submit" class="btn btn-default" disabled="true">Submit</button>
</form>
</div>
</body>
</html>