-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprint.html
258 lines (192 loc) · 9.36 KB
/
print.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
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE html>
<html>
<head>
<title>Tanda Terima Daging Shohibul Qurban</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<link rel="stylesheet" type="text/css" href="reset-fonts-grids.css" media="all" />
<link rel="stylesheet" type="text/css" href="resume.css" media="all" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<!-- print() -->
<div id="doc2" class="yui-t7">
<div>
<div id="subinner">
<div id="hd">
<div class="yui-gc">
<div class="yui-u first" style="width: 150px;">
<img src="logo.png" width="100px;"/>
</div>
<div class="yui-u" style="margin-left: 0px; width: 50%; float: right;"></div>
<h1>Panitia Qurban <span class="hijri"></span></h1>
<h2>Masjid Muhtadien</h2>
<p>Basen RT 14 RW 04 Purbayan Kotagede Yogyakarta. CP. 0853-2712-6334 – 0857 0306 1111</p>
</div>
</div><!--// .yui-gc -->
</div><!--// hd -->
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<div class="yui-gf last">
<div class="yui-u first" style="width: 100%; margin: auto; text-align: center;">
<h2>(LEMBAR - 1, UNTUK SHOHIBUL QURBAN)</h2>
<h2>TANDA TERIMA DAN UCAPAN TERIMAKASIH</h2>
</div>
</div>
<!--// .yui-gf -->
<div class="yui-gf last">
<div class="yui-u first">
<p>Kepada Yth<br/>
Bapak/ Ibu/ Saudara/i<br/>
di</p>
</div>
<div class="yui-u">
<div class="talent" style="width: 60%;">
<br/>
<h2><span class="nama" style="text-transform: capitalize;">Nama Shohibul</span></h2>
<p><span class="alamat">Alamat</span></p>
</div>
<div class="talent">
</div>
<div class="job last" style="top: -50px;">
<h4 style="font-weight: 700; display: block; padding: 10px; border: 4px solid black; color: black;"><span class="kewan">Kewan</span> <span class="no">Nomor</span></h4>
</div>
</div>
</div>
<div class="yui-gf last">
<p>
Assalaamu'alaikum wa rahmatullahi wa barakaatuh<br/><br/>
Alhamdulillah, dengan rahmat Allah ta’ala, pada hari ini hewan Qurban anda telah disembelih dan distribusikan kepada mustahiq.
Kami mengucapkan terimakasih sebesar-besarnya atas kepercayaannya. Semoga amal kita diridhai Allah ta’ala.
<br/><br/>
Wassalaamu'alaikum wa rahmatullahi wa barakaatuh
</p>
</div>
<div class="yui-gf last">
<div class="job last">
<h4 style="top : 40px; right: 240px;">Yogyakarta,</h4>
<div class="line" style="top : 4px; right: 10px; width: 220px;"></div>
<h4 style="top: 1.5em; text-align: center; width: 230px;"><span class="tgl"></span> M</h4>
<h4 style="top: 3em; text-align: center; width: 230px;"><span class="hijridate"></span></h4>
</div>
</div>
<div class="yui-gf">
<div class="yui-u" style="width: 30%; margin-top: 20px;">
<ul class="talent">
</ul>
<ul class="talent">
</ul>
<ul class="talent" style="margin: auto; text-align: center; width: 150%;">
<!-- <li>Pascal</li> -->
<p><br/>Ketua<br/><br/><br/><br/><span class="ketua">Nama Ketuanya</span></p>
</ul>
</div>
</div>
<div class="yui-gf last">
<div class="yui-u first" style="width: 100%; margin: auto; text-align: center;">
<h2>(LEMBAR - 2, UNTUK PANITIA)</h2>
<h2>TANDA TERIMA</h2>
</div>
<p>
Telah kami terima 1/3 bagian daging Qurban atas nama:
</p>
</div>
<div class="yui-gf last">
<div class="yui-u first">
<p>Nama Shohibul<br/>Alamat</p>
</div>
<div class="yui-u">
<ul class="talent last">
<li class="last"><span class="nama" style="text-transform: capitalize;">Nama Shohibul</span></li>
<li class="last"><span class="alamat">Alamat</span></li>
</ul>
<div class="job last" style="top: -80px;">
<h4 style="font-weight: 700; display: block; padding: 10px; border: 4px solid black; color: black;"><span class="kewan">Kewan</span> <span class="no">Nomor</span></h4>
</div>
</div>
</div><!--// .yui-gf-->
<div class="yui-gf last">
<!-- <div class="job last">
<h4 style="top: 2em; left: 2em;">Yogyakarta</h4>
<h4 style="top: 1.5em;">Yogyakarta, <span class="tgl"></span> M</h4>
<h4 style="top: 2.5em;"><span class="hijridate"></span></h4>
</div> -->
<div class="job last">
<h4 class="city" style="top : 40px; right: 240px;">Yogyakarta,</h4>
<div class="line" style="top : 4px; right: 10px; width: 220px;"></div>
<h4 style="top: 1.5em; text-align: center; width: 230px;"><span class="tgl"></span> M</h4>
<h4 style="top: 3em; text-align: center; width: 230px;"><span class="hijridate"></span></h4>
</div>
</div>
<div class="yui-gf last" style="margin-top: 40px;">
<div class="yui-u first" style="width: 30%;">
<ul class="talent">
<ul class="talent" style="margin: auto; text-align: center; width: 200%;">
<!-- <li>Pascal</li> -->
<p><br/>Petugas Pengantar<br/><br/><br/></p>
<div class="line"></div>
</ul>
</ul>
</div>
<div class="yui-u" style="width: 30%;">
<ul class="talent">
</ul>
<ul class="talent" style="margin: auto; text-align: center; width: 150%;">
<!-- <li>Pascal</li> -->
<p><br/>Shohibul Qurban<br/><br/><br/><br/><span class="nama" style="text-transform: capitalize;">Nama Shohibul</span></p>
</ul>
</div>
</div>
</div><!--// .yui-b -->
</div><!--// yui-main -->
</div><!--// bd -->
</div>
</div><!-- // inner -->
</div><!--// doc -->
<script>
function getUrlVars() {
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,
function(m,key,value) {
vars[key] = value;
});
return vars;
}
const inputTgl = new Date(getUrlVars()["tgl"]);
const options = { year: 'numeric', month: 'long', day: 'numeric' };
const tgl = inputTgl.toLocaleDateString('ID', options);
const tolerance = parseInt(getUrlVars()["tolerance"], 10);
const hijriYear = new Intl.DateTimeFormat('ID-TN-u-ca-islamic',{year : 'numeric'}).format(inputTgl);
var tolerancedDate = inputTgl;
tolerancedDate.setDate(tolerancedDate.getDate() + tolerance);
const hijriDate = new Intl.DateTimeFormat('ID-TN-u-ca-islamic',{day: 'numeric', month: 'long',year : 'numeric'}).format(tolerancedDate);
const nama = decodeURI(getUrlVars()["nama"]).replace(/[+]/g," ");
const alamat = decodeURI(getUrlVars()["alamat"]).replace(/[+]/g," ");
const kewan = getUrlVars()["kewan"].toUpperCase();
const no = getUrlVars()["no"].toUpperCase();
var ketua = decodeURI(getUrlVars()["ketua"]).replace(/[+]/g," ");
if (ketua === "undefined") {
ketua = "Drs. Agus Saparudin";
}
document.getElementsByClassName("hijri")[0].innerHTML= hijriYear;
document.getElementsByClassName("tgl")[0].innerHTML = tgl;
document.getElementsByClassName("tgl")[1].innerHTML = tgl;
document.getElementsByClassName("hijridate")[0].innerHTML = hijriDate;
document.getElementsByClassName("hijridate")[1].innerHTML = hijriDate;
document.getElementsByClassName("nama")[0].innerHTML = nama;
document.getElementsByClassName("nama")[1].innerHTML = nama;
document.getElementsByClassName("nama")[2].innerHTML = nama;
document.getElementsByClassName("alamat")[0].innerHTML = alamat;
document.getElementsByClassName("alamat")[1].innerHTML= alamat;
document.getElementsByClassName("kewan")[0].innerHTML= kewan;
document.getElementsByClassName("kewan")[1].innerHTML= kewan;
document.getElementsByClassName("no")[0].innerHTML= no;
document.getElementsByClassName("no")[1].innerHTML= no;
document.getElementsByClassName("ketua")[0].innerHTML= ketua;
document.title = "[TANDA TERIMA]-[" + kewan.toUpperCase() +" "+ no+ "]-"+ nama;
// window.print();
</script>
</body>
</html>