Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
3
3xa3-group-project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mullen Thomas
3xa3-group-project
Commits
ad4e7255
Commit
ad4e7255
authored
7 years ago
by
RationalCoding
Browse files
Options
Downloads
Plain Diff
Merge branch 'options_branch_changes'
parents
104ecb46
b0ddc18e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/src/options/options.html
+133
-7
133 additions, 7 deletions
src/src/options/options.html
with
133 additions
and
7 deletions
src/src/options/options.html
+
133
−
7
View file @
ad4e7255
<!DOCTYPE html>
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<title>
Options
</title>
</head>
</head>
<body>
<body>
PretzelPass Colour:
<select
id=
"color"
>
<option
value=
"red"
>
red
</option>
<option
value=
"green"
>
green
</option>
<option
value=
"blue"
>
blue
</option>
<option
value=
"yellow"
>
yellow
</option>
</select>
<br>
Generated password length:
<label>
<input
type=
"number"
id=
"passLength"
>
</label>
<form>
<input
type=
"checkbox"
id=
"upperCase"
name=
"upperCase"
value=
"upperCase"
>
A-Z
<br>
<input
type=
"checkbox"
id=
"lowerCase"
name=
"lowerCase"
value=
"lowerCase"
>
a-z
<br>
<input
type=
"checkbox"
id=
"numbers"
name=
"numbers"
value=
"numbers"
>
0-9
<br>
<input
type=
"checkbox"
id=
"symbols"
name=
"symbols"
value=
"symbols"
>
!@#$%^
<br>
</form>
<div
id=
"status"
></div>
<button
id=
"save"
onclick=
"generate()"
>
Generate
</button>
<p
id=
"demo"
></p>
<script>
function
generate
()
{
var
text
=
""
;
var
characters
=
""
;
var
a
=
document
.
getElementById
(
"
passLength
"
).
value
;
var
w
=
document
.
getElementById
(
"
upperCase
"
);
var
x
=
document
.
getElementById
(
"
lowerCase
"
);
var
y
=
document
.
getElementById
(
"
numbers
"
);
var
z
=
document
.
getElementById
(
"
symbols
"
);
if
(
w
.
checked
==
true
&&
x
.
checked
==
true
&&
y
.
checked
==
true
&&
z
.
checked
==
true
)
{
characters
=
"
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*+=
"
;
for
(
var
i
=
0
;
i
<
a
;
i
++
)
text
+=
characters
.
charAt
(
Math
.
floor
(
Math
.
random
()
*
characters
.
length
));
}
else
if
(
w
.
checked
==
false
&&
x
.
checked
==
true
&&
y
.
checked
==
true
&&
z
.
checked
==
true
)
{
characters
=
"
abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*+=
"
;
for
(
var
i
=
0
;
i
<
a
;
i
++
)
text
+=
characters
.
charAt
(
Math
.
floor
(
Math
.
random
()
*
characters
.
length
));
}
else
if
(
w
.
checked
==
true
&&
x
.
checked
==
false
&&
y
.
checked
==
true
&&
z
.
checked
==
true
)
{
characters
=
"
ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*+=
"
;
for
(
var
i
=
0
;
i
<
a
;
i
++
)
text
+=
characters
.
charAt
(
Math
.
floor
(
Math
.
random
()
*
characters
.
length
));
}
else
if
(
w
.
checked
==
true
&&
x
.
checked
==
true
&&
y
.
checked
==
false
&&
z
.
checked
==
true
)
{
characters
=
"
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$%^&*+=
"
;
for
(
var
i
=
0
;
i
<
a
;
i
++
)
text
+=
characters
.
charAt
(
Math
.
floor
(
Math
.
random
()
*
characters
.
length
));
}
else
if
(
w
.
checked
==
true
&&
x
.
checked
==
true
&&
y
.
checked
==
true
&&
z
.
checked
==
false
)
{
characters
=
"
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
"
;
for
(
var
i
=
0
;
i
<
a
;
i
++
)
text
+=
characters
.
charAt
(
Math
.
floor
(
Math
.
random
()
*
characters
.
length
));
}
else
if
(
w
.
checked
==
false
&&
x
.
checked
==
false
&&
y
.
checked
==
true
&&
z
.
checked
==
true
)
{
characters
=
"
0123456789!@#$%^&*+=
"
;
for
(
var
i
=
0
;
i
<
a
;
i
++
)
text
+=
characters
.
charAt
(
Math
.
floor
(
Math
.
random
()
*
characters
.
length
));
}
else
if
(
w
.
checked
==
false
&&
x
.
checked
==
true
&&
y
.
checked
==
false
&&
z
.
checked
==
true
)
{
characters
=
"
abcdefghijklmnopqrstuvwxyz!@#$%^&*+=
"
;
for
(
var
i
=
0
;
i
<
a
;
i
++
)
text
+=
characters
.
charAt
(
Math
.
floor
(
Math
.
random
()
*
characters
.
length
));
}
else
if
(
w
.
checked
==
false
&&
x
.
checked
==
true
&&
y
.
checked
==
true
&&
z
.
checked
==
false
)
{
characters
=
"
abcdefghijklmnopqrstuvwxyz0123456789
"
;
for
(
var
i
=
0
;
i
<
a
;
i
++
)
text
+=
characters
.
charAt
(
Math
.
floor
(
Math
.
random
()
*
characters
.
length
));
}
else
if
(
w
.
checked
==
true
&&
x
.
checked
==
false
&&
y
.
checked
==
false
&&
z
.
checked
==
true
)
{
characters
=
"
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*+=
"
;
for
(
var
i
=
0
;
i
<
a
;
i
++
)
text
+=
characters
.
charAt
(
Math
.
floor
(
Math
.
random
()
*
characters
.
length
));
}
else
if
(
w
.
checked
==
true
&&
x
.
checked
==
false
&&
y
.
checked
==
true
&&
z
.
checked
==
false
)
{
characters
=
"
ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
"
;
for
(
var
i
=
0
;
i
<
a
;
i
++
)
text
+=
characters
.
charAt
(
Math
.
floor
(
Math
.
random
()
*
characters
.
length
));
}
else
if
(
w
.
checked
==
true
&&
x
.
checked
==
true
&&
y
.
checked
==
false
&&
z
.
checked
==
false
)
{
characters
=
"
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
"
;
for
(
var
i
=
0
;
i
<
a
;
i
++
)
text
+=
characters
.
charAt
(
Math
.
floor
(
Math
.
random
()
*
characters
.
length
));
}
else
if
(
w
.
checked
==
false
&&
x
.
checked
==
false
&&
y
.
checked
==
false
&&
z
.
checked
==
true
)
{
characters
=
"
!@#$%^&*+=
"
;
for
(
var
i
=
0
;
i
<
a
;
i
++
)
text
+=
characters
.
charAt
(
Math
.
floor
(
Math
.
random
()
*
characters
.
length
));
}
else
if
(
w
.
checked
==
false
&&
x
.
checked
==
false
&&
y
.
checked
==
true
&&
z
.
checked
==
false
)
{
characters
=
"
0123456789
"
;
for
(
var
i
=
0
;
i
<
a
;
i
++
)
text
+=
characters
.
charAt
(
Math
.
floor
(
Math
.
random
()
*
characters
.
length
));
}
else
if
(
w
.
checked
==
false
&&
x
.
checked
==
true
&&
y
.
checked
==
false
&&
z
.
checked
==
false
)
{
characters
=
"
abcdefghijklmnopqrstuvwxyz
"
;
for
(
var
i
=
0
;
i
<
a
;
i
++
)
text
+=
characters
.
charAt
(
Math
.
floor
(
Math
.
random
()
*
characters
.
length
));
}
else
if
(
w
.
checked
==
true
&&
x
.
checked
==
false
&&
y
.
checked
==
false
&&
z
.
checked
==
false
)
{
characters
=
"
ABCDEFGHIJKLMNOPQRSTUVWXYZ
"
;
for
(
var
i
=
0
;
i
<
a
;
i
++
)
text
+=
characters
.
charAt
(
Math
.
floor
(
Math
.
random
()
*
characters
.
length
));
}
document
.
getElementById
(
"
demo
"
).
innerHTML
=
text
;
}
</script>
<script
src=
"options.js"
></script>
</body>
</body>
<script
src=
"js/index.js"
></script>
</html>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment