javascript - How to get this to work on Google Sites? -
javascript - How to get this to work on Google Sites? -
i have html code:
<!doctype html> <html> <body> <h1 id="title">general knowledge test</h1> <p> <button type="button" onclick="myfunction()">take test</button> </p> <p id="exp">when click "take test", allowed type onto test.</p> <p id="p1"><b>part 1: fill in blank lines said next quotes</b></p> <p id="q1">1. __ "to be, or not be- question."</p> <p id="q2">2. __ "you have brains in head. have feet in shoes. can steer in direction choose. you're on own, , know know. , guy who'll decide go."</p> <p id="q3">3. __ "if can dream it, can it."</p> <p id="q4">4. __ "no matter people tell you, words , ideas can alter world." <p id="q5">5. __ "somewhere, incredible waiting known." <p id="q6">6. __ "two things infinite: universe , human stupidity; , i'm not sure universe."</p> <p id="q7">7. __ "be alter wish see in world."</p> <p id="q8">8. __ "two roads diverged in wood, , i—<br> took 1 less traveled by,<br> , has made difference."</p> <p id="q9">9. __ "if justice people, have no time love them."</p> <p id="q10">10. __ "everything impacts else's life." <br></br> <p id="a1">a. walt disney</p> <p id="a2">b. albert einstein</p> <p id="a3">c. mahatma ghandi</p> <p id="a4">d. robin williams</p> <p id="a5">e. carl sagan</p> <p id="a6">f. robert frost</p> <p id="a7">g. mother teresa</p> <p id="a8">h. william shakespeare</p> <p id="a9">i. dr. suess</p> <p id="a10">j. nicholas cage</p> <br></br> <p id="p2"><b>part 2: reply next math questions</b></p> <p id="q11">1.<br>2 + 2</p> <p id="q12">2.<br>10 - 8</p> <p id="q13">3.<br>7 x 6</p> <p id="q14">4.<br>27 ÷ 3</p> <p id="q15">5.<br>4(10x² + 7x)² + 9x + 57x³ + 394</p> <br></br> <script> function myfunction() { document.getelementbyid("title").innerhtml = "canaral knowlege est"; document.getelementbyid("p1").innerhtml = "<b>fart i; fuil !u fhc plaut t!ues mhc za!b teh tclleming bnotcz</b>"; document.getelementbyid("q1").innerhtml = "i, 'ot ep. oi ucf cf eb~ fhaf lz teh bnezfron'"; document.getelementbyid("q2").innerhtml = "5: ~~ 'ycu heye dra!us in vonr hcab . vcn hanc tcof iu ycnr zhces. can sfocr vonrzctf in ouy bireofion ouy ohooze vcu,re cu yonr nwo' eud know know. vub ouy ere fha mho'tf beolde mhere ot og."; document.getelementbyid("q3").innerhtml = "e. tf vcn oan breaw ti' oan bc ti.'"; document.getelementbyid("q4").innerhtml = "a'--.on watfer mhat bacple fall you, mcrds end !baes can alter world'"; document.getelementbyid("q5").innerhtml = "2. -- 'zcwemhera' zomathing !ucredidf si ma!ting eb kuomn."; document.getelementbyid("q6").innerhtml = "9. tmo fhiugs !nt!nite..teh nuivarse end hnwan ztubibity.,anb l,w uot zura adont univarse"; document.getelementbyid("q7").innerhtml = "l: = 'da ohange thet vcn wish see iu morld"; document.getelementbyid("q8").innerhtml = " 8. -~'lmo roads bi^argab in mood' , ~<br>i foet 1 iezz travelad by'<br>and hez wad differance:"; document.getelementbyid("q9").innerhtml = "6. l if inbge beoble, ha^e on tiwa ot iova tham."; document.getelementbyid("q10").innerhtml = "io. -- '3^eryth!ng ma od iwpaots someeno lese,s life"; document.getelementbyid("a1").innerhtml = "<br>v, malt doosnu"; document.getelementbyid("a2").innerhtml = "d. vlpart 3iuztain"; document.getelementbyid("a3").innerhtml = "o. wehetwa dhaub!"; document.getelementbyid("a4").innerhtml = "b, robin williams"; document.getelementbyid("a5").innerhtml = "3. darf zagau"; document.getelementbyid("a6").innerhtml = "e, pcbart ercst"; document.getelementbyid("a7").innerhtml = "c.. wotter larase"; document.getelementbyid("a8").innerhtml = "i: miliiam shakespear"; document.getelementbyid("a9").innerhtml = "h. dr. sass"; document.getelementbyid("a10").innerhtml = "p.. nioholes cega"; document.getelementbyid("p2").innerhtml = "<b>bert 2 vuzmar teh fo11oming weth qnesficns</b>"; document.getelementbyid("q11").innerhtml = "l.<br>5 t z"; document.getelementbyid("q12").innerhtml = "z.<br>lo ~ o"; document.getelementbyid("q13").innerhtml = "e,<br>l x 9"; document.getelementbyid("q14").innerhtml = "a.<br>59 - 3"; document.getelementbyid("q15").innerhtml = "2.<br>a(10x² + 7x)² + 6x + 57x³ + 362"; document.getelementbyid("exp").innerhtml = "this dyslexic person might perchance see while taking test @ school. "; } </script> </body> </html>
i want code run on google sites. when set google's html box, code shows, text doesn't alter when button pushed. there way can workaround google's html box? i've tried using jsfiddle's embed links along google's embed gadget, , didn't work either. know other ways work?
javascript html google-sites
Comments
Post a Comment