-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
54 lines (49 loc) · 2.17 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Sinhetic</title>
<meta name="viewport" content="user-scalable=no,initial-scale=1,width=device-width,height=device-height,maximum-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="ratchet/css/ratchet.min.css">
<link rel="stylesheet" href="ratchet/css/ratchet-theme-ios.min.css">
<style>
#translation { margin: 10px; }
#output { display: none; width: 90%; margin: 10px auto; }
#bar-bottom { padding: 0 10px; }
#dictionary { height: 40px; padding: 5px 0; margin: 5px 0; overflow: hidden; }
.word { display: inline-block; margin: 0 5px 5px 0; padding: 5px; background: #ddd; color: #111; }
.activeword { background: #aaa; }
#deletebtn { display: none; float: right; }
</style>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="ratchet/js/ratchet.min.js"></script>
<script type="text/javascript" src="js/lodash.min.js"></script>
<script type="text/javascript" src="js/sinhala.js"></script>
<script type="text/javascript" src="js/sinhaladict.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</head>
<body onload="tr.create()">
<header class="bar bar-nav">
<button class="btn btn-link btn-nav pull-left" onclick="tr.clearWords()">
<span class="icon icon-close"></span>
Clear Text
</button>
<button class="btn btn-link btn-nav pull-right" onclick="tr.copyText()">
<span class="icon icon-share"></span>
Copy Text
</button>
<h1 class="title"></h1>
</header>
<div class="content" id="content">
<div id="translation"></div>
<textarea id="output" onblur="tr.hideOutput()"></textarea>
</div>
<nav id="bar-bottom" class="bar bar-tab">
<button id="deletebtn" class="btn btn-negative" onclick="tr.deleteWord()"><span class="icon icon-trash"></span></button>
<div id="dictionary"></div>
<input id="pinput" type="text" placeholder="Type Something..." onkeyup="tr.engToSin(event)" autocorrect="off" autocapitalize="off" autofocus>
</nav>
</body>
</html>