-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReportWriting.html
More file actions
63 lines (51 loc) · 1.97 KB
/
ReportWriting.html
File metadata and controls
63 lines (51 loc) · 1.97 KB
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
<!DOCTYPE html>
<html>
<head>
<title>
Report Writer
</title>
<link rel="stylesheet" href="ProjectStyle.css">
<script src="ProjectJS.js"></script>
</head>
<body>
<h1>
Write a Report Automatically
</h1>
<h3>
Access a powerful AI that can aid you in the writing of a report
</h3>
<div class="cen">
<br>
<label for="username">Copy to Access the AI to run in Windows Powershell:</label><br>
<input type="text" id="username" name="username" value="ollama run gemma2:2b">
<input type="button" class="miniButton" value="Copy" onclick="copyMail();"/><br><br>
<a href="http://localhost:3000/" class="but">Use Open WebUI</a>
<input type="button" class="but" value="Back to Menu" onclick="goBack();"/>
</div>
<script>
function copyMail() {
var copyText = document.getElementById('username');
//Ensure the text area has focus
copyText.focus();
copyText.select();
copyText.setSelectionRange(0, 99999); // For mobile devices
// Try to copy the text
try {
// For modern browsers
navigator.clipboard.writeText(copyText.value).then(function() {
alert("Copied the text: " + copyText.value);
}).catch(function(err) {
// Fallback for older browsers
document.execCommand('copy');
alert("Copied the text: " + copyText.value);
});
} catch (err) {
// Fallback for older browsers
document.execCommand('copy');
alert("Copied the text: " + copyText.value);
}
}
</script>
<script type="module" src="./terminal.js"></script>
</body>
</html>