Commit 63ccf05f authored by AK's avatar AK

correct speach js

parent feaa9c29
const scrollUpDiv = document.querySelector('.scroll-up');
document.addEventListener('DOMContentLoaded', () => {
window.addEventListener('scroll', () => {
if (window.scrollY > 0) {
scrollUpDiv.classList.remove('hide');
} else {
scrollUpDiv.classList.add('hide');
}
});
const scrollUpDiv = document.querySelector('.scroll-up');
scrollUpDiv.addEventListener('click', () => {
window.location.href = '#dokuwiki__header';
});
\ No newline at end of file
window.addEventListener('scroll', () => {
if (window.scrollY > 0) {
scrollUpDiv.classList.remove('hide');
} else {
scrollUpDiv.classList.add('hide');
}
});
scrollUpDiv.addEventListener('click', () => {
window.location.href = '#dokuwiki__header';
});
});
\ No newline at end of file
const searchInput = document.getElementById('searchInput');
document.addEventListener('DOMContentLoaded', () => {
const searchInput = document.getElementById('searchInput');
const micBtn = document.getElementById('micBtn');
const recognition = new (window.SpeechRecognition || window.webkitSpeechRecognition)();
......@@ -16,4 +19,7 @@ const searchInput = document.getElementById('searchInput');
recognition.addEventListener('end', () => {
recognition.stop();
});
\ No newline at end of file
});
});
......@@ -5,7 +5,6 @@
align-items: center;
font-size: 14px;
list-style: none;
padding: 0;
margin: 0;
}
......
......@@ -109,7 +109,8 @@ aside {
.content {
flex-grow: 1;
margin-top: 22px;
margin-top: 32px;
margin-bottom: 42px;
}
/* Стили для ссылок */
......@@ -216,9 +217,9 @@ footer p {
}
li.top{
/**li.top{
display: none;
}
}*/
.scroll-up a{
color: #fff;
......
.dw__toc{
margin-top: 12px;
}
.dw__toc .toggle span {
display: none;
}
......
......@@ -2,7 +2,7 @@
// Fallback script for compatibility with Bootstrap Wrapper and Icons plugins
define('VITE_ENV', 'dev');
define('VITE_ENV', 'prod');
define('VITE_SERVER', 'http://localhost:5173');
define('VITE_ENTRY_POINT', '/main.js');
......
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