...
 
Commits (4)
.DS_Store
bootstrap-4.0.0_source.0
......@@ -2,6 +2,9 @@ deploy:
only:
- master
variables:
# attention penser à créer les dossiers et à changer le propriétaire
# mkdir -p /home/www/ccopol.fr/{public_html,backup}
# chown
PUBLIC_WWW: /home/www/safetybox_demo/public_html
BACKUP_WWW: /home/www/safetybox_demo/backup
script:
......
......@@ -5,7 +5,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="/favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#0069b4">
<meta name="msapplication-TileColor" content="#0069b4">
<meta name="theme-color" content="#ffffff">
<title>Dashboard</title>
......@@ -23,7 +30,7 @@
<script src="/assets/bootstrap/4.0.0/js/bootstrap.min.js" ></script>
<script>
function contact()
function get_users()
{
var xhr=new XMLHttpRequest(); // creation de l'objet
xhr.open('POST','/assets/php/bddmanager.php', true);
......@@ -39,8 +46,9 @@
var racine = JSON.parse(xhr.responseText);
// var str = JSON.stringify(racine, null, 2);
// document.getElementById("personnerow").innerHTML=str;
$('#personnerow').show();
// $('#personnerow').show();
$('#personnerow').empty();
var lastid = racine.length - 1;
if (racine.length==0)
{
......@@ -52,12 +60,12 @@
for (var i =0; i < racine.length; i++){
$('#personnerow').append(
// '<tr><td>'+racine[i].id+'</td><td>'+racine[i].nom+'</td><td>'+racine[i].prenom+'</td><td>'+racine[i].lieu+'</td><td>'+'</td></tr>'
'<tr><td>'+racine[i].id+'</td><td>'+
racine[i].nom+'</td><td>'+
racine[i].prenom+'</td><td>'+
racine[i].lieu+'</td><td>'+
racine[i].heure+'</td><td>'+
racine[i].mac+'</td><td>'+
'<tr><td>'+racine[lastid - i].id+'</td><td>'+
racine[lastid - i].nom+'</td><td>'+
racine[lastid - i].prenom+'</td><td>'+
racine[lastid - i].lieu+'</td><td>'+
racine[lastid - i].heure+'</td><td>'+
racine[lastid - i].mac+'</td><td>'+
'</td></tr>'
); // fin append
} // for
......@@ -71,7 +79,7 @@
xhr.send("action=print");
return false;
}
var myVar = setInterval(function(){getnbusers()}, 1000);
var myVar = setInterval(function(){getnbusers();get_users()}, 1000);
function getnbusers()
{
......@@ -249,7 +257,7 @@
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pb-2 mb-3 border-bottom">
<h1>Liste inscrits</h1>
<div class="btn-toolbar mb-2 mb-md-0">
<button class="btn btn-sm btn-outline-secondary" id="searchid" onclick="contact()">
<button class="btn btn-sm btn-outline-secondary" id="searchid" onclick="get_users()">
Rafraîchir
</button>
</div>
......
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#2d89ef</TileColor>
</tile>
</msapplication>
</browserconfig>
784f439d0ce2
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="469.000000pt" height="469.000000pt" viewBox="0 0 469.000000 469.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.11, written by Peter Selinger 2001-2013
</metadata>
<g transform="translate(0.000000,469.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M678 4494 c-225 -48 -392 -201 -469 -429 l-24 -70 0 -1650 0 -1650
23 -70 c65 -196 205 -339 404 -413 l73 -27 1630 -2 c1470 -2 1637 -1 1700 13
221 51 381 195 463 416 l27 73 2 1640 c2 1567 2 1643 -16 1705 -25 87 -43 128
-84 192 -92 142 -239 242 -403 273 -113 22 -3225 21 -3326 -1z"/>
</g>
</svg>
......@@ -2,7 +2,7 @@
<?php
header('Location: ../index.html');
$lines = file('../../mac');
$lines = file('../mac');
foreach($lines as $line)
{
$MAC = trim($line);
......
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-384x384.png",
"sizes": "384x384",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}