mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-05-27 12:04:03 +00:00
deploy: 8f4d9f4930
This commit is contained in:
parent
0cd4d8b917
commit
0fa7fc6c2e
355 changed files with 8163 additions and 8153 deletions
js
10
js/theme.js
10
js/theme.js
|
@ -216,11 +216,21 @@ function initMermaid( update, attrs ) {
|
|||
attrs = attrs || {
|
||||
'theme': variants.getColorValue( 'MERMAID-theme' ),
|
||||
};
|
||||
|
||||
var search;
|
||||
if( update ){
|
||||
search = sessionStorage.getItem( baseUriFull+'search-value' );
|
||||
unmark();
|
||||
}
|
||||
var is_initialized = ( update ? update_func( attrs ) : init_func( attrs ) );
|
||||
if( is_initialized ){
|
||||
mermaid.init();
|
||||
$(".mermaid svg").svgPanZoom({});
|
||||
}
|
||||
if( update && search && search.length ){
|
||||
sessionStorage.setItem( baseUriFull+'search-value', search );
|
||||
mark();
|
||||
}
|
||||
}
|
||||
|
||||
function initSwagger( update, attrs ){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue