blob: fe10d0bc2e38d6f642728129417f09a82ca11809 (
plain) (
blame)
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
|
BEGIN {
pres = ORS \
"<nav id=\"presentCont\">" ORS \
" <img id=\"prevSlideBtn\" class=\"unzoomable btn setting-btn icon nodisplay\" src=\"/img/arrow-left-tabler.svg\" alt=\"Previous\">" ORS \
" <img id=\"nextSlideBtn\" class=\"unzoomable btn setting-btn icon nodisplay\" src=\"/img/arrow-right-tabler.svg\" alt=\"Next\">" ORS \
" <img id=\"presentBtn\" class=\"unzoomable btn setting-btn icon\" src=\"/img/presentation-tabler.svg\" alt=\"Present\">" ORS \
" <img id=\"printBtn\" class=\"unzoomable btn setting-btn icon\" src=\"/img/printer-tabler.svg\" alt=\"Print\">" ORS \
" </nav>" ORS \
" <script type=\"text/javascript\" src=\"/scripts/presentation.js\" integrity=\"sha512-79MwfB0EQJMdVjVnd3PA0Cn9fo4JaMUmNuyZNEGSbaMEGcqdE8sWWAbMLheaoptDyb/KuYgNw0pKwvR5Dw+lJw==\" crossorigin=\"anonymous\"></script>"
names[1] = "slide"
ended[1] = 1
names[2] = "centered"
ended[2] = 1
names[3] = "flexer"
ended[3] = 0
names[4] = "fow"
ended[4] = 1
names[5] = "fol"
ended[5] = 1
names[6] = "font18"
ended[6] = 1
}
function substitute(ind) {
if (ended[ind] == 1) {
gsub("<p>&&" names[ind] "</p>", "<div class=\"" names[ind] "\">")
gsub("<p>&&/" names[ind] "</p>", "</div>")
}
else {
gsub("<p>&&" names[ind] "</p>", "<div class=\"" names[ind] "\"></div>")
}
}
{
gsub("<p>&&presentation</p>", pres)
gsub("<p>&&/font</p>", "</div>")
for (i = 1; i <= length(names); i++) {
if (index($0, names[i] "<") != 0)
substitute(i)
}
print
}
|