Finished Version 3
This commit is contained in:
.gitignoreDockerfileREADME.mdapp.py
data
docker-compose.ymlinterface
quiz
requirements.txtsecret.py.example
84
interface/static/css/style.css
Normal file
84
interface/static/css/style.css
Normal file
@ -0,0 +1,84 @@
|
||||
body {
|
||||
padding: 60px 0;
|
||||
}
|
||||
|
||||
.wrapper-answer {
|
||||
padding-left: 5px;
|
||||
height: fit-content;
|
||||
}
|
||||
|
||||
.wrapper-radio {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.wrapper-option {
|
||||
vertical-align: middle;
|
||||
border-bottom: 0.25px solid;
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
.wrapper-option.last-option {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.question {
|
||||
margin: 0 auto 24px auto;
|
||||
}
|
||||
|
||||
.sourcebook-title {
|
||||
font-style: italic;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.small-caps {
|
||||
font-variant-caps: small-caps;
|
||||
}
|
||||
|
||||
.right-padded-cell {
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.label-score {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
h1 {
|
||||
padding: 30pt 0 60pt;
|
||||
}
|
||||
|
||||
.section-head {
|
||||
margin: 40px 0px 20px 0px;
|
||||
}
|
||||
|
||||
.result, .glossary {
|
||||
margin: 30pt 0 0pt
|
||||
}
|
||||
|
||||
.graph-column {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.take-quiz {
|
||||
margin: 10px auto 10px auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.right-margin {
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
.left-margin {
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.centre-buttons {
|
||||
text-align: center;
|
||||
margin: 30px 0 0 0;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 400px) {
|
||||
.graph-column {
|
||||
display: none;
|
||||
}
|
||||
}
|
BIN
interface/static/favicon.ico
Normal file
BIN
interface/static/favicon.ico
Normal file
Binary file not shown.
After Width: 48px | Height: 48px | Size: 15 KiB |
BIN
interface/static/favicon.png
Normal file
BIN
interface/static/favicon.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 46 KiB |
2
interface/static/js/jquery.js
vendored
Normal file
2
interface/static/js/jquery.js
vendored
Normal file
File diff suppressed because one or more lines are too long
13
interface/static/js/script.js
Normal file
13
interface/static/js/script.js
Normal file
@ -0,0 +1,13 @@
|
||||
const menuItems = document.getElementsByClassName("nav-link");
|
||||
for(let i = 0; i< menuItems.length; i++) {
|
||||
if(menuItems[i].pathname == window.location.pathname) {
|
||||
menuItems[i].classList.add("active")
|
||||
}
|
||||
}
|
||||
const dropdownItems = document.getElementsByClassName("dropdown-item");
|
||||
for(let i = 0; i< dropdownItems.length; i++) {
|
||||
if(dropdownItems[i].pathname == window.location.pathname) {
|
||||
dropdownItems[i].classList.add("active")
|
||||
$( "#" + dropdownItems[i].id ).closest( ".dropdown" ).find(".dropdown-toggle").addClass("active")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user