-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
128 lines (111 loc) · 3.15 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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Eka Foundation</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="css/reveal.min.css">
<link rel="stylesheet" href="css/theme/black.css">
<!-- CSS for modal -->
<link rel="stylesheet" href="css/tingle.css">
<!-- custom css -->
<style type="text/css">
.tingle-modal.tingle-modal--large .tingle-modal-box {
width: 80%;
height: 80%;
overflow-y: scroll;
}
.column-left {
float: left;
width:25%;
}
.column-right {
float:left;
width: 75%;
}
.row:after {
content: "";
display: table;
clear: both;
}
</style>
</head>
<body>
<div class="reveal">
<div class="slides">
<section data-state="static">
<section data-background="images/first.optim.jpg" data-background-position="bottom">
<h3><span>Unlocking the human future of the internet</span></h3>
<a id="story-1" href="#">READ FULL STORY</a>
</section>
<section data-background="images/second.optim.jpg" data-background-position="bottom">
<h3><span>equality through decentralized technology</span></h3>
<a id="story-2" href="#">READ FULL STORY</a>
</section>
<section data-background="images/third.optim.jpg" data-background-position="bottom">
<h3><span>discovery and learning as a creative process</span></h3>
<a id="story-3" href="#">READ FULL STORY</a>
</section>
</section>
</div>
</div>
<script src="js/reveal.min.js"></script>
<script src="js/tingle.min.js"></script>
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script>
Reveal.initialize({
// custom settings
// Enable slide navigation via mouse wheel
mouseWheel: true,
// hide control icons
controls: false,
// Remember slide
history: true,
transitionSpeed: 'slow',
backgroundTransition: 'none'
});
$(document).ready(function(){
// instanciate new modal
var modal = new tingle.modal({
footer: false,
stickyFooter: false,
closeMethods: ['overlay', 'button'],
closeLabel: "",
cssClass: ['tingle-modal--large'],
onOpen: function() {
console.log('modal open');
},
onClose: function() {
console.log('modal closed');
},
});
// READ FULL STORY link handler
$('#story-1').click(function(e) {
e.preventDefault();
openModal('stories/story-1.html')
});
$('#story-2').click(function(e) {
e.preventDefault();
openModal('stories/story-2.html')
});
$('#story-3').click(function(e) {
e.preventDefault();
openModal('stories/story-3.html')
});
function openModal(path) {
$.ajax(path, {
success: function(resp) {
modal.setContent(resp)
modal.open()
}
})
}
});
</script>
</body>
</html>