-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
139 lines (128 loc) · 6.12 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
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" href="./assets/ferry.png">
<title>ALL THE FERRIES</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<link rel="stylesheet" href="https://js.arcgis.com/4.16/esri/css/main.css">
<link rel="stylesheet" href="index.css">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script>
<script src="https://js.arcgis.com/4.17/"></script>
<script src="index.js"></script>
<!-- Plausible Analytics -->
<!-- Fear not FERRY TRACKERS
just wanna know if anyone is using this thing
imagine if I were using Google Analytics! -->
<script defer data-domain="alltheferries.com" src="https://plausible.io/js/script.js"></script>
</head>
<body>
<div id="app">
<div id="initialLoader" v-show="!loaded"></div>
<div id="loader" v-show="isUpdating"></div>
<div id="mapView">
<div id="ferryInfoBox" class="panel" v-show="showingFerryInfobox">
<img src="assets/washington-state-ferries-logo.svg" alt="wa ferries logo" id="info-ferry-logo">
<h1 class="info-title">{{selectedVessel.attributes.VesselName}}</h1>
<h2><b>{{selectedVessel.attributes.DepartingTerminalName}} ➟
{{selectedVessel.attributes.ArrivingTerminalName}}</b></h2>
<h4><b>ETA {{selectedVessel.attributes.EtaHuman}}</b></h4>
<br>
<a :href="'https://www.marinetraffic.com/en/ais/details/ships/mmsi:' + selectedVessel.attributes.Mmsi" target=_blank>vessel info</a>
<p>speed: {{selectedVessel.attributes.Speed}} | heading: {{selectedVessel.attributes.Heading}}</p>
<span id="ferryZoom">
<a class="ferry-link" @click="zoomToSelectedFerry">
<i class="esri-icon-zoom-in-magnifying-glass"></i> ZOOM TO
</a>
</span>
<i style='float:right;'><small>last updated: {{selectedVessel.attributes.TimeStampHuman}}</small></i>
</div>
<div id="terminalInfoBox" class="panel" v-show="showingTerminalInfobox">
<img src="assets/washington-state-ferries-logo.svg" alt="wa ferries logo" id="info-ferry-logo">
<h1 class="info-title">
{{ selectedTerminal.attributes.TerminalName + " Ferrydock ("
+ selectedTerminal.attributes.TerminalAbbrev + ")" }}
</h1>
<h5>
<b>{{ selectedTerminal.attributes.AddressLineOne }}</b>
<br>
<b v-show="selectedTerminal.attributes.AddressLineTwo!='' && selectedTerminal.attributes.AddressLineTwo!=null">{{ selectedTerminal.attributes.AddressLineTwo }}<br></b>
<b>{{ selectedTerminal.attributes.City }}</b>
</h5>
<br>
<!--<div v-show="selectedTerminal.waitTimes.length>0">
<div class="title is-6">WAIT TIMES</div>
<ul>
<li v-for="waitTime in selectedTerminal.waitTimes" :key="waitTime.RouteName">
<b>{{ waitTime.RouteName }}</b>
<div>{{ waitTime.WaitTimeIVRNotes }}</div>
<i>{{ waitTime.waitTimeLastUpdatedHuman }}</i>
</li>
</ul>
</div>-->
<div v-show="selectedTerminal.bulletins.length>0">
<br>
<div class="title is-6">TODAY'S BULLETINS</div>
<ul>
<li v-for="bulletin in selectedTerminal.bulletins" :key="bulletin.BulletinTitle">
<b>{{ bulletin.BulletinTitle }}</b>
<div v-html="bulletin.BulletinText"></div>
<i>{{ bulletin.BulletinLastUpdatedReadable }}</i>
<br>
</li>
</ul>
</div>
<span id="terminalZoom">
<a class="ferry-link" @click="zoomToSelectedTerminal">
<i class="esri-icon-zoom-in-magnifying-glass"></i> ZOOM TO
</a>
</span>
</div>
<div id="introBox" class="panel" v-show="showingIntrobox">
<img src="assets/washington-state-ferries-logo.svg" alt="wa ferries logo" id="ferry-logo">
<h1 id="intro-title" class="ferry-green"><br>ALL THE FERRIES</h1>
<h2 class="ferry-green"><br>Real-time Washington State Ferry Tracker</h2>
<br>
<p>Select a ferry to display vessel schedule and other real-time details</p>
</div>
</div>
<div id="outOfExtentNotification" v-bind:class="{ show: showingOutOfExtentNotification }" class="notification is-warning">
Your location appears to be outside of the ferry area. We've done our best to find you!
</div>
<div id="about" @click="showAbout=true">
<img src="assets/info.png" title="info about all the ferries">
</div>
<div class="modal" v-bind:class="{ 'is-active': showAbout }" style="z-index: 99999">
<div class="modal-background"></div>
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">ALL THE FERRIES</p>
<button @click="showAbout=false" class="delete" aria-label="close"></button>
</header>
<section class="modal-card-body">
<a href="https://brightrain.com" target="_blank">
<img class="is-pulled-right" src="assets/brightrain.png" width="200px">
</a>
<div id="ferriesCruiseContainer">
<img src="assets/ferry-west.png" id="aboutFerryWest" width="70px">
<img src="assets/ferry.png" id="aboutFerryEast1">
<img src="assets/ferry.png" id="aboutFerryEast2" width="85px">
</div>
<p>
<span>Whether you are aboard a ferry right now, about to board, or a million miles from here, I hope you enjoy ALL THE FERRIES, brought to you by </span>
<a href="https://brightrain.com" id="brsLink" target="_blank">Bright Rain Solutions</a>.
</p>
<br>
<p>Safe Harbor friend and may the wind take your troubles away.</p>
</section>
<footer class="modal-card-foot">
<button @click="showAbout=false" class="ferriesBtn">OK</button>
</footer>
</div>
</div>
</div>
</body>
</html>