-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
117 lines (102 loc) · 7.62 KB
/
index.html
File metadata and controls
117 lines (102 loc) · 7.62 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="title" content="Random Decimal Hex Binary and String Generator">
<meta name="description" content="A beautifully simple, perfectly centered, and accessible Random Decimal Hex Binary and String Generator that produces unique, non-repeating outputs in multiple formats — decimal numbers, hexadecimal, binary, and alphanumeric strings. Every result is guaranteed unique per mode and length on each device.">
<meta name="keywords" content="Random Numbers, Random Hexadecimal Numbers, Random Decimal Numbers, Random Strings, Random Binary Numbers, Random Number Generator">
<meta name="image" content="https://raw.githubusercontent.com/harsh98trivedi/Random-Decimal-Hex-Binary-and-String-Generator/master/meta.jpg">
<!-- Open Graph general (Facebook, Pinterest) -->
<meta name="og:title" content="Random Decimal Hex Binary and String Generator">
<meta name="og:description" content="A beautifully simple, perfectly centered, and accessible Random Decimal Hex Binary and String Generator that produces unique, non-repeating outputs in multiple formats — decimal numbers, hexadecimal, binary, and alphanumeric strings. Every result is guaranteed unique per mode and length on each device.">
<meta name="og:image" content="https://raw.githubusercontent.com/harsh98trivedi/Random-Decimal-Hex-Binary-and-String-Generator/master/meta.jpg">
<meta name="og:image:alt" content="Random Decimal Hex Binary and String Generator">
<meta name="og:site_name" content="Random Decimal Hex Binary and String Generator">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Random Decimal Hex Binary and String Generator">
<meta name="twitter:description" content="A beautifully simple, perfectly centered, and accessible Random Decimal Hex Binary and String Generator that produces unique, non-repeating outputs in multiple formats — decimal numbers, hexadecimal, binary, and alphanumeric strings. Every result is guaranteed unique per mode and length on each device.">
<meta name="twitter:image:src" content="https://raw.githubusercontent.com/harsh98trivedi/Random-Decimal-Hex-Binary-and-String-Generator/master/meta.jpg">
<!-- Search Engine -->
<meta name="description" content="A beautifully simple, perfectly centered, and accessible Random Decimal Hex Binary and String Generator that produces unique, non-repeating outputs in multiple formats — decimal numbers, hexadecimal, binary, and alphanumeric strings. Every result is guaranteed unique per mode and length on each device.">
<meta name="image" content="https://raw.githubusercontent.com/harsh98trivedi/Random-Decimal-Hex-Binary-and-String-Generator/master/meta.jpg">
<!-- Schema.org for Google -->
<meta itemprop="name" content="Random Decimal Hex Binary and String Generator">
<meta itemprop="description" content="A beautifully simple, perfectly centered, and accessible Random Decimal Hex Binary and String Generator that produces unique, non-repeating outputs in multiple formats — decimal numbers, hexadecimal, binary, and alphanumeric strings. Every result is guaranteed unique per mode and length on each device.">
<meta itemprop="image" content="https://raw.githubusercontent.com/harsh98trivedi/Random-Decimal-Hex-Binary-and-String-Generator/master/meta.jpg">
<meta name="revisit-after" content="30 days">
<title>Random Decimal Hex Binary and String Generator</title>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1 user-scalable=no, shrink-to-fit=no">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" />
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"></script>
<link rel="stylesheet" href="style.css" />
<link rel="shortcut icon" href="favicon.png" />
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-45C37D3GB5"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-45C37D3GB5');
</script>
</head>
<body>
<div class="app-wrap">
<main class="main-content" role="main" aria-label="Random Number Generator App">
<a href="https://harsh98trivedi.github.io/Random-Decimal-Hex-Binary-and-String-Generator/" aria-label="Project Homepage">
<img src="favicon.png" alt="Random Generator Logo" class="logo" />
</a>
<h1 class="title">Random Decimal Hex Binary and String Generator</h1>
<p class="subtitle" id="desc">
Instantly generate random Decimal, Hexadecimal, Binary, and String values.
</p>
<nav aria-label="Mode selector" class="modes">
<button class="modeBtn active" data-mode="decimal" aria-pressed="true">Decimal</button>
<button class="modeBtn" data-mode="hex" aria-pressed="false">Hex</button>
<button class="modeBtn" data-mode="binary" aria-pressed="false">Binary</button>
<button class="modeBtn" data-mode="string" aria-pressed="false">String</button>
</nav>
<section id="presets" aria-label="Length presets" class="presets"></section>
<section class="controls" aria-label="Length controls and options">
<input type="range" id="digit-slider" min="1" max="20" value="5" aria-valuemin="1" aria-valuemax="20" aria-valuenow="5" />
<input type="number" id="digit-count" min="1" max="20" value="5" aria-labelledby="length-label" />
<input type="number" id="max-slider" min="1" max="1000" value="20" aria-label="Maximum length" />
</section>
<!-- FLEX ROW modern toggles -->
<section class="toggles-row">
<label class="toggle-switch">
<input type="checkbox" id="auto-copy-toggle" />
<span class="slider"></span>
<span class="toggle-label-text">Copy On Load</span>
</label>
<label class="toggle-switch">
<input type="checkbox" id="dark-mode-toggle" />
<span class="slider"></span>
<span class="toggle-label-text">Dark Mode</span>
</label>
</section>
<section class="actions">
<button id="generate-btn" class="actionBtn main">
<i id="dice-icon" class="fas fa-dice fa-lg"></i> Roll
</button>
<button id="copy-btn" class="actionBtn">
<i id="copy-icon" class="far fa-copy fa-lg"></i> Copy
</button>
</section>
<section class="actions secondary-actions">
<button id="roll-copy-btn" class="actionBtn">
<i id="roll-copy-icon" class="fas fa-bolt fa-lg"></i> Roll & Copy
</button>
</section>
<div id="number-display" class="unboxed-output" tabindex="0" aria-live="polite" aria-atomic="true">-----</div>
<div id="copy-msg" class="copy-msg-overlay" role="alert" aria-live="assertive">Copied!</div>
</main>
</div>
<footer class="footer" role="contentinfo">
Made with <i class="fa-solid fa-heart" aria-label="love" style="color:#c00; vertical-align: middle;"></i> by <a href="https://harsh98trivedi.github.io" target="_blank" rel="noopener noreferrer">Harsh Trivedi</a>
</footer>
<script src="app.js"></script>
</body>
</html>