mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-08-11 17:02:25 +00:00
deploy: 3dc2f9a629
This commit is contained in:
parent
5965d2ca1a
commit
cb52608a01
263 changed files with 6830 additions and 6828 deletions
js
14
js/theme.js
14
js/theme.js
|
@ -1478,6 +1478,14 @@ function updateTheme( detail ){
|
|||
}));
|
||||
}
|
||||
|
||||
(function(){
|
||||
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', event => {
|
||||
initChroma( true );
|
||||
initMermaid( true );
|
||||
initOpenapi( true );
|
||||
});
|
||||
})();
|
||||
|
||||
function useMermaid( config ){
|
||||
if( !Object.assign ){
|
||||
// We don't support Mermaid for IE11 anyways, so bail out early
|
||||
|
@ -1665,9 +1673,3 @@ ready( function(){
|
|||
moveTopbarButtons();
|
||||
adjustEmptyTopbarContents();
|
||||
})();
|
||||
|
||||
(function(){
|
||||
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', event => {
|
||||
initOpenapi( true );
|
||||
});
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue