Commit 6aa0491a authored by antoine's avatar antoine
Browse files

versionning select #2

parent fa7e0f0c
......@@ -3,3 +3,4 @@ meta-elastique.*
*.svg
rsync.sh
glyphs.*
présentation-OSP
......@@ -43,10 +43,8 @@ body {
display: none;
}
#inPad {
position: absolute;
right: 20px;
#inText {
width: 30%;
}
#pad_link {
......
......@@ -8,7 +8,6 @@ function nav_versions() {
if (this.readyState == 4 && this.status == 200) {
var index = this.response.split('\n')
index.forEach(function(item, i){
versions = document.querySelector('#versions')
var name = item.split('-')
name = name[name.length-1]
versions.innerHTML += '<option data-href="'+item+'" value="'+name+'">'+name+'</option>'
......@@ -56,14 +55,13 @@ document.addEventListener("DOMContentLoaded", (event) => {
group = location.hash.replace('#', '')
testing = document.querySelector('#testing')
pad_link = document.getElementById('pad_link')
console.log(pad_link)
inReload = document.querySelector('#inReload')
inText = document.querySelector('#inText')
inScale = document.querySelector('#inScale')
versions = document.querySelector('#versions')
inReload.addEventListener('click', (event) => {
loadLetters(inText.value)
})
inScale.addEventListener('change', (event) => {
scale(inScale.value)
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment