-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathhpmarker.html
More file actions
240 lines (236 loc) · 9.02 KB
/
hpmarker.html
File metadata and controls
240 lines (236 loc) · 9.02 KB
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="Brave Frontier - Enemy HP Marker - A community effort by Brave Frontier PROs" />
<meta name="author" content="Sam GreenPuck" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Brave Frontier - Enemy HP Marker - by Brave Frontier PROs</title>
<link rel="shortcut icon" href="http://bravefrontier.summonerscentral.com/img/iconavatar128.png" />
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Quicksand|Raleway:600,400' rel='stylesheet' type='text/css'>
<link href="//touchandswipe.github.io/bravefrontier/css/sitecommon.css" rel="stylesheet">
<!-- Custom CSS -->
<style type="text/css">
.clear {clear:both;}
.btn {margin-bottom:10px;}
#markerBar {
position: absolute;
background: #CC0000;
width: 467px;
height: 12px;
left: 32px;
top: 90px;
font-size: 8pt;
color: #F00;
text-align: center;
line-height: 120%;
}
.markerCommon {
position:absolute;
border-right:1px solid #FFFFFF;
height:210px;
left:32px;
top:0px;
display:none;
}
.markerBtn {width:110px;}
.markerText {
padding:0;
color:#FFF;
font-weight:bold;
font-size:8pt;
-ms-transform: rotate(-90deg); /* IE 9 */
-webkit-transform: rotate(-90deg); /* Chrome, Safari, Opera */
transform: rotate(-90deg);
position: absolute;
top:18px;
right:-4px;
}
}
</style>
<!-- START JSON Code-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script>
if (navigator.userAgent.match(/Android/i)
|| navigator.userAgent.match(/webOS/i)
|| navigator.userAgent.match(/iPhone/i)
|| navigator.userAgent.match(/iPad/i)
|| navigator.userAgent.match(/iPod/i)
|| navigator.userAgent.match(/BlackBerry/i)
|| navigator.userAgent.match(/Windows Phone/i))
document.write('<meta name="viewport" content="width=600, user-scalable=yes" />');
</script>
</head>
<!-- MAIN BODY CONTENT -->
<body>
<div class="container-fluid" id="bfp_mast"></div>
<!-- Main Body Space-->
<div class="container-fluid">
<div class="text-center" style="margin-bottom:5px;">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- NEWResponsiveBlog -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-2145833818900192"
data-ad-slot="1729026867"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<!-- main stack code goes here -->
<h2>Brave Frontier - Enemy HP Marker</h2>
<!-- Other Tips -->
<div class="alert alert-info alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
This marker tool is to assist you with identifying triggers that happens when enemy HP threshold is met. <b>You can now SHARE the thresholds by sharing the URL.</b>
</div>
<div class="row" style="margin:10px auto 10px auto">
<div class="col-xs-12 col-sm-12 col-md-6">
<div id="markerMom" style="height:230px;">
<img style="margin-top:10px;width:500px;position:absolute;" src="https://googledrive.com/host/0B4hJr8BXxvFZS3pvbjNIbDJ2bzA/hpmarker.png"/>
<div id="markerBar">BRAVE FRONTIER PROS</div>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-6">
<div id="btnMom" class="row">
<div class="col-xs-12 col-sm-12 col-md-12"><h4>Select % of HP to show</h4></div>
<div class="col-xs-3 col-sm-3 col-md-3"><button type="button" id="btnHideALL" class="btn btn-danger btn-lg">Hide ALL</button></div>
</div>
</div>
</div><!--top row-->
<div class="clear"></div>
<div class="text-center" style="margin-bottom:2px;">
<!-- NEWResponsiveBlog -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-2145833818900192"
data-ad-slot="1729026867"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<div class="text-center" style="margin-bottom:5px;">
<!-- NEWResponsiveBlog -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-2145833818900192"
data-ad-slot="1729026867"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<!-- disqus discussion -->
<div id="disqus_thread" style="width:100%;margin:0 auto;">
<script type="text/javascript">
var disqus_shortname = 'bravefrontierpros';
var disqus_url = 'http://touchandswipe.github.io/bravefrontier/hpmarker';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
</div> <!-- /container -->
<div id="bfp_foot"></div>
<script type="text/javascript">
/*Global variable*/
var markerMaster=[0,0.05,0.1,0.13,0.15,0.17,0.2,0.25,0.3,0.32,0.3333,0.35,0.38,0.4,0.45,0.5,0.55,0.6,0.65,0.667,0.7,0.75,0.77,0.8,0.85,0.9,0.95,1];
/*Param handling*/
function urlParam(name){
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
if (results==null){
return '';
}
else{
return decodeURIComponent(results[1]) || '';
}
}
function buildLayers() { /*build buttons and layers*/
var buildMarkerHTML="";
var buildBtnHTML="";
var barWidth=$('#markerBar').css('width');
for (i in markerMaster) {
buildMarkerHTML+='<div id="markerBarTall'+i+'" class="markerCommon" style="width:'+Math.ceil(markerMaster[i]*parseInt(barWidth))+'px;"><div class="markerText">'+parseInt(markerMaster[i]*100)+'%</div></div>';
buildBtnHTML+='<div class="col-xs-3 col-sm-3 col-md-3"><button id="markerBtn'+i+'" type="button" data-toggle="button" class="btn btn-default btn-lg markerBtn" value="'+i+'">'+parseInt(markerMaster[i]*100)+'%</button></div>';
}
$(buildMarkerHTML).appendTo('#markerMom');
$(buildBtnHTML).appendTo('#btnMom');
}
$(document).ready( function(e) {
/*load masthead shared*/
$('#bfp_mast').load('//touchandswipe.github.io/bravefrontier/common/header.html');
$('#bfp_foot').load('//touchandswipe.github.io/bravefrontier/common/footer.html');
buildLayers();
/*check param*/
var showBarParam=urlParam('showbars');
if (showBarParam != "") {
var showBarArray=showBarParam.split(',');
for (i in showBarArray) {
$('#markerBarTall'+showBarArray[i]).show();
$('#markerBtn'+showBarArray[i]).addClass("active");
}
}
/*hide all*/
$('#btnHideALL').on('click', function() {
for (i in markerMaster) {
$('#markerBarTall'+i).hide();
$('#markerBtn'+i).removeClass("active");
}
var state = { stateShowBars: "" };
history.pushState(state, "BarState", "?showbars=" );
});
/*btn trigger*/
$('.markerBtn').on('click', function() {
var btnVal=$(this).val();
var visibleBars=[];
$('#markerBarTall'+btnVal).toggle();
/*compile visible layers*/
for (i in markerMaster)
if ($('#markerBarTall'+i).is(':visible'))
visibleBars.push(i);
/*pushstate update*/
var visibleBarsSTR=visibleBars.join();
var state = { stateShowBars: visibleBarsSTR };
history.pushState(state, "BarState", "?showbars="+encodeURIComponent(visibleBarsSTR) );
/*Google analytics*/
ga('send', 'pageview', {
'page': '/vurl/HP_Marker_Change',
'title': 'Brave Frontier PROs - HP Marker Change HP'
});
})
})
/*POP state*/
$(window).on('popstate', function(ev) {
var state = ev.originalEvent.state;
/*Search query state*/
if (state.stateShowBars) {
var showBarArray=state.stateShowBars.split(',');
for (i in showBarArray) {
$('#markerBarTall'+showBarArray[i]).show();
$('#markerBtn'+showBarArray[i]).addClass("active");
}
}
})
</script>
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-48617906-1', 'tumblr.com');
ga('send', 'pageview');
</script>
</body>
</html>