Add version number and best practices

This commit is contained in:
Florine W. Dekker 2020-03-14 12:45:53 +01:00
parent 6f36136986
commit 1150cabaea
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
3 changed files with 207 additions and 185 deletions

11
.editorconfig Normal file
View File

@ -0,0 +1,11 @@
root = true
[*]
charset = utf-8
trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# Codsworth name generator
Choose a fitting name for your _Fallout 4_ character that Codsworth can pronounce.
This tool gives you a list of names that look like yours so that you can pretend he's saying the right name.

View File

@ -11,26 +11,30 @@
<title>Codsworth name generator</title> <title>Codsworth name generator</title>
<link rel="shortcut icon" href="https://fwdekker.com/favicon.ico" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic" <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic"
crossorigin="anonymous" /> crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" <link rel="stylesheet" href="https://static.fwdekker.com/css/milligram-bundle.min.css" crossorigin="anonymous" />
integrity="sha256-l85OmPOjvil/SOvVt3HnSSjzF1TUMyT9eV0c2BzEGzU=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/milligram/1.3.0/milligram.min.css"
integrity="sha256-Ro/wP8uUi8LR71kwIdilf78atpu8bTEwrK5ZotZo+Zc=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://static.fwdekker.com/css/milligram-common.css" crossorigin="anonymous" />
</head> </head>
<body> <body>
<main class="wrapper"> <main class="wrapper">
<!-- Header --> <!-- Header -->
<header class="header"> <header class="header">
<section class="container"> <section class="container">
<h1>Codsworth name generator</h1> <h1>Codsworth name generator</h1>
<noscript>
<span style="color: red; font-weight: bold;">
This website does not function if JavaScript is disabled.
Please check the <a href="https://www.enable-javascript.com/">
instructions on how to enable JavaScript in your web browser</a>.
</span>
</noscript>
<blockquote> <blockquote>
<p><em>These generators use the <p><em>
These generators use the
<a href="http://www.cinemablend.com/games/Fallout-4-Full-List-Names-Codsworth-Can-Say-98407.html"> <a href="http://www.cinemablend.com/games/Fallout-4-Full-List-Names-Codsworth-Can-Say-98407.html">
list of names that can be pronounced by Codsworth</a> to help you find an appropriate name list of names that can be pronounced by Codsworth
for your character. </a>
to help you find an appropriate name for your character.
</em></p> </em></p>
</blockquote> </blockquote>
</section> </section>
@ -48,6 +52,7 @@
<h2>Random names</h2> <h2>Random names</h2>
</div> </div>
</div> </div>
<!-- Inputs --> <!-- Inputs -->
<div class="row"> <div class="row">
<div class="column"> <div class="column">
@ -56,6 +61,7 @@
</div> </div>
<div class="column"></div> <div class="column"></div>
</div> </div>
<!-- Outputs --> <!-- Outputs -->
<div class="row"> <div class="row">
<div class="column"> <div class="column">
@ -81,15 +87,17 @@
Licensed under the Licensed under the
<a href="https://git.fwdekker.com/FWDekker/codsworth-namegen/src/branch/master/LICENSE">MIT License</a>. <a href="https://git.fwdekker.com/FWDekker/codsworth-namegen/src/branch/master/LICENSE">MIT License</a>.
Source code available on <a href="https://git.fwdekker.com/FWDekker/codsworth-namegen/">git</a>. Source code available on <a href="https://git.fwdekker.com/FWDekker/codsworth-namegen/">git</a>.
<div style="float: right;">v1.0.8</div>
</section> </section>
</footer> </footer>
</main> </main>
<!-- Scripts --> <!-- Scripts -->
<script src="jaro-winkler.js"></script> <script src="jaro-winkler.js"></script>
<script src="https://static.fwdekker.com/js/common.js" crossorigin="anonymous"></script> <script src="https://static.fwdekker.com/js/common.js" crossorigin="anonymous"></script>
<script> <script>
/// Constants /// Constants
const similarCount = 25; const similarCount = 25;
const randomCount = 25; const randomCount = 25;
@ -235,6 +243,6 @@
}; };
$("#generateRandom").onclick = generateRandom; $("#generateRandom").onclick = generateRandom;
</script> </script>
</body> </body>
</html> </html>