Remove inline styles
This commit is contained in:
parent
7f52a42a2b
commit
85f07a83d5
11
Gruntfile.js
11
Gruntfile.js
|
@ -7,13 +7,16 @@ module.exports = grunt => {
|
||||||
default: ["dist/"],
|
default: ["dist/"],
|
||||||
},
|
},
|
||||||
copy: {
|
copy: {
|
||||||
|
css: {
|
||||||
|
files: [{expand: true, cwd: "src/main/", src: "**/*.css", dest: "dist/", flatten: true}]
|
||||||
|
},
|
||||||
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: {
|
||||||
dev: {
|
dev: {
|
||||||
include: ["html", "js"],
|
include: ["css", "html", "js"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
replace: {
|
replace: {
|
||||||
|
@ -39,6 +42,10 @@ module.exports = grunt => {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
css: {
|
||||||
|
files: ["src/main/**/*.css"],
|
||||||
|
tasks: ["copy:css"],
|
||||||
|
},
|
||||||
html: {
|
html: {
|
||||||
files: ["src/main/**/*.html"],
|
files: ["src/main/**/*.html"],
|
||||||
tasks: ["copy:html"],
|
tasks: ["copy:html"],
|
||||||
|
@ -88,6 +95,7 @@ module.exports = grunt => {
|
||||||
// Pre
|
// Pre
|
||||||
"clean",
|
"clean",
|
||||||
// Copy files
|
// Copy files
|
||||||
|
"copy:css",
|
||||||
"copy:html",
|
"copy:html",
|
||||||
// Compile JS
|
// Compile JS
|
||||||
"webpack:dev",
|
"webpack:dev",
|
||||||
|
@ -98,6 +106,7 @@ module.exports = grunt => {
|
||||||
// Pre
|
// Pre
|
||||||
"clean",
|
"clean",
|
||||||
// Copy files
|
// Copy files
|
||||||
|
"copy:css",
|
||||||
"copy:html",
|
"copy:html",
|
||||||
// Compile JS
|
// Compile JS
|
||||||
"webpack:deploy",
|
"webpack:deploy",
|
||||||
|
|
Binary file not shown.
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "codsworth-namegen",
|
"name": "codsworth-namegen",
|
||||||
"version": "1.1.4",
|
"version": "1.1.5",
|
||||||
"description": "Choose a fitting name for your Fallout 4 character that Codsworth can pronounce",
|
"description": "Choose a fitting name for your Fallout 4 character that Codsworth can pronounce",
|
||||||
"author": "Felix W. Dekker",
|
"author": "Felix W. Dekker",
|
||||||
"browser": "dist/bundle.js",
|
"browser": "dist/bundle.js",
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
"deploy": "grunt deploy"
|
"deploy": "grunt deploy"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"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",
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
"grunt-focus": "^1.0.0",
|
"grunt-focus": "^1.0.0",
|
||||||
"grunt-text-replace": "^0.4.0",
|
"grunt-text-replace": "^0.4.0",
|
||||||
"grunt-webpack": "^4.0.3",
|
"grunt-webpack": "^4.0.3",
|
||||||
"webpack": "^5.33.2",
|
"webpack": "^5.36.0",
|
||||||
"webpack-cli": "^4.6.0"
|
"webpack-cli": "^4.6.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
textarea.nameArea {
|
||||||
|
height: 10em;
|
||||||
|
}
|
|
@ -13,6 +13,8 @@
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://static.fwdekker.com/fonts/roboto/roboto.css" />
|
<link rel="stylesheet" href="https://static.fwdekker.com/fonts/roboto/roboto.css" />
|
||||||
<link rel="stylesheet" href="https://static.fwdekker.com/lib/template/2.x.x/template.css" />
|
<link rel="stylesheet" href="https://static.fwdekker.com/lib/template/2.x.x/template.css" />
|
||||||
|
<!--suppress HtmlUnknownTarget -->
|
||||||
|
<link rel="stylesheet" href="main.css?v=%%VERSION_NUMBER%%" />
|
||||||
<script async src="https://stats.fwdekker.com/count.js"
|
<script async src="https://stats.fwdekker.com/count.js"
|
||||||
data-goatcounter="https://stats.fwdekker.com/count"></script>
|
data-goatcounter="https://stats.fwdekker.com/count"></script>
|
||||||
</head>
|
</head>
|
||||||
|
@ -20,13 +22,13 @@
|
||||||
<noscript>
|
<noscript>
|
||||||
<img src="https://stats.fwdekker.com/count?p=/tools/codsworth-namegen/" alt="Counting pixel" />
|
<img src="https://stats.fwdekker.com/count?p=/tools/codsworth-namegen/" 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>
|
||||||
|
@ -58,13 +60,13 @@
|
||||||
<button id="generateSimilar" type="button">Generate similar names</button>
|
<button id="generateSimilar" type="button">Generate similar names</button>
|
||||||
|
|
||||||
<label for="similarNames">Similar names are...</label>
|
<label for="similarNames">Similar names are...</label>
|
||||||
<textarea id="similarNames" style="height: 10em;" readonly></textarea>
|
<textarea id="similarNames" class="nameArea" readonly></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<button id="generateRandom" type="button">Generate random name</button>
|
<button id="generateRandom" type="button">Generate random name</button>
|
||||||
|
|
||||||
<label for="randomNames">Your name is...</label>
|
<label for="randomNames">Your name is...</label>
|
||||||
<textarea id="randomNames" style="height: 10em;" readonly></textarea>
|
<textarea id="randomNames" class="nameArea" readonly></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const {$, doAfterLoad, footer, header, nav, showPage} = window.fwdekker;
|
const {$, doAfterLoad, footer, header, nav} = window.fwdekker;
|
||||||
import {jaroWinkler} from "./jaroWinkler";
|
import {jaroWinkler} from "./jaroWinkler";
|
||||||
|
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ doAfterLoad(() => {
|
||||||
vcsURL: "https://git.fwdekker.com/FWDekker/codsworth-namegen/",
|
vcsURL: "https://git.fwdekker.com/FWDekker/codsworth-namegen/",
|
||||||
version: "v%%VERSION_NUMBER%%"
|
version: "v%%VERSION_NUMBER%%"
|
||||||
}));
|
}));
|
||||||
showPage();
|
$("main").classList.remove("hidden");
|
||||||
});
|
});
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
|
|
Loading…
Reference in New Issue