-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
46 lines (40 loc) · 2.62 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Fusilli.js — The tiniest JavaScript popup library</title>
<!-- Meta tags, for that cool link preview on social media -->
<meta name="description" content="A small and lightweight JavaScript modal/popup libraray.">
<meta itemprop="name" content="Fusilli.js — The tiniest JavaScript popup library">
<meta itemprop="description" content="A small and lightweight JavaScript modal/popup libraray.">
<meta itemprop="image" content="https://repository-images.githubusercontent.com/273712844/3a0bfa80-bc5f-11ea-817a-d241d4abcff7">
<meta property="og:url" content="https://fusilli.js.org">
<meta property="og:type" content="website">
<meta property="og:title" content="Fusilli.js — The tiniest JavaScript popup library">
<meta property="og:description" content="A small and lightweight JavaScript modal/popup libraray.">
<meta property="og:image" content="https://repository-images.githubusercontent.com/273712844/3a0bfa80-bc5f-11ea-817a-d241d4abcff7">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Fusilli.js — The tiniest JavaScript popup library">
<meta name="twitter:description" content="A small and lightweight JavaScript modal/popup libraray.">
<meta name="twitter:image" content="https://repository-images.githubusercontent.com/273712844/3a0bfa80-bc5f-11ea-817a-d241d4abcff7">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/light.min.css">
<!-- Prevent showing the modal while the page is loading -->
<style> .modal{ display: none; } </style>
</head>
<body onload="openModal(document.getElementById('modal_1'));">
<img src="https://repository-images.githubusercontent.com/273712844/3a0bfa80-bc5f-11ea-817a-d241d4abcff7" alt="Fusilli.js" loading="lazy">
<br><br>
<button onclick="openModal(document.getElementById('modal_1'));">Open sesame!</button>
<div id="modal_1" class="modal" aria-hidden="true" aria-modal="true" tabindex="-1">
<div class="modal_box">
<h2>You came here for the Popup</h2>
<p><b>Fusilli.js</b> is not your average JavaScript Popup-library. It's lightweight (only 1.3KB!) and it super-tiny. It can just open and close Modals - great for all kind of scenarios where you need a minimal popup you can customize!</p>
<p>Curious? Check it out on GitHub!</p>
<a href="https://github.com/AnTheMaker/Fusilli.js"><button>GitHub</button></a>
</div>
</div>
<!-- The *magical* script -->
<script src="fusilli.min.js"></script>
</body>
</html>