-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
77 lines (60 loc) · 2.27 KB
/
Copy pathindex.html
File metadata and controls
77 lines (60 loc) · 2.27 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Ferens | Python Code Comparator</title>
<!-- CodeMirror Styles -->
<link rel="stylesheet" href="https://unpkg.com/codemirror@5.65.14/lib/codemirror.css">
<!-- CodeMirror Scripts -->
<script src="https://unpkg.com/codemirror@5.65.14/lib/codemirror.js"></script>
<script src="https://unpkg.com/codemirror@5.65.14/mode/javascript/javascript.js"></script>
<script src="https://unpkg.com/codemirror@5.65.14/mode/python/python.js"></script>
<script src="https://unpkg.com/codemirror@5.65.14/mode/clike/clike.js"></script>
<!-- Optional Theme -->
<link rel="stylesheet" href="https://unpkg.com/codemirror@5.65.14/theme/material.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="style.css">
<!-- Load Dark Theme for CodeMirror -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.5/theme/darcula.min.css">
</head>
<body>
<div class="ribbon">
<div class="logo-text">
<h1>Ferens</h1>
<p class="tagline">A Python Code Comparator</p>
</div>
<div>
<!-- <select id="languageSelector" class="compare-btn" onchange="changeLanguage()">
<option value="javascript">JavaScript</option>
<option value="python">Python</option>
<option value="clike">C++</option>
</select> -->
<button class="compare-btn" onclick="compareCode()">Compare</button>
<div class="tooltip-wrapper">
<button class="compare-btn" onclick="window.location.href='history.html'">
View History
</button>
<div class="tooltip-reminder">
⚠ This will clear your current code input
</div>
</div>
<!-- 🔘 Dark Mode Button placed after View History -->
<button id="darkModeToggle" class="compare-btn">Toggle Mode</button>
</div>
</div>
</div>
</div>
<div class="container">
<div class="code-box">
<label for="originalCode">Original Code</label>
<textarea id="originalCode"></textarea>
</div>
<div class="code-box">
<label for="userCode">User Code</label>
<textarea id="userCode"></textarea>
</div>
</div>
<div id="result" style="margin: 20px; padding: 10px; background-color: #f9f9f9; border-radius: 8px;"></div>
<script src="script.js"></script>
</body>
</html>