Add license and semantic HTML
This commit is contained in:
parent
cb87f6fa09
commit
c075f07fc9
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2017 Felix W. Dekker
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
53
index.html
53
index.html
|
@ -23,26 +23,47 @@
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<main class="wrapper">
|
||||||
<h1>Simplify fractions</h1>
|
<!-- Header -->
|
||||||
<blockquote>
|
<header class="header">
|
||||||
<p><em>Simplify a fraction to eliminate common factors.</em></p>
|
<div class="container">
|
||||||
</blockquote>
|
<h1>Simplify fractions</h1>
|
||||||
|
<blockquote>
|
||||||
|
<p><em>Simplify a fraction to eliminate common factors.</em></p>
|
||||||
|
</blockquote>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
<form>
|
|
||||||
<fieldset>
|
|
||||||
<label for="numerator">Numerator</label>
|
|
||||||
<input type="number" id="numerator" min="-2147483647" max="2147483647" autofocus />
|
|
||||||
|
|
||||||
<label for="denominator">Denominator</label>
|
<!-- Input -->
|
||||||
<input type="number" id="denominator" min="-2147483647" max="2147483647" />
|
<section class="container">
|
||||||
|
<form>
|
||||||
|
<fieldset>
|
||||||
|
<label for="numerator">Numerator</label>
|
||||||
|
<input type="number" id="numerator" min="-2147483647" max="2147483647" autofocus />
|
||||||
|
|
||||||
<button type="button" id="submit">Calculator</button>
|
<label for="denominator">Denominator</label>
|
||||||
</fieldset>
|
<input type="number" id="denominator" min="-2147483647" max="2147483647" />
|
||||||
</form>
|
|
||||||
|
|
||||||
|
<button type="button" id="submit">Calculator</button>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Output -->
|
||||||
|
<section class="container">
|
||||||
<span id="out"></span>
|
<span id="out"></span>
|
||||||
</div>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<section class="container">
|
||||||
|
Made by <a href="https://fwdekker.com/">Felix W. Dekker</a>. Licensed under the <a href="https://git.fwdekker.com/FWDekker/simplify-fractions/src/branch/master/LICENSE">MIT License</a>. Source code available on <a href="https://git.fwdekker.com/FWDekker/simplify-fractions/">git</a>.
|
||||||
|
</section>
|
||||||
|
</footer>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
|
||||||
<!-- Scripts -->
|
<!-- Scripts -->
|
||||||
|
@ -154,7 +175,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
const $ = (query) => document.querySelector(query);
|
const $ = query => document.querySelector(query);
|
||||||
|
|
||||||
const numeratorInput = $("#numerator");
|
const numeratorInput = $("#numerator");
|
||||||
const denominatorInput = $("#denominator");
|
const denominatorInput = $("#denominator");
|
||||||
|
|
Loading…
Reference in New Issue