-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
113 lines (105 loc) · 5.37 KB
/
Copy pathindex.html
File metadata and controls
113 lines (105 loc) · 5.37 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval' https://apis.google.com https://accounts.google.com https://www.gstatic.com https://*.googleusercontent.com; object-src 'none';">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fiches de Soin</title>
<link rel="stylesheet" href="styles.css">
<link rel="manifest" href="manifest.json">
<meta name="theme-color" content="#64B5F6">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<script src="https://apis.google.com/js/api.js"></script>
<script src="https://accounts.google.com/gsi/client" async defer></script>
<script src="config.js"></script>
</head>
<body>
<div class="loading-screen" id="loadingScreen">
<div style="width: 80px; height: 80px; background: #FB8C00; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px;">
<div style="width: 40px; height: 40px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center;">
<svg width="24" height="24" viewBox="0 0 24 24" fill="#FB8C00">
<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
</svg>
</div>
</div>
<h1>Practo Note</h1>
<div class="spinner"></div>
<p>Chargement des fiches...</p>
</div>
<div class="main-app" id="mainApp">
<div class="header">
<div style="display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;">
<div style="display: flex; align-items: center;">
<div style="width: 40px; height: 40px; background: #FB8C00; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-right: 12px;">
<div style="width: 20px; height: 20px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center;">
<svg width="12" height="12" viewBox="0 0 24 24" fill="#FB8C00">
<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
</svg>
</div>
</div>
<h1 style="color: #59B6FF; font-size: 42px; font-weight: 600; margin: 0;">Practo Note</h1>
</div>
<!-- Menu hamburger -->
<button id="hamburgerMenu" onclick="toggleMenu()" style="background: none; border: none; color: #59B6FF; font-size: 24px; cursor: pointer; padding: 8px; display: none;">☰</button>
</div>
<!-- Menu déroulant -->
<div id="menuDropdown" style="
position: absolute;
top: 70px;
right: 20px;
background: #2C2C2C;
border-radius: 8px;
padding: 10px;
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
z-index: 100;
display: none;
min-width: 160px;
border: 1px solid #3A3A3A;
">
<div onclick="refreshFiles(); toggleMenu();" style="padding: 12px; cursor: pointer; color: #43A047; border-radius: 5px; margin-bottom: 5px; transition: background 0.2s;">🔄 Actualiser</div>
<div onclick="signOut(); toggleMenu();" style="padding: 12px; cursor: pointer; color: #FF5722; border-radius: 5px; transition: background 0.2s;">🚪 Se déconnecter</div>
</div>
</div>
<!-- Interface connectée (masquée par défaut) -->
<div id="connectedInterface" style="display: none;">
<div class="search-container">
<input type="text" class="search-input" placeholder="Rechercher une fiche..." id="searchInput">
<button class="clear-search" id="clearSearch" onclick="clearSearch()">×</button>
<div class="autocomplete-list" id="autocompleteList"></div>
</div>
<!-- Liste des tags -->
<div style="margin: 15px 0;">
<div id="tagsList" style="display: flex; flex-wrap: wrap; gap: 8px;"></div>
</div>
<div class="recent-files">
<div id="filesList"></div>
</div>
</div>
</div>
<!-- Bouton flottant créer (masqué par défaut) -->
<button id="createButton" onclick="showCreateForm()" style="
position: fixed;
bottom: 20px;
right: 20px;
width: 60px;
height: 60px;
background: #FB8C00;
border: none;
border-radius: 50%;
box-shadow: 0 4px 12px rgba(251, 140, 0, 0.3);
cursor: pointer;
display: none;
align-items: center;
justify-content: center;
z-index: 100;
">
<div style="width: 30px; height: 30px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center;">
<svg width="16" height="16" viewBox="0 0 24 24" fill="#FB8C00">
<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
</svg>
</div>
</button>
<script src="app.js"></script>
</body>
</html>