-
Notifications
You must be signed in to change notification settings - Fork 0
/
nlesc-decorations.js
50 lines (48 loc) · 1.93 KB
/
nlesc-decorations.js
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
// decorations.js
//
// This plugin inserts decorations into the reveal-viewport element on load.
// Visibility of decorations is controlled through data-state attribute of a
// section element, e.g.
// <section data-state="yellow-strip">
// will toggle the yellow-strip element.
//
// Element styles are defined in reveal-nlesc.scss
export default {
id: 'decorations',
init: ( deck ) => {
initDecorations(deck);
}
}
function initDecorations( deck) {
const reveal = deck.getRevealElement();
const decorations = document.createElement('div');
decorations.setAttribute("id", "decorations");
decorations.innerHTML = `
<div id="overlay"></div>
<div id="blue-pane"></div>
<div id="purple-half-circle-top"></div>
<div id="purple-half-circle-bottom"></div>
<div id="yellow-strip"></div>
<div id="yellow-half-strip-left"></div>
<div id="yellow-half-strip-right"></div>
<div id="touch-pane"><h3>Let's stay<br>in touch</h3></div>
<div id="empowering"><h3>“Empowering researchers across all disciplines through innovative research software”</h3></div>
<div id="logo-color"><img src="./files/logo-fc.svg"></div>
<div id="logo-part-white"><img src="./files/logo-fc-part-white.svg"></div>
<div id="logo-white"><img src="./files/logo-fc-white.svg"></div>
<div id="yellow-flag"><img class="left-e" src="./files/e-logo.svg"></img></div>
<div id="purple-half-circle-logo"><img class="logo" src="./files/logo-fc-part-white.svg"></img></div>
<div id="blue-strip"><div id="footer"></div></div>
<img id="right-e" src="./files/letter-e.svg"></img>
<img id="left-e" src="./files/e-logo.svg"></img>
<div id="purple-blob">
<div class="blob1"></div>
<div class="blob2"></div>
<div class="box"></div>
</div>
<div id="globe"><img src="./files/globe.png"></img></div>
<div id="mail"><img src="./files/mail.png"></img></div>
<div id="phone"><img src="./files/phone.png"></img></div>
`;
reveal.prepend(decorations)
}