1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
| <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="width=device-width, user-scalable=no">
<link rel="stylesheet" href="ressources/reset.css">
<link rel="stylesheet" href="ressources/alertc/css/alertify.css">
<script src="ressources/jquery-3.1.1.min.js"></script>
<link rel="stylesheet" href="ressources/index.css">
<title>COPilot Index</title>
</head>
<body>
<div id="entete_index">
<div id="entete_kilometrage">
0.0km
</div>
<div id="entete_info">
<div class="entete_ligne">
<div class="entete_carre" id="entete_1">Durée</div>
<div class="entete_carre" id="entete_2">STOP</div>
</div>
<div class="entete_ligne">
<div class="entete_carre" id="entete_3">0.0 km/h</div>
<div class="entete_carre" id="entete_4">meteo</div>
</div>
</div>
</div>
</body>
<script src="ressources/alertc/js/alertify.js"></script>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript">
$(function(){
var ss = new cordova.plugins.SecureStorage(
function () { alertify.alert("C'est bon")},
function (error) {
alertify.alert('erreur ' + error);
},'copilot');
ss.get(
function (value) { alertify.alert('Cest bon, jai : ' + value); },
function (error) { alertify.alert('erreur ' + error); },
'mykey');
$('#entete_4').click(function(){
ss.set(
function (key) { alertify.alert('Set ' + key); },
function (error) { alertify.alert('erreur ' + error); },
'mykey', 'myvalue');
});
});
</script>
</html> |
Partager