änderungen
This commit is contained in:
parent
744e421c70
commit
eaafc714cb
5 changed files with 10 additions and 7 deletions
3
index.js
3
index.js
|
@ -51,10 +51,11 @@ app.get('/assets/*', function(req, res){
|
|||
res.sendFile(__dirname + req.originalUrl)
|
||||
})
|
||||
|
||||
|
||||
app.post('/',function(req,res){
|
||||
if(
|
||||
req.body.name === 'Simon' && req.body.pass === 'password' ||
|
||||
req.body.name === 'USER2' && req.body.pass === 'rfcgvhbßä06'
|
||||
req.body.name === 'Suxxi' && req.body.pass === 'GSGSpandau'
|
||||
){
|
||||
req.session.name = req.body.name
|
||||
req.session.pass = req.body.pass
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
|
||||
<link rel="stylesheet" href="/css/main_style.css">
|
||||
<link rel="stylesheet" href="/assets/css/main_style.css">
|
||||
|
||||
|
||||
<div align="center">
|
||||
|
||||
|
||||
<img src="/assets/top.png" align="top">
|
||||
<img src="assets/bleft.png" align="left">
|
||||
<img src="assets/bright.png" align="right">
|
||||
<img src="/assets/bleft.png" align="left">
|
||||
<img src="/assets/bright.png" align="right">
|
||||
|
||||
<table Border = 1 class="col">
|
||||
<tr>
|
||||
|
@ -15,14 +15,16 @@
|
|||
<th>Level</th>
|
||||
<th>Gold</th>
|
||||
<th>Class</th>
|
||||
<th>Aktion</th>
|
||||
<th>Exp</th>
|
||||
</tr>
|
||||
{{#instances}}
|
||||
<tr>
|
||||
<td>{{name}}</td>
|
||||
<td>{{level}}<img src="assets/Arrow.png" align="right"></td>
|
||||
<td>{{gold}}<img src="assets/Gold.png" align="right"></td>
|
||||
<td>{{level}}<img src="/assets/Arrow.png" align="right"></td>
|
||||
<td>{{gold}}<img src="/assets/Gold.png" align="right"></td>
|
||||
<td>{{class}}</td>
|
||||
<td>{{currentAction}}</td>
|
||||
<td><progress value={{exp_percentage}} max="1"></progress></td>
|
||||
</tr>
|
||||
{{/instances}}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Session Management in NodeJS using Express4.2</title>
|
||||
<script src="assets/jquery-3.3.1.min.js"></script>
|
||||
<script src="/assets/js/jquery-3.3.1.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
var name,pass;
|
||||
|
|
Reference in a new issue