diff --git a/css/layout.css b/css/layout.css index 9b23f06..9c4e47a 100755 --- a/css/layout.css +++ b/css/layout.css @@ -125,8 +125,15 @@ body{ /*display: block;*/ display: none; position: fixed; top: 30%; - left: calc( 50% - 500px/2 ); - width: 500px; + left: calc( 50% - 250px/2 ); + width: 250px; + + /* foreground */ + color: #fff; + font-weight: bold; + text-transform: uppercase; + line-height: 3em; + text-shadow: 1px 1px 0 #666; /* z axis */ z-index: 101; @@ -140,8 +147,8 @@ body{ display: block; position: relative; top: 0; - left: 25%; - width: calc( 50% - 2*.8em ); + left: 0; + width: calc( 100% - 2*.8em ); margin-bottom: 2em; padding: .8em; @@ -169,7 +176,7 @@ body{ /* SUBMIT */ #AUTH input[type=submit]{ /* position */ - width: 50%; + width: 100%; /* foreground */ color: #fff; diff --git a/index.php b/index.php index 9db9c62..44611b9 100755 --- a/index.php +++ b/index.php @@ -1,6 +1,12 @@ - 1 && strlen($_POST['password']) > 1; // d'au moins 2 caractères +if( $postNotEmpty ){ + $userlist = file_get_contents('src/userlist.json'); +} // $_SERVER['HTTP_USER_AGENT']; // dépends du navigateur (version, système X, OS) // $_SERVER['REMOTE_ADDR']; // ip publique de l'utilisateur @@ -51,13 +57,19 @@ Paramètres - Authentification + 1 ) + echo ''.$_SESSION['username'].''; + else + echo "Authentificaiton"; + ?>
+ Connection diff --git a/js/actionScript.js b/js/actionScript.js index b40b213..3e4b293 100644 --- a/js/actionScript.js +++ b/js/actionScript.js @@ -11,7 +11,8 @@ var DOM = { /* GESTION DE L'AFFICHAGE DU LOGIN */ DOM.authBtn.addEventListener('click', function(e){ // clic sur "Authentification" e.preventDefault(); // désactive l'action par défaut - DOM.loginFltr.className = 'active'; + if( e.target.className == 'active' ) + DOM.loginFltr.className = 'active'; }, false); /* GESTION DE CACHAGE DU LOGIN */