forked from zurb/reveal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dojo_demo.html
57 lines (47 loc) · 1.62 KB
/
dojo_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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<!--
* Markup for Dojo Reveal Plugin 1.0
* www.ZURB.com/playground
* Copyright 2010, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
-->
<head>
<meta charset="utf-8" />
<title>Reveal Demo</title>
<!-- Attach our CSS -->
<link rel="stylesheet" href="reveal.css">
<!-- Attach necessary scripts -->
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js" type="text/javascript"></script>
<script type="text/javascript" src="dojo.reveal.js"></script>
<script>
function openModal() {
reveal = new ZURB.Reveal({modalId: "myModal"});
reveal.openModal();
}
</script>
<style type="text/css">
body { font-family: "HelveticaNeue","Helvetica-Neue", "Helvetica", "Arial", sans-serif; }
.big-link { display:block; margin-top: 100px; text-align: center; font-size: 70px;}
</style>
</head>
<body>
<a href="#" class="big-link" dojoType="ZURB.Reveal" modalId="myModal" animation="fadeAndPop">
Fade and Pop Animation
</a>
<a href="#" class="big-link" dojoType="ZURB.Reveal" modalId="myModal" animation="fade">
Fade Animation
</a>
<a href="#" class="big-link" dojoType="ZURB.Reveal" modalId="myModal" animation="none">
No Animation
</a>
<a href="#" class="big-link" onclick="openModal(); return false;">
Open With Script
</a>
<div id="myModal" class="reveal-modal">
<h1>Reveal Modal Goodness</h1>
<p>This is a default modal in all its glory, but any of the styles here can easily be changed in the CSS.</p>
<a class="close-reveal-modal">×</a>
</div>
</body>
</html>