-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.js
27 lines (24 loc) · 873 Bytes
/
init.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
const artengreve = "Art en grève";
const colere = artengreve.split("");
const cri = document.querySelector('#content');
colere.forEach(function(voix, idx){
let echo = voix == " " ? 1 : 5;
const slogan = Math.floor(Math.random() * echo);
for (var i = 0; i <= echo; i++) {
let rage = document.createElement('span');
rage.textContent = voix;
if(i != slogan) rage.style.height = Math.ceil(Math.random() * 1.6 + .3) + "cm";
cri.appendChild(rage);
}
})
const generale_et_inconditionnelle = document.createElement('span');
generale_et_inconditionnelle.textContent = "!!!"
cri.appendChild(generale_et_inconditionnelle);
// Bindery.js
Bindery.makeBook({
content: '#content',
pageSetup: {
size: { width: '80mm', height: '1220mm' },
margin: { top: '12pt', inner: '12pt', outer: '16pt', bottom: '20pt' },
}
});