Skip to content

Commit 474a132

Browse files
committed
Initial commit task-#6
1 parent 70c015e commit 474a132

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

frontend/assets/js/request.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
function showQuestion(str) {
2+
var xmlhttp;
3+
xmlhttp = new XMLHttpRequest();
4+
xmlhttp.onreadystatechange = function() {
5+
if (this.readyState == 4 && this.status == 200) {
6+
document.getElementById("txtHint").innerHTML =
7+
this.responseText;
8+
}
9+
};
10+
xmlhttp.open("GET", "https://coding101-e7ef0.firebaseapp.com/#/questions", true);
11+
xmlhttp.send();
12+
}
13+

0 commit comments

Comments
 (0)