forked from edwardchalstrey1/seshat
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Seshat-Global-History-Databank/scrollable-…
…year-slider-2 Optimise control panels for world map and polity map templates
- Loading branch information
Showing
4 changed files
with
212 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,12 @@ | |
<script src="https://unpkg.com/[email protected]/dist/leaflet.markercluster.js"></script> | ||
</head> | ||
|
||
<style> | ||
input { | ||
accent-color: teal; | ||
} | ||
</style> | ||
|
||
<body> | ||
{% block content %} | ||
{% if content.include_polity_map %} | ||
|
@@ -18,22 +24,16 @@ | |
<div> | ||
<h2 class="h1 text-teal federicka-bigger" id="sliderDate"></h2> | ||
<label for="enterYear">Enter year:</label> | ||
<input type="number" id="enterYear" name="enterYear" value="{{ content.display_year }}" style="width: 75px;""><button id=" minusButton" type="button" onclick="adjustSliderDown()">-</button> | ||
<input type="number" id="enterYear" name="enterYear" value="{{ content.display_year }}" style="width: 75px;""><br> | ||
<label for="enterYear">Increment (years):</label> | ||
<input type="number" id="increment" name="increment" value="10" style="width: 50px;" onchange="playRateValue()"> | ||
<button id=" minusButton" type="button" onclick="adjustSliderDown()">-</button> | ||
<button id="plusButton" type="button" onclick="adjustSliderUp()">+</button><br> | ||
<label for="playRate">Play rate: </label> | ||
<span id="playRate">10 y/s</span><br> | ||
<label for="playButton">Run animation:</label> | ||
<button id="playButton" type="button" onclick="startPlay()">▶️</button> | ||
<button id="stopButton" type="button" onclick="stopPlay()">⏸</button><br> | ||
<label for="playRate">Speed: </label> | ||
<input type="range" name="playRate" id="playRate" min="1" max="5" value="2" class="slider" list="tickmarks" | ||
onchange="updateSliderValue(this.value)"> | ||
<datalist id="tickmarks"> | ||
<option value="1"></option> | ||
<option value="2"></option> | ||
<option value="3"></option> | ||
<option value="4"></option> | ||
<option value="5"></option> | ||
</datalist> | ||
<span id="sliderValue">5 y/s</span><br> | ||
<label for="opacitySlide">Opacity:</label> | ||
<input type="range" name="opacitySlide" id="opacitySlide" min="0.1" max="1" step="0.1" value="0.5" class="slider" | ||
onchange="plotPolities()" style="width: 150px;"> | ||
|
Oops, something went wrong.