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