Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
archivarius
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Andrey Kuvshinov
archivarius
Commits
63ccf05f
Commit
63ccf05f
authored
Oct 08, 2024
by
AK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct speach js
parent
feaa9c29
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
18 deletions
+32
-18
scrollup.js
frontend/js/scrollup.js
+15
-11
speech.js
frontend/js/speech.js
+8
-2
breadcrumbs.css
frontend/styles/breadcrumbs.css
+0
-1
main.css
frontend/styles/main.css
+4
-3
toc.css
frontend/styles/toc.css
+4
-0
tpl_functions.php
tpl_functions.php
+1
-1
No files found.
frontend/js/scrollup.js
View file @
63ccf05f
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
frontend/js/speech.js
View file @
63ccf05f
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
});
});
frontend/styles/breadcrumbs.css
View file @
63ccf05f
...
...
@@ -5,7 +5,6 @@
align-items
:
center
;
font-size
:
14px
;
list-style
:
none
;
padding
:
0
;
margin
:
0
;
}
...
...
frontend/styles/main.css
View file @
63ccf05f
...
...
@@ -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
;
...
...
frontend/styles/toc.css
View file @
63ccf05f
.dw__toc
{
margin-top
:
12px
;
}
.dw__toc
.toggle
span
{
display
:
none
;
}
...
...
tpl_functions.php
View file @
63ccf05f
...
...
@@ -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'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment