-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
159 lines (133 loc) · 5.45 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="icon" href="images/mag-lens-gear.svg" type="image/x-icon">
<!-- <script type="module">
import langchain from 'https://cdn.jsdelivr.net/npm/langchain@0.1.4/+esm'
</script> -->
<script src="https://cdn.jsdelivr.net/npm/tesseract.js"></script> <!--For tesseract.js implementation-->
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<title>Legal Lens</title>
</head>
<body>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@v0.153.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@v0.153.0/examples/jsm/"
}
}
</script>
<nav>
<div id="title">
<img id="logo" src="images/mag-lens-gear.svg" alt="Logo">
<a href="index.html">
<h1>Legal Lens</h1>
</a>
</div>
</nav>
<main>
<!-- 1st screen -->
<div id="screen1">
<div id="hero">
<h1>Easily convert legal documents of any language into usable data.</h1>
<p>Upload images or text below to organize your information, use it for your auto-fills, visa
application, or anything else!</p>
</div>
<!-- select the image language -->
<div id="language">
<span>
<label for="languagePicker">Select language:</label>
<select id="languagePicker"></select>
</span>
</div>
<div id="upload-options">
<!-- dropbox -->
<form id="upload-form">
<input type="file" id="imageInput" accept="image/*" />
</form>
<!-- textbox -->
<div id="textbox">
<textarea placeholder="Or start typing your text here..." rows="20" name="comment[text]"
id="comment_text" cols="40" class="ui-autocomplete-input" autocomplete="off" role="textbox"
aria-autocomplete="list" aria-haspopup="true"></textarea>
</div>
<div class="button">
<button id="submit">Submit</button>
</div>
</div>
</div>
<div id="screen2">
<div id="screen2-options">
<!-- image -->
<div id="uploaded">
<p id="uploaded_message">Your uploaded image:</p>
<img id="uploaded_image" src="images/russian_doc.jpeg"></img>
</div>
<!-- textbox for selected langauage-->
<div id="uploaded-selected-language">
<textarea disabled placeholder="Generating the text in your chosen language..." rows="20" name="comment[text]"
id="uploaded-selected-language-text-display" cols="40" class="ui-autocomplete-input" autocomplete="off" role="textbox"
aria-autocomplete="list" aria-haspopup="true"></textarea>
</div>
<!-- textbox for english -->
<div id="uploaded-english">
<textarea disabled placeholder="Generating the text in English..." rows="20" name="comment[text]"
id="uploaded-english-text-display" cols="40" class="ui-autocomplete-input" autocomplete="off" role="textbox"
aria-autocomplete="list" aria-haspopup="true"></textarea>
</div>
<!-- 'reupload' & 'convert' buttons -->
<div class="buttons">
<a href="index.html">
<button id="reupload">Reupload</button>
</a>
<button id="convert">Convert</button>
</div>
</div>
<!-- copying -->
<div id="copying">
<img id="copy" src="">
<img id="copied" src="">
</div>
<!-- ai info -->
<div id="uploaded-selected-language">
<p id="uploaded-selected-language-text">
<italic>*the text in selected languages*</italic>
</p>
</div>
<div id="uploaded-english">
<p id="uploaded-english-text">
<italic>*the text in english*</italic>
</p>
</div>
</div>
<div id="spinner">
<div id="canvas-container"></div>
</div>
<!-- 3rd screen -->
<div id="screen3">
<div id="output">
<p id="output-text"></p>
</div>
</div>
</main>
<footer>
<p id="footer-declaration">All images are stored on the client-side, any uploaded data is deleted when you leave
the site.</p>
<div id="footer-links">
<a href="terms.html">
<h2 id="terms">Terms</h2>
</a>
<a href="privacypolicy.html">
<h2 id="privacy-policy">Privacy Policy</h2>
</a>
</div>
</footer>
<script src="convert_script.js"></script>
<script src="https://cdn.jsdelivr.net/npm/tesseract.js"></script>
<script type="module" src="./3dmodel.js"></script>
</body>
</html>