Spaces:
Sleeping
Sleeping
foramting
Browse files- database.db +0 -0
- static/app.js +0 -5
- static/styles.css +1 -1
- templates/edit_cables.html +2 -2
database.db
CHANGED
Binary files a/database.db and b/database.db differ
|
|
static/app.js
CHANGED
@@ -150,11 +150,6 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
150 |
}
|
151 |
});
|
152 |
|
153 |
-
// Helper function to calculate voltage drop
|
154 |
-
function calculateVoltageDrop(voltage, current, length, resistance) {
|
155 |
-
return current * length * resistance;
|
156 |
-
}
|
157 |
-
|
158 |
// Initially check the form validity and update buttons on page load
|
159 |
form.addEventListener('input', checkFormValidity);
|
160 |
checkFormValidity();
|
|
|
150 |
}
|
151 |
});
|
152 |
|
|
|
|
|
|
|
|
|
|
|
153 |
// Initially check the form validity and update buttons on page load
|
154 |
form.addEventListener('input', checkFormValidity);
|
155 |
checkFormValidity();
|
static/styles.css
CHANGED
@@ -106,7 +106,7 @@ h1 {
|
|
106 |
|
107 |
.form-row input,
|
108 |
.form-row select {
|
109 |
-
flex: 1;
|
110 |
padding: 8px;
|
111 |
font-size: 16px;
|
112 |
border: 1px solid #ccc;
|
|
|
106 |
|
107 |
.form-row input,
|
108 |
.form-row select {
|
109 |
+
flex: 1;
|
110 |
padding: 8px;
|
111 |
font-size: 16px;
|
112 |
border: 1px solid #ccc;
|
templates/edit_cables.html
CHANGED
@@ -40,8 +40,8 @@
|
|
40 |
<input type="text" id="type" name="type" value="{{ cable.type }}" required>
|
41 |
</div>
|
42 |
<div class="form-row">
|
43 |
-
<label for="resistance">Resistance:</label>
|
44 |
-
<input type="number" step="0.
|
45 |
</div>
|
46 |
<div class="btn-group">
|
47 |
<button type="submit" class="btn btn-save">Save</button>
|
|
|
40 |
<input type="text" id="type" name="type" value="{{ cable.type }}" required>
|
41 |
</div>
|
42 |
<div class="form-row">
|
43 |
+
<label for="resistance">Resistance (Ω/m):</label>
|
44 |
+
<input type="number" step="0.00001" id="resistance" name="resistance" value="{{ cable.resistance }}" required>
|
45 |
</div>
|
46 |
<div class="btn-group">
|
47 |
<button type="submit" class="btn btn-save">Save</button>
|