-
Notifications
You must be signed in to change notification settings - Fork 0
/
baybay.html
73 lines (73 loc) · 2.25 KB
/
baybay.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui">
<title>Baybayin Transliterator API</title>
<meta name="description" content="A documentation for baybayin transliterator.">
<style type="text/css">
code{
background-color: #dedede;
display: block;
padding: 5px;
font-family: "Courier", monospace;
overflow: scroll;
}
fieldset{
box-shadow: 3px 3px 5px #cecece;
}
fieldset, fieldset legend{
border: 1px #000000 solid;
border-radius: 10px;
margin: 10px;
}
fieldset legend{
margin-left: 20px;
padding: 0 5px;
font-family: "Times New Roman", serif;
font-size: 12px;
}
p{
text-align: justify;
}
</style>
</head>
<body>
<h3 align="center">Welcome to Baybayin Transliterator API</h3>
<h5 align="center">Developed by MPOP Reverse II</h5>
<fieldset>
<legend>Introduction</legend>
<p> Baybayin is a pre-spanish script used by filipino ancestors to communicate with others. And as a tribute to them, and to spread knowledge, we decided to create a simple API for baybayin, for those who want to learn baybayin. Enjoy and God bless.</p>
</fieldset>
<h5>This is on how to use this API (Language: NodeJS)</h5>
<code>
const axios = require("axios");<br>
<br>
let baybay = async (text) => {<br>
 let result = await axios.get("https://api-baybayin-transliterator.vercel.app/?text=" + text).then(r => {<br>
  return r.data;<br>
 }).catch(e => {<br>
 emsp;console.error(e);<br>
  return null;<br>
 });<br>
 return result;<br>
}<br>
<br>
module.exports = async (data) => {<br>
 let output = await baybay(data);<br>
 console.log(output);<br>
}
</code>
<h5>And here's the result</h5>
<code>
{<br>
 "original": "baybayin",<br>
 "baybay": "ᜊᜌ᜔ᜊᜌᜒᜈ᜔"<br>
}
</code>
<fieldset>
<legend>Last part</legend>
<p> Thank you fot using and supporting this api. If ever that you want to share or you see some error, kindly email us @ <a href="mailto:[email protected]">Google Mail</a>. Thank you ang God bless.</p>
</fieldset>
</body>
<script type="text/javascript"></script>
</html>