-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.htm
163 lines (163 loc) · 8.21 KB
/
index.htm
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
161
162
163
<!doctype html>
<!--
Random-Required
Copyright (C) coddec https://github.com/coddec
Free to use/modify/improve/fork (credits/author information must not be removed or modified), no commercial use allowed at all.
For commercial use or other matters, contact me at https://goo.gl/AKt4Vr
-->
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Random-Required</title>
<link rel="stylesheet" href="css/4.0.0-alpha.6-bootstrap.min.css">
<link rel="stylesheet" href="css/4.7.0-font-awesome.min.css">
<script src="js/jquery-3.6.4.slim.min.js"></script>
<script src="js/1.4.0-tether.min.js"></script>
<script src="js/4.0.0-alpha.6-bootstrap.min.js"></script>
</head>
<body>
<div class="container-fluid">
<h1>Random-Required</h1>
<div class="row">
<div class="col"> <br>
<h3>True Random/Pseudo Random Mode</h3>
</div>
</div>
<div class="row" style="background-color:aliceblue;">
<div class="col">
<label class="custom-control custom-checkbox">
<input type="checkbox" name="chkbx_true_random" id="chkbx_true_random" class="custom-control-input">
<span class="custom-control-indicator"></span> <span class="custom-control-description">Check this box to use True Random Mode (crypto) {May freeze browser for seconds while generating large quantity}</span> </label>
</div>
</div>
<div class="row">
<div class="col"> <br>
<h3>Type</h3>
</div>
</div>
<div class="row text-nowrap" style="background-color:aliceblue;">
<div class="col">
<label class="custom-control custom-checkbox">
<input type="checkbox" name="chkbx_type" id="chkbx_typ_num_0to9" class="custom-control-input">
<span class="custom-control-indicator"></span> <span class="custom-control-description">Numbers (0-9)</span> </label>
</div>
<div class="col">
<label class="custom-control custom-checkbox">
<input type="checkbox" name="chkbx_type" id="chkbx_typ_num_2to9" class="custom-control-input">
<span class="custom-control-indicator"></span> <span class="custom-control-description">Numbers (Exclude 0,1)</span> </label>
</div>
<div class="col">
<label class="custom-control custom-checkbox">
<input type="checkbox" name="chkbx_type" id="chkbx_typ_cap_letter_A_Z" class="custom-control-input">
<span class="custom-control-indicator"></span> <span class="custom-control-description">Capital Letters (A-Z)</span> </label>
</div>
<div class="col">
<label class="custom-control custom-checkbox">
<input type="checkbox" name="chkbx_type" id="chkbx_typ_cap_letter_no_I_O" class="custom-control-input">
<span class="custom-control-indicator"></span> <span class="custom-control-description">Capital Letters (Exclude I,O)</span> </label>
</div>
<div class="col">
<label class="custom-control custom-checkbox">
<input type="checkbox" name="chkbx_type" id="chkbx_typ_sml_letter_a_z" class="custom-control-input">
<span class="custom-control-indicator"></span> <span class="custom-control-description">Small Letters (a-z)</span> </label>
</div>
<div class="col">
<label class="custom-control custom-checkbox">
<input type="checkbox" name="chkbx_type" id="chkbx_typ_sml_letter_no_i_o" class="custom-control-input">
<span class="custom-control-indicator"></span> <span class="custom-control-description">Small Letters (Exclude i,o)</span> </label>
</div>
<div class="col">
<label class="custom-control custom-checkbox">
<input type="checkbox" name="chkbx_type" id="chkbx_typ_symbol" class="custom-control-input">
<span class="custom-control-indicator"></span> <span class="custom-control-description">Symbols</span> </label>
</div>
<div class="col">
<label class="custom-control custom-checkbox">
<input type="checkbox" name="chkbx_type" id="chkbx_typ_chinese" class="custom-control-input">
<span class="custom-control-indicator"></span> <span class="custom-control-description">Chinese Characters</span> </label>
</div>
</div>
<div class="row text-nowrap text-center" style="background-color:aliceblue;">
<div class="col">
<span class="custom-control-description">Custom characters: </span>
<input class="form-control" type="text" value="" id="txt_typ_custom_txt">
</div>
</div>
<div class="row text-nowrap text-center" style="background-color:aliceblue;">
<div class="col"> <br>
<button type="button" class="btn btn-danger" onClick="reset_type()" id="btn_reset_type" disabled>Reset Type</button>
</div>
</div>
<div class="row">
<div class="col">
<div id="div_length_settings" style="display:none;">
<h4>Length Settings</h4>
<input type="number" min="1" step="1" name="num_length" id="num_length">
<span class="custom-control-description">Length of the output</span> </div>
</div>
<div id="div_repeatability_settings" style="display:none;">
<h4>Repeatability Settings</h4>
<label class="custom-control custom-radio">
<input type="radio" name="rdio_repeat" id="rdio_repeat" class="custom-control-input">
<span class="custom-control-indicator"></span> <span class="custom-control-description">Same character can appear more than once</span> </label>
<label class="custom-control custom-radio">
<input type="radio" name="rdio_repeat" id="rdio_repeat_no" class="custom-control-input">
<span class="custom-control-indicator"></span> <span class="custom-control-description">Same character can only appear once</span> </label>
</div>
</div>
<div class="row">
<div class="col"><br>
<h3>Reuse of same character</h3>
</div>
</div>
<div class="row" style="background-color:aliceblue;">
<div class="col">
<label class="custom-control custom-checkbox">
<input type="checkbox" name="chkbx_reuse_no" id="chkbx_reuse_no" class="custom-control-input">
<span class="custom-control-indicator"></span> <span class="custom-control-description">Each character can only be used once</span> </label>
</div>
</div>
<div class="row">
<div class="col"><br>
<h3>Output Settings</h3>
</div>
</div>
<div class="row" style="background-color:aliceblue;">
<div class="col"> <span class="custom-control-description">String Length: </span>
<input type="number" id="num_output_string_length" value="1" min="1" step="1" style="width: 200px;">
</div>
<div class="col"> <span class="custom-control-description">Quantity: </span>
<input type="number" id="num_output_quantity" value="1" min="1" step="1" style="width: 200px;">
</div>
</div>
<div class="row">
<div class="col"><br>
<h3>Results:</h3>
</div>
</div>
<div class="row" style="background-color:aliceblue;">
<div class="col">
<textarea class="form-control" id="txtarea_results" rows="10" spellcheck="false"></textarea>
<div class="progress" id="div_progress_bar">
<div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div>
</div>
</div>
</div>
<div class="row text-center">
<div class="col"><br>
<button type="button" class="btn btn-success" onClick="start_job()" id="btn_generate" disabled><span id="span_btn_generate"></span>
<div id="div_btn_generate" style="display: inline;">Generate</div>
</button>
<button type="button" class="btn btn-primary" onClick="copy_result()" id="btn_copy" disabled>Copy</button>
<button type="button" class="btn btn-danger" onClick="reset_all()" id="btn_reset_all" disabled>Reset All</button>
</div>
</div>
<footer class="footer">
<div class="container"> <span class="text-muted">©<a href="https://github.com/coddec/random-required">Random-Reqiured</a> by <a href="https://goo.gl/AKt4Vr">coddec</a></span> </div>
</footer>
</div>
<link href="css/style.css" rel="stylesheet" type="text/css">
<script src="js/function.js" ></script>
</body>
</html>