Skip to content

Commit

Permalink
few bugs fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
RohitM-IN committed Sep 3, 2020
1 parent 5f9e6ad commit 7271273
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 244 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.env
js/db.js
lib/config_paytm.php
db.js
config_paytm.php
1 change: 1 addition & 0 deletions TxnStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<link rel="stylesheet" href="css/nav.css">
<script src="https://www.gstatic.com/firebasejs/7.17.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.17.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.17.0/firebase-firestore.js"></script>
<script src="js/db.js"></script>
<script src="js/checklogin.js"></script>
</head>
Expand Down
30 changes: 1 addition & 29 deletions js/login.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
var auth = firebase.auth();



onauthchange();



const login = document.querySelector('#login');
login.addEventListener('submit', (e) => {
e.preventDefault();
Expand All @@ -21,26 +15,4 @@ login.addEventListener('submit', (e) => {
sessionStorage.setItem("uid", cred.user.uid);
window.location = 'dashboard.php'
})
})

const log_in = document.getElementById("in");
log_in.addEventListener('click', (e) => {
e.preventDefault();
onauthchange();
})



function onauthchange() {
auth.onAuthStateChanged(user => {
if (user) {
log_in.className.add = 'd-none'
out.className.remove = 'd-none'

}
if (!user) {
log_in.className.remove = 'd-none'
out.className.add = 'd-none'
}
})
}
})
2 changes: 1 addition & 1 deletion js/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ auth.onAuthStateChanged(user => {

function createcell(cell) {
if (!del) emptytable()
$("table tbody").append(cell)
$("#ipi-table > tbody").append(cell)
$("table").trigger("update");
}

Expand Down
212 changes: 0 additions & 212 deletions table.php

This file was deleted.

0 comments on commit 7271273

Please sign in to comment.