Skip to content

Commit

Permalink
deploy: 07c0317
Browse files Browse the repository at this point in the history
  • Loading branch information
jow- committed Oct 19, 2023
1 parent da8eec4 commit a6e679a
Show file tree
Hide file tree
Showing 40 changed files with 9,584 additions and 9,600 deletions.
8 changes: 4 additions & 4 deletions index.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions lib.c.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions lib_debug.c.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions lib_fs.c.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions lib_log.c.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions lib_math.c.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions lib_struct.c.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions lib_uci.c.html

Large diffs are not rendered by default.

122 changes: 61 additions & 61 deletions module-core.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions module-debug.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions module-fs.dir.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions module-fs.file.html

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions module-fs.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions module-fs.proc.html

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions module-log.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions module-math.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions module-struct.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions module-struct.instance.html

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions module-uci.cursor.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions module-uci.html

Large diffs are not rendered by default.

1,395 changes: 693 additions & 702 deletions scripts/core.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

180 changes: 90 additions & 90 deletions scripts/resize.js
Original file line number Diff line number Diff line change
@@ -1,90 +1,90 @@
/* global document */
// This file is @deprecated

var NAVBAR_OPTIONS = {};

(function() {
var NAVBAR_RESIZE_LOCAL_STORAGE_KEY = 'NAVBAR_RESIZE_LOCAL_STORAGE_KEY';

var navbar = document.querySelector('#navbar');
var footer = document.querySelector('#footer');
var mainSection = document.querySelector('#main');
var localStorageResizeObject = JSON.parse(
// eslint-disable-next-line no-undef
localStorage.getItem(NAVBAR_RESIZE_LOCAL_STORAGE_KEY)
);

/**
* Check whether we have any resize value in local storage or not.
* If we have resize value then resize the navbar.
**/
if (localStorageResizeObject) {
navbar.style.width = localStorageResizeObject.width;
mainSection.style.marginLeft = localStorageResizeObject.width;
footer.style.marginLeft = localStorageResizeObject.width;
}

var navbarSlider = document.querySelector('#navbar-resize');

function resizeNavbar(event) {
var pageX = event.pageX,
pageXPlusPx = event.pageX + 'px',
min = Number.parseInt(NAVBAR_OPTIONS.min, 10) || 300,
max = Number.parseInt(NAVBAR_OPTIONS.max, 10) || 600;

/**
* Just to add some checks. If min is smaller than 10 then
* user may accidentally end up reducing the size of navbar
* less than 10. In that case user will not able to resize navbar
* because navbar slider will be hidden.
*/
if (min < 10) {
min = 10;
}

/**
* Only resize if pageX in range between min and max
* allowed value.
*/
if (min < pageX && pageX < max) {
navbar.style.width = pageXPlusPx;
mainSection.style.marginLeft = pageXPlusPx;
footer.style.marginLeft = pageXPlusPx;
}
}

function setupEventListeners() {
// eslint-disable-next-line no-undef
window.addEventListener('mousemove', resizeNavbar);
// eslint-disable-next-line no-undef
window.addEventListener('touchmove', resizeNavbar);
}

function afterRemovingEventListeners() {
// eslint-disable-next-line no-undef
localStorage.setItem(
NAVBAR_RESIZE_LOCAL_STORAGE_KEY,
JSON.stringify({
width: navbar.style.width
})
);
}

function removeEventListeners() {
// eslint-disable-next-line no-undef
window.removeEventListener('mousemove', resizeNavbar);
// eslint-disable-next-line no-undef
window.removeEventListener('touchend', resizeNavbar);
afterRemovingEventListeners();
}

navbarSlider.addEventListener('mousedown', setupEventListeners);
navbarSlider.addEventListener('touchstart', setupEventListeners);
// eslint-disable-next-line no-undef
window.addEventListener('mouseup', removeEventListeners);
})();

// eslint-disable-next-line no-unused-vars
function setupResizeOptions(options) {
NAVBAR_OPTIONS = options;
}
/* global document */
// This file is @deprecated

var NAVBAR_OPTIONS = {};

(function() {
var NAVBAR_RESIZE_LOCAL_STORAGE_KEY = 'NAVBAR_RESIZE_LOCAL_STORAGE_KEY';

var navbar = document.querySelector('#navbar');
var footer = document.querySelector('#footer');
var mainSection = document.querySelector('#main');
var localStorageResizeObject = JSON.parse(
// eslint-disable-next-line no-undef
localStorage.getItem(NAVBAR_RESIZE_LOCAL_STORAGE_KEY)
);

/**
* Check whether we have any resize value in local storage or not.
* If we have resize value then resize the navbar.
**/
if (localStorageResizeObject) {
navbar.style.width = localStorageResizeObject.width;
mainSection.style.marginLeft = localStorageResizeObject.width;
footer.style.marginLeft = localStorageResizeObject.width;
}

var navbarSlider = document.querySelector('#navbar-resize');

function resizeNavbar(event) {
var pageX = event.pageX,
pageXPlusPx = event.pageX + 'px',
min = Number.parseInt(NAVBAR_OPTIONS.min, 10) || 300,
max = Number.parseInt(NAVBAR_OPTIONS.max, 10) || 600;

/**
* Just to add some checks. If min is smaller than 10 then
* user may accidentally end up reducing the size of navbar
* less than 10. In that case user will not able to resize navbar
* because navbar slider will be hidden.
*/
if (min < 10) {
min = 10;
}

/**
* Only resize if pageX in range between min and max
* allowed value.
*/
if (min < pageX && pageX < max) {
navbar.style.width = pageXPlusPx;
mainSection.style.marginLeft = pageXPlusPx;
footer.style.marginLeft = pageXPlusPx;
}
}

function setupEventListeners() {
// eslint-disable-next-line no-undef
window.addEventListener('mousemove', resizeNavbar);
// eslint-disable-next-line no-undef
window.addEventListener('touchmove', resizeNavbar);
}

function afterRemovingEventListeners() {
// eslint-disable-next-line no-undef
localStorage.setItem(
NAVBAR_RESIZE_LOCAL_STORAGE_KEY,
JSON.stringify({
width: navbar.style.width
})
);
}

function removeEventListeners() {
// eslint-disable-next-line no-undef
window.removeEventListener('mousemove', resizeNavbar);
// eslint-disable-next-line no-undef
window.removeEventListener('touchend', resizeNavbar);
afterRemovingEventListeners();
}

navbarSlider.addEventListener('mousedown', setupEventListeners);
navbarSlider.addEventListener('touchstart', setupEventListeners);
// eslint-disable-next-line no-undef
window.addEventListener('mouseup', removeEventListeners);
})();

// eslint-disable-next-line no-unused-vars
function setupResizeOptions(options) {
NAVBAR_OPTIONS = options;
}
Loading

0 comments on commit a6e679a

Please sign in to comment.