-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchem_compatibility.html
More file actions
130 lines (112 loc) · 3.85 KB
/
chem_compatibility.html
File metadata and controls
130 lines (112 loc) · 3.85 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="UTF-8" />
<title>Chemická Kompatibilita</title>
<link rel="stylesheet" href="css/style.css" />
<style>
.chem-result {
margin-top: 2rem;
padding: 1.5rem;
border-radius: 8px;
text-align: center;
font-size: 1.5rem;
font-weight: bold;
display: none;
/* Hidden by default */
}
.rating-A {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.rating-B {
background-color: #fff3cd;
color: #856404;
border: 1px solid #ffeeba;
}
.rating-C {
background-color: #ffeeba;
color: #856404;
border: 1px solid #ffeeba;
}
/* Similar to B but maybe darker orange? Let's stick to standard bootstrap-ish colors */
.rating-C {
background-color: #fd7e14;
color: white;
border: 1px solid #fd7e14;
}
.rating-D {
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
.legend {
display: flex;
gap: 1rem;
margin-top: 2rem;
font-size: 0.9rem;
justify-content: center;
}
.legend-item {
display: flex;
align-items: center;
gap: 0.5rem;
}
.legend-box {
width: 20px;
height: 20px;
border-radius: 4px;
}
</style>
</head>
<body>
<div class="main-container">
<div class="calculator-area">
<nav><a href="index.html">← Zpět na rozcestník</a></nav>
<h1>Chemická Kompatibilita</h1>
<p style="margin-bottom: 1.5rem; color: var(--text-muted);">
Vyberte materiál a chemikálii pro zobrazení kompatibility.
</p>
<form id="chemForm">
<div class="preset-group">
<div>
<label for="materialSelect" data-tooltip="Vyberte materiál těsnění nebo hadice">Materiál</label>
<select id="materialSelect" required>
<option value="">-- Vyberte materiál --</option>
</select>
</div>
<div>
<label for="chemicalSelect" data-tooltip="Vyberte chemickou látku">Chemikálie</label>
<select id="chemicalSelect" required>
<option value="">-- Vyberte chemikálii --</option>
</select>
</div>
</div>
</form>
<div id="resultDisplay" class="chem-result">
<div id="ratingCode"></div>
<div id="ratingText" style="font-size: 1rem; font-weight: normal; margin-top: 0.5rem;"></div>
</div>
<div class="legend">
<div class="legend-item">
<div class="legend-box rating-A"></div> A - Výborná
</div>
<div class="legend-item">
<div class="legend-box rating-B"></div> B - Dobrá
</div>
<div class="legend-item">
<div class="legend-box rating-C"></div> C - Omezená
</div>
<div class="legend-item">
<div class="legend-box rating-D"></div> D - Nevhodná
</div>
</div>
</div>
<div class="history-sidebar" id="history-container" style="display:none;">
<!-- Placeholder if we want history later -->
</div>
</div>
<script type="module" src="js/chem_logic.js"></script>
</body>
</html>