This repository was archived by the owner on Jul 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·190 lines (188 loc) · 6.44 KB
/
index.html
File metadata and controls
executable file
·190 lines (188 loc) · 6.44 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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="bower_components/nouislider/src/jquery.nouislider.css">
<link rel="stylesheet" href="bower_components/ladda/dist/ladda.min.css">
<link rel="stylesheet" href="demo.css">
<link rel="stylesheet" href="//goldinteractive.github.io/ui-shared-assets/style.css">
</head>
<body>
<div class="container">
<h1 class="g-12 g-mobile-10">Form</h1>
<form class="ui-form">
<div class="ui-form-field g-6 g-mobile-10">
<div class="ui-textfield">
<label for="name">Name</label>
<input placeholder="John" id="name" type="text" />
</div>
</div>
<div class="ui-form-field g-6 g-mobile-10">
<div class="ui-textfield">
<label for="surname">Surname*</label>
<input placeholder="Smith" id="surname" required type="text" />
</div>
</div>
<div class="ui-form-field g-12 g-mobile-10">
<label for="slider1">Age</label><br />
<div id="slider1" class="ui-slider tooltip"></div>
</div>
<div class="ui-form-field g-6 g-mobile-10">
<label for="nation">Nation</label>
<select id="nation" class="ui-select">
<option value="">--</option>
<option value="">Switzerland</option>
</select>
</div>
<div class="ui-form-field g-6 g-mobile-10">
<label for="region">Region</label>
<select id="region" class="ui-select">
<option value="">--</option>
<option value="">Europe</option>
</select>
</div>
<div class="ui-form-field g-10 g-mobile-10">
<div class="ui-textfield error">
<label for="street">Street</label>
<input placeholder="Albulastrasse" id="street" type="text" />
<small>Please insert a valid street value</small>
</div>
</div>
<div class="ui-form-field g-2 g-mobile-10">
<div class="ui-textfield success">
<label for="street_number">Street Number</label>
<input id="street_number" type="text" value="39" />
<small>Awesome! We've found your street number in our db!</small>
</div>
</div>
<div class="ui-form-field g-4 g-mobile-10">
<div class="ui-textfield">
<label for="company">Company</label>
<input placeholder="Gold Interactive" id="company" type="text" />
</div>
</div>
<div class="ui-form-field g-8 g-mobile-10">
<div class="ui-textfield">
<label for="role">Role</label>
<input placeholder="Web Developer" id="role" type="text" />
</div>
</div>
<div class="ui-form-field g-12 g-mobile-10">
<div class="ui-textfield">
<label for="message">Message</label>
<textarea id="message"></textarea>
</div>
</div>
<div class="ui-form-field">
<p class="g-12 g-mobile-10">I am intereded in:</p>
<div class="ui-checkbox g-2 g-mobile-10">
<label for="news">
<input type="checkbox" id="news" name="news">
<span class="ui-checkbox-marker"></span>
<span class="ui-checkbox-label">News</span>
</label>
</div>
<div class="ui-checkbox g-2 g-mobile-10">
<label for="sport">
<input type="checkbox" id="sport" name="sport">
<span class="ui-checkbox-marker"></span>
<span class="ui-checkbox-label">Sport</span>
</label>
</div>
<div class="ui-checkbox g-8 g-mobile-10">
<label for="IT">
<input type="checkbox" id="IT" name="IT">
<span class="ui-checkbox-marker"></span>
<span class="ui-checkbox-label">IT</span>
</label>
</div>
</div>
<div class="ui-form-field g-12 g-mobile-10">
<p class="full-width">I want to be subscribed to: </p>
<div class="ui-checkbox inline-field">
<label for="newsletter">
<input type="checkbox" id="newsletter" name="newsletter">
<span class="ui-checkbox-marker"></span>
<span class="ui-checkbox-label">Newsletter </span>
</label>
</div>
<div class="ui-checkbox inline-field">
<label for="push">
<input type="checkbox" id="push" name="push">
<span class="ui-checkbox-marker"></span>
<span class="ui-checkbox-label">Push notification service</span>
</label>
</div>
</div>
<div class="ui-form-field g-12 g-mobile-10">
<div class="ui-toggle round">
<label for="toggle-2">
<input id="toggle-2" type="checkbox">
<span class="ui-toggle-handle"></span>
<span class="ui-toggle-label">I accept the conditions</span>
</label>
</div>
</div>
<div class="ui-form-field g-12 g-mobile-10">
<p>How did you find this form?</p>
<div class="ui-radio">
<label for="github">
<input type="radio" id="github" name="info" checked="">
<span class="ui-radio-marker"></span>
<span class="ui-radio-label">github</span>
</label>
</div>
<div class="ui-radio">
<label for="dude">
<input type="radio" id="dude" name="info" checked="">
<span class="ui-radio-marker"></span>
<span class="ui-radio-label">from a dude</span>
</label>
</div>
<div class="ui-radio">
<label for="random">
<input type="radio" id="random" name="info" checked="">
<span class="ui-radio-marker"></span>
<span class="ui-radio-label">random</span>
</label>
</div>
</div>
<div class="ui-form-field g-12 g-mobile-10 text-right">
<button type="reset" class="ui-btn hoverable no-shadow">Reset</button>
<button type="submit" data-style="zoom-out" class="ui-btn hoverable no-shadow primary ladda-button">Send form</button>
</div>
</form>
<h1 class="g-12 g-mobile-10">Form feedback</h1>
<p class="ui-form-feedback g-12 g-mobile-10 success">✓ Your form was sent correcly</p>
<p class="ui-form-feedback g-12 g-mobile-10 error">⨉ You cannot submit the same data twice</p>
</div>
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/nouislider/distribute/jquery.nouislider.all.js"></script>
<script src="bower_components/jquery-selectric/dist/jquery.selectric.js"></script>
<script src="bower_components/spin.js/spin.js"></script>
<script src="bower_components/ladda/js/ladda.js"></script>
<script src="bower_components/ladda/js/ladda.jquery.js"></script>
<script>
$("#slider1").noUiSlider({
start: 50,
format: wNumb({
decimals: 0
}),
range: {
'min': 0,
'max': 100
}
}).Link('lower').to('-inline-<span class="value min-val"></span>', function(value) {
$(this).html(value);
});
$('.ui-select').selectric({
animate: {
duration: 200
}
});
$( 'button[type=submit]').ladda('bind',{ timeout: 2000 });
$('form').on('submit',function(e){
e.preventDefault();
})
</script>
</body>
</html>