-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
40 lines (34 loc) · 2.67 KB
/
demo.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Demo jquery-easy-overlay</title>
<link rel='stylesheet' href='overlay.css' />
</head>
<body>
<span id="overlayTrigger">Trigger Overlay One</span>
<div style="display:none" id="overlayContent">
Content of overlay one
<button class="overlay-close" id="overlayClose">X</button>
</div>
<p></p>
<span id="overlayTriggerTwo">Trigger Overlay Two</span>
<div style="display:none" id="overlayContentTwo">
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer
<button class="overlay-close" id="overlayCloseTwo">Close</button>
</div>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="overlay.js"></script>
<script>
var overlayOne = $('#overlayContent').overlay();
var overlayTwo = $('#overlayContentTwo').overlay({
overlayTriggerId: "#overlayTriggerTwo",
overlayCloseId: "#overlayCloseTwo"
});
//overlayTwo.destroy();
</script>
</body>
</html>