108 lines
3.0 KiB
HTML
108 lines
3.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<link
|
|
rel="icon"
|
|
href="https://icons.getbootstrap.com/assets/icons/google.svg"
|
|
/>
|
|
|
|
<!-- Bootstrap -->
|
|
<link
|
|
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
|
|
rel="stylesheet"
|
|
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
|
|
crossorigin="anonymous"
|
|
/>
|
|
<script
|
|
src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js"
|
|
integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB"
|
|
crossorigin="anonymous"
|
|
></script>
|
|
<script
|
|
src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js"
|
|
integrity="sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13"
|
|
crossorigin="anonymous"
|
|
></script>
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.6.1/font/bootstrap-icons.css"
|
|
/>
|
|
|
|
<link rel="stylesheet" href="index.css" />
|
|
<script src="index.js"></script>
|
|
|
|
<title>Let me Google that for you</title>
|
|
</head>
|
|
|
|
<body>
|
|
<!-- Content -->
|
|
<div class="container">
|
|
<form class="row g-3 text-center mt-5">
|
|
<!-- Google -->
|
|
<label class="display-1 form-label fw-normal" for="input">
|
|
<span class="text-primary">G</span><span class="text-danger">o</span
|
|
><span class="text-warning">o</span><span class="text-primary">g</span
|
|
><span class="text-success">l</span><span class="text-danger">e</span>
|
|
</label>
|
|
|
|
<!-- Input -->
|
|
<div
|
|
class="
|
|
bg-body
|
|
border border-1 border-light
|
|
input-group
|
|
rounded-pill
|
|
shadow-sm
|
|
"
|
|
>
|
|
<label
|
|
class="input-group-text bi-search bg-body border-0"
|
|
for="input"
|
|
id="searchicon"
|
|
></label>
|
|
<input
|
|
class="form-control border-0 bg-body"
|
|
id="input"
|
|
maxlength="2048"
|
|
name="search"
|
|
placeholder="Search"
|
|
required
|
|
title="Search"
|
|
type="text"
|
|
/>
|
|
</div>
|
|
|
|
<!-- Actions -->
|
|
<div>
|
|
<button
|
|
class="btn btn-light"
|
|
id="search"
|
|
onclick="onClickSearch()"
|
|
type="submit"
|
|
>
|
|
Google Search
|
|
</button>
|
|
<button
|
|
class="btn btn-light"
|
|
id="lucky"
|
|
onclick="onClickLucky()"
|
|
title="Open the first search result"
|
|
type="button"
|
|
>
|
|
I'm feeling lucky
|
|
</button>
|
|
</div>
|
|
|
|
<!-- Alert -->
|
|
<div id="message" class="alert text-start opacity-0">
|
|
<h5 id="message-heading" class="alert-heading"></h5>
|
|
<div id="message-content"></div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|