diff --git a/Gruntfile.js b/Gruntfile.js index 536feca..641aaa2 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -8,7 +8,7 @@ module.exports = grunt => { }, copy: { html: { - files: [{expand: true, cwd: "src/main/", src: "**/*.html", dest: "dist/", "flatten": true}], + files: [{expand: true, cwd: "src/main/", src: "**/*.html", dest: "dist/", flatten: true}], }, }, focus: { @@ -18,7 +18,7 @@ module.exports = grunt => { }, replace: { dev: { - src: ["./dist/*.html", "./dist/*.js"], + src: ["./dist/**/*.html", "./dist/**/*.js"], replacements: [ { from: "%%VERSION_NUMBER%%", @@ -28,7 +28,7 @@ module.exports = grunt => { overwrite: true, }, deploy: { - src: ["./dist/*.html", "./dist/*.js"], + src: ["./dist/**/*.html", "./dist/**/*.js"], replacements: [ { from: "%%VERSION_NUMBER%%", diff --git a/package-lock.json b/package-lock.json index a062667..894ee21 100644 Binary files a/package-lock.json and b/package-lock.json differ diff --git a/package.json b/package.json index 63fe7cf..775e216 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simplify-fractions", - "version": "1.2.4", + "version": "1.2.5", "description": "Simple web tool for simplifying fractions", "author": "Felix W. Dekker", "browser": "dist/bundle.js", @@ -16,12 +16,12 @@ "deploy": "grunt deploy" }, "dependencies": { - "katex": "^0.13.2" + "katex": "^0.13.3" }, "devDependencies": { - "css-loader": "^5.2.2", + "css-loader": "^5.2.4", "file-loader": "^6.2.0", - "grunt": "^1.3.0", + "grunt": "^1.4.0", "grunt-cli": "^1.4.2", "grunt-contrib-clean": "^2.0.0", "grunt-contrib-copy": "^1.0.0", @@ -30,7 +30,7 @@ "grunt-text-replace": "^0.4.0", "grunt-webpack": "^4.0.3", "style-loader": "^2.0.0", - "webpack": "^5.33.2", + "webpack": "^5.36.0", "webpack-cli": "^4.6.0" } } diff --git a/src/main/index.html b/src/main/index.html index 86a063a..e4aa293 100644 --- a/src/main/index.html +++ b/src/main/index.html @@ -19,13 +19,13 @@ -
+
diff --git a/src/main/js/main.js b/src/main/js/main.js index e209548..a0bccfd 100644 --- a/src/main/js/main.js +++ b/src/main/js/main.js @@ -1,5 +1,5 @@ // noinspection JSUnresolvedVariable -const {$, doAfterLoad, footer, header, nav, showPage} = window.fwdekker; +const {$, doAfterLoad, footer, header, nav} = window.fwdekker; import katex from "katex"; import "katex/dist/katex.min.css"; @@ -108,7 +108,7 @@ doAfterLoad(() => { vcsURL: "https://git.fwdekker.com/FWDekker/simplify-fractions/", version: "v%%VERSION_NUMBER%%" })); - showPage(); + $("main").classList.remove("hidden"); }); doAfterLoad(() => {