This repository has been archived by the owner on Apr 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (50 loc) · 1.56 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
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta charset="UTF-8" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/1.9.0/showdown.js" integrity="sha256-YpZ3n25FojLhv7mP9TGZz7SkreVaLXUV3sp0fQEQDg0="
crossorigin="anonymous"></script>
<title>NRTC's Questionnaire</title>
<style>
@font-face {
font-family: 'IranianSansBold';
src: url('IranianSansBold.ttf') format('truetype');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'IranianSansRegular';
src: url('IranianSansRegular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
.Left {
text-align: left;
}
p>strong {
font-family: 'IranianSansBold';
}
[lang|=fa] {
font-family: 'IranianSansRegular',Tahoma, 'Courier New', Courier, monospace;
text-align: right;
}
</style>
</head>
<body>
<div lang="fa">
<p id="questionnaire"></p>
</div>
<script>
function MyParser() {
showdown.setFlavor('github');
console.log(showdown.getOptions());
var MyConverter = new showdown.Converter();
document.getElementById("questionnaire").innerHTML = MyConverter.makeHtml(this.responseText);
}
var MyRequest = new XMLHttpRequest();
MyRequest.addEventListener("load", MyParser);
MyRequest.open("GET", "README.md");
MyRequest.send();
</script>
</body>
</html>