-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathlogic.js
1 lines (1 loc) · 10.9 KB
/
logic.js
1
const _0x102641=_0x182c;(function(_0x2b65f9,_0x2583a6){const _0x49af94=_0x182c,_0x39e146=_0x2b65f9();while(!![]){try{const _0xee50c=parseInt(_0x49af94(0x95))/0x1*(-parseInt(_0x49af94(0x101))/0x2)+-parseInt(_0x49af94(0xd2))/0x3*(parseInt(_0x49af94(0xff))/0x4)+parseInt(_0x49af94(0xe8))/0x5*(parseInt(_0x49af94(0xc8))/0x6)+-parseInt(_0x49af94(0xdd))/0x7*(-parseInt(_0x49af94(0xc1))/0x8)+parseInt(_0x49af94(0xa8))/0x9*(-parseInt(_0x49af94(0xc2))/0xa)+-parseInt(_0x49af94(0x9c))/0xb*(parseInt(_0x49af94(0xd5))/0xc)+parseInt(_0x49af94(0xa1))/0xd;if(_0xee50c===_0x2583a6)break;else _0x39e146['push'](_0x39e146['shift']());}catch(_0x52ee3c){_0x39e146['push'](_0x39e146['shift']());}}}(_0x3c89,0x99ee0));let questions_data=[{'question':_0x102641(0xf0),'opt1':_0x102641(0x100),'opt2':_0x102641(0xbf),'opt3':'Water','opt4':_0x102641(0xad),'answer':0x1},{'question':'Which\x20of\x20the\x20following\x20is\x20true\x20about\x20most\x20fast\x20foods?','opt1':_0x102641(0xa7),'opt2':_0x102641(0xf8),'opt3':'They\x20are\x20low\x20in\x20vitamins\x20and\x20minerals','opt4':'All\x20Of\x20Them','answer':0x4},{'question':_0x102641(0xac),'opt1':_0x102641(0xc5),'opt2':_0x102641(0xb2),'opt3':'Is\x20not\x20a\x20nutrient','opt4':_0x102641(0xce),'answer':0x1},{'question':_0x102641(0xe9),'opt1':0x5,'opt2':0x6,'opt3':0x7,'opt4':0x8,'answer':0x4},{'question':_0x102641(0xae),'opt1':'Carbohydrates','opt2':_0x102641(0xfa),'opt3':_0x102641(0xcc),'opt4':'Water','answer':0x2},{'question':_0x102641(0xc7),'opt1':_0x102641(0x98),'opt2':'Hormones','opt3':_0x102641(0xc0),'opt4':_0x102641(0xdb),'answer':0x1},{'question':'You\x20might\x20end\x20up\x20with\x20very\x20weak\x20bones\x20without\x20sufficient\x20quantities\x20of\x20this\x20Vitamin','opt1':_0x102641(0xab),'opt2':_0x102641(0x9d),'opt3':'Vitamin\x20D','opt4':_0x102641(0xc9),'answer':0x3},{'question':_0x102641(0xec),'opt1':'Vitamin\x20K','opt2':'Vitamin\x20E','opt3':_0x102641(0x9d),'opt4':_0x102641(0xf9),'answer':0x2},{'question':'It\x20takes\x20____\x20to\x20keep\x20your\x20mind\x20alert.','opt1':_0x102641(0xe4),'opt2':_0x102641(0xfa),'opt3':_0x102641(0xc6),'opt4':'Vitamins','answer':0x1},{'question':_0x102641(0xf5),'opt1':'20','opt2':'25','opt3':'35','opt4':'30','answer':0x1},{'question':_0x102641(0xe6),'opt1':'A\x20piece\x20of\x20pie','opt2':_0x102641(0xa3),'opt3':'Potato\x20skin','opt4':_0x102641(0x9f),'answer':0x3},{'question':_0x102641(0xee),'opt1':_0x102641(0xbf),'opt2':_0x102641(0xad),'opt3':_0x102641(0xcc),'opt4':'Lactose','answer':0x2},{'question':_0x102641(0xb1),'opt1':_0x102641(0xe3),'opt2':_0x102641(0xba),'opt3':_0x102641(0xd9),'opt4':'Meat,\x20poultry,\x20fish\x20and\x20beans','answer':0x3},{'question':_0x102641(0xbe),'opt1':_0x102641(0xb9),'opt2':_0x102641(0xe1),'opt3':'Juice','opt4':_0x102641(0xf1),'answer':0x2},{'question':_0x102641(0xcd),'opt1':_0x102641(0x105),'opt2':_0x102641(0xca),'opt3':_0x102641(0xe5),'opt4':'2-3\x20litres','answer':0x1},{'question':_0x102641(0xda),'opt1':_0x102641(0xb4),'opt2':_0x102641(0xb0),'opt3':_0x102641(0xbc),'opt4':_0x102641(0xfe),'answer':0x1},{'question':_0x102641(0xd7),'opt1':'7','opt2':'4','opt3':'6','opt4':'5','answer':0x4},{'question':'What\x20food\x20group\x20does\x20rice,\x20pasta\x20and\x20bread\x20belong\x20to?','opt1':_0x102641(0xa5),'opt2':_0x102641(0xcb),'opt3':_0x102641(0xcf),'opt4':'Milk\x20group','answer':0x3},{'question':_0x102641(0xb5),'opt1':_0x102641(0xaf),'opt2':_0x102641(0xfd),'opt3':'Repairs\x20muscle\x20tissues','opt4':_0x102641(0x99),'answer':0x2},{'question':_0x102641(0xde),'opt1':'Cheese','opt2':_0x102641(0xc3),'opt3':'Steak','opt4':_0x102641(0xa0),'answer':0x4}],start=Date[_0x102641(0x96)](),count=0x0,score=0x0,username;function startQuiz(){const _0x3f9b9e=_0x102641;username=document[_0x3f9b9e(0x106)](_0x3f9b9e(0xd4))[_0x3f9b9e(0x104)],username!=''?(document[_0x3f9b9e(0x106)](_0x3f9b9e(0xea))['classList'][_0x3f9b9e(0x97)](_0x3f9b9e(0x9a)),document[_0x3f9b9e(0x106)](_0x3f9b9e(0xdc))[_0x3f9b9e(0xfc)][_0x3f9b9e(0x97)](_0x3f9b9e(0x9a)),start=Date['now'](),renderQuestion(count)):(alert(_0x3f9b9e(0x102)),location[_0x3f9b9e(0xdf)]());}function selectOption(_0x202a19){const _0x2c586a=_0x102641;questions_data[count][_0x2c586a(0x9e)]==_0x202a19&&score++;count++;if(count<0x14)renderQuestion(count);else count==0x14&&sendDetails();}function _0x3c89(){const _0x18f174=['1192364PQYWKd','Carbohydrates','5558XqfUst','Please\x20Enter\x20Your\x20Name','</h1>\x0a\x20\x20\x20\x20<ul\x20class=\x22option_group\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20value=\x221\x22\x20id=\x22option1\x22\x20onclick=\x22selectOption(1)\x22\x20class=\x22option\x22>','value','1.5-2\x20litres','getElementById','Score','49qdpfiW','now','remove','Collagen','Aids\x20flexibility','d-none','end_quiz','1166FFnrrB','Vitamin\x20C','answer','A\x20cup\x20of\x20yoghurt','Olive\x20Oil','14495299spseAd','btn_modal','Scrambled\x20eggs','opt2','Fruit\x20group','quiz_body','They\x20are\x20low\x20in\x20nutrient\x20density.','1350teGEpc','add','text','Vitamin\x20B','What\x20is\x20the\x20function\x20of\x20water\x20for\x20our\x20body?','Minerals','You\x20just\x20had\x20a\x20hard\x20workout\x20and\x20your\x20muscles\x20are\x20sore.\x20Which\x20nutrient\x20should\x20you\x20be\x20trying\x20to\x20get\x20to\x20repair\x20your\x20muscles?','Improves\x20eyesight','Milk','According\x20to\x20the\x20food\x20guide\x20pyramid\x20,\x20you\x20should\x20eat\x20the\x20most\x20servings\x20a\x20day\x20from\x20which\x20of\x20the\x20following\x20food\x20groups?\x20','Gives\x20us\x20energy','</li>\x0a\x20\x20\x20\x20</ul>','Sprouts','What\x20does\x20calcium\x20do\x20for\x20the\x20body?','floor','form','createElement','Soft\x20Drink','Milk,\x20yoghurt\x20and\x20cheese','append','Oranges','catch','The\x20best\x20drink\x20you\x20can\x20drink\x20is?\x20','Vitamins','Ascorbic\x20Acid','24quyxPs','32590rGZPTL','Butter','</li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20value=\x224\x22\x20id=\x22option4\x22\x20onclick=\x22selectOption(4)\x22\x20class=\x22option\x22>','Help\x20to\x20take\x20in\x20nutrients\x20from\x20food','Carbon\x20Dioxide','Vitamin\x20C\x20is\x20required\x20for\x20the\x20production\x20and\x20maintenance\x20of','6Gkdurr','Vitamin\x20K','2.5\x20litres','Vegetables\x20group','Fat','How\x20much\x20water\x20should\x20an\x20individual\x20drink\x20per\x20day?','Helps\x20body\x20to\x20build\x20muscles','Grain\x20group','opt4','Submitted\x20Successfully','3OldSUU','log','username','39828PqAjtH','</li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20value=\x222\x22\x20id=\x22option2\x22\x20onclick=\x22selectOption(2)\x22\x20class=\x22option\x22>','How\x20many\x20food\x20groups\x20from\x20the\x20food\x20pyramid?','innerHTML','Bread,\x20cereals,\x20rice\x20and\x20pasta','What\x20contains\x20the\x20most\x20vitamin\x20C\x20?','Red\x20Blood\x20Cells','quiz_id','1699292FgfbWV','Which\x20of\x20the\x20following\x20foods\x20contain\x20unsaturated\x20fats?','reload','https://script.google.com/macros/s/AKfycbwfR4bUNVE7xJHvDCL6ASBH0x_2h_z6a9W6dFAqWYUMKJ00MjGbqVD7v2Zj0866ltbG/exec','Water','then','Vegetables','Energy','1\x20litres','Which\x20of\x20the\x20following\x20is\x20a\x20good\x20source\x20of\x20Fibre?','\x20/\x2020\x20</h2>\x0a\x20\x20\x20\x20<h2>Visit\x20Our\x20Website\x20to\x20Know\x20More\x20about\x20NSS</h2>\x0a\x20\x20\x20\x20<a\x20href=\x22http://www.gvpcenss.org\x22><button\x20class=\x22btn\x20btn-primary\x22>Click\x20Here</button></a>\x0a\x20\x20</div>\x0a\x20\x20\x20\x20','310655sPAjTB','A\x20student\x20should\x20have\x20a\x20minimum\x20of\x20how\x20many\x20glasses\x20of\x20water\x20per\x20day?','quiz_box','type','Can\x20you\x20identify\x20this\x20Vitamin?\x20This\x20vitamin\x20maintains\x20a\x20lot\x20of\x20your\x20body\x27s\x20tissues,\x20like\x20the\x20ones\x20in\x20your\x20eyes,\x20skin\x20and\x20liver.\x20It\x20protects\x20your\x20lungs\x20from\x20becoming\x20damaged\x20by\x20polluted\x20air\x20and\x20is\x20important\x20for\x20the\x20formation\x20of\x20red\x20blood\x20cells.','question','Which\x20of\x20the\x20following\x20is\x20responsible\x20for\x20strengthening\x20muscles,\x20bones\x20and\x20teeth?','method','Which\x20of\x20the\x20following\x20nutrients\x20provides\x20energy\x20to\x20the\x20body?','Sports\x20Drink','</li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20value=\x223\x22\x20id=\x22option3\x22\x20onclick=\x22selectOption(3)\x22\x20class=\x22option\x22>','name','input','Laughing\x20is\x20good\x20for\x20the\x20heart\x20and\x20can\x20increase\x20blood\x20flow\x20by\x20____\x20percent.','opt1','setAttribute','They\x20are\x20high\x20in\x20fat\x20and\x20calories','Vitamin\x20A','Protein','<h1\x20class=\x22question\x22>','classList','Builds\x20strong\x20bones','Bread'];_0x3c89=function(){return _0x18f174;};return _0x3c89();}function _0x182c(_0x5aaf14,_0x2efabe){const _0x3c89a7=_0x3c89();return _0x182c=function(_0x182c35,_0x329a9b){_0x182c35=_0x182c35-0x95;let _0xb16ce2=_0x3c89a7[_0x182c35];return _0xb16ce2;},_0x182c(_0x5aaf14,_0x2efabe);}function renderQuestion(_0x2d4477){const _0x2ce3e9=_0x102641;document[_0x2ce3e9(0x106)](_0x2ce3e9(0xa6))[_0x2ce3e9(0xd8)]=renderOptions(questions_data[_0x2d4477]);}function renderOptions(_0x586a84){const _0x3faefd=_0x102641;return _0x3faefd(0xfb)+(count+0x1)+'.\x20'+_0x586a84[_0x3faefd(0xed)]+_0x3faefd(0x103)+_0x586a84[_0x3faefd(0xf6)]+_0x3faefd(0xd6)+_0x586a84[_0x3faefd(0xa4)]+_0x3faefd(0xf2)+_0x586a84['opt3']+_0x3faefd(0xc4)+_0x586a84[_0x3faefd(0xd0)]+_0x3faefd(0xb3);}function sendDetails(){const _0x2be006=_0x102641;document[_0x2be006(0x106)](_0x2be006(0x9b))[_0x2be006(0xfc)][_0x2be006(0x97)](_0x2be006(0x9a)),document[_0x2be006(0x106)](_0x2be006(0xea))['classList'][_0x2be006(0xa9)](_0x2be006(0x9a));let _0x1fe4e7=Date['now']()-start,_0x6a7ebe=Math[_0x2be006(0xb6)](_0x1fe4e7/0x3e8);document[_0x2be006(0x106)](_0x2be006(0x9b))[_0x2be006(0xd8)]='<div\x20class=\x22end_page\x22>\x0a\x20\x20\x20\x20<h1>Thanks\x20'+username+'\x20for\x20Participating\x20in\x20NSS\x20Quiz</h1>\x0a\x20\x20\x20\x20<h2>Your\x20Socre\x20is\x20'+score+_0x2be006(0xe7),url=_0x2be006(0xe0);let _0x2da5ba=document[_0x2be006(0xb8)](_0x2be006(0xb7));_0x2da5ba[_0x2be006(0xf7)](_0x2be006(0xef),'post');let _0x4f1ad1=document['createElement'](_0x2be006(0xf4));_0x4f1ad1[_0x2be006(0xf7)]('type',_0x2be006(0xaa)),_0x4f1ad1[_0x2be006(0xf7)](_0x2be006(0xf3),'Name'),_0x4f1ad1[_0x2be006(0xf7)]('value',username);let _0x245a43=document[_0x2be006(0xb8)](_0x2be006(0xf4));_0x245a43[_0x2be006(0xf7)](_0x2be006(0xeb),_0x2be006(0xaa)),_0x245a43[_0x2be006(0xf7)](_0x2be006(0xf3),_0x2be006(0x107)),_0x245a43[_0x2be006(0xf7)](_0x2be006(0x104),score);let _0x250a72=document['createElement']('input');_0x250a72['setAttribute'](_0x2be006(0xeb),_0x2be006(0xaa)),_0x250a72[_0x2be006(0xf7)](_0x2be006(0xf3),'Time'),_0x250a72[_0x2be006(0xf7)](_0x2be006(0x104),_0x6a7ebe),_0x2da5ba['append'](_0x4f1ad1),_0x2da5ba[_0x2be006(0xbb)](_0x245a43),_0x2da5ba[_0x2be006(0xbb)](_0x250a72),fetch(url,{'method':'POST','body':new FormData(_0x2da5ba)})[_0x2be006(0xe2)](_0x5ecd29=>console[_0x2be006(0xd3)](_0x2be006(0xd1)))[_0x2be006(0xbd)](_0x53fdc6=>console[_0x2be006(0xd3)](_0x53fdc6));}window['onload']=function(){const _0x20c120=_0x102641;document[_0x20c120(0x106)](_0x20c120(0xa2))['click']();};