-
Notifications
You must be signed in to change notification settings - Fork 2
/
dev.html
324 lines (274 loc) · 14.1 KB
/
dev.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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
<!DOCTYPE html>
<html lang="en" prefix="og: https://ogp.me/ns#">
<head>
<!-- Google tag (gtag.js) -->
<!-- <link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css"> -->
<script src="https://kit.fontawesome.com/93ce3fc8d3.js" crossorigin="anonymous"></script>
<!-- <link src="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"> -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-ST2JEZKDYS"></script>
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-ST2JEZKDYS');
</script>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '925816941874428',
cookie : true,
xfbml : true,
version : 'v16.0'
});
FB.AppEvents.logPageView();
};
(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";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<link rel="stylesheet" href="css/index.css" />
<style>
@import url("https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@500;600;700&display=swap");
</style>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="Learn Baybayin with Kuya Bai | Tagalog to Baybayin Translator" />
<meta property="og:type" content="website" />
<meta property="og:description" content="Learn Baybayin with Kuya Bai, our very own pre-colonial, ancient Tagalog script in the Philippines." />
<meta property="og:image" content="https://kuyabai.com/assets/images/icons/logo_square.png" />
<meta property="og:image:alt" content="Kuya Bai Tagalog Filipino to Baybayin Translator" />
<meta property="og:url" content="https://kuyabai.com" />
<meta property="fb:app_id" content="925816941874428" />
<meta name="twitter:title" content="Kuya Bai Translator" />
<meta name="twitter:description" content="Translate words and sentences to the Philippine Writing Scripts" />
<!-- <link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png"> -->
<!-- <link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png"> -->
<!-- <link rel="manifest" href="/assets/favicon/site.webmanifest">
<link rel="mask-icon" href="/assets/favicon/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="/assets/favicon/browserconfig.xml">
<meta name="theme-color" content="#ffffff"> -->
<link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png">
<link rel="shortcut icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png">
<link rel="shortcut icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png">
<link rel="shortcut icon" type="image/png" href="/favicon.ico">
<link rel="manifest" href="/favicon/site.webmanifest">
<link rel="mask-icon" href="/favicon/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="/favicon/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<!-- <meta
name="twitter:image"
content="https://jennayey.com/philippine-scripts-translator/assets/images/OG/share-card.jpg"
/> -->
<!-- <meta name="twitter:card" content="summary_large_image" /> -->
<title>Learn Baybayin with Kuya Bai | Tagalog to Baybayin Translator</title>
<meta
name="description"
content="Translates words and sentences to the Baybayin, Hanunoo, Buhid and Tagbanwa scripts"
/>
</head>
<body>
<div id="toast">
<p>Text copied</p>
</div>
<div class="flex-row">
<!-- Navigation / Header -->
<div id="navigation-header" class="header">
<a href="/"><img src="/assets/images/logo_horizontal.png" height="50px"alt=""></a>
<!-- <h3>Baybayin Script Translator</h3> -->
<!-- <a href='https://ko-fi.com/I2I0230S1' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://cdn.ko-fi.com/cdn/kofi3.png?v=2' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a> -->
<!--About us --->
<div data-modal-target="#modal" style="cursor: pointer" ><img src="/assets/images/Info_button.svg" height="20px" width="50px" class="filter-brown"></div>
<div class="modal" id="modal">
<div class="modal-header">
<img class="kuyabai-logo" style="margin-right: 10px;" src="assets/images/icons/KuyaBai_Logo.png" alt="orangefix logo">
<div class="title">Meet Kuya Bai</div>
<div class="close"><button data-close-button class="close-button">×</button></div>
</div>
<div class="modal-body" id ="center">
<br>
<span>Let Kuya Bai help you learn Baybayin, our very own ancient Philippine Tagalog script.</span><br>
<br>
<span>Use the translator to learn how to write & spell Baybayin.</span><br>
<br>
<span>If you have questions, buzz us at hello (at) orangefix.xyz.</span>
<br><br>
</div>
</div>
<div id="overlay"></div>
<!--About us --->
</div>
<!-- Navigation / Header End -->
<!-- Main Translator Div -->
<div id="translatorMain" class="translator-main flex-jcc">
<!-- Translator Blocks Div -->
<div class="translator-main-blocks">
<!-- Tagalog Text Area -->
<div class="translator-main-blocks-raw border-right border-bottom">
<label for="tagalogTextArea">Tagalog</label>
<textarea
name="tagalog-text-area"
id="tagalogTextArea"
placeholder="Type text here"
onclick="focus()"
onkeyup="convertText()"
></textarea>
<button
id="clearButton"
onclick="clearText()"
style="cursor: pointer"
>
Clear
</button>
</div>
<!-- Tagalog Text Area End-->
<!-- Translated Text Area -->
<div class="translator-main-blocks-translated border-bottom">
<label for="translatedTextArea" color="#42210B">Baybayin Translation</label>
<textarea
name="translated-text-area"
id="translatedTextArea"
readonly
></textarea>
<div>
<button
id="copyButton"
onclick="copyText()"
style="cursor: pointer"
>
Copy
</button>
<!--</div>-->
<!-- Button for Preview -->
<button id="open-preview" class="open-preview" onclick="convert()" style="cursor: pointer">Preview</button>
<!-- Button for Download -->
<button
id = "down-btn"
href=#
onclick="downloadCanvas()"
hover="down-options"
style="cursor: pointer">
<!-- <i class="fas fa-share-alt"></i> -->
Download
</button>
<!-- https://www.youtube.com/watch?v=q-tGimz34Ho&t=392s -->
<button
id = "down-btn"
onclick="sharefbimage()"
hover="down-options"
style="cursor: pointer">
<!-- <i class="fas fa-share-alt"></i> -->
FB
</button>
<div class="share" id="share_amongus" >
<div class="btn js-btn-open">
<i class="fa fa-retweet" aria-hidden="true"></i>
</div>
<div class="social js-btns-share" id="share_amongus">
<ul>
<li class="js-btns-share"><a class="facebook" target="_blank"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
<li class="js-btns-share"><a class="twitter" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<!-- <li class="js-btns-share"><a href="https://plus.google.com/share?url=https://codepen.io/Cristiano123/pen/dXQNVj" target="_blank"><i class="fa fa-google-plus" aria-hidden="true"></i></a></li> -->
<!-- <li class="js-btns-share"><a href="https://www.linkedin.com/cws/share?url=https://codepen.io/Cristiano123/pen/dXQNVj" target="_blank"><i class="fa fa-linkedin" aria-hidden="true"></i></a></li> -->
<!-- <li class="js-btns-share"><a href="https://www.linkedin.com/cws/share?url=https://codepen.io/Cristiano123/pen/dXQNVj" target="_blank"><i class="fa fa-linkedin" aria-hidden="true"></i></a></li> -->
<!-- <li class="js-btns-share"><a href="https://www.linkedin.com/cws/share?url=https://codepen.io/Cristiano123/pen/dXQNVj" target="_blank"><i class="fa fa-linkedin" aria-hidden="true"></i></a></li> -->
</ul>
</div>
</div>
</div>
<!-- working website share -->
<script>
const link = encodeURI('https://kuyabai.com/');
const msg = encodeURIComponent('');
// const img = encodeURI();
const title = encodeURIComponent('test');
// facebook
const fb = document.querySelector('.facebook');
fb.href = `https://www.facebook.com/share.php?u=${link}`;
// // twitter
const twitter = document.querySelector('.twitter');
twitter.href = `http://twitter.com/share?&url=${link}&text=${msg}&hashtags=baybayin,Filipino`;
// // linkedin
// const linkedIn = document.querySelector('.linkedin');
// linkedIn.href = `https://www.linkedin.com/sharing/share-offsite/?url=${link}`;
// // reddit
// const reddit = document.querySelector('.reddit');
// reddit.href = `http://www.reddit.com/submit?url=${link}&title=${title}`;
// // whatsapp
// const whatsapp = document.querySelector('.whatsapp');
// whatsapp.href = `https://api.whatsapp.com/send?text=${msg}: ${link}`;
// // Telegram
// const telegram = document.querySelector('.telegram');
// telegram.href = `https://telegram.me/share/url?url=${link}&text=${msg}`;
</script>
<div id="preview-hidden"> <!-- style="border-style: solid;"> -->
<canvas id="canvas-hidden" height="1400" width="1400">
</canvas>
<img src="" id="image" alt="">
</div>
<!-- Translated Text Area End-->
</div>
<!-- Translator Blocks Div End -->
</div>
<!-- Main Translator Div -->
</div>
<dialog id="preview">
<canvas id="canvas" height="320" width="320"></canvas>
<button id="download-preview" onclick="downloadCanvas()">download</button>
<button id="close-preview" class="close-preview">×</button>
</dialog>
<!-- Messenger Chat Plugin Code -->
<div id="fb-root"></div>
<!-- Your Chat Plugin code -->
<div id="fb-customer-chat" class="fb-customerchat">
</div>
<script>
var chatbox = document.getElementById('fb-customer-chat');
chatbox.setAttribute("page_id", "125853003748977");
chatbox.setAttribute("attribution", "biz_inbox");
</script>
<!-- Your SDK code -->
<script>
window.fbAsyncInit = function() {
FB.init({
xfbml : true,
version : 'v16.0'
});
};
(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/xfbml.customerchat.js';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<!-- TODO: a proper footer -->
<div class="footer" id="center">
<br>
<!-- <img src="assets/images/logo_horizontal.png" height="50px"alt=""> -->
<span class="footer-text" id="center">Say "Hi" at hello (at) orangefix.xyz</span>
<br><br>
<a href="privacypolicy" style="text-decoration:none">Privacy Policy</a><span style="font-weight: 600">|</span><a href="tos" style="text-decoration:none">Terms of Service</a>
<br><br>
<span class="footer-text">Thanks to the amazing work of <a href="https://jennayey.com/" target="_blank" rel="noopener noreferrer">jennayey</a> ❤ and the <a href="https://github.com/jennayey/philippine-scripts-translator" target="_blank" rel="noopener noreferrer">Philippine Scripts Translator Project</a>.</span>
<br><br>
<span class="footer-text">You can also download the free <a href="https://github.com/jennayey/philippine-scripts-translator/blob/master/assets/fonts/Baybayin/TintangBaybayin.otf?raw=true" target="_blank" rel="noopener noreferrer">Tintang Baybayin Open Type Font</a>.</span>
<br><br>
<span class="footer-text" id="center">Copyright © 2022 <a href="https://kuyabai.com" target="_blank" rel="noopener noreferrer">kuyabai.com</a>
<br>
<span class="footer-text" id="center">Follow us on <a href="https://www.facebook.com/KuyaBaiBaybayin" target="_blank" rel="noopener noreferrer">Facebook</a>
<br>
An <a href="https://orangefix.xyz" target="_blank" rel="noopener noreferrer"> <img class="orangefix-logo" style="margin-right: 1px;" src="https://orangefix.xyz/orangefix-logo-svg.svg" alt="orangefix logo">Orangefix</a> side hustle</span>
<!-- <a href='https://ko-fi.com/I2I0230S1' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://cdn.ko-fi.com/cdn/kofi3.png?v=2' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a> -->
</div>
<script src="js/dev.js"></script>
</body>
</html>