This repository was archived by the owner on Aug 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtemplate.html
253 lines (211 loc) · 7.18 KB
/
template.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
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
<html class="style-light">
<head>
<title>شروع با فونتفورج FontForge</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
<meta name="description" content="آموزش آشنایی با برنامه فونتفورج">
<meta name="keywords" content="فونت,فارسی,فونت فورج,راهنما,آموزش,font,fontforge">
<link href="https://cdn.jsdelivr.net/gh/rastikerdar/[email protected]/Vazirmatn-font-face.css" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/gh/rastikerdar/[email protected]/dist/font-face.css">
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/gh/rastikerdar/[email protected]/dist/font-face.css">
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/gh/rastikerdar/[email protected]/dist/font-face.css">
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/gh/rastikerdar/[email protected]/dist/font-face.css">
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/gh/rastikerdar/[email protected]/dist/font-face.css">
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/gh/rastikerdar/[email protected]/dist/font-face.css">
<style>
* {
margin: 0;
padding: 0;
}
body {
color: #000;
direction: rtl;
line-height: 1.7;
font-family: vazirmatn, Tahoma,"DejaVu Sans",helvetica,arial,freesans,sans-serif;
font-size: 14px;
}
li { margin-right: 20px; }
p { margin-bottom: 10px; }
a {
text-decoration: none;
color: #007fba;
}
hr {
border: none;
background-color: #ccc;
height: 1px;
}
h1, h2, h3, h4, h5, h6 {
margin: 20px 0 5px;
color: #414F64;
}
h1 {
text-align: center;
}
h2 {
border-bottom: 1px solid #aaa;
margin-top: 30px;
}
img {
max-width: 100%;
}
nav {
position: fixed;
top: 0;
left: 0;
right: 0;
text-align: left;
background-color: #000;
color: #fff;
}
nav select {
font-family: vazirmatn;
}
nav a {
color: #83C7CB;
margin: 0 10px;
}
header, article.text, footer {
margin: auto;
padding: 50px 20%;
}
header {
text-align: center;
background-color: #eee;
color: #444;
}
header .info {
color: #888;
font-size: 12px;
}
.font-parastoo {
font-family: parastoo, serif;
}
.font-samim {
font-family: samim, tahoma, "DejaVu Sans", freesans,sans-serif;;
}
.font-shabnam {
font-family: shabnam, tahoma, "DejaVu Sans", freesans,sans-serif;;
}
.font-tanha {
font-family: tanha, tahoma, "DejaVu Sans", freesans,sans-serif;;
}
.font-vazirmatn {
font-family: vazirmatn, tahoma, "DejaVu Sans", freesans,sans-serif;
}
.font-sahel {
font-family: sahel, tahoma, "DejaVu Sans", freesans,sans-serif;
}
.style-dark body {
background-color: #444;
color: #ddd;
}
.style-dark .text a {
color: #D7DD77;
}
.style-dark h1,
.style-dark h2,
.style-dark h3,
.style-dark h4,
.style-dark h5,
.style-dark h6 {
color: #FFA500;
}
.style-grey body {
background-color: #E0E0E0;
color: #000;
}
.style-grey .text a {
color: #0063FF;
}
.style-grey h1,
.style-grey h2,
.style-grey h3,
.style-grey h4,
.style-grey h5,
.style-grey h6 {
color: #33487E;
}
.size-12 { font-size: 12px }
.size-13 { font-size: 13px }
.size-14 { font-size: 14px }
.size-15 { font-size: 15px }
.size-16 { font-size: 16px }
.size-17 { font-size: 17px }
.size-18 { font-size: 18px }
.size-19 { font-size: 19px }
@media all and (max-width: 700px){
header, article.text, footer {
padding: 30px 10px;
}
}
</style>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67139606-2', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<nav>
<a href="#" onclick="window.scrollTo(0,0);"> ^ابتدا</a>
<select autocomplete=off id="select-font" onchange="changeFont(this.value)">
<option value="" selected disabled>نوع قلم</option>
<option value="vazirmatn">وزیرمتن</option>
<option value="sahel">ساحل</option>
<option value="samim">صمیم</option>
<option value="shabnam">شبنم</option>
<option value="parastoo">پرستو</option>
<option value="tanha">تنها</option>
</select>
<select autocomplete=off id="select-size" onchange="changeSize(this.value)">
<option value="" selected disabled>سایز متن</option>
<option value="12">12px</option>
<option value="13">13px</option>
<option value="14">14px</option>
<option value="15">15px</option>
<option value="16">16px</option>
<option value="17">17px</option>
<option value="18">18px</option>
<option value="19">19px</option>
</select>
<select autocomplete=off id="select-style" onchange="changeStyle(this.value)">
<option value="" selected disabled>استایل صفحه</option>
<option value="dark">تاریک</option>
<option value="grey">خاکستری</option>
<option value="light">روشن</option>
</select>
</nav>
<!--
<header>
<h1></h1>
<div class="info"></div>
</header>
-->
<article class="text font-vazirmatn size-14">
{{md_converted}}
</article>
<!--
<footer></footer>
-->
<script>
"use strict";
function changeFont(name) {
var text = document.getElementsByClassName('text')[0];
text.className = text.className.replace(/(?:^|\s)font-[a-z]*(?!\S)/g , ' font-' + name);
}
function changeSize(size) {
var text = document.getElementsByClassName('text')[0];
text.className = text.className.replace(/(?:^|\s)size-[0-9]*(?!\S)/g , ' size-' + size);
}
function changeStyle(name) {
if (!name) return;
var html = document.getElementsByTagName('html')[0];
html.className = html.className.replace(/(?:^|\s)style-[a-z]*(?!\S)/g , ' style-' + name);
}
</script>
</body>
</html>