Make the styling consistent for all pages
This commit is contained in:
@@ -84,6 +84,7 @@ class GradeCalc {
|
||||
label.innerHTML = `${conf.title} ${inputId + 1} Score: `;
|
||||
|
||||
let field = document.createElement("input");
|
||||
field.classList.add(`input`);
|
||||
field.classList.add(`${conf.name}-score`);
|
||||
this.fields[sectId][inputId] = field;
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<meta name="Grade Calculator" content="School grade calculation">
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="/stylesheets/persia.css">
|
||||
<title>Grade Calc</title>
|
||||
</head>
|
||||
<style>
|
||||
@@ -12,12 +13,6 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
.about-container {
|
||||
padding: 1rem;
|
||||
}
|
||||
@@ -36,18 +31,9 @@
|
||||
}
|
||||
|
||||
.button-container button {
|
||||
border: 1px solid black;
|
||||
border-radius: 0;
|
||||
font-size: 1em;
|
||||
text-align: center;
|
||||
margin: .5rem 0;
|
||||
width: 100%;
|
||||
padding: 0.5rem 1rem;
|
||||
background-color: #90c541;
|
||||
color: #FFF;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
@media screen and (max-width: 900px) {
|
||||
|
||||
.json-textarea,
|
||||
@@ -58,9 +44,8 @@
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<h1 class="title"><a href="/">PaulW.XYZ</a> / <a href="/pages/">Pages</a> / Grade Calculator</h1>
|
||||
<div class="about-container">
|
||||
<h1><a href="/">PaulW.XYZ</a> / <a href="/pages/">Pages</a> / Grade Calculator</h1>
|
||||
<hr>
|
||||
<h2>About</h2>
|
||||
Check out the <a href="https://github.com/lambdapaul/www/blob/master/pages/grade-calc/README.md">README.md</a> file
|
||||
to learn more about the configuration structure.
|
||||
@@ -74,15 +59,16 @@
|
||||
</div>
|
||||
<div class="json-textarea">
|
||||
<h2>Configuration</h2>
|
||||
<hr>
|
||||
<h3>Load config from file</h3>
|
||||
<ul>
|
||||
<li><a href="javascript:void(0)" onclick="loadConfig('./config/map2302.json')">MAP2302 - ODE I Fall 2019</a>
|
||||
</li>
|
||||
<li><a href="javascript:void(0)" onclick="loadConfig('./config/eee3307c.json')">EEE3307C - Electronics I
|
||||
Spring 2021</a></li>
|
||||
<li><a href="javascript:void(0)" onclick="loadConfig('./config/map2302.json')">MAP2302 - ODE I Fall 2019 (map2302.json)</a></li>
|
||||
<li><a href="javascript:void(0)" onclick="loadConfig('./config/eee3307c.json')">EEE3307C - Electronics I Spring 2021 (eee3307c.json)</a></li>
|
||||
<li><a href="javascript:void(0)" onclick="loadConfig('./config/eel4742c.json')">EEL4742C - Embedded Systems Spring 2021 (eel4742c.json)</a></li>
|
||||
<li><a href="javascript:void(0)" onclick="loadConfig('./config/eel4781.json')">EEL4781 - Computer Comm. Networks Spring 2021 (eel4781.json)</a></li>
|
||||
</ul>
|
||||
<div class="button-container">
|
||||
<button onclick="generate()">Generate →</button>
|
||||
<button class="button" onclick="generate()">Generate →</button>
|
||||
</div>
|
||||
<textarea id="json" id="" rows="30"></textarea>
|
||||
|
||||
|
||||
@@ -4,17 +4,16 @@
|
||||
<meta charset="UTF-8">
|
||||
<title>PaulW.XYZ / Pages</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="/stylesheets/persia.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1><a href="/">PaulW.XYZ</a> / Pages</h1>
|
||||
<ul>
|
||||
<li><a href="/pages/grade-calc/">Grade Calculator</a></li>
|
||||
</ul>
|
||||
<hr>
|
||||
<ul type="none">
|
||||
<li><a href="resources">Resources</a></li>
|
||||
<li><a href="https://github.com/lambdapaul/pages">GitHub</a></li>
|
||||
</ul>
|
||||
|
||||
<nav>
|
||||
<h1 class="title"><a href="/">PaulW.XYZ</a> / Pages</h1>
|
||||
</nav>
|
||||
<div class="nav-list">
|
||||
<a href="/pages/grade-calc/">Grade Calculator</a>
|
||||
<a href="/pages/recommended">Recommended</a>
|
||||
<a href="/pages/resources">Resources</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -4,10 +4,12 @@
|
||||
<meta charset="UTF-8">
|
||||
<title>Pages / Recommended</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="/stylesheets/persia.css">
|
||||
</head>
|
||||
<body>
|
||||
<!-- This page is really for me to not forget/revisit the good things I have read, seen, heard, and/or experienced. This list may change, just as my opinions. -->
|
||||
<h1><a href="/">PaulW.XYZ</a> / <a href="/pages/">Pages</a> / Recommended</h1>
|
||||
<h1 class="title"><a href="/">PaulW.XYZ</a> / <a href="/pages/">Pages</a> / Recommended</h1>
|
||||
<section>
|
||||
<p>If the one you're looking for is not on this list, it is most likely I haven't had the chance to read it yet or I may have put it on the Resources page, if it is freely available.</p>
|
||||
<hr>
|
||||
<h2>Books</h2>
|
||||
@@ -93,5 +95,6 @@
|
||||
<li>The Legend of Zelda: Breath of the Wild</li>
|
||||
<li>Portal 2</li>
|
||||
</ul>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
@@ -4,10 +4,11 @@
|
||||
<meta charset="UTF-8">
|
||||
<title>Pages / Resources</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="/stylesheets/persia.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1><a href="/">PaulW.XYZ</a> / <a href="/pages/">Pages</a> / Resources</h1>
|
||||
<hr>
|
||||
<h1 class="title"><a href="/">PaulW.XYZ</a> / <a href="/pages/">Pages</a> / Resources</h1>
|
||||
<section>
|
||||
<h2>Programming</h2>
|
||||
<ul>
|
||||
<li><a href="http://aggregate.org/MAGIC/">The Aggregate Magic Algorithms</a></li>
|
||||
@@ -37,5 +38,6 @@ The MIT License, Line by Line by Kyle E. Mitchell</a></li>
|
||||
<ul>
|
||||
<li><a href="https://sightreading.training/">Sight Reading Trainer</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user