Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-060
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-060
2021-060
Commits
af6c59f4
Commit
af6c59f4
authored
Sep 17, 2021
by
Dhananjaya Jayashanka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update master branch
parent
4f072714
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
269 additions
and
17 deletions
+269
-17
UI/DbConnection.js
UI/DbConnection.js
+1
-4
UI/login test.html
UI/login test.html
+266
-0
UI/login.html
UI/login.html
+2
-13
No files found.
UI/
form
.js
→
UI/
DbConnection
.js
View file @
af6c59f4
...
...
@@ -17,7 +17,6 @@ var firebaseConfig = {
// Initialize Firebase
firebase
.
initializeApp
(
firebaseConfig
);
const
auth
=
firebase
.
auth
();
//signup function
...
...
@@ -36,13 +35,11 @@ firebase.initializeApp(firebaseConfig);
var
password
=
document
.
getElementById
(
"
password
"
);
const
promise
=
auth
.
signInWithEmailAndPassword
(
email
.
value
,
password
.
value
);
promise
.
catch
(
e
=>
alert
(
e
.
message
));
alert
(
"
SignUp In Successfully
"
+
email
);
alert
(
"
SignUp In Successfully
"
);
}
//signOut
function
signOut
(){
auth
.
signOut
();
alert
(
"
SignOut Successfully from System
"
);
...
...
UI/login test.html
0 → 100644
View file @
af6c59f4
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
" viewport"
content=
"width=device-width, initial-scale=1.0"
>
<script
src=
"https://www.gstatic.com/firebasejs/8.2.7/firebase-app.js"
></script>
<script
src=
"https://www.gstatic.com/firebasejs/8.2.7/firebase-auth.js"
></script>
<script
src=
"DbConnection.js"
></script>
<title>
Login
</title>
<meta
content=
""
name=
"description"
/>
<meta
content=
""
name=
"keywords"
/>
<!-- Favicons -->
<link
href=
"assets/img/favicon.png"
rel=
"icon"
/>
<link
href=
"assets/img/apple-touch-icon.png"
rel=
"apple-touch-icon"
/>
<!-- Google Fonts -->
<link
href=
"https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,500,500i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i"
rel=
"stylesheet"
/>
<!-- Vendor CSS Files -->
<link
href=
"assets/vendor/aos/aos.css"
rel=
"stylesheet"
/>
<link
href=
"assets/vendor/bootstrap/css/bootstrap.min.css"
rel=
"stylesheet"
/>
<link
href=
"assets/vendor/bootstrap-icons/bootstrap-icons.css"
rel=
"stylesheet"
/>
<link
href=
"assets/vendor/boxicons/css/boxicons.min.css"
rel=
"stylesheet"
/>
<link
href=
"assets/vendor/glightbox/css/glightbox.min.css"
rel=
"stylesheet"
/>
<link
href=
"assets/vendor/remixicon/remixicon.css"
rel=
"stylesheet"
/>
<link
href=
"assets/vendor/swiper/swiper-bundle.min.css"
rel=
"stylesheet"
/>
<!-- Template Main CSS File -->
<link
href=
"assets/css/style.css"
rel=
"stylesheet"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"http://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<!-- bootstrap -->
<link
rel=
"stylesheet"
href=
"https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity=
"
sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk"
crossorigin=
"anonymous"
/>
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"
></script>
<!-- Popper JS -->
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"
></script>
<!-- Latest compiled JavaScript -->
<script
src=
"https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"
></script>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<!-- Font Awesome -->
<link
rel=
"stylesheet"
href=
"../plugins/fontawesome-free/css/all.min.css"
/>
<!-- Ionicons -->
<link
rel=
"stylesheet"
href=
"https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"
/>
<link
rel=
"stylesheet"
href=
"https://use.fontawesome.com/releases/v5.6.3/css/all.css"
integrity=
"sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/"
crossorigin=
"anonymous"
/>
<!-- Theme style -->
<link
rel=
"stylesheet"
href=
"../dist/css/adminlte.min.css"
/>
<!-- Google Font: Source Sans Pro -->
<link
href=
"https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700"
rel=
"stylesheet"
/>
<script
src=
"lib/sweetalert2-9.15.2/package/dist/sweetalert2.all.min.js"
></script>
<!-- Optional: include a polyfill for ES6 Promises for IE11 -->
<!--<script src="https://cdn.jsdelivr.net/npm/promise-polyfill"></script> -->
<script
src=
"lib/sweetalert2-9.15.2/package/dist/sweetalert2.min.js"
></script>
<link
rel=
"stylesheet"
href=
"lib/sweetalert2-9.15.2/package/dist/sweetalert2.min.css"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<style>
body
{
animation
:
transitionIn
2s
;
}
@keyframes
transitionIn
{
from
{
opacity
:
0
;
transform
:
rotateX
(
-10deg
);
}
to
{
opacity
:
1
;
transform
:
rotateX
(
0
);
}
}
</style>
</head>
<body>
<!-- ======= Header ======= -->
<header
id=
"header"
class=
"fixed-top"
>
<div
class=
"container d-flex align-items-center justify-content-between"
>
<h1
class=
"logo"
><a
href=
"index.html"
>
SPEECH MASTER
</a></h1>
<!-- Uncomment below if you prefer to use an image logo -->
<!-- <a href="index.html" class="logo"><img src="assets/img/logo.png" alt="" class="img-fluid"></a>-->
<nav
id=
"navbar"
class=
"navbar"
>
<ul>
<li><a
class=
"nav-link scrollto"
href=
"#hero"
>
Home
</a></li>
<li><a
class=
"nav-link scrollto"
href=
"#about"
>
About
</a></li>
<li><a
class=
"nav-link scrollto"
href=
"#services"
>
Services
</a></li>
<li><a
class=
"nav-link scrollto"
href=
"#pricing"
>
Pricing
</a></li>
<li><a
class=
"nav-link scrollto"
href=
"#contact"
>
Contact
</a></li>
<li>
<a
class=
"getstarted scrollto"
href=
"#about"
>
Get Started
</a>
</li>
</ul>
<i
class=
"bi bi-list mobile-nav-toggle"
></i>
</nav>
<!-- .navbar -->
</div>
</header>
<!-- End Header -->
<br>
<br>
<h1>
Enter Credentials Here:
</h1>
<input
type=
"email"
placeholder=
"email here"
id=
"email"
><br>
<input
type=
"password"
placeholder=
"password here"
id=
"password"
><br>
<button
onclick=
"signUp()"
id=
"signUp"
>
SignUp
</button>
<button
onclick=
"signIn()"
id=
"signIp"
>
SignIn
</button>
<button
onclick=
"signOut()"
id=
"signOut"
>
SignOut
</button>
<!-- ======= Footer ======= -->
<footer
id=
"footer"
>
<div
class=
"footer-top"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-lg-3 col-md-6 footer-contact"
>
<h3>
SPEECH MASTER
</h3>
<p>
SLIIT Mabalbe
<br
/>
<br
/><br
/>
<strong>
Phone:
</strong>
+94 705694853
<br
/>
<strong>
Email:
</strong>
janithaalas@gmail.com
<br
/>
</p>
</div>
<div
class=
"col-lg-2 col-md-6 footer-links"
>
<h4>
Useful Links
</h4>
<ul>
<li>
<i
class=
"bx bx-chevron-right"
></i>
<a
href=
"#"
>
Home
</a>
</li>
<li>
<i
class=
"bx bx-chevron-right"
></i>
<a
href=
"#"
>
About us
</a>
</li>
<li>
<i
class=
"bx bx-chevron-right"
></i>
<a
href=
"#"
>
Services
</a>
</li>
<li>
<i
class=
"bx bx-chevron-right"
></i>
<a
href=
"#"
>
Terms of service
</a>
</li>
<li>
<i
class=
"bx bx-chevron-right"
></i>
<a
href=
"#"
>
Privacy policy
</a>
</li>
</ul>
</div>
<div
class=
"col-lg-3 col-md-6 footer-links"
>
<h4>
Our Services
</h4>
<ul>
<li>
<i
class=
"bx bx-chevron-right"
></i>
<a
href=
"#"
>
Content Analyzing
</a>
</li>
<li>
<i
class=
"bx bx-chevron-right"
></i>
<a
href=
"#"
>
Facial Expressions Analyzing
</a>
</li>
<li>
<i
class=
"bx bx-chevron-right"
></i>
<a
href=
"#"
>
Grammer Checking
</a>
</li>
<li>
<i
class=
"bx bx-chevron-right"
></i>
<a
href=
"#"
>
Filler Words Tracking
</a>
</li>
<li>
<i
class=
"bx bx-chevron-right"
></i>
<a
href=
"#"
>
Customized Report
</a>
</li>
</ul>
</div>
<div
class=
"col-lg-4 col-md-6 footer-newsletter"
>
<h4>
Join Our Newsletter
</h4>
<p>
Tamen quem nulla quae legam multos aute sint culpa legam noster
magna
</p>
<form
action=
""
method=
"post"
>
<input
type=
"email"
name=
"email"
/><input
type=
"submit"
value=
"Subscribe"
/>
</form>
</div>
</div>
</div>
</div>
<div
class=
"container d-md-flex py-4"
>
<div
class=
"me-md-auto text-center text-md-start"
>
<div
class=
"copyright"
>
©
Copyright
<strong><span>
SPEECH MASTER
</span></strong
>
. All Rights Reserved
</div>
<div
class=
"credits"
>
<!-- All the links in the footer should remain intact. -->
<!-- You can delete the links only if you purchased the pro version. -->
<!-- Licensing information: https://bootstrapmade.com/license/ -->
<!-- Purchase the pro version with working PHP/AJAX contact form: https://bootstrapmade.com/onepage-multipurpose-bootstrap-template/ -->
Designed by
<a
href=
"https://www.sliit.lk/"
>
SLIIT 2017 Batch
</a>
</div>
</div>
<div
class=
"social-links text-center text-md-right pt-3 pt-md-0"
>
<a
href=
"#"
class=
"twitter"
><i
class=
"bx bxl-twitter"
></i></a>
<a
href=
"#"
class=
"facebook"
><i
class=
"bx bxl-facebook"
></i></a>
<a
href=
"#"
class=
"instagram"
><i
class=
"bx bxl-instagram"
></i></a>
<a
href=
"#"
class=
"google-plus"
><i
class=
"bx bxl-skype"
></i></a>
<a
href=
"#"
class=
"linkedin"
><i
class=
"bx bxl-linkedin"
></i></a>
</div>
</div>
</footer>
<!-- End Footer -->
</body>
</html>
\ No newline at end of file
UI/login.html
View file @
af6c59f4
...
...
@@ -2,7 +2,6 @@
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
content=
"width=device-width, initial-scale=1.0"
name=
"viewport"
/>
<title>
Login
</title>
...
...
@@ -99,12 +98,6 @@
<!-- Optional: include a polyfill for ES6 Promises for IE11 -->
<!--<script src="https://cdn.jsdelivr.net/npm/promise-polyfill"></script> -->
<script
src=
"lib/sweetalert2-9.15.2/package/dist/sweetalert2.min.js"
></script>
<!-- Db connection-->
<script
src=
"https://www.gstatic.com/firebasejs/8.2.7/firebase-app.js"
></script>
<script
src=
"https://www.gstatic.com/firebasejs/8.2.7/firebase-auth.js"
></script>
<script
src=
"form.js"
></script>
<link
rel=
"stylesheet"
href=
"lib/sweetalert2-9.15.2/package/dist/sweetalert2.min.css"
...
...
@@ -168,7 +161,7 @@
<!-- Email -->
<input
type=
"email"
id=
"
e
mail"
id=
"
defaultLoginFormE
mail"
class=
"form-control mb-4"
placeholder=
"E-mail"
/>
...
...
@@ -176,7 +169,7 @@
<!-- Password -->
<input
type=
"password"
id=
"
p
assword"
id=
"
defaultLoginFormP
assword"
class=
"form-control mb-4"
placeholder=
"Password"
/>
...
...
@@ -208,10 +201,6 @@
Sign in
</button></a> -->
<button
onclick=
"signUp()"
id=
"signUp"
>
SignUp
</button>
<button
onclick=
"signIn()"
id=
"signIp"
>
SignIn
</button>
<button
onclick=
"signOut()"
id=
"signOut"
>
SignOut
</button>
<a
href=
"fileUploaderFinal.html"
class=
"btn btn-info btn-block my-4"
...
...
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