forked from La_Bureautique/zeg1jeux
La Bureautique, c'est mieux que le gin tonic.
This commit is contained in:
parent
08d55f366b
commit
a2e2d4583f
|
@ -8,7 +8,7 @@ error_reporting(E_ALL);
|
||||||
|
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
define('DEFAULT_RADIUS', 10);
|
define('DEFAULT_RADIUS', 100);
|
||||||
|
|
||||||
define('TAILLE_SPRITE', 32);
|
define('TAILLE_SPRITE', 32);
|
||||||
define('DEMI_TAILLE_SPRITE', (TAILLE_SPRITE/2));
|
define('DEMI_TAILLE_SPRITE', (TAILLE_SPRITE/2));
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>La bureautique</title>
|
<title>La bureautique</title>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
echo '
|
echo '
|
||||||
|
|
||||||
|
@ -10,6 +11,10 @@
|
||||||
|
|
||||||
';
|
';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="themes/layout.css" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="themes/deco.css" />
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
</head>
|
</head>
|
||||||
<?php
|
<?php
|
||||||
|
|
26
index.php
26
index.php
|
@ -5,7 +5,7 @@ require_once('config.php');
|
||||||
require_once('lib/Gchange.class.php');
|
require_once('lib/Gchange.class.php');
|
||||||
require_once('lib/Location.class.php');
|
require_once('lib/Location.class.php');
|
||||||
|
|
||||||
$bodyIds = 'home';
|
$bodyIds = 'startpage';
|
||||||
include_once('header.php');
|
include_once('header.php');
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,25 +18,37 @@ echo '
|
||||||
À quel jeu voulez-vous jouer ?
|
À quel jeu voulez-vous jouer ?
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<dl>';
|
<ul id="games-list">';
|
||||||
|
|
||||||
foreach ($games as $gameId => $game) {
|
foreach ($games as $gameId => $game) {
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
<dt>
|
<li class="game">
|
||||||
|
<h2>
|
||||||
<a href="select_game.php?gameId='. $gameId .'">
|
<a href="select_game.php?gameId='. $gameId .'">
|
||||||
|
<span>
|
||||||
'. $game['title'] .'
|
'. $game['title'] .'
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</dt>
|
</h2>
|
||||||
<dd>
|
|
||||||
|
<p>
|
||||||
|
<img
|
||||||
|
src="themes/'. $gameId . '/game-icon.png"
|
||||||
|
alt="'. $game['title'] .'"
|
||||||
|
/>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
'. $game['description'] .'
|
'. $game['description'] .'
|
||||||
</dd>
|
</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
';
|
';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
</dl>';
|
</ul>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* https://github.com/duniter/cesium-plus-pod/blob/master/src/site/markdown/REST_API.md
|
||||||
|
*/
|
||||||
|
|
||||||
require_once('DAO.class.php');
|
require_once('DAO.class.php');
|
||||||
|
|
||||||
|
@ -11,6 +14,8 @@ class CesiumPlus {
|
||||||
$this->dao = DAO::getInstance();
|
$this->dao = DAO::getInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function
|
||||||
|
/*
|
||||||
public function getNearbyUsers ($lat, $lon, $radius) {
|
public function getNearbyUsers ($lat, $lon, $radius) {
|
||||||
|
|
||||||
$n = 15;
|
$n = 15;
|
||||||
|
@ -47,4 +52,5 @@ class CesiumPlus {
|
||||||
|
|
||||||
return $result->hits->hits;
|
return $result->hits->hits;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* https://github.com/duniter/duniter-bma/blob/master/doc/API.md
|
||||||
|
*/
|
||||||
|
|
||||||
date_default_timezone_set('Europe/Paris');
|
date_default_timezone_set('Europe/Paris');
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* https://github.com/duniter-gchange/gchange-pod/blob/master/src/site/markdown/REST_API.md
|
||||||
|
*/
|
||||||
|
|
||||||
require_once('DAO.class.php');
|
require_once('DAO.class.php');
|
||||||
require_once('GchangeUser.class.php');
|
require_once('GchangeUser.class.php');
|
||||||
|
|
33
login.php
33
login.php
|
@ -30,46 +30,33 @@ if (isset($_POST['salt'], $_POST['pepper'])) {
|
||||||
include_once('header.php');
|
include_once('header.php');
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
<form method="post" action="">';
|
<form method="post" action="">
|
||||||
|
|
||||||
/*
|
<fieldset>
|
||||||
|
<legend>Identification par Ğchange</legend>
|
||||||
|
|
||||||
<p>
|
|
||||||
<label>Joueur :
|
|
||||||
<select name="player">';
|
|
||||||
|
|
||||||
foreach ($players as $p) {
|
|
||||||
|
|
||||||
echo '<option value="'. $p->getPubkey() .'">'. $p->getName() .'</option>';
|
|
||||||
}
|
|
||||||
|
|
||||||
echo '
|
|
||||||
|
|
||||||
</select>
|
|
||||||
</label>
|
|
||||||
</p>
|
|
||||||
*/
|
|
||||||
|
|
||||||
echo '
|
|
||||||
<p>
|
<p>
|
||||||
<label>
|
<label>
|
||||||
Sel :
|
Identifiant :
|
||||||
<input type="text" name="salt" />
|
<input type="text" name="salt" />
|
||||||
</label>
|
</label>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<label>
|
<label>
|
||||||
Poivre:
|
Mot de passe :
|
||||||
<input type="text" name="pepper" />
|
<input type="password" name="pepper" />
|
||||||
</label>
|
</label>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<input type="submit" />
|
<input type="submit" value="Jouer" />
|
||||||
</p>
|
</p>
|
||||||
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
';
|
';
|
||||||
|
|
||||||
|
include_once('footer.php');
|
||||||
|
|
||||||
}
|
}
|
|
@ -0,0 +1,31 @@
|
||||||
|
body#startpage {
|
||||||
|
|
||||||
|
background: hsl(0, 0%, 5%);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
body#startpage a,
|
||||||
|
body#startpage a:visited {
|
||||||
|
|
||||||
|
color: white;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body#startpage #games-list .game {
|
||||||
|
|
||||||
|
border-style: solid;
|
||||||
|
border-color: yellow;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
body#startpage #games-list .game:hover {
|
||||||
|
|
||||||
|
background-color: yellow;
|
||||||
|
}
|
||||||
|
|
||||||
|
body#startpage #games-list .game:hover,
|
||||||
|
body#startpage #games-list .game:hover a {
|
||||||
|
|
||||||
|
color: black;
|
||||||
|
}
|
|
@ -0,0 +1,56 @@
|
||||||
|
body#startpage
|
||||||
|
{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
body#startpage ul#games-list {
|
||||||
|
|
||||||
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body#startpage ul#games-list li {
|
||||||
|
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body#startpage #games-list {
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
body#startpage #games-list .game {
|
||||||
|
|
||||||
|
width: 31.333%;
|
||||||
|
margin-left: 1%;
|
||||||
|
margin-right: 1%;
|
||||||
|
|
||||||
|
border-width: 0.125rem ;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
body#startpage #games-list .game h2 {
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
body#startpage #games-list .game h2 a {
|
||||||
|
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
body#startpage #games-list .game h2 + * {
|
||||||
|
|
||||||
|
margin-top: 4rem;
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
|
@ -276,3 +276,39 @@ main {
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#login-page input {
|
||||||
|
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#login-page {
|
||||||
|
|
||||||
|
height: 100vh;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
align-items: center;
|
||||||
|
flex-shrink: 1;
|
||||||
|
flex-basis: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#login-page footer {
|
||||||
|
|
||||||
|
justify-self: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
#login-page main {
|
||||||
|
|
||||||
|
flex-basis: 100vh;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#login-page fieldset {
|
||||||
|
|
||||||
|
border-width: 0;
|
||||||
|
}
|
Loading…
Reference in New Issue