Skip to content

Commit

Permalink
generate output
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitskvmdam committed Jun 15, 2022
1 parent 7c851f7 commit be3b8c9
Show file tree
Hide file tree
Showing 29 changed files with 75 additions and 61 deletions.
2 changes: 1 addition & 1 deletion 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.

2 changes: 1 addition & 1 deletion 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.

4 changes: 2 additions & 2 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/Statement.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 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.

2 changes: 1 addition & 1 deletion 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/api.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 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.

29 changes: 19 additions & 10 deletions output/v4/scripts/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,21 +307,28 @@ function getPreDiv() {

function processAllPre() {
var targets = document.querySelectorAll('pre');
var footer = document.querySelector('#footer');
var navbar = document.querySelector('#navbar');
var footer = document.querySelector('#PeOAagUepe');
var navbar = document.querySelector('#VuAckcnZhf');

var footerHeight = footer.getBoundingClientRect().height;
var navbarHeight = navbar.getBoundingClientRect().height;
var navbarHeight = 0;
var footerHeight = 0;

if (footer) {
footerHeight = footer.getBoundingClientRect().height;
}

if (navbar) {
navbarHeight = navbar.getBoundingClientRect().height;
}

// eslint-disable-next-line no-undef
var preMaxHeight = window.innerHeight - navbarHeight - footerHeight - 250;

// var isSource = isSourcePage();

targets.forEach(function(pre, idx) {
var div = getPreDiv();
var id = 'pre-id' + idx;
var lang = pre.getAttribute('data-lang') || '';
var id = 'ScDloZOMdL' + idx;

var lang = pre.getAttribute('data-lang') || 'code';
var topBar = getPreTopBar(id, lang);

div.innerHTML = topBar;
Expand Down Expand Up @@ -367,7 +374,9 @@ function getFontSize() {
function updateFontSize(fontSize) {
html.style.fontSize = fontSize + 'px';
localStorage.setItem(fontSizeLocalStorageKey, fontSize);
var fontSizeText = document.querySelector('#font-size-text');
var fontSizeText = document.querySelector(
'#b77a68a492f343baabea06fad81f651e'
);

if (fontSizeText) {
fontSizeText.innerHTML = fontSize;
Expand Down Expand Up @@ -420,7 +429,7 @@ function fontSizeTooltip() {
<use xlink:href="#minus-icon"></use>
</svg>
</button>
<div class="font-size-text" id="font-size-text">
<div class="font-size-text" id="b77a68a492f343baabea06fad81f651e">
${fontSize}
</div>
<button aria-label="increase-font-size" class="icon-button ${
Expand Down
4 changes: 2 additions & 2 deletions output/v4/scripts/core.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 15 additions & 10 deletions output/v4/scripts/search.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
/* global document */

var searchData;
var searchId = 'f73c3473-f750-4298-bb07-3837be4f2c2bff66efc0-857b-4d13-930d-9e8db5ae4338';
var searchId = 'LiBfqbJVcV';
var searchHash = '#' + searchId;
var searchContainerID = '#PkfLWpAbet';
var searchWrapperID = '#iCxFxjkHbP';
var searchCloseButtonID = '#VjLlGakifb';
var searchInputID = '#vpcKVYIppa';
var searchResultCID = '#fWwVHRuDuN';

function hideSearch() {
var container = document.querySelector('#search-container');
var container = document.querySelector(searchContainerID);

// eslint-disable-next-line no-undef
if (window.location.hash === searchHash ) {
if (window.location.hash === searchHash) {
// eslint-disable-next-line no-undef
history.go(-1);
}
Expand All @@ -30,8 +35,8 @@ function listenKey(event) {
}

function showSearch() {
var container = document.querySelector('#search-container');
var input = document.querySelector('#search-input');
var container = document.querySelector(searchContainerID);
var input = document.querySelector(searchInputID);

// eslint-disable-next-line no-undef
window.onhashchange = hideSearch;
Expand Down Expand Up @@ -150,7 +155,7 @@ function debounce(func, wait, immediate) {

function search(event) {
var value = event.target.value;
var resultBox = document.querySelector('#search-result-c');
var resultBox = document.querySelector(searchResultCID);
var keys = ['title', 'description'];

if (!resultBox) {
Expand Down Expand Up @@ -201,11 +206,11 @@ function search(event) {
}

function onDomContentLoaded() {
var input = document.querySelector('#search-input');
var input = document.querySelector(searchInputID);
var searchButton = document.querySelectorAll('.search-button');
var searchContainer = document.querySelector('#search-container');
var searchWrapper = document.querySelector('#search-wrapper');
var searchCloseButton = document.querySelector('#search-close-button');
var searchContainer = document.querySelector(searchContainerID);
var searchWrapper = document.querySelector(searchWrapperID);
var searchCloseButton = document.querySelector(searchCloseButtonID);

var debouncedSearch = debounce(search, 300);

Expand Down
Loading

0 comments on commit be3b8c9

Please