-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
100 lines (87 loc) · 1.92 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
<!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="styles.css">
<title>Code Search</title>
</head>
<style type="text/css">
/* styles.css */
body {
font-family: Arial, sans-serif;
background-color: black;
color: white;
margin: 0;
padding: 0;
}
.container {
text-align: center;
margin: 20px;
}
h1 {
font-size: 24px;
margin-bottom: 20px;
}
.search-bar {
margin-bottom: 20px;
}
#searchInput {
padding: 10px;
width: 60%;
font-size: 16px;
border: none;
border-radius: 5px;
}
#hintText {
font-size: 14px;
color: #007bff;
margin-left: 5px;
}
#searchButton {
padding: 10px 20px;
font-size: 16px;
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.buttons button {
padding: 10px 20px;
font-size: 16px;
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
margin-right: 10px;
}
pre {
background-color: #333;
padding: 20px;
border-radius: 5px;
white-space: pre-wrap;
overflow-x: auto;
max-width: 100%;
font-size: 14px;
line-height: 1.4;
color: yellow; /* Change code text color */
}
</style>
<body>
<div class="container">
<h1>Code Search</h1>
<div class="search-bar">
<input type="text" id="searchInput" placeholder="Search for algorithms and coding problems...">
<span id="hintText" class="hint-text"></span>
<button id="searchButton">Search</button>
</div>
<div class="buttons">
<button id="allAlgorithmsButton">All Algorithms</button>
<button id="basicQuestionsButton">Basic Java Questions</button>
</div>
<pre id="codeResult"></pre>
</div>
</body>
</html>