-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprint.html
More file actions
72 lines (60 loc) · 2.41 KB
/
print.html
File metadata and controls
72 lines (60 loc) · 2.41 KB
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Print your Photo!</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<link rel="stylesheet" href="./print.css" type="text/css" media="all">
</head>
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script type="text/javascript">
window.addEventListener('load', window.print(), false)
</script>
<script type="text/javascript" src="./scripts/main.js"></script>
<div class="text-center">
<div class="output first">
<img id="photo1" >
</div>
<div class="output">
<img id="photo2" >
</div>
<div class="output">
<img id="photo3" >
</div>
<div class="output">
<img id="photo4" >
</div>
<h3 class="output photo-title"></h3>
</div>
<script type="text/javascript">
let photoFilters = window.localStorage.getItem('filter')
let photo1 = localStorage.getItem('image1');
firstPhoto = document.getElementById('photo1');
firstPhoto.src = "data:image/png;base64," + photo1;
firstPhoto.classList.add(photoFilters)
let photo2 = localStorage.getItem('image2');
secondPhoto = document.getElementById('photo2');
secondPhoto.src = "data:image/png;base64," + photo2;
secondPhoto.classList.add(photoFilters)
let photo3 = localStorage.getItem('image3');
thirdPhoto = document.getElementById('photo3');
thirdPhoto.src = "data:image/png;base64," + photo3;
thirdPhoto.classList.add(photoFilters)
let photo4 = localStorage.getItem('image4');
fourthPhoto = document.getElementById('photo4');
fourthPhoto.src = "data:image/png;base64," + photo4;
fourthPhoto.classList.add(photoFilters)
let titleValue = localStorage.getItem('newTitleValue')
paragraph = document.querySelector('h3')
paragraph.innerText = titleValue
</script>
</body>
</html>