-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
1171 lines (1097 loc) · 45.5 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
header("Cache-Control: no-cache, no-store, must-revalidate"); // HTTP 1.1.
header("Pragma: no-cache"); // HTTP 1.0.
header("Expires: 0"); // Proxies.
?>
<!DOCTYPE html>
<html>
<head>
<link rel="short" type="image/x-icon" href="favicon.ico" />
<link href="https://jeenius.ga/favicon.ico" rel="shortcut icon" type="image/x-icon" >
<meta charset="utf-8">
<title>Jeenius</title>
<meta name="description" content="Solve tests, practice questions or add YOUR question!"/>
<meta property="og:title" content="Jeenius"/>
<meta property="og:description" content="Solve tests, practice questions or add YOUR question!"/>
<meta property="og:image" content="https://jeenius.ga/favicon.ico"/>
<meta property="og:url" content="https://jeenius.ga/index.php"/>
<meta name="theme-color" content="#000000">
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<script src="https://kit.fontawesome.com/f028f07279.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Thasadith|Ubuntu|Noto%20Serif%20SC|Alegreya|Vollkorn%20SC">
<script>
if (localStorage.getItem("spamoption")=="1"){
document.write("You cannot view this page for three days.");
}
</script>
<style>
html{
scroll-behavior: smooth;
}
body{margin:0;
line-height:1.5;}
* {box-sizing;}
footer{font-size:14px;line-height:1.4;margin:0 0 5px 0px; font-family:'Thasadith', serif;color:rgba(0,0,0,0.75);
padding:10px;
}
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 100; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
}
/* Modal Content */
.modal-content {
background-color: #fefefe;
margin: auto;
padding: 20px;
border: 2px solid lightblue;
width: 80%;
}
/* The Close Button */
.close {
color: #aaaaaa;
float: right;
font-size: 34px;
font-weight: bold;
margin-top:-10px;
}
.close:hover,
.close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
/*#headerbar{
font-size:10vw;
display:flex;
align-items: center;
//display-style:block;
height:10vh;
width:100%;
padding:0;
margin:0;
background-color:black;
font-family:"Times New Roman";
position: fixed;
top:0;
}
span.menu{
background-color:gray;
width:14vw;
color:white;
font-size:6.7vh;
display: flex;
align-items: center;
justify-content:center;
flex-direction:column;
}*/
#headerbar{
font-size:20vh;
display:flex;
align-items: center;
//display-style:block;
height:8.5vh;
width:100%;
padding:0;
margin:0;
z-index:99;
box-shadow:0 0px 8px 4px rgba(0,0,0,0.6);
background-color:black;
font-family:"Times New Roman";
position: fixed;
top:0;
}
span.menu{
width:14vw;
color:white;
font-size:6.2vh;
height:8.5vh;
display: flex;
align-items: center;
justify-content:center;
flex-direction:column;
}
div.menuicon{
width: 35px;
height: 4px;
background-color: white;
margin: 4px 0px;
}
/* The Overlay (background) */
.overlay {
/* Height & width depends on how you want to reveal the overlay (see JS below) */
height: 100%;
width: 0;
position: fixed; /* Stay in place */
z-index: 100; /* Sit on top */
left: 0;
top: 0;
background-color: rgb(0,0,0); /* Black fallback color */
background-color: rgba(0,0,0, 0.9); /* Black w/opacity */
overflow-x: hidden; /* Disable horizontal scroll */
transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}
/* Position the content inside the overlay */
.overlay-content {
position: relative;
top: 12%; /* 25% from the top */
width: 100%; /* 100% width */
text-align: left; /* Centered text/links */
margin-top: 10px; /* 30px top margin to avoid conflict with the close button on smaller screens */
}
/* The navigation links inside the overlay */
.overlay a {
padding: 6px;
text-decoration: none;
font-size: 30px;
color: #818181;
display: block; /* Display block instead of inline */
transition: 0.3s; /* Transition effects on hover (color) */
}
/* When you mouse over the navigation links, change their color */
.overlay a:hover, .overlay a:focus {
color: #f1f1f1;
}
/* Position the close button (top right corner) */
.overlay .closebtn {
position: absolute;
top: 5px;
right: 25px;
font-size: 55px;
}
/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {
.overlay a {font-size: 20px}
.overlay .closebtn {
font-size: 40px;
top: 15px;
right: 35px;
}
}
#home {
margin:3px;
}
li{display: block; width: 70%;
margin:auto;
background-color: #afafaf;
}
@media screen and(max-height: 40px){
#headerbar{ height: 10vh;
font-size: 10px;}}
.navbar {
background-color: #333;
overflow: hidden;
position: fixed;
bottom: 0;
width: 100%;
}
/* Style the links inside the navigation bar */
.navbar a {
display: inline-block;
color: #f2f2f2;
text-align: center;
padding: 8px 6vw;
text-decoration: none;
font-size: 2.6vw;
margin:auto;
}
/* Change the color of links on hover */
.navbar a:hover {
background-color: #ddd;
color: black;
}
/* Add a color to the active/current link */
.navbar a:active{
background-color: #fff;
color: black;
}
#daily{display:none;}
#physicsdaily{display:none;
margin:5px;}
#chemistrydaily{display:none;
margin:5px;}
#mathdaily{display:none;
margin:5px;}
textarea {
width:75%;
height:30vh;
font-size:16px;
padding: 12px 20px;
box-sizing: border-box;
border: 2.5px solid #f7b2ff;
border-radius: 4px;
transition-duration: 0.4s;
outline:none;
font-family:Times New Roman;
}
textarea:focus {
background-color: #f8f8f8;
border: 2.5px solid #d02fe1;
}
#submitbutton{
margin:8px;
padding:8px;
font-size:12px;
border:2px solid #ad1caf;
background-color:white;
transition-duration: 0.4s;
}
#submitbutton:hover{
background-color: #ad1caf;
color: white;
}
input[type=text]{
font-family:'Ubuntu',serif;
width:30vw;
margin: 8px;
padding:10px;
font-size:12px;
background-color: white;
outline:none;
transition:0.4s;
-webkit-transition: 0.4s;
border:2.5px solid #f7b2ff;
}
input[type=text]:focus {
width:60vw;
border: 2.5px solid #d02fe1;
color:black;
}
#form{
border:2px solid #d02fe1;
height:auto;
margin:0 5px;
transition: height 1s;
}
#submitit{
display:none;
font-size:12px; color:red;
}
input[type=submit]:disabled{
border:2.5px solid #f7b2ff;
}
span.namemore{
color:#f752eb;
}
#hidemore{
display:none;
}
li{
background-color:white;
margin-left:5px;
display:list-item;
width:85%;
}
ul{
list-style-type:disc;
}
#thelog{
display:none;
}
div.info{
text-align:center;
margin-left:20px;
margin-right:20px;
padding:15px;
// border-left:3px solid #1fdc9f;
overflow:hidden;
transition:max-height 0.4s;
-webkit-transition:0.4s;
}
div.info-title{
font-size:1.9em;
//margin-left:8px;
color:rgba(0,0,0,0.9);
font-family:"Thasadith", serif;
}
div.info-answer{
font-size:1em;
// margin-left:15px;
color:rgba(0,0,0,0.75);
font-family:"Noto Serif SC", serif;
//border-left: 2px solid #f56d1d;
padding:10px;
}
#navbar1{
padding-top:10px;
text-align:center; padding-bottom:10px;
font-family:'Alegreya',serif;
font-size:1.5em;
position:sticky;
top:8vh;
background:rgba(255,255,255,0.77);
z-index:10;
margin:0 auto;
border-bottom:1px solid black;
width:80vw;
}
a.advertise{
padding:5px 5px;
margin:0 5px 0 5px;
color:#42b2b7;
}
#like{
text-align:center;
position:fixed;
bottom:0;
left:50%;
z-index:4;
color:#fe0775;
border-radius:5px 5px 0 0;
background-color:rgba(28, 230, 136,0.7);
font-size:1.3em;
min-width:20vw;
padding:7px;
margin:0 -10vw;
}
#likeicon{
padding:0 8px;
}
#disabledsubmit{display:none;}
.share{
color:rgba(0,0,0,0.7);
font-size:1.9em;
margin:-10px 10px;
text-decoration:none;
transition:0.4s;
}
a.share:visited{
color:rgba(0,0,0,0.7);
}
a.share:hover{
color:magenta;
}
a.feedback{
font-size:1.4em; color:#33e3e5;
}
</style>
</head>
<body onload="gettheusername(); banthem(); countp();loadlikes();setlikeicon();"><div id="wholepage">
<script>
function banthem(){
if (localStorage.getItem("user")=="Sahil Mahajan"){
document.write(localStorage.getItem("user")+ " cannot view this page for three days.");
}}
</script>
<div id="headerbar" class="headerbar">
<span class="menu" id="modalbutton" onclick="getbookmarklist();" style="background-color: black; color: magenta; font-size: 3vh; width: auto; margin-left: 2vw;">Book-<div style=" margin-top:-6px; "></div>marks</span>
<span style="text-align:center; color:white; font-size: 8vh; margin:auto; diaplay-style: inline-block;"> Jeenius</span>
<span class="menu" onclick="nav();"><div class="menuicon"></div><div class="menuicon"></div><div class="menuicon"></div></span>
</div>
<div id="overlaynav" class="overlay">
<!-- Button to close the overlay navigation -->
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<!-- Overlay content -->
<div class="overlay-content">
<a href="https://jeenius.ga" onclick="openhome();">Home <i class="fas fa-home"></i></a>
<a href="#" onclick="daily();">Questions <i class="fas fa-book"></i></a>
<a href="https://jeenius.ga/tests/login.php">Tests <i class="fas fa-edit"></i></a>
<a href="https://jeenius.ga/blanktests/tests/">Custom Tests <i class="fas fa-pen-nib"></i></a>
<a href="http://jeenius.ga/credits.html">Credits <i class="fas fa-align-center"></i></a>
<a href="http://jeenius.ga/more.html">More</a>
<!--<a href="#" onclick="openhome();">Home</a>
<a href="#" onclick="daily();">Questions</a>
<a href="http://jeenius.epizy.com/subjects/physics.php">Physics</a>
<a href="http://jeenius.epizy.com/subjects/chemistry.php">Chemistry</a>
<a href="http://jeenius.epizy.com/subjects/maths.php">Maths</a>
<a href="credits.html">Credits</a>-->
</div>
<script>
function openhome(){
document.getElementById("overlaynav").style.width = "0%";
document.getElementById("home").style.display="block";
document.getElementById("daily").style.display="none";
document.getElementById("physicsdaily").style.display="none";
}
function daily(){
document.getElementById("form").style.display="none";
document.getElementById("overlaynav").style.width = "0%";
document.getElementById("home").style.display="none";
document.getElementById("daily").style.display="block";
document.getElementById("develop").style.display="none";
document.getElementById("thelog").style.display="none";
}
</script>
</div>
<script type="text/javascript">
/* Open when someone clicks on the span element */
function nav() {
document.getElementById("overlaynav").style.width = "70%";
}
/* Close when someone clicks on the "x" symbol inside the overlay */
function closeNav() {
document.getElementById("overlaynav").style.width = "0%";
};
/*var modal = document.getElementById('overlaynav');
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == modal) {
modal.style.width="0%";
}
}*/
</script>
<div style="height:8vh;"></div>
<!-- Bookmarks modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content" style="max-height:70%; overflow-y:scroll; font-family:'Ubuntu',serif;">
<div style="font-size:1.2em; color:#00cbbe;" id="modalwelcome"></div><span class="close">×</span>
<h3>Bookmarks</h3>
<p>
<h4 onclick="window.location.href='https://jeenius.ga/daily/physicsq.php';">Physics</h4>
<ul id="bookmarklistp">
</ul>
<h4>Chemistry</h4>
<ul id="bookmarklistc">
</ul>
<h4>Math</h4>
<ul id="bookmarklistm">
</ul>
</p>
</div>
</div>
<script>
if(localStorage.user!=""&&localStorage.user!=null&&localStorage.user!=undefined&&localStorage.user)
{
document.getElementById("modalwelcome").innerHTML="Welcome, "+localStorage.user+".";
}
// Get the modal
var modal = document.getElementById("myModal");
// Get the button that opens the modal
var openmodal = document.getElementById("modalbutton");
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];
// When the user clicks the button, open the modal
openmodal.onclick = function() {
modal.style.display = "block";
getbookmarklist();
}
// When the user clicks on <span> (x), close the modal
span.onclick = function() {
modal.style.display = "none";
//getbookmarklist();
}
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
function getbookmarklist(){
//For Physics
document.getElementById("bookmarklistp").innerHTML="";
for(var i=0; i<30; i++){
var y="qp"+i;
var ya=localStorage.getItem(y);
if(ya=="1"){
var markedq = document.createElement("li");
var textnode = document.createTextNode("Question "+(i+1));
markedq.appendChild(textnode);
document.getElementById("bookmarklistp").appendChild(markedq);
}
}
if(document.getElementById("bookmarklistp").innerHTML==""){
document.getElementById("bookmarklistp").innerHTML="Nothing here yet...";
}
//For Chemistry
document.getElementById("bookmarklistc").innerHTML="";
for(var i=0; i<30; i++){
var y="qc"+i;
var ya=localStorage.getItem(y);
if(ya=="1"){
var markedq = document.createElement("li");
var textnode = document.createTextNode("Question "+(i+1));
markedq.appendChild(textnode);
document.getElementById("bookmarklistc").appendChild(markedq);
}
}
if(document.getElementById("bookmarklistc").innerHTML==""){
document.getElementById("bookmarklistc").innerHTML="Nothing here yet...";
}
//For Maths
document.getElementById("bookmarklistm").innerHTML="";
for(var i=0; i<30; i++){
var y="qm"+i;
var ya=localStorage.getItem(y);
if(ya=="1"){
var markedq = document.createElement("li");
var textnode = document.createTextNode("Question "+(i+1));
markedq.appendChild(textnode);
document.getElementById("bookmarklistm").appendChild(markedq);
}
}
if(document.getElementById("bookmarklistm").innerHTML==""){
document.getElementById("bookmarklistm").innerHTML="Nothing here yet...";
}
}
var pnum;
var cnum;
var mnum;
function countp() {
var xhttp = new XMLHttpRequest();
//xhttp.overrideMimeType("text/xml");
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
myp(this);
}
};
xhttp.open("GET","/daily/pd.xml?" + Math.random(),true);
//xhttp.open("GET", "md1.xml", true);
xhttp.send();
countc();
}
function myp(xml){
var xmlDoc = xml.responseXML;
var numberofq = xmlDoc.getElementsByTagName("q").length;
pnum=numberofq;
if(localStorage.getItem("numofp")==undefined||localStorage.getItem("numofp")==null||localStorage.getItem("numofp")==""||localStorage.getItem("numofp")=="undefined"||!localStorage.getItem("numofp")){
localStorage.setItem("numofp", numberofq);
document.getElementById("newq").innerHTML="Next time you come here you will see if any new questions have been added.";
}
else if(localStorage.numofp!=numberofq){
var diff=pnum-Number(localStorage.numofp);
if(diff>=0){
document.getElementById("newqp").innerHTML="[<b>"+diff+"</b> new]";
}
else {
diff=0-diff;
document.getElementById("newqp").innerHTML="[<b>"+diff+"</b> removed]";
}
localStorage.setItem("numofp", numberofq);
}
else{
document.getElementById("newqp").innerHTML="[Nothing new yet]";
}
document.getElementById("pcount").innerHTML="Physics <br><span style= \"color:magenta; \"> "+numberofq+"</span> questions.";
}
function countc() {
var xhttp = new XMLHttpRequest();
//xhttp.overrideMimeType("text/xml");
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
myc(this);
}
};
xhttp.open("GET","/daily/cd.xml?" + Math.random(),true);
//xhttp.open("GET", "md1.xml", true);
xhttp.send();
countm();
}
function myc(xml){
var xmlDoc = xml.responseXML;
var numberofq = xmlDoc.getElementsByTagName("q").length;
cnum=numberofq;
if(localStorage.getItem("numofc")==undefined||localStorage.getItem("numofc")==null||localStorage.getItem("numofc")==""||localStorage.getItem("numoc")=="undefined"||!localStorage.getItem("numofc")){
localStorage.setItem("numofc", numberofq);
document.getElementById("newq").innerHTML="Next time you come here you will see if any new questions have been added.";
}
else if(Number(localStorage.numofc)!=numberofq){
var diff=cnum-Number(localStorage.numofc);
if(diff>=0){
document.getElementById("newqc").innerHTML="[<b>"+diff+"</b> new]";
}
else {
diff=0-diff;
document.getElementById("newqc").innerHTML="[<b>"+diff+"</b> removed]";
}
localStorage.setItem("numofc", numberofq);
}
else{
document.getElementById("newqc").innerHTML="[Nothing new yet]";
}
document.getElementById("ccount").innerHTML="Chemistry<br> <span id='none' style= \"color:magenta; \"> "+numberofq+"</span> questions.";
}
function countm() {
var xhttp = new XMLHttpRequest();
//xhttp.overrideMimeType("text/xml");
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
mym(this);
}
};
xhttp.open("GET","/daily/md1.xml?" + Math.random(),true);
//xhttp.open("GET", "md1.xml", true);
xhttp.send();
}
function mym(xml){
var xmlDoc = xml.responseXML;
var numberofq = xmlDoc.getElementsByTagName("q").length;
mnum=numberofq;
//document.getElementById("newqm").innerHTML="Nothing new yet";
if(localStorage.getItem("numofm")==undefined||localStorage.getItem("numofm")==null||localStorage.getItem("numofm")==""||localStorage.getItem("numofm")=="undefined"||!localStorage.getItem("numofm")){
localStorage.setItem("numofm", numberofq);
document.getElementById("newq").innerHTML="Next time you come here you will see if any new questions have been added.";
}
else if(Number(localStorage.numofm)!=numberofq){
var diff=mnum-Number(localStorage.numofm);
if(diff>=0){
document.getElementById("newqm").innerHTML="[<b>"+diff+"</b> new]";
}
else {
diff=0-diff;
document.getElementById("newqm").innerHTML="[<b>"+diff+"</b> removed]";
}
localStorage.setItem("numofm", numberofq);
}
else{
document.getElementById("newqm").innerHTML="[Nothing new yet]";
}
document.getElementById("mcount").innerHTML="Math<br> <span id='none' style= \"color:magenta; \"> "+numberofq+"</span> questions.";
}
</script>
<!-- Actual Content-->
<div style="color:#ad1caf; font-size: 2.8em; text-align:center; margin:10px 0 -8px 0; font-family:'Vollkorn SC', serif;"><b>Jeenius</b></div>
<div style="font-size:14px; text-align:center; font-family:'Alegreya',serif; margin:4px 0px -5px 0px;letter-spacing:3px;"> <b>By Akshat</b></div>
<hr style="width:90%;">
<div id="navbar1">
<a class="advertise" href="https://jeenius.ga/things/chemtricks.php">Learn</a>
<a class="advertise" href="https://jeenius.ga/daily/physicsq.php">Questions</a>
<a class="advertise" href="https://jeenius.ga/tests/login.php">Tests</a>
</div>
<div style="font-family:'Alegreya',serif; font-size:18px; color:blue; text-align:center;">
Page Views:
<span style="font-size:24px; color:magenta;font-weight:bold;">
<?php
$file3="newuser.txt";
$linecount = 0;
$handle = fopen($file3, "r");
while(!feof($handle)){
$line = fgets($handle);
$linecount++;
}
fclose($handle);
echo $linecount;
?></span> <span style="font-size:12px;">(since 03-Aug-2020)</span></div>
<hr style="width:70%;">
<div id="home">
<div style="text-align:center; margin:10px 5px 0 5px; font-family:'Noto Serif SC',serif; font-size:18px;color:magenta; ">Welcome<span id="welcomename"></span>
</div>
<div class="info"> <!--<div class="info-title">What is Jeenius</div>-->
<div class="info-answer" style="padding:0px;"> Jeenius is a platform where content (questions and other things) is by the JEE community. Add whatever you think is useful for you and others!</div>
<hr style="width:70%;">
<div class="info-answer" style="border-left: 2px solid #f56d1d; font-size:0.9em;">Submit your questions below, and other content in the respective subject pages accessible from the menu.</div>
To solve questions go to "Questions" from the top-right menu.<br>
<br>
</div>
<hr style="width:75%">
<div id="numberofq" style="text-align:center;font-family:'Ubuntu',serif;color:#414141;"><div style="font-size:1.6em;">Question Count</div>
<div id="newq" style="color:purple; font-size:18px;"></div>
<span id="pcount" style="font-size:1.2em;"></span> <span id="newqp" style="color:green; font-size:12px;"></span><hr style="width:60%;">
<span id="ccount" style="font-size:1.2em;"></span> <span id="newqc" style="color:green; font-size:12px;"></span><hr style="width:60%;">
<span id="mcount" style="font-size:1.2em;"></span> <span id="newqm" style="color:green; font-size:12px;"></span><hr style="width:80%;">
<a href="#thelog" onclick="changelog();" style="color:#58c9ab; text-decoration:none; font-family:'Alegreya',serif;text-align:center;font-size:18px;">View Changelog</a>
</div>
<!--<span id="readmore" style="color:blue; float:right; font-family:'Alegreya',serif;" onclick="readmore();">Read more </span>-->
<br><hr>
<script>
function readmore(){
var themoreis=document.getElementById("hidemore");
if(themoreis.style.display=="block"){
themoreis.style.display="none";
document.getElementById("readmore").innerHTML="Read more";
}
else{
themoreis.style.display="block";
document.getElementById("readmore").innerHTML="Read less";
}
}
function changelog(){
document.getElementById("thelog").style.display="block";
//window.scrollTo(0,document.body.scrollHeight);
}
</script>
<?php # if (count($_POST)>0) echo "Form Submitted!";
?>
<div style="text-align:center;" id="form">
<form method="post" action="submitquestion.php" >
<script>
function formok(){
alert("Thank you for submitting your question!");
}
</script>
<div style="font-family:'Noto Serif SC', serif;font-size:1.3em;" >Add your question!</div>
<span style="font-size:14px; color:green; font-family:'Thasadith',serif;">LaTeX is supported!</span>
<br><textarea id="questext" name="ques" placeholder="Ex. 1+2=?" required></textarea>
<br><span style="font-size:10px; color:green; font-family:'Thasadith',serif;">If an image/diagram is required, please send it to me directly.</span>
<br>
<div id="checkq" style="color:red;"></div><hr style="width:50vw;">
Add your name:<br> <span style="font-size:10px; color:magenta;">*will not be disclosed at your request.
<br> </span> <input type="text" name="namequestion" placeholder="Your real name" id="nameq" required>
<div id="checkname" style="color:blue;"></div><hr style="width:50vw;">
<div style="font-family:'Noto Serif SC', serif;font-size:1.2em;" >Add the options!</div>
<br>
A:<input type="text" name="option1" placeholder="Ex. 1" id="opa" autocomplete="off" required><br>
B:<input type="text" name="option2" placeholder="Ex. 2" id="opb" autocomplete="off" required><br>
C:<input type="text" name="option3" placeholder="Ex. 3" id="opc" autocomplete="off"required><br>
D:<input type="text" name="option4" placeholder="Ex. 4" id="opd" autocomplete="off" required onkeyup="optionvalidate();" onfocusout="questionvalidate();namevalidate();optionvalidate();answervalidate();"><br>
<div id="checkop" style="color:red;"></div>
<div style="font-family:'Noto Serif SC', serif;font-size:1.2em;" >Add the correct answer:</div><br>
<input type="text" name="answer" id="answertext" placeholder="C" autocomplete="off" required><div id="acheck" style="color:red;"></div><br>
<div style="font-family:'Noto Serif SC', serif;font-size:1.3em;" >Add your solution (optional):</div>
<textarea id="soltext" name="solution" placeholder="Your Solution"></textarea><br>
<span style="font-size:10px;">And click anywhere outside before submitting</span><BR>
<div id="submitit">Thank you.(Press submit) <br> Your question will be reviewed and added. Spamming will earn you a three-day ban.</div>
<div id="disabledsubmit" style="font-size:13px; color:#414141;font-family:'Noto Serif SC',serif;">Submit button is currently disabled.</div>
<input type="submit" id="submitbutton" disabled/>
<br><span style="font-size:10px;">You will get an alert upon submitting and the page will reload.</span>
<br>
</form>
</div>
<div id="thelog">
<br><br>
<hr style="border-top:2px solid #3cd6ad; width:50%;"><br>
<h3 style="color:#3cd6ad; text-align:center;">Changelog</h3>
<ul>
<li>[07-07-2020]<br>Page caching and zoom in prohibited.(But it's not working in all devices.)</li><hr style="border-top:1px solid #3cd6ad; width:50%;">
<li>[07-07-2020]<br>Pressing "Next" when on Question 0 now gets you to Question 1 (as it ideally should).</li> <hr style="border-top:1px solid #3cd6ad; width:50%;">
<li>[06-07-2020]<br>Changelog added.</li><hr style="border-top:1px solid #3cd6ad; width:50%;">
<li>[06-07-2020]<br>Entering without selecting an option won't give you a "Wrong Answer".</li><hr style="border-top:1px solid #3cd6ad; width:50%;">
<li>[06-07-2020]<br>Bookmarks fixed: Bookmarks show up without having to set and remove a bookmark on any of the Questions pages.</li><hr style="border-top:1px solid #3cd6ad; width:50%;">
<li>[06-07-2020]<br>Bookmarks can be viewed on the Home Page (that is, on this page).</li><hr style="border-top:1px solid #3cd6ad; width:50%;">
<li>[05-07-2020]<br>"Welcome, [your name]" greeting added in the Bookmarks modal box. (Only if you have given your name above)</li><hr style="border-top:1px solid #3cd6ad; width:50%;">
<li>[05-07-2020]<br>Submitting a question is not necessary for registering your name. Only type your name in the input field and click anywhere outside it.</li><hr style="border-top:1px solid #3cd6ad; width:50%;">
<li>[04-07-2020]<br>List of allowed names updated.</li><hr style="border-top:1px solid #3cd6ad; width:50%;">
<li>[04-07-2020]<br>Added icons</li><hr style="border-top:1px solid #3cd6ad; width:50%;">
<li>[04-07-2020]<br>Bookmark a Question feature added!</li><hr style="border-top:1px solid #3cd6ad; width:50%;">
<li>[04-07-2020]<br>Added Question navigation by question number.</li><hr style="border-top:1px solid #3cd6ad; width:50%;">
<li>[03-07-2020]<br>Image support added.</li><hr style="border-top:1px solid #3cd6ad; width:50%;">
<li>[03-07-2020]<br>Some backend improvements.</li><hr style="border-top:1px solid #3cd6ad; width:50%;">
<li>[02-07-2020]<br>UI improved.</li><hr style="border-top:1px solid #3cd6ad; width:50%;">
<li>[02-07-2020]<br>Some minor fixes.</li><hr style="border-top:1px solid #3cd6ad; width:50%;">
<li>[30-06-2020]<br>You can add content for subject pages!</li><hr style="border-top:1px solid #3cd6ad; width:50%;">
<li>[29-06-2020]<br>Form validation added.</li><hr style="border-top:1px solid #3cd6ad; width:50%;">
<li>[28-06-2020]<br>UI improvements.</li><hr style="border-top:1px solid #3cd6ad; width:50%;">
<li>[28-06-2020]<br>You can add questions!</li><hr style="border-top:1px solid #3cd6ad; width:50%;">
<li>[23-06-2020]<br>Website is half functional.</li><hr style="border-top:1px solid #3cd6ad; width:50%;">
</div>
<div style="height:10px;"></div>
<script>
var nameisok=0;
var questionisok=0;
var answerisok=0;
var optionareok=0;
var allnames="ADITYA KAIVAL KARTIK NACHIKET PARTH ARYA HARSH PRAKHAR CHINMAY KAUSHAL ADVAIT SRIJAN PRANAV SANIKA PRIYA YASH ANANT SUMEDH ANISH ANEESH AADITYA ANIRUDH ANUSH NEEL ANURAG AYUSH CHIRAG PARAS SUJAY OM ROHAN SACHIN PRAJ AMIT SUDIP KANISHQ KHUSHI TUSH RAJ VENK AMRUT MITALI SHRIK RAMON SAHIL MEDHA MANALI ARCHIT SOHAM STUT ATHAR LAUKIK SHIVAM";
function gettheusername(){
if(localStorage.user!=""&&localStorage.user!=null&&localStorage.user!=undefined&&localStorage.user)
{
document.getElementById("nameq").value=localStorage.user;
document.getElementById("welcomename").innerHTML=", " +localStorage.user;
getusername();
}
}
document.getElementById("nameq").addEventListener("focusout", namevalidate);
document.getElementById("questext").addEventListener("focusout", questionvalidate);
document.getElementById("opa").addEventListener("focusout", optionvalidate);
document.getElementById("opb").addEventListener("focusout", optionvalidate);
document.getElementById("opc").addEventListener("focusout", optionvalidate);
document.getElementById("opd").addEventListener("focusout", optionvalidate);
document.getElementById("answertext").addEventListener("focusout", answervalidate);
document.getElementById("nameq").addEventListener("focus", namereset);
document.getElementById("answertext").addEventListener("focus", answerreset);
document.getElementById("questext").addEventListener("focus", questionreset);
document.getElementById("opa").addEventListener("focus", optionreset);
document.getElementById("opb").addEventListener("focus", optionreset);
document.getElementById("opc").addEventListener("focus", optionreset);
document.getElementById("opd").addEventListener("focus", optionreset);
function namereset(){
nameisok=0;
formisok();
}
function answerreset(){
answerisok=0;
formisok();
}
function optionreset(){
optionisok=0;
formisok();
}
function questionreset(){
questionisok=0;
formisok();
}
function namevalidate(){
var ns=document.getElementById("nameq").value;
var nsu=ns.toLocaleUpperCase();
if(nsu!=""){
if(nsu.includes("AKSHAT")){
document.getElementById("nameq").style.color="red";
document.getElementById("nameq").style.border="2px solid red";
document.getElementById("checkname").innerHTML="I don't think there are so many people named Akshat. Please put YOUR name.";
}
else if(!nsu.includes("SANIKA")&&!nsu.includes("AUM")&&!nsu.includes("CHINMAY")&&!nsu.includes("SAHIL")&&!nsu.includes("VENK")&&!nsu.includes("ANISH")&&!nsu.includes("ADITYA")&&!nsu.includes("ANUSH")&&!nsu.includes("ANANT")&&!nsu.includes("SHAR")&&!nsu.includes("RUSH")&&!nsu.includes("PARTH")&&!nsu.includes("PRAN")&&!nsu.includes("KART")&&!nsu.includes("CHIR")&&!nsu.includes("PRIYA")&&!nsu.includes("PRAKH")&&!nsu.includes("LAU")&&!nsu.includes("NACH")&&!nsu.includes("ARY")&&!nsu.includes("RAJ")&&!nsu.includes("AADIT")&&!nsu.includes("NEEL")&&!nsu.includes("ANURAG")&&!nsu.includes("AYUS")&&!nsu.includes("ME")&&!nsu.includes("KHUSHI")&&!nsu.includes("SUDIP")&&!nsu.includes("KANISHQ")&&!nsu.includes("AMIT")&&!nsu.includes("TUSHAR")&&!nsu.includes("AMRUT")&&!nsu.includes("MITALI")&&!nsu.includes("MIHIKA")&&!nsu.includes("MEDH")&&!nsu.includes("MANALI")&&!nsu.includes("SOHAM")&&!nsu.includes("ARCHIT")&&!nsu.includes("STUTI")&&!nsu.includes("NIRAN")&&!nsu.includes("SIDDHAR")&&!nsu.includes("ANEESH")&&!nsu.includes("VISHWA")&&!nsu.includes("ANANY")&&!nsu.includes("SWANA")&&!nsu.includes("KUNAL")&&!nsu.includes("SANSKAR")&&!nsu.includes("SEJAL")&&!nsu.includes("KETAN")&&!nsu.includes("DWIJ")&&!nsu.includes("ROHAN")&&!nsu.includes("SHREYAS")&&!nsu.includes("SWAR")&&!nsu.includes("AMOD")&&!nsu.includes("VIPUL")&&!nsu.includes("MEGH")&&!nsu.includes("SANKALP")&&!nsu.includes("SHAURYA")&&!nsu.includes("HANT")&&!nsu.includes("KAUSHAL"))
{
document.getElementById("checkname").innerHTML="I don't think that's your real name. Go ahead with your real name, there's nothing to lose.";
document.getElementById("nameq").style.color="red";
document.getElementById("nameq").style.border="2px solid red";
nameisok=0;
}
else {
//document.getElementById("checkname").innerHTML="Hmm I'll take that. <br> Thanks for your time, "+ ns+".";
document.getElementById("nameq").style.color="black";
document.getElementById("nameq").style.border="2.5px solid #f7b2ff";
getusername();
// nameisok=1;
formisok();
}
}
}
function getusername(){
if(localStorage.user==""||localStorage.user==null||localStorage.user==undefined||!localStorage.user){
localStorage.setItem("user", document.getElementById("nameq").value);
document.getElementById("checkname").innerHTML="<br> Thanks for your time, "+ localStorage.user+".";
}
else{
if(localStorage.getItem("user")== document.getElementById("nameq").value){
document.getElementById("checkname").innerHTML="<br> Hello and Thanks again, "+ localStorage.user+".";
nameisok=1;
formisok();
}
else{
document.getElementById("checkname").innerHTML="Hmm does your name keep changing after a while? I don't think so, but I'll let you pass.";
localStorage.setItem("user", document.getElementById("nameq").value);
document.getElementById("nameq").style.color="#00cbbe";
nameisok=1;
formisok();
}
}
}
function questionvalidate(){
var qs=document.getElementById("questext").value;
var qsu=qs.toLocaleUpperCase();
if(qsu!=""){
if(qsu.includes("FUCK")||qsu.includes("GAY")||qsu.includes("STUPID")||qsu.includes("LOL")){
document.write("If this is a joke to you, keep that joke to yourself. Do something good with your life.");
}
if (!qsu.includes("WHAT")&&!qsu.includes("WHY")&&!qsu.includes("DETERMINE")&&!qsu.includes("WHICH")&&!qsu.includes("FIND")&&!qsu.includes("HOW")){
document.getElementById("questext").style.color="red";
document.getElementById("questext").style.border="2px solid red";
document.getElementById("checkq").innerHTML="Please put a proper question";
}
else{
document.getElementById("checkq").innerHTML="";
document.getElementById("questext").style.color="black";
document.getElementById("questext").style.border="2.5px solid #f7b2ff";
questionisok=1;
formisok();
}
}
}
function optionvalidate(){
var opt1, opt2, opt3, opt4;
opt1=document.getElementById("opa").value;
opt2=document.getElementById("opb").value;
opt3=document.getElementById("opc").value;
opt4=document.getElementById("opd").value;
if(opt1!=""||opt2!=""||opt3!=""||opt4!=""){
if (opt1==opt2||opt1==opt3||opt1==opt4||opt2==opt3||opt2==opt4||opt3==opt4)
{
document.getElementById("checkop").innerHTML="No two options can be the same or empty!";
}
else{
document.getElementById("checkop").innerHTML="";
localStorage.setItem("spamoption", opt1);
optionareok=1;
formisok();
};
};
}
function answervalidate(){
var as=document.getElementById("answertext").value;
var asu=as.toLocaleLowerCase();
if(asu!=""){
if(asu.includes("fuck")||asu.includes("gay")||asu.includes("stupid")||asu.includes("lol")||asu.includes("dick")){
document.write("If this is a joke to you, keep that joke to yourself. Do something good with your life.");
};
if (asu!="a"&&asu!="b"&&asu!="c"&&asu!="d"){
document.getElementById("answertext").style.color="red";
document.getElementById("answertext").style.border="2px solid red";
document.getElementById("acheck").innerHTML="Answer option must be one of A, B, C or D.";
}
else{
document.getElementById("acheck").innerHTML="";
document.getElementById("answertext").style.color="black";
document.getElementById("answertext").style.border="2.5px solid #f7b2ff";
document.getElementById("answertext").value=asu;
answerisok=1;
};
formisok();
}
}
function formisok(){
if (questionisok==1&&answerisok==1&&optionareok==1&&nameisok==1){
document.getElementById("submitit").style.display="block";
document.getElementById("submitbutton").disabled=false;
document.getElementById("disabledsubmit").style.display="none";
}
else{
//document.getElementById("disabledsubmit").style.display="block";
}
}
</script>