Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
students:value-calculator-quiz [2024/01/26 02:48] – old revision restored (2024/01/26 00:12) steve.wang | students:value-calculator-quiz [2024/01/27 01:42] (current) – steve.wang | ||
---|---|---|---|
Line 14: | Line 14: | ||
/* overflow: auto;*/ | /* overflow: auto;*/ | ||
background-color: | background-color: | ||
- | top: 10%; | ||
color: white; | color: white; | ||
| | ||
Line 29: | Line 28: | ||
#tBox{ | #tBox{ | ||
width: 99.5%; | width: 99.5%; | ||
+ | height: 30%; | ||
font-size: 600%; | font-size: 600%; | ||
color: white; | color: white; | ||
Line 223: | Line 223: | ||
<!-- https:// | <!-- https:// | ||
< | < | ||
- | | + | |
// -- value-calculator.js | // -- value-calculator.js | ||
// -------------------------------------------------------------------------- | // -------------------------------------------------------------------------- | ||
Line 1004: | Line 1004: | ||
} | } | ||
//Idea for using & character for passing information inspired by bardAI | //Idea for using & character for passing information inspired by bardAI | ||
- | |||
function createLinkWithData (link){ | function createLinkWithData (link){ | ||
let outputLink = link | let outputLink = link | ||
answers.forEach(x => { | answers.forEach(x => { | ||
- | outputLink += '&' | + | outputLink += '&' |
}) | }) | ||
// | // | ||
Line 1043: | Line 1042: | ||
} | } | ||
} | } | ||
- | |||
window.addEventListener(' | window.addEventListener(' | ||
if (mode === ' | if (mode === ' | ||
let copy = document.getElementsByClassName(' | let copy = document.getElementsByClassName(' | ||
- | let navbar = document.getElementById('dw__navbar') | + | let navbar = document.getElementsByClassName(" |
- | document.documentElement.appendChild(navbar) | + | let newBody = document.createElement('body') |
- | document.documentElement.appendChild(copy) | + | |
- | document.body.remove() | + | newBody.appendChild(navbar) |
+ | | ||
+ | | ||
+ | | ||
+ | document.documentElement.style.boxSizing = ' | ||
+ | | ||
// | // | ||
checkReferrer() | checkReferrer() | ||
Line 1062: | Line 1065: | ||
question.style.color = ' | question.style.color = ' | ||
instructions.style.color = ' | instructions.style.color = ' | ||
- | document.documentElement.style.boxSizing = ' | ||
</ | </ | ||
<br> | <br> |