Site
- Add multi local game - Some minor changes in html/css Django - add path for /game and /multiLocalGamePage - add template for multiLocalGame
This commit is contained in:
@ -10,6 +10,7 @@
|
||||
<link rel='stylesheet' type='text/css' href='/static/style/homePage/loginPage.css'>
|
||||
<link rel='stylesheet' type='text/css' href='/static/style/global/notification.css'>
|
||||
<link rel='stylesheet' type='text/css' href='/static/style/lobbyPage/lobbyPage.css'>
|
||||
<link rel='stylesheet' type='text/css' href='/static/style/game/games.css'>
|
||||
<script type="module" src='/static/javascript/main.js'></script>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
|
@ -39,10 +39,15 @@
|
||||
<div id="goal">
|
||||
|
||||
</div>
|
||||
<div class="switch">
|
||||
<input id="checkbox1" class="look" type="checkbox">
|
||||
<label for="checkbox1"></label>
|
||||
<p>Fix the camera on the bar</p>
|
||||
<div class="bottom">
|
||||
<div class="switch">
|
||||
<input id="checkbox1" class="look" type="checkbox">
|
||||
<label for="checkbox1"></label>
|
||||
<p>Fix the camera on the bar</p>
|
||||
</div>
|
||||
<div class="buttonStartGame">
|
||||
<p>Start</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -0,0 +1,3 @@
|
||||
<body>
|
||||
<p id="score"></p>
|
||||
</body>
|
@ -21,6 +21,8 @@ urlpatterns = [
|
||||
path("",views.index, name='index'),
|
||||
path("homePage",views.homePage, name='homePage'),
|
||||
path("lobbyPage", views.lobbyPage, name='lobbyPage'),
|
||||
path("multiLocalGamePage", views.multiLocalGamePage, name='multiLocalGamePage'),
|
||||
path("game", views.game, name='game'),
|
||||
path("login42", views.login42, name='login42'),
|
||||
path("logout", views.logout, name='logout'),
|
||||
path("verify", views.verify, name='verify'),
|
||||
|
@ -30,6 +30,18 @@ def lobbyPage(request):
|
||||
return(HttpResponse("you are not logged in",status=403))
|
||||
return render(request, "lobbyPage.html", {})
|
||||
|
||||
def multiLocalGamePage(request):
|
||||
if(request.method != "POST"):
|
||||
return index(request)
|
||||
if(not request.session.get("logged_in", False)):
|
||||
return(HttpResponse("you are not logged in",status=403))
|
||||
return render(request, "multiLocalGamePage.html", {})
|
||||
|
||||
def game(request):
|
||||
if(not request.session.get("logged_in", False)):
|
||||
return(HttpResponse("you are not logged in",status=403))
|
||||
return redirect("/lobby")
|
||||
|
||||
def verify(request):
|
||||
req_token = request.GET.get('token', None)
|
||||
if(req_token == None):
|
||||
|
Reference in New Issue
Block a user