Remove usage of deprecated function
This commit is contained in:
parent
5dad0d583c
commit
26bad7b2fc
|
@ -8,7 +8,7 @@ module.exports = grunt => {
|
||||||
},
|
},
|
||||||
copy: {
|
copy: {
|
||||||
html: {
|
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: {
|
focus: {
|
||||||
|
@ -18,7 +18,7 @@ module.exports = grunt => {
|
||||||
},
|
},
|
||||||
replace: {
|
replace: {
|
||||||
dev: {
|
dev: {
|
||||||
src: ["./dist/*.html", "./dist/*.js"],
|
src: ["./dist/**/*.html", "./dist/**/*.js"],
|
||||||
replacements: [
|
replacements: [
|
||||||
{
|
{
|
||||||
from: "%%VERSION_NUMBER%%",
|
from: "%%VERSION_NUMBER%%",
|
||||||
|
@ -28,7 +28,7 @@ module.exports = grunt => {
|
||||||
overwrite: true,
|
overwrite: true,
|
||||||
},
|
},
|
||||||
deploy: {
|
deploy: {
|
||||||
src: ["./dist/*.html", "./dist/*.js"],
|
src: ["./dist/**/*.html", "./dist/**/*.js"],
|
||||||
replacements: [
|
replacements: [
|
||||||
{
|
{
|
||||||
from: "%%VERSION_NUMBER%%",
|
from: "%%VERSION_NUMBER%%",
|
||||||
|
|
Binary file not shown.
10
package.json
10
package.json
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "simplify-fractions",
|
"name": "simplify-fractions",
|
||||||
"version": "1.2.4",
|
"version": "1.2.5",
|
||||||
"description": "Simple web tool for simplifying fractions",
|
"description": "Simple web tool for simplifying fractions",
|
||||||
"author": "Felix W. Dekker",
|
"author": "Felix W. Dekker",
|
||||||
"browser": "dist/bundle.js",
|
"browser": "dist/bundle.js",
|
||||||
|
@ -16,12 +16,12 @@
|
||||||
"deploy": "grunt deploy"
|
"deploy": "grunt deploy"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"katex": "^0.13.2"
|
"katex": "^0.13.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"css-loader": "^5.2.2",
|
"css-loader": "^5.2.4",
|
||||||
"file-loader": "^6.2.0",
|
"file-loader": "^6.2.0",
|
||||||
"grunt": "^1.3.0",
|
"grunt": "^1.4.0",
|
||||||
"grunt-cli": "^1.4.2",
|
"grunt-cli": "^1.4.2",
|
||||||
"grunt-contrib-clean": "^2.0.0",
|
"grunt-contrib-clean": "^2.0.0",
|
||||||
"grunt-contrib-copy": "^1.0.0",
|
"grunt-contrib-copy": "^1.0.0",
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
"grunt-text-replace": "^0.4.0",
|
"grunt-text-replace": "^0.4.0",
|
||||||
"grunt-webpack": "^4.0.3",
|
"grunt-webpack": "^4.0.3",
|
||||||
"style-loader": "^2.0.0",
|
"style-loader": "^2.0.0",
|
||||||
"webpack": "^5.33.2",
|
"webpack": "^5.36.0",
|
||||||
"webpack-cli": "^4.6.0"
|
"webpack-cli": "^4.6.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,13 +19,13 @@
|
||||||
<noscript>
|
<noscript>
|
||||||
<img src="https://stats.fwdekker.com/count?p=/tools/simplify-fractions/" alt="Counting pixel" />
|
<img src="https://stats.fwdekker.com/count?p=/tools/simplify-fractions/" alt="Counting pixel" />
|
||||||
|
|
||||||
<p style="color: red; font-weight: bold;">
|
<p>
|
||||||
This website does not function if JavaScript is disabled.
|
This website does not function if JavaScript is disabled.
|
||||||
Please check the <a href="https://www.enable-javascript.com/">
|
Please check the <a href="https://www.enable-javascript.com/">
|
||||||
instructions on how to enable JavaScript in your web browser</a>.
|
instructions on how to enable JavaScript in your web browser</a>.
|
||||||
</p>
|
</p>
|
||||||
</noscript>
|
</noscript>
|
||||||
<main style="display: none;">
|
<main class="hidden">
|
||||||
<div id="nav"></div>
|
<div id="nav"></div>
|
||||||
<div id="contents">
|
<div id="contents">
|
||||||
<div id="header"></div>
|
<div id="header"></div>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// noinspection JSUnresolvedVariable
|
// noinspection JSUnresolvedVariable
|
||||||
const {$, doAfterLoad, footer, header, nav, showPage} = window.fwdekker;
|
const {$, doAfterLoad, footer, header, nav} = window.fwdekker;
|
||||||
import katex from "katex";
|
import katex from "katex";
|
||||||
import "katex/dist/katex.min.css";
|
import "katex/dist/katex.min.css";
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ doAfterLoad(() => {
|
||||||
vcsURL: "https://git.fwdekker.com/FWDekker/simplify-fractions/",
|
vcsURL: "https://git.fwdekker.com/FWDekker/simplify-fractions/",
|
||||||
version: "v%%VERSION_NUMBER%%"
|
version: "v%%VERSION_NUMBER%%"
|
||||||
}));
|
}));
|
||||||
showPage();
|
$("main").classList.remove("hidden");
|
||||||
});
|
});
|
||||||
|
|
||||||
doAfterLoad(() => {
|
doAfterLoad(() => {
|
||||||
|
|
Loading…
Reference in New Issue