invite auto redirect
This commit is contained in:
parent
e97fb4ce2e
commit
51e8fe7ad3
@ -21,6 +21,7 @@ var config = {
|
||||
|
||||
//verifyInvite(last_segment);
|
||||
getList(last_segment);
|
||||
verifyInvite(last_segment);
|
||||
|
||||
|
||||
function verifyInvite(link) {
|
||||
@ -34,12 +35,13 @@ var config = {
|
||||
link: link
|
||||
},
|
||||
success(){
|
||||
// window.location.href = "/dash/" + idtoken
|
||||
alert("Success");
|
||||
window.location.href = "/dash/" + idtoken
|
||||
//alert("Success");
|
||||
},
|
||||
error(err){
|
||||
console.error("Error: " + err);
|
||||
alert("Error");
|
||||
//alert("Error");
|
||||
window.location.href = "/dash/" + idtoken
|
||||
}
|
||||
});
|
||||
}).catch((error) => console.error("Get id token client error: ", error));}else{console.log("Check Auth error", user)}});
|
||||
|
8
express-server/public/invite/style.css
Normal file
8
express-server/public/invite/style.css
Normal file
@ -0,0 +1,8 @@
|
||||
body {
|
||||
background-color: #121212;
|
||||
display:none;
|
||||
}
|
||||
|
||||
.cont {
|
||||
background-color: #f5f5f5;
|
||||
}
|
@ -6,16 +6,52 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Document</title>
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
|
||||
|
||||
<script src="https://www.gstatic.com/firebasejs/5.7.0/firebase.js"></script>
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
|
||||
<script src="/invite/inv.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="/invite/style.css">
|
||||
|
||||
|
||||
<!--Import Google Icon Font-->
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
|
||||
|
||||
<!--Let browser know website is optimized for mobile-->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<!-- Compiled and minified CSS -->
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
|
||||
|
||||
<!-- Compiled and minified JavaScript -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
<div class="container cont z-depth-4">
|
||||
<div class="col s12 head">
|
||||
<p class="s_name">Name: </p>
|
||||
<p class="s_desc">Description: </p>
|
||||
<p class="s_link">Invite Link: </p>
|
||||
</div>
|
||||
|
||||
<div class="row col s12 foot">
|
||||
<div class="col s12 m6 cancelinvite waves-effect waves-light deep-orange darken-1">
|
||||
Cancel Invite
|
||||
</div>
|
||||
|
||||
<div class="col s12 m6 confirminvite waves-effect waves-light light-blue darken-1 btn_verify">
|
||||
Confirm Invite
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<button class="btn_verify">Join to this Shoppinglist</button>
|
||||
</body>
|
||||
</html>
|
@ -65,7 +65,7 @@
|
||||
|
||||
|
||||
<div class="fixed-action-btn">
|
||||
<a class="btn-floating btn-large red btndash">
|
||||
<a class="btn-floating btn-large btndash">
|
||||
<i class="large material-icons blue-grey darken-4">arrow_back</i>
|
||||
</a>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user