-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
198 lines (176 loc) · 6.66 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<title>CONGINEER for GEG</title>
<link rel="stylesheet" href="dist/reset.css" />
<link rel="stylesheet" href="dist/reveal.css" />
<link rel="stylesheet" href="dist/theme/white.css" id="theme" />
<!-- Theme used for syntax highlighted code -->
<link
rel="stylesheet"
href="plugin/highlight/monokai.css"
id="highlight-theme"
/>
<script>
;(function applyCustomSelections() {
// Get user selected theme from local storage
const theme = localStorage?.['theme']
const themeStyleNode = document.querySelector('link#theme')
if (theme && themeStyleNode) {
themeStyleNode.href = theme
}
// Get user selected highlight theme from local storage
// NOTE: not in use since no switch in menu present
const highlightTheme = localStorage?.['highlight-theme']
const highlightThemeStyleNode = document.querySelector(
'link#highlight-theme'
)
if (highlightTheme && highlightThemeStyleNode) {
highlightThemeStyleNode.href = highlightTheme
}
// TODO: transisions switch to local storage
})()
</script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section data-markdown="md/title.md"></section>
<section data-markdown="md/about_me.md"></section>
<!-- <section
data-markdown="md/education.md"
style="text-align: left"
></section> -->
<section data-markdown="md/journey_into_it.md"></section>
<section data-markdown="md/why_do_i_apply.md"></section>
<section data-markdown="md/scientific_it_support.md"></section>
<section data-markdown="md/full_stack_web.md"></section>
<section data-markdown="md/thank_you.md"></section>
<section data-markdown="md/technical_tidbits.md"></section>
</div>
</div>
<script src="dist/reveal.js"></script>
<script src="plugin/highlight/highlight.js"></script>
<script src="plugin/markdown/markdown.js"></script>
<script src="plugin/search/search.js"></script>
<script src="plugin/notes/notes.js"></script>
<script src="plugin/math/math.js"></script>
<script src="plugin/zoom/zoom.js"></script>
<script src="plugin/menu/menu.js"></script>
<script src="plugin/pdfexport/pdfexport.js"></script>
<script>
;(function applyMarkdownCommonSettings() {
// Get a list of all DOM elements that import Markdown files
const mdSectionsAll = document.querySelectorAll(
'section[data-markdown$=".md"]'
)
// console.log('mdSectionsAll', mdSectionsAll)
// Apply common Markdown settings to every DOM element
mdSectionsAll.forEach(e => {
// \r for Windows and \n for Mac/Linux
// \n would be enough for Mac/Linux
// standard comment with two dashes --
// pandoc ignore comment with three ---: https://stackoverflow.com/a/4829998
// if nothing works use explicit tag @NEXT-
e.dataset.separator =
'(\r?\n\r?\n\r?\n|^@NEXT-H|^<!-- NEXT-H -->|^<!--- NEXT-H -->)'
e.dataset.separatorVertical =
'(^\r?\n\r?\n|^@NEXT-V|^<!-- NEXT-V -->|^<!--- NEXT-V -->)'
e.dataset.separatorNotes = '^Note:'
e.dataset.charset = 'iso-8859-15'
})
})()
</script>
<script>
// Get transition style from last selected OR fallback if a virgin load
const transition = localStorage?.['transition'] || 'convex'
// More info about initialization & config:
// - https://revealjs.com/initialization/
// - https://revealjs.com/config/
Reveal.initialize({
// Transition style
transition: transition, // none/fade/slide/convex/concave/zoom
// Prints each fragment on a separate slide
pdfSeparateFragments: false,
hash: true,
hashOneBasedIndex: true,
slideNumber: 'h/v',
showSlideNumber: 'all', // https://revealjs.com/slide-numbers/
// slideNumber: slide => {
// let { h, v, f } = Reveal.getIndices(slide) // horizontal, vertical number
// const t = Reveal.getTotalSlides() // total slides
// // Emulate URL to index matching config: hashOneBasedIndex: true
// h++
// v !== undefined && v++
// // Custom numbering format that matches URL schema: h/v
// // and - total number of slides, i.e. conditionally h-t or h.v-t
// return [v ? `${h}/${v}-${t}` : `${h}-${t}`]
// },
// Learn about plugins: https://revealjs.com/plugins/
plugins: [
RevealHighlight,
RevealMarkdown,
RevealSearch,
RevealNotes,
RevealZoom,
RevealMath,
RevealMenu, // /~https://github.com/denehyg/reveal.js-menu#configuration
PdfExport
],
// Menu config
menu: {
numbers: 'c',
openSlideNumber: true,
themes: true,
themesPath: 'dist/theme/',
transitions: true,
custom: [
{
title: 'Links',
icon: '<i class="fa fa-bookmark">',
src: 'menu/links.html'
},
{
title: 'Print',
icon: '<i class="fa fa-print">',
src: 'menu/print.html'
}
]
}
})
// Expand "?" key, that requires a SHIFT on ENG/GER keyboards, with underlying "/", "\"
Reveal.configure({
keyboard: {
191: 'toggleHelp', // key: '/'
220: 'toggleHelp' // key: '\'
}
})
// Toggle menu with the 'M' key
// // TODO: check if any effect here or comes from Plugin code instead
// const toggleMenu = () => {
// const menu = Reveal.getPlugin('menu')
// if (menu) menu.toggle()
// }
// Hide menu, e.g. before Print BOM dialog
const hideMenu = event => {
const menu = document.querySelector('.slide-menu-button')
if (menu) menu.hidden = true
const theme = document.querySelector('link#theme')
console.log('theme href', theme.href)
}
// Show menu, e.g. after Print BOM dialog
const showMenu = event => {
const menu = document.querySelector('.slide-menu-button')
if (menu) menu.hidden = false
}
// Hide Menu for print
window.addEventListener('beforeprint', hideMenu)
window.addEventListener('afterprint', showMenu)
</script>
</body>
</html>