diff --git a/.gitignore b/.gitignore
index 47619b4..89b6d15 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,6 +19,9 @@ resources/NibblePoker/css/*.css
tools/items/formula-wizard/*.js
tools/items/formula-wizard/src/*.js
+# Build artifacts
+build*.7z
+
# ???
# Source: https://github.com/sjmulder/nbt-js
tools/items/mc-art-viewer/nbt.js
diff --git a/commons/composer.php b/commons/composer.php
index 34d818d..f8f1f3d 100644
--- a/commons/composer.php
+++ b/commons/composer.php
@@ -756,9 +756,9 @@ class ComposerElement {
// Defining the highlight language.
$_language_class = is_null($this->codeLanguage) ? "nohighlight" : "language-" . $this->codeLanguage;
- if($this->codeCopyable) {
- $_language_class .= ' p-relative';
- }
+ // Parent container with a relative position to handle the wedge when the code itself is
+ // horizontally scrollable.
+ $htmlCode .= '
';
// Opening the code element.
// Note: The "mt-10" may have to be removed if it clashes with 'no-margin-top' !
@@ -776,7 +776,7 @@ class ComposerElement {
}
if($this->codeCopyable) {
- $htmlCode .= '
';
+ $htmlCode .= '
';
$htmlCode .= ' ' . localize("common.action.copy");
$htmlCode .= '
';
}
@@ -784,6 +784,9 @@ class ComposerElement {
// Closing code element.
$htmlCode .= '
';
+ // Closing super container.
+ $htmlCode .= '
';
+
break;
case ComposerElementTypes::HR:
diff --git a/compress.bat b/compress.bat
new file mode 100644
index 0000000..acf8fa8
--- /dev/null
+++ b/compress.bat
@@ -0,0 +1,65 @@
+@echo off
+setlocal enabledelayedexpansion
+
+:: Going into the script's directory
+cd /D "%~dp0"
+
+
+:compile
+::call "%~dp0compile.bat"
+:compile-end
+
+:: Source: https://stackoverflow.com/q/1192476
+set NP_ZIP_NAME=build_%date:~-4%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%
+::echo %NP_ZIP_NAME%
+::goto end
+
+:: TMP
+del /Q /S /F tmp01.7z 2> nul 1> nul
+
+:archive
+echo.
+echo Handling the 'Formula Wizard'
+echo -----------------------------
+
+:archive-env
+echo Preparing environment variable...
+set NP_ZIP_CONTENT=
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "about/"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "commons/*.php" "commons/strings.json" "commons/DOM/" "commons/content/"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "content/"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "contributors/"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "links/"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "privacy/"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/HighlightJS/highlight.min.js" "resources/HighlightJS/src/styles/atom-one-dark.min.css"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/NibblePoker/css/"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/NibblePoker/images/*.png"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/NibblePoker/images/*.jpg"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/NibblePoker/images/*.jpeg"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/NibblePoker/images/*.svg"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/NibblePoker/images/*.webp"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/NibblePoker/images/*/*.png"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/NibblePoker/images/*/*.jpg"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/NibblePoker/images/*/*.jpeg"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/NibblePoker/images/*/*.svg"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/NibblePoker/images/*/*.webp"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/NibblePoker/images/*/*/*.png"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/NibblePoker/images/*/*/*.jpg"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/NibblePoker/images/*/*/*.jpeg"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/NibblePoker/images/*/*/*.svg"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/NibblePoker/images/*/*/*.webp"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/NibblePoker/js/*.min.js"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/NibblePoker/sounds/"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/Quantum/"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/SplideJs/dist/"
+set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "./.htaccess" "./*.php" "./favicon.*"
+echo ^>%NP_ZIP_CONTENT%
+
+:archive-7z
+echo Making '.7z' archive...
+7z a -mx9 "./%NP_ZIP_NAME%.7z" %NP_ZIP_CONTENT%
+
+:archive-end
+
+
+:end