mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-22 18:21:35 +03:00
11 lines
331 B
JavaScript
11 lines
331 B
JavaScript
|
const routeSelect = document.querySelector('#route')
|
||
|
const link = document.querySelector('#link')
|
||
|
|
||
|
routeSelect.addEventListener('change', (event) => {
|
||
|
link.href = event.target.value
|
||
|
})
|
||
|
|
||
|
document.querySelector('#go').addEventListener('click', () => {
|
||
|
window.location.href = (window.location.origin + '/' + routeSelect.value)
|
||
|
})
|