-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (65 loc) · 2.21 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Clean Amazon URL</title>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Icons&family=Roboto&display=swap"
/>
<link
rel="stylesheet"
href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<a href="https://github.com/lkh42t/clean-amazon-url" id="gh-link">
<!-- https://github.blog/wp-content/uploads/2008/12/forkme_right_red_aa0000.png -->
<img src="img/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
</a>
<h1 class="mdc-typography">Clean Amazon URL</h1>
<label
class="mdc-text-field mdc-text-field--outlined"
data-mdc-auto-init="MDCTextField"
>
<span class="mdc-notched-outline">
<span class="mdc-notched-outline__leading"></span>
<span class="mdc-notched-outline__notch">
<span class="mdc-floating-label" id="url-label">URL</span>
</span>
<span class="mdc-notched-outline__trailing"></span>
</span>
<input
type="url"
class="mdc-text-field__input"
id="url-input"
pattern="https?://(www\.)?amazon\..*/(dp|gp)/.+"
required
aria-labelledby="url-label"
/>
</label>
<button
class="mdc-button mdc-button--outlined"
id="clean-button"
data-mdc-auto-init="MDCRipple"
>
<span class="mdc-button__ripple"></span>
<span class="mdc-button__label">Clean</span>
</button>
<div class="mdc-typography" id="cleaned-url"></div>
<button class="mdc-icon-button material-icons" id="copy-button">
<div class="mdc-icon-button__ripple"></div>
content_copy
</button>
<footer class="mdc-typography">
© 2022 <a href="https://github.com/lkh42t">lkh42t</a>
</footer>
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>
<script>
window.mdc.autoInit();
</script>
<script src="index.js"></script>
</body>
</html>