-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
93 lines (88 loc) · 5.17 KB
/
index.html
File metadata and controls
93 lines (88 loc) · 5.17 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>hey.js | A vanilla-JS modal</title>
<meta name="description" content="hey.js is a simple dependency-free modal written in JavaScript.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="demo/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="dist/css/hey.css">
<link rel="stylesheet" href="dist/css/hey-minimal.css">
<link rel="stylesheet" href="dist/css/demo.css">
</head>
<body>
<div class="site">
<main>
<img class="icon" src="demo/img/apple-wave.png" alt="Waving hand emoji">
<h1><a href="https://github.com/jayfreestone/hey">hey.js</a> is a simple dependency-free modal written in JavaScript.</h1>
<p>It can be included inline or generated dynamically. Accessible by default and dependency-free.</p>
<!--<a-->
<!--data-hey-confirm-->
<!--data-hey-title="Confirm please"-->
<!--data-hey-body="Are you sure?"-->
<!--href="http://www.google.com"-->
<!--class="modal-trigger button"-->
<!-->-->
<!--Show me the modal-->
<!--</a>-->
<form onSubmit="console.log('submit')">
<button
data-hey-confirm
data-hey="#great-modal"
class="modal-trigger button"
>
Show me the modal
</button>
</form>
<div class="links">
<a href="https://github.com/jayfreestone/hey">
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 32.58 31.77"><title>github</title><path d="M16.29,0a16.29,16.29,0,0,0-5.15,31.75c.81.15,1.11-.35,1.11-.79s0-1.41,0-2.77C7.7,29.18,6.74,26,6.74,26a4.31,4.31,0,0,0-1.81-2.38c-1.48-1,.11-1,.11-1a3.42,3.42,0,0,1,2.5,1.68,3.47,3.47,0,0,0,4.74,1.35,3.48,3.48,0,0,1,1-2.18C9.7,23.08,5.9,21.68,5.9,15.44a6.3,6.3,0,0,1,1.68-4.37,5.86,5.86,0,0,1,.16-4.31s1.37-.44,4.48,1.67a15.44,15.44,0,0,1,8.16,0c3.11-2.11,4.48-1.67,4.48-1.67A5.85,5.85,0,0,1,25,11.07a6.29,6.29,0,0,1,1.67,4.37c0,6.26-3.81,7.63-7.44,8a3.89,3.89,0,0,1,1.11,3c0,2.18,0,3.93,0,4.47s.29.94,1.12.78A16.29,16.29,0,0,0,16.29,0Z" style="fill:#221e1b;fill-rule:evenodd"/></svg>
View on Github
</a>
</div>
</main>
<footer>Made by <a href="https://www.jayfreestone.com/" target="_blank">Jay Freestone</a></footer>
</div>
<!--<div id="great-modal" style="display: none;">-->
<!--<h3 data-hey-title>Delete post</h3>-->
<!--<div data-hey-body>-->
<!--<p>This is a modal and the contents</p>-->
<!--<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sagittis metus est, eu aliquet arcu-->
<!--interdum eu. Mauris in tortor semper, pulvinar nunc et, tincidunt lectus. Donec erat ex, ultricies sit</p>-->
<!--<a href="/delete">Delete</a>-->
<!--<button data-hey-close>Cancel</button>-->
<!--</div>-->
<!--</div>-->
<div id="great-modal" style="display: none;">
<h3 data-hey-title>Modal <a href="#">title</a></h3>
<div data-hey-body>
<p>This is a modal and the contents</p>
<p>Lorem ipsum dolor sit amet.</p>
<p>Ut commodo urna sit amet eros hendrerit volutpat. Vestibulum eu augue at enim eleifend sollicitudin. Ut
ut tellus dui. Nulla ante odio, tincidunt at mollis ornare, mattis a nisi. Morbi a feugiat erat. Donec
euismod nec quam eu ultrices. Maecenas a nunc vitae leo iaculis pretium.</p>
<p>Ut commodo urna sit amet eros hendrerit volutpat. Vestibulum eu augue at enim eleifend sollicitudin. Ut
ut tellus dui. Nulla ante odio, tincidunt at mollis ornare, mattis a nisi. Morbi a feugiat erat. Donec
euismod nec quam eu ultrices. Maecenas a nunc vitae leo iaculis pretium.</p>
<p>Ut commodo urna sit amet eros hendrerit volutpat. Vestibulum eu augue at enim eleifend sollicitudin. Ut
ut tellus dui. Nulla ante odio, tincidunt at mollis ornare, mattis a nisi. Morbi a feugiat erat. Donec
euismod nec quam eu ultrices. Maecenas a nunc vitae leo iaculis pretium.</p>
<p>Ut commodo urna sit amet eros hendrerit volutpat. Vestibulum eu augue at enim eleifend sollicitudin. Ut
ut tellus dui. Nulla ante odio, tincidunt at mollis ornare, mattis a nisi. Morbi a feugiat erat. Donec
euismod nec quam eu ultrices. Maecenas a nunc vitae leo iaculis pretium.</p>
</div>
</div>
<script src="dist/js/heyModal.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var myModal = heyModal(document.querySelector('.modal-trigger'), {
classes: {
confirm: ['nope']
}
});
});
</script>
<script src="https://use.typekit.net/cnt7bje.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
</body>
</html>