-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.html
48 lines (38 loc) · 1.4 KB
/
template.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Modality Example</title>
<link rel="stylesheet" href="css/modality.min.css">
<!-- Sample styles for your modal -->
<style>
.yourModalClass {
background-color: #ffffff;
border: 1px solid #cccccc;
padding: 0 1.5em 1em;
border-radius: 5px;
max-width: 500px;
}
</style>
</head>
<body>
<!-- Your Modal -->
<div id="yourModalId" class="yourModalClass" role="dialog" aria-labelledby="yourModalHeading" style="display:none;">
<!-- Sample Content -->
<h2 id="yourModalHeading">Modality Rocks!</h2>
<p>Modality was designed to be the only modal plugin you would ever need.</p>
<!-- This closes your modal -->
<a href="#yourModalId" aria-label="close">Close Modal</a>
</div>
<!-- This opens your modal -->
<a href="#yourModalId" aria-label="open">Open Modal</a>
<!-- jQuery -->
<!-- <script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="js/modality.jquery.min.js"></script>
<script>$('#yourModalId').modality( {effect:'slide-up'} );</script> -->
<!-- JavaScript -->
<script src="js/modality.min.js"></script>
<script>Modality.init( '#yourModalId', {effect:'slide-up'} );</script>
</body>
</html>