-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
147 lines (118 loc) · 6.37 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1">
<meta property = "og:title" content = "Dowsing for Math Answers - the MathDowsers team at ARQMath"/>
<meta property = "og:type" content = "website" />
<meta property = "og:url" content = "https://kiking0501.github.io/MathDowsers-ARQMath" />
<meta property = "og:image" content="https://raw.githubusercontent.com/kiking0501/MathDowsers-ARQMath/master/gh-pages/img/MathDowsersLight.jpg" />
<title> Dowsing for Math Answers - the MathDowsers team at ARQMath </title>
<!-- Bootstrap 3-->
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap-theme.min.css">
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
<!-- fontawesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Display Latex & MathML-->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
"Common-HTML": {
preferredFont: "TeX", availableFonts: ["STIX","TeX"], linebreaks: { automatic:true }, EqnChunk: (MathJax.Hub.Browser.isMobile ? 10 : 50) },
tex2jax: { inlineMath: [ ["$", "$"], ["\\\\(","\\\\)"] ], displayMath: [ ["$$","$$"], ["\\[", "\\]"] ], processEscapes: true, ignoreClass: "tex2jax_ignore|dno" },
TeX: {
extensions: ["begingroup.js"],
noUndefined: { attributes: { mathcolor: "red", mathbackground: "#FFEEEE", mathsize: "90%" } },
Macros: { href: "{}" }
},
messageStyle: "none",
styles: { ".MathJax_Display, .MathJax_Preview, .MathJax_Preview > *": { "background": "inherit" } },
SEEditor: "mathjaxEditing"
});
</script>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<!-- Custom -->
<link rel="shortcut icon"
href="gh-pages/img/MathDowsersIcon.ico">
<link rel="stylesheet" href="gh-pages/main.css">
<script type="text/javascript" src="gh-pages/main.js"></script>
<link rel="stylesheet" href="gh-pages/tab_panels.css">
<!-- <style type="text/css" media="screen"> -->
<!-- </style> -->
<script type="text/javascript" charset="utf-8">
var hasLoadTab = {
"overview": false,
"guide": false,
"question_panel": false,
"view_result": false,
}
function openTab(tabName) {
if (!hasLoadTab[tabName]) {
$("#" + tabName).load("gh-pages/" + tabName + ".html?_=" + (new Date().getTime()), function(){
hasLoadTab[tabName] = true;
if (tabName == "question_panel") {
askQuestion();
}
if (tabName == "guide") {
if ($("#resultIsLoaded").html()=="") {
$(".btn_view_result").prop("disabled", true);
}
}
});
}
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
$(tabcontent[i]).css("display", "none");
}
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
$("#" + tabName).css("display", "block");
$("#btn_" + tabName).addClass("active");
}
function checkisLimitSize() {
if ($("#hostSource").text() == "gitHub") {
return true;
} else {
return false;
}
}
$( document ).ready(function() {
$("#btn_overview").click();
questionSelected(false);
if (checkisLimitSize()) {
$(".note-for-limit-size").show();
}
})
</script>
</head>
<body>
<div class="bg-image"></div>
<div class="bg-text">
<h1 style="color: orange"> Dowsing for Math Answers </h1>
<h3> The MathDowsers team's runs at ARQMath</h3>
<h5><span class="note-for-limit-size" style="display: none"> (Note that this is a limited version of the demo. For full version, visit <a href="https://cs.uwaterloo.ca/~yk2ng/MathDowsers-ARQMath/" target="_blank">here</a>.)</span></h5>
<div class="tab">
<div class="tab-header">
<button id="btn_overview" class="tablinks" onclick="openTab('overview')">Overview</button>
<button id="btn_guide" class="tablinks" onclick="openTab('guide')">Guide</button>
<button id="btn_question_panel" class="tablinks" onclick="openTab('view_result'); openTab('question_panel'); ";>ARQMath Question Panel<span id="questionIsSelected" style="color:orange"></span></button>
<button id="btn_view_result" class="tablinks" onclick="openTab('view_result')">View Ranked Answers<span id="resultIsLoaded" style="color:orange"></span><img class="ajax-loader-gif" src="gh-pages/img/ajax-loader.gif"></button>
</div>
<div id="overview" class="tabcontent">
</div>
<div id="guide" class="tabcontent">
</div>
<div id="question_panel" class="tabcontent">
</div>
<div id="view_result" class="tabcontent">
</div>
</div>
<span id="hostSource" style="display:none">gitHub</span>
</div>
</body>
</html>