-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.html
62 lines (56 loc) · 2.83 KB
/
example.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
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Material-style Inputs</title>
<!-- bootstrap -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<!-- material-style input -->
<link rel="stylesheet" href="input-material.css">
</head>
<body>
<!-- example form -->
<div class="container">
<div class="col-lg-8 card m-5 p-5">
<form id="contact-form">
<div class="form-group input-material">
<input type="text" class="form-control" id="name-field" required>
<label for="name-field">Name</label>
</div>
<div class="form-group input-material">
<input type="email" class="form-control" id="email-field" required>
<label for="email-field">Email</label>
</div>
<div class="form-group input-material">
<textarea class="form-control" id="textarea-field" rows="3" required></textarea>
<label for="textarea-field">Your Message</label>
</div>
<div class="form-group input-material">
<div class="form-group input-material">
<select class="form-control" id="personality" required>
<option value="" selected></option>
<option value="Spaces">Spaces</option>
<option value="Tabs">Tabs</option>
</select>
<label for="personality" class="form-label">Spaces or tabs?</label>
</div>
</div>
<div class="text-center">
<button type="submit" class="btn btn-primary">Send</button>
</div>
</form>
</div>
</div>
<!-- Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<!-- Materialise-inputs JS -->
<script src="materialize-inputs.jquery.js"></script>
<script>
$('document').ready(function(){
// enable material-style inputs in entire body
$('body').materializeInputs();
});
</script>
</body>
</html>