Move all "edit.js" functions into Modules

Create new repository to track these
This commit is contained in:
2025-03-07 14:46:38 +09:00
commit 55972b4ab7
26 changed files with 5052 additions and 0 deletions

2
build/js/general/jquery-3.6.0.min.js vendored Normal file

File diff suppressed because one or more lines are too long

1
build/js/general/jquery.min.js vendored Symbolic link
View File

@@ -0,0 +1 @@
jquery-3.6.0.min.js

2
build/js/output/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*
!.gitignore

33
build/test.html Normal file
View File

@@ -0,0 +1,33 @@
<!DOCTYPE html>
<head>
<title>JavaScript Test</title>
<script type="text/javascript" src="js/general/jquery.min.js"></script>
<!-- <script type="text/javascript" src="js/general/translateTest-ja_JP.UTF-8.js"></script> -->
<script type="text/javascript" src="js/output/utilsAll.min.js"></script>
</head>
<body>
<div>
<h1>JavaScript tests</h1>
<div id="test-div">
</div>
</div>
</body>
<script languagae="JavaScript">
document.addEventListener('DOMContentLoaded', function() {
console.log('MAIN PAGE LOADED');
let el = document.getElementById('test-div');
if (el === null) {
throw new Error("element test-div not found");
}
let bytes = 1021152;
//
el.html = '';
el.html += '<div>randomIdF: ' + randomIdF() + '</div>';
el.html += '<div>getWindowSize: ' + getWindowSize() + '</div>';
el.html += '<div>formatBytes: ' + formatBytes(bytes) + '</div>';
el.html += '<div>formatBytesLong: ' + formatBytesLong(bytes) + '</div>';
// console.log('TR: %s', l10n.__('Original'));
// console.log('TR: %s', l10n.__('Not exists'));
});
</script>