This repository has been archived by the owner on Oct 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
129 lines (127 loc) · 5.69 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
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="bower_components/jquery/jquery.min.js"></script>
<link rel="stylesheet" href="bower_components/jquery-ui/themes/base/jquery-ui.css">
<script type="text/javascript" src="bower_components/jquery-ui/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/html2canvas.js"></script>
<script type="text/javascript" src="js/photoCollageMaker.js"></script>
<link rel="stylesheet" type="text/css" href="css/photoCollageMaker.css">
</head>
<body>
<button class="pcm-btn-ChangeLayout">Change Layout</button>
<div id="pcm-collageTemplate-modal" class="pcm-modal">
<div class="pcm-modal-content">
<span class="pcm-close">×</span>
<h1>Select a Collage Template</h1>
<div class="pcm-frame-image">
<a target="frame-default"><img src="frame-img/frame-default.png"></a>
<a target="frame1"><img src="frame-img/frame1.png"></a>
<a target="frame2"><img src="frame-img/frame2.png"></a>
<a target="frame3"><img src="frame-img/frame3.png"></a>
<a target="frame4"><img src="frame-img/frame4.png"></a>
<a target="frame5"><img src="frame-img/frame5.png"></a>
<a target="frame6"><img src="frame-img/frame6.png"></a>
<a target="frame7"><img src="frame-img/frame7.png"></a>
<a target="frame8"><img src="frame-img/frame8.png"></a>
<a target="frame9"><img src="frame-img/frame9.png"></a>
<a target="frame10"><img src="frame-img/frame10.png"></a>
<a target="frame11"><img src="frame-img/frame11.png"></a>
<a target="frame12"><img src="frame-img/frame12.png"></a>
<a target="frame13"><img src="frame-img/frame13.png"></a>
<a target="frame14"><img src="frame-img/frame14.png"></a>
<a target="frame15"><img src="frame-img/frame15.png"></a>
</div>
</div>
</div>
<div id="pcm-frame"></div>
<script type="text/javascript">
var modal = document.getElementsByClassName('pcm-modal');
var span = document.getElementsByClassName("pcm-close");
var el = document.getElementsByClassName('pcm-btn-ChangeLayout');
for (i = 0; i < el.length ; i++) {
el[i].addEventListener('click', function() {
this.nextElementSibling.style.display = 'block';
});
}
for (i = 0; i < span.length ; i++) {
span[i].addEventListener('click', function() {
this.parentNode.parentNode.style.display = "none";
});
}
window.onclick = function(event) {
for(i = 0; i < modal.length; i++){
if (event.target == modal[i]) {
modal[i].style.display = "none";
}
}
}
$(document).ready(function(){
$("a[target='frame-default']").click(function(){
$("#pcm-frame").load("frame-html/frame-default.html");
$(this).parents('#pcm-collageTemplate-modal').css('display', 'none');
});
$("a[target='frame1']").click(function(){
$("#pcm-frame").load("frame-html/frame1.html");
$(this).parents('#pcm-collageTemplate-modal').css('display', 'none');
});
$("a[target='frame2']").click(function(){
$("#pcm-frame").load("frame-html/frame2.html");
$(this).parents('#pcm-collageTemplate-modal').css('display', 'none');
});
$("a[target='frame3']").click(function(){
$("#pcm-frame").load("frame-html/frame3.html");
$(this).parents('#pcm-collageTemplate-modal').css('display', 'none');
});
$("a[target='frame4']").click(function(){
$("#pcm-frame").load("frame-html/frame4.html");
$(this).parents('#pcm-collageTemplate-modal').css('display', 'none');
});
$("a[target='frame5']").click(function(){
$("#pcm-frame").load("frame-html/frame5.html");
$(this).parents('#pcm-collageTemplate-modal').css('display', 'none');
});
$("a[target='frame6']").click(function(){
$("#pcm-frame").load("frame-html/frame6.html");
$(this).parents('#pcm-collageTemplate-modal').css('display', 'none');
});
$("a[target='frame7']").click(function(){
$("#pcm-frame").load("frame-html/frame7.html");
$(this).parents('#pcm-collageTemplate-modal').css('display', 'none');
});
$("a[target='frame8']").click(function(){
$("#pcm-frame").load("frame-html/frame8.html");
$(this).parents('#pcm-collageTemplate-modal').css('display', 'none');
});
$("a[target='frame9']").click(function(){
$("#pcm-frame").load("frame-html/frame9.html");
$(this).parents('#pcm-collageTemplate-modal').css('display', 'none');
});
$("a[target='frame10']").click(function(){
$("#pcm-frame").load("frame-html/frame10.html");
$(this).parents('#pcm-collageTemplate-modal').css('display', 'none');
});
$("a[target='frame11']").click(function(){
$("#pcm-frame").load("frame-html/frame11.html");
$(this).parents('#pcm-collageTemplate-modal').css('display', 'none');
});
$("a[target='frame12']").click(function(){
$("#pcm-frame").load("frame-html/frame12.html");
$(this).parents('#pcm-collageTemplate-modal').css('display', 'none');
});
$("a[target='frame13']").click(function(){
$("#pcm-frame").load("frame-html/frame13.html");
$(this).parents('#pcm-collageTemplate-modal').css('display', 'none');
});
$("a[target='frame14']").click(function(){
$("#pcm-frame").load("frame-html/frame14.html");
$(this).parents('#pcm-collageTemplate-modal').css('display', 'none');
});
$("a[target='frame15']").click(function(){
$("#pcm-frame").load("frame-html/frame15.html");
$(this).parents('#pcm-collageTemplate-modal').css('display', 'none');
});
});
</script>
</body>
</html>