Skip to content

Commit

Permalink
build: ran npm script build
Browse files Browse the repository at this point in the history
  • Loading branch information
javalsai committed Jun 8, 2023
1 parent 3324395 commit 262169c
Show file tree
Hide file tree
Showing 37 changed files with 152 additions and 89 deletions.
4 changes: 2 additions & 2 deletions output/v4/Alive.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Alive.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Apple.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Apple.js.html

Large diffs are not rendered by default.

34 changes: 21 additions & 13 deletions output/v4/Database.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/Energy.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Energy.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/Environment.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Environment.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/HideConstructor.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Modules.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/NamespaceWithAlias.js.html

Large diffs are not rendered by default.

40 changes: 23 additions & 17 deletions output/v4/Statement.html

Large diffs are not rendered by default.

26 changes: 23 additions & 3 deletions output/v4/StatementIterator.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/Test.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Tree.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Tree.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/World.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/World.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/api.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/data/search.json

Large diffs are not rendered by default.

15 changes: 12 additions & 3 deletions output/v4/global.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/module-SqlJs.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/module-bookshelf.Book.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/module-bookshelf.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/module-color_mixer.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/obj.map.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/pieOptions.html

Large diffs are not rendered by default.

28 changes: 24 additions & 4 deletions output/v4/scripts/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function getTheme() {
return body.getAttribute('data-theme');
}

function updateTheme(theme) {
function localUpdateTheme(theme) {
var body = document.body;
var svgUse = document.querySelectorAll('.theme-svg-use');
var iconID = theme === 'dark' ? '#light-theme-icon' : '#dark-theme-icon';
Expand All @@ -28,6 +28,10 @@ function updateTheme(theme) {
svgUse.forEach(function (svg) {
svg.setAttribute('xlink:href', iconID);
});
}

function updateTheme(theme) {
localUpdateTheme(theme);

localStorage.setItem(themeLocalStorageKey, theme);
}
Expand Down Expand Up @@ -145,7 +149,7 @@ function bringElementIntoView(element, updateHistory = true) {
/**
* tocbotInstance is defined in layout.tmpl
* It is defined when we are initializing tocbot.
*
*
*/
// eslint-disable-next-line no-undef
if (tocbotInstance) {
Expand Down Expand Up @@ -401,9 +405,9 @@ function getFontSize() {
return currentFontSize;
}

function updateFontSize(fontSize) {
function localUpdateFontSize(fontSize) {
html.style.fontSize = fontSize + 'px';
localStorage.setItem(fontSizeLocalStorageKey, fontSize);

var fontSizeText = document.querySelector(
'#b77a68a492f343baabea06fad81f651e'
);
Expand All @@ -413,6 +417,11 @@ function updateFontSize(fontSize) {
}
}

function updateFontSize(fontSize) {
localUpdateFontSize(fontSize);
localStorage.setItem(fontSizeLocalStorageKey, fontSize);
}

(function () {
var fontSize = getFontSize();
var fontSizeInLocalStorage = localStorage.getItem(fontSizeLocalStorageKey);
Expand Down Expand Up @@ -653,3 +662,14 @@ window.addEventListener('hashchange', (event) => {
bringIdToViewOnMount(url.hash);
}
});

// eslint-disable-next-line no-undef
window.addEventListener('storage', event => {
console.log(event);
if (event.newValue === 'undefined') return;

if (event.key === themeLocalStorageKey)
localUpdateTheme(event.newValue);
if (event.key === fontSizeLocalStorageKey)
localUpdateFontSize(event.newValue);
});
4 changes: 2 additions & 2 deletions output/v4/scripts/core.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/tutorial-Alive_.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/tutorial-Apple_.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/tutorial-Environment_.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/tutorial-Other.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/tutorial-new.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions static/scripts/core.min.js

Large diffs are not rendered by default.

0 comments on commit 262169c

Please sign in to comment.