|
|
@ -3,54 +3,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div id="preferenceDropdown" class="dropdown">
|
|
|
|
<div id="preferenceDropdown" class="dropdown">
|
|
|
|
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
|
|
|
|
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
|
|
|
|
Preferences
|
|
|
|
Map Filters
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
<div id="dropMenu" class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
|
|
|
|
<div style="padding-bottom: 7px;" id="dropMenu" class="dropdown-menu" aria-labelledby="dropdownMenuButton1" v-on:click.stop="handleClick">
|
|
|
|
|
|
|
|
<div id="prefHeader">~SHOW~</div>
|
|
|
|
<div class="container-fluid" @change="decideShowStations();">
|
|
|
|
<div class="container-fluid" @change="decideShowStations();">
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="showMainlandStations" v-model="showMainlandStations"/>
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="showMainlandStations" v-model="showMainlandStations"/>
|
|
|
|
<label class="form-check-label" for="showMainlandStations">Show Mainland Stations</label>
|
|
|
|
<label class="form-check-label" for="showMainlandStations">Mainland Stations</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="showDARTStations" v-model="showDARTStations"/>
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="showDARTStations" v-model="showDARTStations"/>
|
|
|
|
<label class="form-check-label" for="showMainlandStations">Show Mainland Stations</label>
|
|
|
|
<label class="form-check-label" for="showDARTStations">Dart Stations</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="container-fluid" @change="decideShowTrains();">
|
|
|
|
<div class="container-fluid" @change="decideShowTrains();">
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="showLate" v-model="showLate"/>
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="showLate" v-model="showLate"/>
|
|
|
|
<label class="form-check-label" for="showLate">Show Late Trains</label>
|
|
|
|
<label class="form-check-label" for="showLate">Late Trains</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="showOnTime" v-model="showOnTime"/>
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="showOnTime" v-model="showOnTime"/>
|
|
|
|
<label class="form-check-label" for="showOnTime">Show On-Time Trains</label>
|
|
|
|
<label class="form-check-label" for="showOnTime">On-Time Trains</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="showMainland" v-model="showMainland"/>
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="showMainland" v-model="showMainland"/>
|
|
|
|
<label class="form-check-label" for="showMainland">Show Mainland Trains</label>
|
|
|
|
<label class="form-check-label" for="showMainland">Mainland Trains</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="showDART" v-model="showDART"/>
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="showDART" v-model="showDART"/>
|
|
|
|
<label class="form-check-label" for="showDart">Show DARTs</label>
|
|
|
|
<label class="form-check-label" for="showDART">DARTs</label>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="showRunning" v-model="showRunning"/>
|
|
|
|
|
|
|
|
<label class="form-check-label" for="showRunning">Running Trains</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="showTerminated" v-model="showTerminated"/>
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="showTerminated" v-model="showTerminated"/>
|
|
|
|
<label class="form-check-label" for="showRunning">Show Running Trains</label>
|
|
|
|
<label class="form-check-label" for="showTerminated">Terminated Trains</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="showTerminated" v-model="showTerminated"/>
|
|
|
|
|
|
|
|
<label class="form-check-label" for="showTerminated">Show Terminated Trains</label>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="showNotYetRunning" v-model="showNotYetRunning"/>
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="showNotYetRunning" v-model="showNotYetRunning"/>
|
|
|
|
<label class="form-check-label" for="showNotYetRunning">Show Not-Yet Running Trains</label>
|
|
|
|
<label class="form-check-label" for="showNotYetRunning">Not-Yet Running Trains</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button id="savePref" class="btn btn-outline-info" v-if="store.loggedIn" @click="postPreferences()">Save Preferences</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<button v-if="store.loggedIn" @click="postPreferences()">Save Preferences</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<transition id="sidebar" name="slideLeft">
|
|
|
|
<transition id="sidebar" name="slideLeft">
|
|
|
|
<div v-if="store.displaySelectedTrain && store.selectedTrain">
|
|
|
|
<div v-if="store.displaySelectedTrain && store.selectedTrain">
|
|
|
|
<TrainSidebar />
|
|
|
|
<TrainSidebar />
|
|
|
@ -184,6 +184,10 @@ export default {
|
|
|
|
this.toast()
|
|
|
|
this.toast()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleClick(e){
|
|
|
|
|
|
|
|
e.stopPropagation();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
getPreferences() {
|
|
|
|
getPreferences() {
|
|
|
|
if (!store.loggedIn) return
|
|
|
|
if (!store.loggedIn) return
|
|
|
|
const functions = getFunctions(app);
|
|
|
|
const functions = getFunctions(app);
|
|
|
@ -491,16 +495,23 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
#dropMenu {
|
|
|
|
#dropMenu {
|
|
|
|
/*In case we want to edit dropdown menu*/
|
|
|
|
/*In case we want to edit dropdown menu*/
|
|
|
|
font-size: 15px;
|
|
|
|
font-size: 14.6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#preferenceDropdown{
|
|
|
|
#preferenceDropdown{
|
|
|
|
position: absolute;
|
|
|
|
position: absolute;
|
|
|
|
z-index: 3;
|
|
|
|
z-index: 3;
|
|
|
|
right: 1%;
|
|
|
|
right: 1%;
|
|
|
|
top: 10%;
|
|
|
|
top: 11%;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#prefHeader{
|
|
|
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
|
|
|
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#sidebar {
|
|
|
|
#sidebar {
|
|
|
|
position: absolute;
|
|
|
|
position: absolute;
|
|
|
@ -518,6 +529,12 @@ export default {
|
|
|
|
font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif
|
|
|
|
font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#savePref{
|
|
|
|
|
|
|
|
left:2%;
|
|
|
|
|
|
|
|
top: 2px;
|
|
|
|
|
|
|
|
width: 96%;
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
}
|
|
|
|
.slideLeft-enter-active, .slideLeft-leave-active {
|
|
|
|
.slideLeft-enter-active, .slideLeft-leave-active {
|
|
|
|
transition: opacity .5s;
|
|
|
|
transition: opacity .5s;
|
|
|
|
transition: all 0.8s;
|
|
|
|
transition: all 0.8s;
|
|
|
|