-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
37 lines (34 loc) · 1.3 KB
/
popup.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Screen Capture OCR</title>
<!-- Import Materialize CSS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css" rel="stylesheet">
<link rel="stylesheet" href="popup.css">
</head>
<body>
<div class="container">
<h1 class="center-align">Capture and Extract Text</h1>
<div class="input-field">
<input type="text" id="user-input" name="user-input">
<label for="user-input"></label>
</div>
<p class="center-align">Click below to capture the current tab and extract text using OCR.</p>
<div class="row center-align">
<button id="capture-btn" class="btn waves-effect waves-light">Capture & Extract</button>
</div>
</div>
<!-- Loading Icon -->
<div id="loading" class="center-align" style="display: none;">
<img src="spinner.gif" alt="Loading...">
</div>
<!-- Placeholder for result and time -->
<div id="result" class="container"></div>
<div id="time-taken" class="container"></div>
<!-- Import Materialize JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script src="popup.js"></script>
</body>
</html>