-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
156 lines (153 loc) · 10 KB
/
index.html
File metadata and controls
156 lines (153 loc) · 10 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
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
<!DOCTYPE html>
<html lang="he">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta property="og:title" content="פורים שמח!"/>
<meta property="og:description" content="יצירת כרטיסי ברכה למשלוחי מנות"/>
<meta property="og:image" content="https://raw.githubusercontent.com/yossimal95/purim.yossimal95.github.io/main/demo.JPG" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<script src="domToImg.js"></script>
<script src="fileSaver.js"></script>
<title>פורים שמח!</title>
</head>
<body>
<div class="board">
<div class="print-btn" onclick="createImge(this)">הדפסה</div>
<div class="print-btn" onclick="openImge(this)">הורדת כרטיס</div>
<p class="ln">לעילוי נשמת שמואל בן בוקא</p>
<div class="container">
<div class="main-card">
<img id="clown-img" src="imgs/1.png">
<p class="card-title">פורים שמח!</p>
<p class="card-small-title">ממשפחת כהן </p>
</div>
</div>
</div>
<div class="tool-bar">
<div class="tool-bar-panel">
<p class="tool-bar-panel-title">רקע</p>
<label >בחר תמונה:</label>
<div class="tool-bar-panel-menue">
<div class="menue-item" onclick="setImge(this, '.main-card', 'bgi')" style="background-image: url(./imgs/7.jpg);"></div>
<div class="menue-item" onclick="setImge(this, '.main-card', 'bgi')" style="background-image: url(./imgs/8.jpg);"></div>
<div class="menue-item" onclick="setImge(this, '.main-card', 'bgi')" style="background-image: url(./imgs/9.jpg);"></div>
<div class="menue-item" onclick="setImge(this, '.main-card', 'bgi')" style="background-image: url(./imgs/10.jpg);"></div>
<div class="menue-item" onclick="setValue('none', '.main-card', 'backgroundImage')" style="background-image: url(./imgs/11.JPG);background-size: 100%;background-repeat: no-repeat;" title="ללא רקע"></div>
</div>
<br>
<label for="background-color">צבע רקע:</label>
<input type="color" name="background-color" value="#ff0000" oninput="setValue(this.value, '.main-card', 'backgroundColor')">
<br>
<label for="border-radius">רדיוס כרטיס:</label>
<input type="range" name="border-radius" min="0" max="100" oninput="setValue(this.value + 'px', '.main-card', 'borderRadius')">
<br>
<label for="border-height">גובה כרטיס:</label>
<input type="range" name="border-radius" min="100" max="400" oninput="setValue(this.value + 'px', '.main-card', 'height')">
<br>
<label for="border-width">רוחב כרטיס:</label>
<input type="range" name="border-radius" min="100" max="400" oninput="setValue(this.value + 'px', '.main-card', 'width')">
<br>
<br>
<label for="card-border">בחר מסגרת:</label>
<select name="card-border" onchange="setValue(this.options[this.selectedIndex].value, '.main-card', 'borderStyle')">
<option value="none">ללא</option>
<option value="solid">סולידי</option>
<option value="dashed">קווים</option>
<option value="dotted">נקודות</option>
</select>
<br>
<br>
<label for="border-size">גודל מסגרת:</label>
<input type="range" name="border-size" min="0" max="20" oninput="setValue(this.value + 'px', '.main-card', 'borderWidth')">
<br>
<label for="border-color">צבע מסגרת:</label>
<input type="color" name="border-color" value="#ff0000" oninput="setValue(this.value, '.main-card', 'borderColor')">
<br>
<hr>
</div>
<div class="tool-bar-panel">
<p class="tool-bar-panel-title">ליצן</p>
<label>בחר תמונה:</label>
<div class="tool-bar-panel-menue">
<div class="menue-item" onclick="setImge(this, '#clown-img', 'src')" style="background-image: url(./imgs/1.png);"></div>
<div class="menue-item" onclick="setImge(this, '#clown-img', 'src')" style="background-image: url(./imgs/2.png);"></div>
<div class="menue-item" onclick="setImge(this, '#clown-img', 'src')" style="background-image: url(./imgs/3.png);"></div>
<div class="menue-item" onclick="setImge(this, '#clown-img', 'src')" style="background-image: url(./imgs/4.png);"></div>
<div class="menue-item" onclick="setImge(this, '#clown-img', 'src')" style="background-image: url(./imgs/5.png);"></div>
<div class="menue-item" onclick="setImge(this, '#clown-img', 'src')" style="background-image: url(./imgs/6.png);"></div>
<div class="menue-item" onclick="setImge(this, '#clown-img', 'src')" style="background-image: url(./imgs/12.png);"></div>
<div class="menue-item" onclick="setImge(this, '#clown-img', 'src')" style="background-image: url(./imgs/13.png);"></div>
<div class="menue-item" onclick="setImge(this, '#clown-img', 'src')" style="background-image: url(./imgs/14.png);"></div>
</div>
<br>
<label for="img-size">גודל תמונה:</label>
<input type="range" name="img-size" min="100" max="350" oninput="setValue(this.value + 'px', '#clown-img', 'width')">
<br>
<label for="img-x">מיקום אנכי:</label>
<input type="range" name="img-x" min="-100" max="100" oninput="setValue(this.value + '%', '#clown-img', 'top')">
<br>
<label for="img-y">מיקום אופקי:</label>
<input type="range" name="img-y" min="-100" max="100" oninput="setValue(this.value + '%', '#clown-img', 'left')">
<br>
<label for="img-rotet">סובב:</label>
<input type="range" name="img-rotet" min="0" max="360" oninput="setValue('rotate(' + this.value +'deg)', '#clown-img', 'transform')">
<hr>
</div>
<div class="tool-bar-panel">
<p class="tool-bar-panel-title">כותרת פורים שמח</p>
<label for="small-title">שינוי כותרת:</label>
<input type="text" placeholder="א פריילעכן פורים.." name="small-title" oninput="setText(this.value, '.card-title')">
<br>
<label for="title-size">גודל גופן:</label>
<input type="range" name="title-size" min="5" max="100" oninput="setValue(this.value + 'px', '.card-title', 'fontSize')">
<br>
<label for="title-x">מיקום אנכי:</label>
<input type="range" name="title-x" min="-100" max="100" oninput="setValue(this.value + '%', '.card-title', 'top')">
<br>
<label for="title-y">מיקום אופקי:</label>
<input type="range" name="title-y" min="-100" max="100" oninput="setValue(this.value + '%', '.card-title', 'left')">
<br>
<label for="title-rotet">סובב:</label>
<input type="range" name="title-rotet" min="0" max="360" oninput="setValue('rotate(' + this.value +'deg)', '.card-title', 'transform')">
<br>
<label for="title-color">צבע כותרת:</label>
<input type="color" name="title-color" value="#ff0000" oninput="setValue(this.value, '.card-title', 'color')">
<br>
<label for="shadow-color">צבע צל:</label>
<input type="color" name="shadow-color" value="#ff0000" oninput="setValue('0px 0px 20px ' + this.value, '.card-title', 'textShadow')">
<br>
<hr>
</div>
<div class="tool-bar-panel">
<p class="tool-bar-panel-title">שם שולח</p>
<label for="small-title-visibility">שם שולח (כן/לא):</label>
<input type="checkbox" name="small-title-visibility" checked="true" onclick="setValue(this.checked ? 'block' : 'none', '.card-small-title', 'display')">
<br>
<label for="small-title-family-name">שם שולח:</label>
<input type="text" placeholder="משה כהן" name="small-title-family-name" oninput="setText(this.value, '.card-small-title')">
<br>
<label for="small-title-size">גודל גופן:</label>
<input type="range" name="small-title-size" min="5" max="100" oninput="setValue(this.value + 'px', '.card-small-title', 'fontSize')">
<br>
<label for="small-title-x">מיקום אנכי:</label>
<input type="range" name="small-title-x" min="-100" max="100" oninput="setValue(this.value + '%', '.card-small-title', 'top')">
<br>
<label for="small-title-y">מיקום אופקי:</label>
<input type="range" name="small-title-y" min="-100" max="100" oninput="setValue(this.value + '%', '.card-small-title', 'left')">
<br>
<label for="small-title-rotet">סובב:</label>
<input type="range" name="small-title-rotet" min="0" max="360" oninput="setValue('rotate(' + this.value +'deg)', '.card-small-title', 'transform')">
<br>
<label for="small-title-color">צבע כותרת:</label>
<input type="color" name="small-title-color" value="#ff0000" oninput="setValue(this.value, '.card-small-title', 'color')">
<br>
<label for="shadow-color">צבע צל:</label>
<input type="color" name="shadow-color" value="#ff0000" oninput="setValue('0px 0px 20px ' + this.value, '.card-small-title', 'textShadow')">
<br>
</div>
</div>
<script src="script.js"></script>
</body>
</html>