initial commit
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.DS_Store
|
55
css/style.css
Normal file
@ -0,0 +1,55 @@
|
||||
.mydragable {
|
||||
position: absolute;
|
||||
z-index: 9;
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
.divMap {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
img {
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-o-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
background: #f0f0f0;
|
||||
padding: 20px 0;
|
||||
}
|
||||
.mapimg {
|
||||
border:1px solid #000000;
|
||||
}
|
||||
|
||||
table {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.center {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.btn {
|
||||
color: #fff;
|
||||
background-color: #428bca;
|
||||
border: 1px solid #357ebd;
|
||||
-webkit-border-radius: 4;
|
||||
-moz-border-radius: 4;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
padding: 6px 12px;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
background-color: #3071a9;
|
||||
border-color: #285e8e;
|
||||
ext-decoration: none;
|
||||
}
|
BIN
img/blueflag.png
Normal file
After Width: | Height: | Size: 427 B |
BIN
img/redflag.png
Normal file
After Width: | Height: | Size: 427 B |
BIN
img/sb/01.jpg
Normal file
After Width: | Height: | Size: 67 KiB |
BIN
img/sb/02.jpg
Normal file
After Width: | Height: | Size: 67 KiB |
BIN
img/sb/03.jpg
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
img/sb/04.jpg
Normal file
After Width: | Height: | Size: 61 KiB |
BIN
img/sb/05.jpg
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
img/sb/06.jpg
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
img/sb/07.jpg
Normal file
After Width: | Height: | Size: 56 KiB |
BIN
img/sb/08.jpg
Normal file
After Width: | Height: | Size: 56 KiB |
BIN
img/sb/09.jpg
Normal file
After Width: | Height: | Size: 61 KiB |
BIN
img/sb/10.jpg
Normal file
After Width: | Height: | Size: 61 KiB |
BIN
img/sb/11.jpg
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
img/sb/12.jpg
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
img/shb/01.jpg
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
img/shb/02.jpg
Normal file
After Width: | Height: | Size: 56 KiB |
BIN
img/shb/03.jpg
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
img/shb/04.jpg
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
img/shb/05.jpg
Normal file
After Width: | Height: | Size: 66 KiB |
BIN
img/shb/06.jpg
Normal file
After Width: | Height: | Size: 66 KiB |
BIN
img/shb/07.jpg
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
img/shb/08.jpg
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
img/shb/09.jpg
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
img/shb/10.jpg
Normal file
After Width: | Height: | Size: 59 KiB |
BIN
img/shb/11.jpg
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
img/shb/12.jpg
Normal file
After Width: | Height: | Size: 57 KiB |
19
index.html
Normal file
@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>FFXIV Hunt Train Tracker</title>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" type="text/css" href="css/style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<center>
|
||||
<form action="sb">
|
||||
<button class="btn" type="submit">ShB Hunt Train Tracker</button>
|
||||
</form>
|
||||
<br>
|
||||
<form action="shb">
|
||||
<button class="btn" type="submit">SB Hunt Train Tracker</button>
|
||||
</form>
|
||||
</center>
|
||||
</body>
|
||||
</html>
|
85
js/flag.js
Normal file
@ -0,0 +1,85 @@
|
||||
var dragables = document.getElementsByClassName("mydragable")
|
||||
|
||||
for (var i = 0, ele; ele = dragables[i++]; ) {
|
||||
dragElement(ele);
|
||||
}
|
||||
|
||||
for (var i = 0, ele; ele = dragables[i++]; ) {
|
||||
LoadElementPos(ele);
|
||||
}
|
||||
|
||||
|
||||
function dragElement(elmnt) {
|
||||
var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
|
||||
|
||||
elmnt.onmousedown = dragMouseDown;
|
||||
|
||||
function dragMouseDown(e) {
|
||||
e = e || window.event;
|
||||
e.preventDefault();
|
||||
// get the mouse cursor position at startup:
|
||||
pos3 = e.clientX;
|
||||
pos4 = e.clientY;
|
||||
document.onmouseup = closeDragElement;
|
||||
// call a function whenever the cursor moves:
|
||||
document.onmousemove = elementDrag;
|
||||
}
|
||||
|
||||
function elementDrag(e) {
|
||||
e = e || window.event;
|
||||
e.preventDefault();
|
||||
// calculate the new cursor position:
|
||||
pos1 = pos3 - e.clientX;
|
||||
pos2 = pos4 - e.clientY;
|
||||
pos3 = e.clientX;
|
||||
pos4 = e.clientY;
|
||||
// set the element's new position:
|
||||
|
||||
var nx = elmnt.offsetLeft - pos1;
|
||||
if (nx > 1000) { nx = 1000; }
|
||||
if (nx < 0) { nx = 0; }
|
||||
|
||||
var ny = elmnt.offsetTop - pos2;
|
||||
if (ny < 0) {
|
||||
ny = 0;
|
||||
}
|
||||
|
||||
elmnt.style.left = nx + "px";
|
||||
elmnt.style.top = ny + "px";
|
||||
|
||||
}
|
||||
|
||||
function closeDragElement() {
|
||||
/* stop moving when mouse button is released:*/
|
||||
document.onmouseup = null;
|
||||
document.onmousemove = null;
|
||||
SaveElementPos(elmnt);
|
||||
}
|
||||
}
|
||||
|
||||
function LoadElementPos(elment) {
|
||||
var cords = window.localStorage.getItem(elment.id);
|
||||
|
||||
if (cords != null) {
|
||||
var cc = JSON.parse(cords);
|
||||
|
||||
elment.style.left = cc.x;
|
||||
elment.style.top = cc.y;
|
||||
}
|
||||
}
|
||||
|
||||
function SaveElementPos(elment) {
|
||||
var cc = { x: elment.style.left, y: elment.style.top }
|
||||
window.localStorage.setItem(elment.id,JSON.stringify(cc));
|
||||
}
|
||||
|
||||
function clearMarkers() {
|
||||
var r = confirm("Clear all markers? (Warning, this cannot be undone.)");
|
||||
if (r == true) {
|
||||
var r2 = confirm("You sure? (Warning, this cannot be undone.)");
|
||||
if (r2 == true) {
|
||||
localStorage.clear();
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
}
|
118
sb/index.html
Normal file
@ -0,0 +1,118 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>SB A Rank Tracker</title>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" type="text/css" href="../css/style.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<tr>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/sb/01.jpg" >
|
||||
</th>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/sb/02.jpg" >
|
||||
</th>
|
||||
<tr>
|
||||
|
||||
<tr>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/sb/03.jpg" >
|
||||
</th>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/sb/04.jpg" >
|
||||
</th>
|
||||
<tr>
|
||||
|
||||
<tr>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/sb/05.jpg" >
|
||||
</th>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/sb/06.jpg" >
|
||||
</th>
|
||||
<tr>
|
||||
|
||||
<tr>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/sb/07.jpg" >
|
||||
</th>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/sb/08.jpg" >
|
||||
</th>
|
||||
<tr>
|
||||
|
||||
<tr>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/sb/09.jpg" >
|
||||
</th>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/sb/10.jpg" >
|
||||
</th>
|
||||
<tr>
|
||||
|
||||
<tr>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/sb/11.jpg" >
|
||||
</th>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/sb/12.jpg" >
|
||||
</th>
|
||||
<tr>
|
||||
|
||||
<div id="reddiv1" class="mydragable" style="left:1000px; top:40px;" >
|
||||
<img src="../img/redflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="bluediv1" class="mydragable" style="left:1000px; top:80px;" >
|
||||
<img src="../img/blueflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="reddiv1" class="mydragable" style="left:1000px; top:520px;" >
|
||||
<img src="../img/redflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="bluediv1" class="mydragable" style="left:1000px; top:560px;" >
|
||||
<img src="../img/blueflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="reddiv1" class="mydragable" style="left:1000px; top:1000px;" >
|
||||
<img src="../img/redflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="bluediv1" class="mydragable" style="left:1000px; top:1040px;" >
|
||||
<img src="../img/blueflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="reddiv1" class="mydragable" style="left:1000px; top:1500px;" >
|
||||
<img src="../img/redflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="bluediv1" class="mydragable" style="left:1000px; top:1540px;" >
|
||||
<img src="../img/blueflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="reddiv1" class="mydragable" style="left:1000px; top:2000px;" >
|
||||
<img src="../img/redflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="bluediv1" class="mydragable" style="left:1000px; top:2040px;" >
|
||||
<img src="../img/blueflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="reddiv1" class="mydragable" style="left:1000px; top:2480px;" >
|
||||
<img src="../img/redflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="bluediv1" class="mydragable" style="left:1000px; top:2520px;" >
|
||||
<img src="../img/blueflag.png" />
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<button class="btn" onclick="clearMarkers()">Clear Markers</button>
|
||||
|
||||
<script type="text/javascript" src="../js/flag.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
118
shb/index.html
Normal file
@ -0,0 +1,118 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>ShB A Rank Tracker</title>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" type="text/css" href="../css/style.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<tr>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/shb/01.jpg" >
|
||||
</th>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/shb/02.jpg" >
|
||||
</th>
|
||||
<tr>
|
||||
|
||||
<tr>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/shb/03.jpg" >
|
||||
</th>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/shb/04.jpg" >
|
||||
</th>
|
||||
<tr>
|
||||
|
||||
<tr>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/shb/05.jpg" >
|
||||
</th>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/shb/06.jpg" >
|
||||
</th>
|
||||
<tr>
|
||||
|
||||
<tr>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/shb/07.jpg" >
|
||||
</th>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/shb/08.jpg" >
|
||||
</th>
|
||||
<tr>
|
||||
|
||||
<tr>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/shb/09.jpg" >
|
||||
</th>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/shb/10.jpg" >
|
||||
</th>
|
||||
<tr>
|
||||
|
||||
<tr>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/shb/11.jpg" >
|
||||
</th>
|
||||
<th>
|
||||
<img draggable="false" class="mapimg" src="../img/shb/12.jpg" >
|
||||
</th>
|
||||
<tr>
|
||||
|
||||
<div id="reddiv1" class="mydragable" style="left:1000px; top:40px;" >
|
||||
<img src="../img/redflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="bluediv1" class="mydragable" style="left:1000px; top:80px;" >
|
||||
<img src="../img/blueflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="reddiv1" class="mydragable" style="left:1000px; top:520px;" >
|
||||
<img src="../img/redflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="bluediv1" class="mydragable" style="left:1000px; top:560px;" >
|
||||
<img src="../img/blueflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="reddiv1" class="mydragable" style="left:1000px; top:1000px;" >
|
||||
<img src="../img/redflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="bluediv1" class="mydragable" style="left:1000px; top:1040px;" >
|
||||
<img src="../img/blueflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="reddiv1" class="mydragable" style="left:1000px; top:1500px;" >
|
||||
<img src="../img/redflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="bluediv1" class="mydragable" style="left:1000px; top:1540px;" >
|
||||
<img src="../img/blueflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="reddiv1" class="mydragable" style="left:1000px; top:2000px;" >
|
||||
<img src="../img/redflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="bluediv1" class="mydragable" style="left:1000px; top:2040px;" >
|
||||
<img src="../img/blueflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="reddiv1" class="mydragable" style="left:1000px; top:2480px;" >
|
||||
<img src="../img/redflag.png" />
|
||||
</div>
|
||||
|
||||
<div id="bluediv1" class="mydragable" style="left:1000px; top:2520px;" >
|
||||
<img src="../img/blueflag.png" />
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<button class="btn" onclick="clearMarkers()">Clear Markers</button>
|
||||
|
||||
<script type="text/javascript" src="../js/flag.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|