Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
web-ui
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WEBGDE-Components
web-ui
Commits
77f64571
Commit
77f64571
authored
Sep 22, 2022
by
Daniel Bawag
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-adhoc' into 'development'
SVI - Web-GDE - beta 2 See merge request
!9
parents
352c654e
cd492710
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
index.html
Web-GDE/index.html
+5
-1
login.html
Web-GDE/login.html
+7
-1
script.js
Web-GDE/script.js
+1
-1
No files found.
Web-GDE/index.html
View file @
77f64571
...
@@ -27,7 +27,11 @@
...
@@ -27,7 +27,11 @@
</head>
</head>
<script>
<script>
fetchConfig
();
if
(
sessionStorage
.
getItem
(
'user_id'
)
===
null
)
{
window
.
location
.
href
=
"./login.html"
;
}
else
{
fetchConfig
();
}
</script>
</script>
<body>
<body>
...
...
Web-GDE/login.html
View file @
77f64571
...
@@ -7,7 +7,13 @@
...
@@ -7,7 +7,13 @@
<script
src=
"https://code.jquery.com/jquery-3.6.0.min.js"
<script
src=
"https://code.jquery.com/jquery-3.6.0.min.js"
integrity=
"sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
crossorigin=
"anonymous"
></script>
integrity=
"sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
crossorigin=
"anonymous"
></script>
<script
src=
"./src/fetchConfig/fetchConfig.js"
></script>
<script
src=
"./src/fetchConfig/fetchConfig.js"
></script>
<script>
fetchConfig
()
</script>
<script>
if
(
sessionStorage
.
getItem
(
'user_id'
)
!==
null
)
{
window
.
location
.
href
=
"./index.html"
;
}
else
{
fetchConfig
();
}
</script>
</head>
</head>
<body>
<body>
<div
class=
"main-div"
>
<div
class=
"main-div"
>
...
...
Web-GDE/script.js
View file @
77f64571
...
@@ -27,7 +27,7 @@ function validateForm() {
...
@@ -27,7 +27,7 @@ function validateForm() {
if
(
windowWidth
>=
REQWINDOWWIDTH
&&
windowHeight
>=
REQWINDOWHEIGHT
&&
browser
==
REQBROWSER
){
if
(
windowWidth
>=
reqWindowWidth
&&
windowHeight
>=
reqWindowHeight
&&
browser
==
reqBrowser
){
for
(
let
i
=
0
;
i
<
credObj
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
credObj
.
length
;
i
++
)
{
// console.log(credObj[i].username + " " + credObj[i].password);
// console.log(credObj[i].username + " " + credObj[i].password);
if
((
un
==
credObj
[
i
].
username
)
&&
(
pw
==
credObj
[
i
].
password
))
{
if
((
un
==
credObj
[
i
].
username
)
&&
(
pw
==
credObj
[
i
].
password
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment