students:value-calculator-quiz

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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.wangstudents:value-calculator-quiz [2024/01/27 01:42] (current) steve.wang
Line 14: Line 14:
 /*  overflow: auto;*/ /*  overflow: auto;*/
   background-color: #262626;   background-color: #262626;
-    top: 10%; 
   color: white;   color: white;
  margin-left: 2%;  margin-left: 2%;
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://www.w3schools.com/css/css_grid.asp --> <!-- https://www.w3schools.com/css/css_grid.asp -->
         <script>         <script>
-        // --------------------------------------------------------------------------+            // --------------------------------------------------------------------------
 // -- 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 += '&' + x.name + '&' + x.score+        outputLink += '&' + x.name.replace(/ /g, "-"+ '&' + x.score
     })     })
 //     return link + '&'  + answers[0].name + '&' + answers[0].score + '&' + answers[1].name + '&' + answers[1].score //     return link + '&'  + answers[0].name + '&' + answers[0].score + '&' + answers[1].name + '&' + answers[1].score
Line 1043: Line 1042:
     }     }
 } }
- 
  
 window.addEventListener('load', function() { window.addEventListener('load', function() {
     if (mode === 'doku'){     if (mode === 'doku'){
         let copy = document.getElementsByClassName('dw-content')[0]         let copy = document.getElementsByClassName('dw-content')[0]
-        let navbar = document.getElementById('dw__navbar') +        let navbar = document.getElementsByClassName("navbar-brand d-flex align-items-center" )[0] 
-document.documentElement.appendChild(navbar) +        let newBody = document.createElement('body') 
-document.documentElement.appendChild(copy+        newBody.appendChild(copy) 
-document.body.remove()+        newBody.appendChild(navbar) 
 +        document.body.remove() 
 +        document.documentElement.appendChild(newBody
 +        copy.style.top = '20%' 
 +        document.documentElement.style.boxSizing = 'none' 
 +        document.body.style.marginTop = '0px'
 //         configureStylingForDokuWiki() //         configureStylingForDokuWiki()
         checkReferrer()         checkReferrer()
Line 1062: Line 1065:
 question.style.color = 'white' question.style.color = 'white'
 instructions.style.color = 'white' instructions.style.color = 'white'
-document.documentElement.style.boxSizing = 'none' 
         </script>         </script>
 <br> <br>
  • students/value-calculator-quiz.1706266087.txt.gz
  • Last modified: 2024/01/26 02:48
  • by steve.wang