-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
81 lines (74 loc) · 2.38 KB
/
index.html
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>
<title>erdf</title>
<meta charset="UTF-8">
<style>
select, button,[contenteditable="true"] {
font-size: 20px;
}
select {
width: 300px;
}
select[size] {
}
[contenteditable="true"] {
border: 1px solid #AAA;
width: 150px;
height: 25px;
}
option:nth-child(2n), [contenteditable="true"]:focus, button{
border-color:#CCDB01;
background-color: #045DB2;
color: #FFF;
}
button{
height: 35px;
width: 100px;
}
</style>
</head>
<body>
<button type="button" id="edit">Modifier</button>
<div contenteditable="true" id="numInsee">33</div>
<div contenteditable="true" id="numUrgence"></div>
<div contenteditable="true" id="numService"></div>
<div contenteditable="true" id="numPortable"></div>
<div contenteditable="true" id="numFix"></div>
<br />
<div contenteditable="true" id="newName"></div>
<div contenteditable="true" id="newPdl"></div>
<button type="button" id="news">Ajouter</button>
<br />
<div>
<select id="PDL">
</select>
</div>
<br />
<button type="button" id="del">Suprimer</button>
<div id="nfo"></div>
<button type="button" id="appel">Appel</button>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="script.js"></script>
<script type="text/javascript">
document.getElementById("appel").style.display = "none";
document.getElementById("nfo").style.display = "none";
document.getElementById("numUrgence").style.display = "none";
document.getElementById('PDL').addEventListener('change', function() {
document.getElementById('nfo').innerHTML = "<br />"+document.getElementById('PDL').value+"<br />PDL : "+localStorage.getItem(document.getElementById('PDL').value)+"<br />";
document.getElementById("PDL").style.display = "none";
document.getElementById("nfo").style.display = "block";
document.getElementById("appel").style.display = "block";
document.getElementById("numUrgence").style.display = "block";
if (document.getElementById("PDL").style.display == 'none') {
document.getElementById('BGcall').addEventListener('click', function() {
document.getElementById("PDL").style.display = "block";
changedocument.getElementById("nfo").style.display = "none";
document.getElementById("appel").style.display = "none";
document.getElementById("numUrgence").style.display = "none";
}, false);
}
}, false);
</script>
</body>
</html>