2024-05-14 19:06:39 +03:00
|
|
|
const dialogElement = document.getElementById('dialog');
|
|
|
|
const detailsElement = document.getElementById('details');
|
|
|
|
const dialogContentElement = document.getElementById('dialog-content');
|
|
|
|
const errorSoundElement = document.getElementById('error');
|
|
|
|
const clickSoundElement = document.getElementById('click');
|
|
|
|
|
2024-05-01 23:56:10 +03:00
|
|
|
window.onload = function() {
|
2024-05-02 17:48:27 +03:00
|
|
|
setTimeout(function () {
|
2024-05-14 19:06:39 +03:00
|
|
|
errorSoundElement.play();
|
2024-05-02 17:48:27 +03:00
|
|
|
}, 1000)
|
2024-05-02 15:12:39 +03:00
|
|
|
}
|
2024-05-01 23:56:10 +03:00
|
|
|
|
2024-05-02 15:12:39 +03:00
|
|
|
function close_button(href) {
|
2024-05-14 19:06:39 +03:00
|
|
|
clickSoundElement.play();
|
2024-05-01 23:56:10 +03:00
|
|
|
window.location.href = href;
|
2024-05-02 15:12:39 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
function details_button() {
|
2024-05-14 19:06:39 +03:00
|
|
|
clickSoundElement.play();
|
|
|
|
dialogContentElement.style.opacity = '0';
|
2024-05-03 21:51:25 +03:00
|
|
|
|
2024-05-02 20:40:24 +03:00
|
|
|
dialogElement.animate([
|
|
|
|
{
|
|
|
|
opacity: 0,
|
2024-07-05 08:18:06 +03:00
|
|
|
width: 'var(--keyframe-hide-dialog-width)',
|
|
|
|
paddingBottom: 'var(--keyframe-hide-dialog-padding-bottom)',
|
2024-05-02 20:40:24 +03:00
|
|
|
}
|
|
|
|
], {
|
|
|
|
fill: 'forwards',
|
|
|
|
easing: 'ease-out',
|
|
|
|
duration: 250
|
|
|
|
});
|
|
|
|
|
2024-05-03 21:51:25 +03:00
|
|
|
setTimeout(function(){
|
|
|
|
dialogElement.style.display = 'none';
|
|
|
|
detailsElement.style.display = 'inline-block';
|
|
|
|
}, 250);
|
|
|
|
|
2024-05-02 20:40:24 +03:00
|
|
|
detailsElement.animate([
|
|
|
|
{
|
|
|
|
opacity: 0, offset: 0.95
|
|
|
|
},
|
|
|
|
{
|
|
|
|
opacity: 1
|
|
|
|
}
|
|
|
|
], {
|
|
|
|
fill: 'forwards',
|
|
|
|
easing: 'ease-out',
|
|
|
|
duration: 1000
|
|
|
|
})
|
2024-05-02 15:12:39 +03:00
|
|
|
}
|