-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
159 lines (146 loc) · 5.71 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!DOCTYPE html>
<html lang="en_US">
<head>
<title>Star Wars Intro Creator</title>
<meta charset="utf-8"/>
<meta name="description" content="Create your own Star Wars opening crawl." />
<meta property="og:locale" content="en_US">
<meta property="og:url" content="http://brorlandi.github.io/StarWarsIntroCreator/">
<meta property="og:title" content="Star Wars Intro Creator">
<meta property="og:site_name" content="Star Wars Intro Creator">
<meta property="og:description" content="Create your own Star Wars opening crawl.">
<meta property="og:image" content="http://brorlandi.github.io/StarWarsIntroCreator/preview.png">
<meta property="og:image:type" content="image/png">
<meta property="og:type" content="website">
<meta property="fb:app_id" content="966673750071792"/>
<link rel="shortcut icon" href="favicon.png">
<!-- build:css ./styles.css -->
<link rel="stylesheet" type="text/css" href="bb8.css">
<link rel="stylesheet" type="text/css" href="styles.css">
<link rel="stylesheet" type="text/css" href="libs/sweetalert/dist/sweetalert.css">
<!-- endbuild -->
<!-- build:js ./vendor.js -->
<script src="libs/jquery/dist/jquery.min.js"></script>
<script src='libs/sweetalert/dist/sweetalert.min.js'></script>
<script src='libs/handlebars/handlebars.min.js'></script>
<!-- endbuild -->
<meta name="theme-color" content="#000">
<!-- Add to homescreen -->
<meta name="mobile-web-app-capable" content="yes">
<!-- More info: https://developer.chrome.com/multidevice/android/installtohomescreen -->
</head>
<body>
<div id="punchitbtn" class="conWarp" onclick="punchit()">
<span class="playButton btn">Punch it!</span>
</div>
<div class="bg">
<div class="deathstar"></div>
<div class="ohbm">
<img width="30%" src="https://firebasestorage.googleapis.com/v0/b/sparkle-ohbm.appspot.com/o/users%2FMmLlloenTiO9BRxui8tA4YsTgS13%2Fvenues%2Fhome%2F0150499879102018%2FOHBM_Map_Brain_background.png?alt=media&token=ffdcbca4-3609-4a1b-8179-2a41814eb6f5">
</div>
</div>
<article class="starwars">
<audio preload="auto">
<source src="tfa.ogg" type="audio/ogg" />
<source src="tfa.mp3" type="audio/mpeg" />
</audio>
<div id="loader" class="verticalWrapper" style="display:none">
<div class="conWarp" style="top: 75%; z-index: 100; opacity: 1.0">
<span class="playButton btn" style="background-color: #333; opacity: 1.0;">Play Intro!</span>
</div>
<div class="inner">
<div class="bb8">
<div class="bb8-top">
<div class="bb8-antena"></div>
<div class="bb8-antena-2"></div>
<div class="bb8-head">
<div class="orange-stripe"></div>
<div class="hat"></div>
<div class="eye"></div>
<div class="eye-large"></div>
</div>
</div>
<div class="bb8-body">
<div class="panel-1"></div>
<div class="panel-2">
<div class="inset-1"></div>
<div class="inset-2"></div>
</div>
<div class="panel-3">
<div class="inset-1"></div>
<div class="inset-2"></div>
</div>
<div class="panel-4">
<div class="inset-1"></div>
<div class="inset-2"></div>
</div>
<div class="panel-5">
<div class="inset-1"></div>
<div class="inset-2"></div>
<div class="plating"></div>
</div>
</div>
</div>
</div>
</div>
<div class="animation">
<div class="introBg">
</div>
<div class="verticalWrapper">
<section id="intro" class="intro noselect">
</section>
</div>
<section class="titles noselect">
<div style="width: 100%;">
<p id="episode" class="tcenter">
</p>
<p id="title" class="tcenter">
</p>
<div id="text">
</div>
</div>
</section>
<div class="verticalWrapper">
<section class="logo noselect">
<svg id="logosvg" viewBox="0 0 750 500">
<text letter-spacing="15px" x="50%" y="66%" text-anchor="middle" fill="none" stroke-width="8px" stroke="#ffd54e"></text>
<text letter-spacing="15px" x="50%" y="98%" text-anchor="middle" fill="none" stroke-width="8px" stroke="#ffd54e"></text>
</svg>
</section>
</div>
</div>
</article>
<!--
<div id="footer" class="pageHide">
Developed by <a href="https://github.com/BrOrlandi" target="2">Bruno Orlandi</a> and <a href="https://github.com/nihey" target="2">Nihey Takizawa</a> based on <a href="http://timpietrusky.com/star-wars-opening-crawl-from-1977" target="2">Tim Pietrusky</a> work.
</div>
-->
<script>
// logo size calc
$(window).resize(function() {
$('#logoimg').css('width',$(window).width()+'px');
$('#logosvg').css('width',$(window).width()+'px');
if($(window).height() < $("#config").height()+50){ // allow scroll if the form doesn't fit on the window
$("body").css("overflow","auto");
}else{
$("body").css("overflow","hidden");
$('body').scrollTop(0);
}
$(".sweet-alert").css("margin-top",-$(".sweet-alert").outerHeight()/2);
});
$(window).load(function () {
$(window).trigger('resize');
})
$(document).scroll(function (e) {
var max_height = $("#config").height()+50 - $(window).height();
var height = $('body').scrollTop();
if(height > max_height+200){ // prevent scrolling to much and reaching the deathstar befor the time.
var val = max_height+200;
$('body').scrollTop(val);
}
})
</script>
<script src="StarWars.js"></script>
<script src="main.js"></script>
</body>
</html>