repl.it
@K0DYungDeku/

InterviewHighlights

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • script.js
  • style.css
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html>
<html lang="en">
  <meta charset="UTF-8">
  <script>  
    function UpdateRating(newRating) {    
      var star1 = document.getElementById("rating1");
      var star2 = document.getElementById("rating2");
      var star3 = document.getElementById("rating3");
      var star4 = document.getElementById("rating4");
      var star5 = document.getElementById("rating5");
      
      if (newRating == 5) {
        star5.style.color = "red";
        star4.style.color = "red";
        star3.style.color = "red";
        star2.style.color = "red";
        star1.style.color = "red";
      }
      else if (newRating == 4) {
        star5.style.color = "lightgray";
        star4.style.color = "red";
        star3.style.color = "red";
        star2.style.color = "red";
        star1.style.color = "red";
      }
      else if (newRating == 3) {
        star5.style.color = "lightgray";
        star4.style.color = "lightgray";
        star3.style.color = "red";
        star2.style.color = "red";
        star1.style.color = "red";
      }
      else if (newRating == 2) {
        star5.style.color = "lightgray";
        star4.style.color = "lightgray";
        star3.style.color = "lightgray";
        star2.style.color = "red";
        star1.style.color = "red";
      }
      else if (newRating == 1) {
        star5.style.color = "lightgray";
        star4.style.color = "lightgray";
        star3.style.color = "lightgray";
        star2.style.color = "lightgray";
        star1.style.color = "red";
      }
    }
  </script>
  <style>
  body {
    background-color: black;
  }  
  h1 {
    font-size: 16pt;
    background-color: red;
    color: rgb(40,40,40);
  }
  p {
    font-size: 12pt;
    font-family: arial;
    margin-left: 10px;
    color: white;
  }
  img {
    margin-left: 10px;
  }  
  strong {
    color: rgb(100,100,100);
  } 
  em {
    color: white;
  } 
  span {
    color: red;
  } 
  iframe {
  display: block;
  margin-left: auto;
  margin-right: auto;
  }


/*------------------- search bar ---------------------------*/
{
  box-sizing: border-box;
}

/* Style the search field */
form.example input[type=text] {
  padding: 10px;
  font-size: 15px;
  border: 1px solid grey;
  float: center;
  width: 20%;
  background: #f1f1f1;
}

/* Style the submit button */
form.example button {
  float: center;
  width: 20%;
  padding: 10px;
  background: #FF0000;
  color: white;
  font-size: 15px;
  border: 1px solid grey;
  border-left: none; /* Prevent double borders */
  cursor: pointer;
}

form.example button:hover {
  background: #000000;
}

/* Clear floats */
form.example::after {
  content: "";
  clear: both;
  display: table;
}
/*------------------- search bar ---------------------------*/

</style>

  <title>Interview Highlights</title>
  <body>
    <h1>Interview Highlights</h1>
    <p><strong>Rating:</strong> 
    <span id="rating1"></span>
    <span id="rating2"></span>
    <span id="rating3"></span>
    <span id="rating4"></span>
    <span id="rating5"></span>
    </p>
    
    <p><strong>Update Rating:</strong> 
    <button type="button" onclick="UpdateRating(1)">Rate 1</button>
    <button type="button" onclick="UpdateRating(2)">Rate 2</button>
    <button type="button" onclick="UpdateRating(3)">Rate 3</button>
    <button type="button" onclick="UpdateRating(4)">Rate 4</button>
    <button type="button" onclick="UpdateRating(5)">Rate 5</button>
    </p>

    <p><strong>Date:</strong> 10/15/22</p>
    
    <iframe width="854" height="480"
    src="https://www.youtube.com/embed/tgbNymZ7vqY">
    </iframe>

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

    <!-- The form -->
    <form class="example" action="action_page.php">
      <input type="text" placeholder="Search.." name="search">
      <button type="submit"><i class="fa fa-search"></i></button>
    </form>
    
    <p><strong>Review:</strong> A Night's Watch deserter is tracked down; Lord Eddard "<em>Ned</em>" Stark learns that his mentor has died; Viserys Targaryen plots to win back the throne; Robert arrives at Winterfell with his family; Ned prepares to leave for King's Landing.</p>    
  </body>
</html>
result
console
?