[enh] adds a push to url feature

This commit is contained in:
alban 2020-10-30 18:39:09 +01:00
parent 199913d11b
commit 4379442c9b
3 changed files with 9 additions and 2 deletions

View file

@ -27,6 +27,13 @@ for( param in params ){
d = new Date()
document.querySelector("[name=heuresortie]").value = ('0'+d.getHours()).slice(-2)+":"+('0'+d.getMinutes()).slice(-2)
function formToURL(l,x){
out=document.location.origin + document.location.pathname+"#"
for( i in l ) { out+=`${i}=${l[i]}&` }
window.history.pushState('Votre version', 'Votre version', out);
}
</script>
</body>
<!-- Mirrored from media.interieur.gouv.fr/deplacement-covid-19/ by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 29 Oct 2020 20:30:22 GMT -->