-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (77 loc) · 2.77 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
<!DOCTYPE html>
<html>
<head>
<title>Captured Screenshot</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
/>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles.css" />
</head>
<body class="bg-gray-100 p-4">
<div id="controls" class="flex flex-col gap-4 justify-center text-center">
<h1 class="text-2xl font-bold">Captured Screenshot</h1>
<div class="flex items-center justify-center gap-4">
<!-- Editing Tools Section -->
<div id="editing-tools" class="flex space-x-2 mb-4 bg-red-100">
<button id="activate-drawing" class="btn">
<i class="fas fa-pencil-alt"></i> Draw
</button>
<button id="activate-arrow" class="btn">
<i class="fas fa-long-arrow-alt-right"></i> Arrow
</button>
<button id="activate-text" class="btn">
<i class="fas fa-font"></i> Text
</button>
<button id="undo" class="btn">
<i class="fas fa-undo-alt"></i> Undo
</button>
<div class="container justify-center">
<input type="color" id="color-picker" value="#ff0000" />
</div>
</div>
<!-- Export/Sharing Section -->
<div id="export-tools" class="flex space-x-2 mb-4 bg-red-100">
<button id="generate-jira" class="btn">
<i class="fas fa-file-alt"></i> Generate JIRA Markup
</button>
<button id="copyImageBtn" class="btn">
<i class="fas fa-copy"></i> Copy Image
</button>
<button id="openJiraButton" class="btn">
<i class="fas fa-globe"></i> Open NIFITI JIRA
</button>
</div>
</div>
</div>
<div id="canvas-container" class="relative">
<img
id="captured-image"
src=""
alt="Captured Screenshot"
class="hidden"
/>
<canvas id="drawing-canvas" class="border"></canvas>
</div>
<!-- <div id="jira-markup" class="mt-4 p-4 bg-white border rounded"></div> -->
<!-- The Modal -->
<div
id="jiraModal"
class="modal fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center"
>
<div class="modal-content bg-white p-4 rounded shadow-lg">
<span class="close text-gray-500 cursor-pointer">×</span>
<pre id="modal-jira-markup" class="whitespace-pre-wrap"></pre>
<button id="copyMarkupBtn" class="btn mt-4">Copy Markup</button>
</div>
</div>
<script src="canvas.js"></script>
<script src="modal.js"></script>
<script src="jira.js"></script>
<script src="main.js"></script>
</body>
</html>