Spaces:
Running
Running
make a webpage for patient's upper limb muscle strength monitering.
Browse files- README.md +8 -5
- components/footer.js +54 -0
- components/navbar.js +70 -0
- index.html +292 -19
- muscle-strength.html +177 -0
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: FlexForce Armor 🦾
|
| 3 |
+
colorFrom: purple
|
| 4 |
+
colorTo: yellow
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://huggingface.co/deepsite).
|
components/footer.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomFooter extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
footer {
|
| 7 |
+
background-color: #2d3748;
|
| 8 |
+
color: white;
|
| 9 |
+
padding: 2rem;
|
| 10 |
+
margin-top: 4rem;
|
| 11 |
+
}
|
| 12 |
+
.footer-content {
|
| 13 |
+
max-width: 1200px;
|
| 14 |
+
margin: 0 auto;
|
| 15 |
+
text-align: center;
|
| 16 |
+
}
|
| 17 |
+
.footer-links {
|
| 18 |
+
display: flex;
|
| 19 |
+
justify-content: center;
|
| 20 |
+
gap: 2rem;
|
| 21 |
+
margin: 1rem 0;
|
| 22 |
+
}
|
| 23 |
+
.footer-links a {
|
| 24 |
+
color: #cbd5e0;
|
| 25 |
+
text-decoration: none;
|
| 26 |
+
transition: color 0.3s;
|
| 27 |
+
}
|
| 28 |
+
.footer-links a:hover {
|
| 29 |
+
color: white;
|
| 30 |
+
}
|
| 31 |
+
.copyright {
|
| 32 |
+
color: #a0aec0;
|
| 33 |
+
font-size: 0.875rem;
|
| 34 |
+
margin-top: 1rem;
|
| 35 |
+
}
|
| 36 |
+
</style>
|
| 37 |
+
<footer>
|
| 38 |
+
<div class="footer-content">
|
| 39 |
+
<div class="footer-links">
|
| 40 |
+
<a href="index.html">Home</a>
|
| 41 |
+
<a href="muscle-strength.html">Muscle Monitoring</a>
|
| 42 |
+
<a href="#">Privacy Policy</a>
|
| 43 |
+
<a href="#">Contact</a>
|
| 44 |
+
</div>
|
| 45 |
+
<div class="copyright">
|
| 46 |
+
© 2023 FlexForce Armor. All rights reserved.
|
| 47 |
+
</div>
|
| 48 |
+
</div>
|
| 49 |
+
</footer>
|
| 50 |
+
`;
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
customElements.define('custom-footer', CustomFooter);
|
components/navbar.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomNavbar extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
nav {
|
| 7 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 8 |
+
padding: 1rem 2rem;
|
| 9 |
+
position: fixed;
|
| 10 |
+
top: 0;
|
| 11 |
+
left: 0;
|
| 12 |
+
right: 0;
|
| 13 |
+
z-index: 1000;
|
| 14 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 15 |
+
}
|
| 16 |
+
.nav-container {
|
| 17 |
+
max-width: 1200px;
|
| 18 |
+
margin: 0 auto;
|
| 19 |
+
display: flex;
|
| 20 |
+
justify-content: space-between;
|
| 21 |
+
align-items: center;
|
| 22 |
+
}
|
| 23 |
+
.logo {
|
| 24 |
+
display: flex;
|
| 25 |
+
align-items: center;
|
| 26 |
+
color: white;
|
| 27 |
+
text-decoration: none;
|
| 28 |
+
font-weight: bold;
|
| 29 |
+
font-size: 1.25rem;
|
| 30 |
+
}
|
| 31 |
+
.logo i {
|
| 32 |
+
margin-right: 0.5rem;
|
| 33 |
+
font-size: 1.5rem;
|
| 34 |
+
}
|
| 35 |
+
.nav-links {
|
| 36 |
+
display: flex;
|
| 37 |
+
gap: 2rem;
|
| 38 |
+
align-items: center;
|
| 39 |
+
}
|
| 40 |
+
.nav-links a {
|
| 41 |
+
color: white;
|
| 42 |
+
text-decoration: none;
|
| 43 |
+
padding: 0.5rem 1rem;
|
| 44 |
+
border-radius: 0.375rem;
|
| 45 |
+
transition: background-color 0.3s;
|
| 46 |
+
}
|
| 47 |
+
.nav-links a:hover {
|
| 48 |
+
background-color: rgba(255, 255, 255, 0.1);
|
| 49 |
+
}
|
| 50 |
+
.nav-links a.active {
|
| 51 |
+
background-color: rgba(255, 255, 255, 0.2);
|
| 52 |
+
}
|
| 53 |
+
</style>
|
| 54 |
+
<nav>
|
| 55 |
+
<div class="nav-container">
|
| 56 |
+
<a href="index.html" class="logo">
|
| 57 |
+
<i class="fas fa-dumbbell"></i>
|
| 58 |
+
FlexForce Armor
|
| 59 |
+
</a>
|
| 60 |
+
<div class="nav-links">
|
| 61 |
+
<a href="index.html">Date Selector</a>
|
| 62 |
+
<a href="muscle-strength.html" class="active">Muscle Monitoring</a>
|
| 63 |
+
</div>
|
| 64 |
+
</div>
|
| 65 |
+
</nav>
|
| 66 |
+
`;
|
| 67 |
+
}
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
customElements.define('custom-navbar', CustomNavbar);
|
index.html
CHANGED
|
@@ -1,19 +1,292 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Date Selection UI</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
/* Custom styles for date picker */
|
| 11 |
+
.date-picker {
|
| 12 |
+
transition: all 0.3s ease;
|
| 13 |
+
max-height: 0;
|
| 14 |
+
overflow: hidden;
|
| 15 |
+
}
|
| 16 |
+
.date-picker.active {
|
| 17 |
+
max-height: 500px;
|
| 18 |
+
}
|
| 19 |
+
.custom-shadow {
|
| 20 |
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
|
| 21 |
+
}
|
| 22 |
+
.calendar-day:hover:not(.disabled) {
|
| 23 |
+
background-color: #f0f9ff;
|
| 24 |
+
}
|
| 25 |
+
.calendar-day.selected {
|
| 26 |
+
background-color: #3b82f6;
|
| 27 |
+
color: white;
|
| 28 |
+
}
|
| 29 |
+
</style>
|
| 30 |
+
</head>
|
| 31 |
+
<body class="bg-gray-50 min-h-screen">
|
| 32 |
+
<custom-navbar></custom-navbar>
|
| 33 |
+
<div class="flex items-center justify-center p-4 min-h-screen">
|
| 34 |
+
<div class="w-full max-w-md mx-auto mt-16">
|
| 35 |
+
<div class="bg-white rounded-xl custom-shadow p-6">
|
| 36 |
+
<h2 class="text-xl font-semibold text-gray-800 mb-6">Time Period Selection</h2>
|
| 37 |
+
|
| 38 |
+
<!-- Time period selector -->
|
| 39 |
+
<div class="flex justify-between mb-6 bg-gray-100 rounded-lg p-1">
|
| 40 |
+
<button id="daily-btn" class="period-btn flex-1 py-2 px-4 rounded-md font-medium text-sm transition-all duration-300 active">
|
| 41 |
+
<i class="fas fa-calendar-day mr-2"></i> Daily
|
| 42 |
+
</button>
|
| 43 |
+
<button id="weekly-btn" class="period-btn flex-1 py-2 px-4 rounded-md font-medium text-sm transition-all duration-300">
|
| 44 |
+
<i class="fas fa-calendar-week mr-2"></i> Weekly
|
| 45 |
+
</button>
|
| 46 |
+
<button id="monthly-btn" class="period-btn flex-1 py-2 px-4 rounded-md font-medium text-sm transition-all duration-300">
|
| 47 |
+
<i class="fas fa-calendar-alt mr-2"></i> Monthly
|
| 48 |
+
</button>
|
| 49 |
+
</div>
|
| 50 |
+
|
| 51 |
+
<!-- Date selection area -->
|
| 52 |
+
<div class="mb-4">
|
| 53 |
+
<div class="flex justify-between items-center mb-3">
|
| 54 |
+
<h3 class="text-md font-medium text-gray-700">Select Date</h3>
|
| 55 |
+
<button id="toggle-date-picker" class="text-blue-500 hover:text-blue-700 text-sm font-medium flex items-center">
|
| 56 |
+
<i class="fas fa-calendar mr-1"></i> Choose Date
|
| 57 |
+
</button>
|
| 58 |
+
</div>
|
| 59 |
+
|
| 60 |
+
<!-- Display selected date range -->
|
| 61 |
+
<div id="date-display" class="bg-blue-50 border border-blue-100 rounded-lg py-2 px-4 text-blue-800 font-medium">
|
| 62 |
+
Today, June 15, 2023
|
| 63 |
+
</div>
|
| 64 |
+
</div>
|
| 65 |
+
|
| 66 |
+
<!-- Date picker (hidden by default) -->
|
| 67 |
+
<div id="date-picker" class="date-picker mt-4">
|
| 68 |
+
<div class="flex justify-between items-center mb-4">
|
| 69 |
+
<button id="prev-month" class="p-2 rounded-full hover:bg-gray-100">
|
| 70 |
+
<i class="fas fa-chevron-left text-gray-600"></i>
|
| 71 |
+
</button>
|
| 72 |
+
<h3 id="current-month" class="font-semibold text-gray-800">June 2023</h3>
|
| 73 |
+
<button id="next-month" class="p-2 rounded-full hover:bg-gray-100">
|
| 74 |
+
<i class="fas fa-chevron-right text-gray-600"></i>
|
| 75 |
+
</button>
|
| 76 |
+
</div>
|
| 77 |
+
|
| 78 |
+
<div class="grid grid-cols-7 gap-1 mb-2">
|
| 79 |
+
<div class="text-center text-xs font-medium text-gray-500 py-1">Sun</div>
|
| 80 |
+
<div class="text-center text-xs font-medium text-gray-500 py-1">Mon</div>
|
| 81 |
+
<div class="text-center text-xs font-medium text-gray-500 py-1">Tue</div>
|
| 82 |
+
<div class="text-center text-xs font-medium text-gray-500 py-1">Wed</div>
|
| 83 |
+
<div class="text-center text-xs font-medium text-gray-500 py-1">Thu</div>
|
| 84 |
+
<div class="text-center text-xs font-medium text-gray-500 py-1">Fri</div>
|
| 85 |
+
<div class="text-center text-xs font-medium text-gray-500 py-1">Sat</div>
|
| 86 |
+
</div>
|
| 87 |
+
|
| 88 |
+
<div id="calendar-days" class="grid grid-cols-7 gap-1">
|
| 89 |
+
<!-- Calendar days will be populated by JavaScript -->
|
| 90 |
+
</div>
|
| 91 |
+
</div>
|
| 92 |
+
|
| 93 |
+
<!-- Apply button -->
|
| 94 |
+
<button id="apply-btn" class="w-full mt-6 bg-blue-500 hover:bg-blue-600 text-white font-medium py-2 px-4 rounded-lg transition duration-300">
|
| 95 |
+
Apply Selection
|
| 96 |
+
</button>
|
| 97 |
+
</div>
|
| 98 |
+
</div>
|
| 99 |
+
</div>
|
| 100 |
+
<custom-footer></custom-footer>
|
| 101 |
+
|
| 102 |
+
<script src="components/navbar.js"></script>
|
| 103 |
+
<script src="components/footer.js"></script>
|
| 104 |
+
<script>
|
| 105 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 106 |
+
// Current date
|
| 107 |
+
let currentDate = new Date();
|
| 108 |
+
let currentMonth = currentDate.getMonth();
|
| 109 |
+
let currentYear = currentDate.getFullYear();
|
| 110 |
+
let selectedDate = new Date(currentDate);
|
| 111 |
+
let selectedPeriod = 'daily';
|
| 112 |
+
|
| 113 |
+
// DOM elements
|
| 114 |
+
const dailyBtn = document.getElementById('daily-btn');
|
| 115 |
+
const weeklyBtn = document.getElementById('weekly-btn');
|
| 116 |
+
const monthlyBtn = document.getElementById('monthly-btn');
|
| 117 |
+
const dateDisplay = document.getElementById('date-display');
|
| 118 |
+
const toggleDatePicker = document.getElementById('toggle-date-picker');
|
| 119 |
+
const datePicker = document.getElementById('date-picker');
|
| 120 |
+
const prevMonthBtn = document.getElementById('prev-month');
|
| 121 |
+
const nextMonthBtn = document.getElementById('next-month');
|
| 122 |
+
const currentMonthDisplay = document.getElementById('current-month');
|
| 123 |
+
const calendarDays = document.getElementById('calendar-days');
|
| 124 |
+
const applyBtn = document.getElementById('apply-btn');
|
| 125 |
+
|
| 126 |
+
// Initialize
|
| 127 |
+
updateCalendar(currentMonth, currentYear);
|
| 128 |
+
updateDateDisplay();
|
| 129 |
+
|
| 130 |
+
// Period selection
|
| 131 |
+
dailyBtn.addEventListener('click', () => {
|
| 132 |
+
setActivePeriod('daily');
|
| 133 |
+
selectedPeriod = 'daily';
|
| 134 |
+
updateDateDisplay();
|
| 135 |
+
});
|
| 136 |
+
|
| 137 |
+
weeklyBtn.addEventListener('click', () => {
|
| 138 |
+
setActivePeriod('weekly');
|
| 139 |
+
selectedPeriod = 'weekly';
|
| 140 |
+
updateDateDisplay();
|
| 141 |
+
});
|
| 142 |
+
|
| 143 |
+
monthlyBtn.addEventListener('click', () => {
|
| 144 |
+
setActivePeriod('monthly');
|
| 145 |
+
selectedPeriod = 'monthly';
|
| 146 |
+
updateDateDisplay();
|
| 147 |
+
});
|
| 148 |
+
|
| 149 |
+
// Toggle date picker
|
| 150 |
+
toggleDatePicker.addEventListener('click', () => {
|
| 151 |
+
datePicker.classList.toggle('active');
|
| 152 |
+
toggleDatePicker.innerHTML = datePicker.classList.contains('active') ?
|
| 153 |
+
'<i class="fas fa-times mr-1"></i> Close' :
|
| 154 |
+
'<i class="fas fa-calendar mr-1"></i> Choose Date';
|
| 155 |
+
});
|
| 156 |
+
|
| 157 |
+
// Month navigation
|
| 158 |
+
prevMonthBtn.addEventListener('click', () => {
|
| 159 |
+
currentMonth--;
|
| 160 |
+
if (currentMonth < 0) {
|
| 161 |
+
currentMonth = 11;
|
| 162 |
+
currentYear--;
|
| 163 |
+
}
|
| 164 |
+
updateCalendar(currentMonth, currentYear);
|
| 165 |
+
});
|
| 166 |
+
|
| 167 |
+
nextMonthBtn.addEventListener('click', () => {
|
| 168 |
+
currentMonth++;
|
| 169 |
+
if (currentMonth > 11) {
|
| 170 |
+
currentMonth = 0;
|
| 171 |
+
currentYear++;
|
| 172 |
+
}
|
| 173 |
+
updateCalendar(currentMonth, currentYear);
|
| 174 |
+
});
|
| 175 |
+
|
| 176 |
+
// Apply selection
|
| 177 |
+
applyBtn.addEventListener('click', () => {
|
| 178 |
+
// Here you would typically send the selected date/period to your backend
|
| 179 |
+
alert(`Selection applied: ${dateDisplay.textContent}`);
|
| 180 |
+
datePicker.classList.remove('active');
|
| 181 |
+
toggleDatePicker.innerHTML = '<i class="fas fa-calendar mr-1"></i> Choose Date';
|
| 182 |
+
});
|
| 183 |
+
|
| 184 |
+
// Helper functions
|
| 185 |
+
function setActivePeriod(period) {
|
| 186 |
+
document.querySelectorAll('.period-btn').forEach(btn => {
|
| 187 |
+
btn.classList.remove('active', 'bg-white', 'text-blue-600', 'shadow-sm');
|
| 188 |
+
btn.classList.add('text-gray-600');
|
| 189 |
+
});
|
| 190 |
+
|
| 191 |
+
const activeBtn = document.getElementById(`${period}-btn`);
|
| 192 |
+
activeBtn.classList.add('active', 'bg-white', 'text-blue-600', 'shadow-sm');
|
| 193 |
+
activeBtn.classList.remove('text-gray-600');
|
| 194 |
+
}
|
| 195 |
+
|
| 196 |
+
function updateDateDisplay() {
|
| 197 |
+
const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
|
| 198 |
+
|
| 199 |
+
if (selectedPeriod === 'daily') {
|
| 200 |
+
dateDisplay.textContent = selectedDate.toLocaleDateString('en-US', options);
|
| 201 |
+
} else if (selectedPeriod === 'weekly') {
|
| 202 |
+
const weekStart = new Date(selectedDate);
|
| 203 |
+
weekStart.setDate(selectedDate.getDate() - selectedDate.getDay());
|
| 204 |
+
const weekEnd = new Date(weekStart);
|
| 205 |
+
weekEnd.setDate(weekStart.getDate() + 6);
|
| 206 |
+
|
| 207 |
+
dateDisplay.textContent = `${weekStart.toLocaleDateString('en-US', { month: 'short', day: 'numeric' })} - ${weekEnd.toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' })}`;
|
| 208 |
+
} else { // monthly
|
| 209 |
+
const monthStart = new Date(selectedDate.getFullYear(), selectedDate.getMonth(), 1);
|
| 210 |
+
const monthEnd = new Date(selectedDate.getFullYear(), selectedDate.getMonth() + 1, 0);
|
| 211 |
+
|
| 212 |
+
dateDisplay.textContent = `${monthStart.toLocaleDateString('en-US', { month: 'long', year: 'numeric' })}`;
|
| 213 |
+
}
|
| 214 |
+
}
|
| 215 |
+
|
| 216 |
+
function updateCalendar(month, year) {
|
| 217 |
+
currentMonthDisplay.textContent = new Date(year, month).toLocaleDateString('en-US', { month: 'long', year: 'numeric' });
|
| 218 |
+
calendarDays.innerHTML = '';
|
| 219 |
+
|
| 220 |
+
const firstDay = new Date(year, month, 1);
|
| 221 |
+
const lastDay = new Date(year, month + 1, 0);
|
| 222 |
+
const prevLastDay = new Date(year, month, 0).getDate();
|
| 223 |
+
const firstDayIndex = firstDay.getDay();
|
| 224 |
+
const lastDayIndex = lastDay.getDay();
|
| 225 |
+
const nextDays = 7 - lastDayIndex - 1;
|
| 226 |
+
|
| 227 |
+
// Previous month days
|
| 228 |
+
for (let i = firstDayIndex; i > 0; i--) {
|
| 229 |
+
const day = document.createElement('div');
|
| 230 |
+
day.className = 'calendar-day text-center py-2 text-gray-400 disabled';
|
| 231 |
+
day.textContent = prevLastDay - i + 1;
|
| 232 |
+
calendarDays.appendChild(day);
|
| 233 |
+
}
|
| 234 |
+
|
| 235 |
+
// Current month days
|
| 236 |
+
for (let i = 1; i <= lastDay.getDate(); i++) {
|
| 237 |
+
const day = document.createElement('div');
|
| 238 |
+
day.className = 'calendar-day text-center py-2 cursor-pointer rounded-full';
|
| 239 |
+
|
| 240 |
+
// Check if this day is selected
|
| 241 |
+
const dayDate = new Date(year, month, i);
|
| 242 |
+
if (dayDate.toDateString() === selectedDate.toDateString()) {
|
| 243 |
+
day.classList.add('selected', 'text-white');
|
| 244 |
+
} else {
|
| 245 |
+
day.classList.add('text-gray-800');
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
// Check if today
|
| 249 |
+
if (i === currentDate.getDate() && month === currentDate.getMonth() && year === currentDate.getFullYear()) {
|
| 250 |
+
day.classList.add('font-bold');
|
| 251 |
+
if (!day.classList.contains('selected')) {
|
| 252 |
+
day.classList.add('text-blue-500');
|
| 253 |
+
}
|
| 254 |
+
}
|
| 255 |
+
|
| 256 |
+
day.textContent = i;
|
| 257 |
+
|
| 258 |
+
day.addEventListener('click', () => {
|
| 259 |
+
// Remove selected class from all days
|
| 260 |
+
document.querySelectorAll('.calendar-day').forEach(d => {
|
| 261 |
+
d.classList.remove('selected', 'text-white');
|
| 262 |
+
if (!d.classList.contains('disabled')) {
|
| 263 |
+
d.classList.add('text-gray-800');
|
| 264 |
+
}
|
| 265 |
+
});
|
| 266 |
+
|
| 267 |
+
// Add selected class to clicked day
|
| 268 |
+
day.classList.add('selected', 'text-white');
|
| 269 |
+
day.classList.remove('text-gray-800');
|
| 270 |
+
|
| 271 |
+
// Update selected date
|
| 272 |
+
selectedDate = new Date(year, month, i);
|
| 273 |
+
updateDateDisplay();
|
| 274 |
+
});
|
| 275 |
+
|
| 276 |
+
calendarDays.appendChild(day);
|
| 277 |
+
}
|
| 278 |
+
|
| 279 |
+
// Next month days
|
| 280 |
+
for (let i = 1; i <= nextDays; i++) {
|
| 281 |
+
const day = document.createElement('div');
|
| 282 |
+
day.className = 'calendar-day text-center py-2 text-gray-400 disabled';
|
| 283 |
+
day.textContent = i;
|
| 284 |
+
calendarDays.appendChild(day);
|
| 285 |
+
}
|
| 286 |
+
}
|
| 287 |
+
});
|
| 288 |
+
</script>
|
| 289 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=SM1234/ui1" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p>
|
| 290 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 291 |
+
</body>
|
| 292 |
+
</html>
|
muscle-strength.html
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 10 |
+
</head>
|
| 11 |
+
<body class="bg-gray-50 min-h-screen">
|
| 12 |
+
<custom-navbar></custom-navbar>
|
| 13 |
+
|
| 14 |
+
<div class="container mx-auto px-4 py-8">
|
| 15 |
+
<!-- Header Section -->
|
| 16 |
+
<div class="text-center mb-8">
|
| 17 |
+
<h1 class="text-3xl font-bold text-gray-800 mb-2">Upper Limb Muscle Strength Monitoring</h1>
|
| 18 |
+
<p class="text-gray-600">Track and monitor your arm muscle strength progress over time</p>
|
| 19 |
+
</div>
|
| 20 |
+
|
| 21 |
+
<!-- Patient Info Card -->
|
| 22 |
+
<div class="bg-white rounded-xl shadow-lg p-6 mb-8">
|
| 23 |
+
<div class="flex items-center justify-between">
|
| 24 |
+
<div class="flex items-center space-x-4">
|
| 25 |
+
<div class="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center">
|
| 26 |
+
<i class="fas fa-user-md text-blue-500 text-2xl"></i>
|
| 27 |
+
</div>
|
| 28 |
+
<div>
|
| 29 |
+
<h2 class="text-xl font-semibold text-gray-800">Patient: John Smith</h2>
|
| 30 |
+
<p class="text-gray-600">ID: PT-2023-001 | Age: 45 | Last Assessment: Today</p>
|
| 31 |
+
</div>
|
| 32 |
+
</div>
|
| 33 |
+
<div class="text-right">
|
| 34 |
+
<div class="text-sm text-gray-500">Current Status</div>
|
| 35 |
+
<div class="text-green-600 font-semibold">Improving</div>
|
| 36 |
+
</div>
|
| 37 |
+
</div>
|
| 38 |
+
</div>
|
| 39 |
+
|
| 40 |
+
<!-- Real-time Monitoring Section -->
|
| 41 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8">
|
| 42 |
+
<!-- Left Arm Monitoring -->
|
| 43 |
+
<div class="bg-white rounded-xl shadow-lg p-6">
|
| 44 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4 flex items-center">
|
| 45 |
+
<i class="fas fa-hand-paper text-blue-500 mr-2"></i> Left Arm Strength
|
| 46 |
+
</h3>
|
| 47 |
+
<div class="space-y-4">
|
| 48 |
+
<div class="flex justify-between items-center">
|
| 49 |
+
<span class="text-gray-600">Biceps Strength</span>
|
| 50 |
+
<div class="flex items-center">
|
| 51 |
+
<div class="w-32 bg-gray-200 rounded-full h-2 mr-2">
|
| 52 |
+
<div class="bg-green-500 h-2 rounded-full" style="width: 75%"></div>
|
| 53 |
+
</div>
|
| 54 |
+
<span class="text-sm font-semibold">75%</span>
|
| 55 |
+
</div>
|
| 56 |
+
</div>
|
| 57 |
+
<div class="flex justify-between items-center">
|
| 58 |
+
<span class="text-gray-600">Triceps Strength</span>
|
| 59 |
+
<div class="flex items-center">
|
| 60 |
+
<div class="w-32 bg-gray-200 rounded-full h-2 mr-2">
|
| 61 |
+
<div class="bg-yellow-500 h-2 rounded-full" style="width: 60%"></div>
|
| 62 |
+
</div>
|
| 63 |
+
<span class="text-sm font-semibold">60%</span>
|
| 64 |
+
</div>
|
| 65 |
+
</div>
|
| 66 |
+
<div class="flex justify-between items-center">
|
| 67 |
+
<span class="text-gray-600">Shoulder Strength</span>
|
| 68 |
+
<div class="flex items-center">
|
| 69 |
+
<div class="w-32 bg-gray-200 rounded-full h-2 mr-2">
|
| 70 |
+
<div class="bg-red-500 h-2 rounded-full" style="width: 45%"></div>
|
| 71 |
+
</div>
|
| 72 |
+
<span class="text-sm font-semibold">45%</span>
|
| 73 |
+
</div>
|
| 74 |
+
</div>
|
| 75 |
+
</div>
|
| 76 |
+
</div>
|
| 77 |
+
|
| 78 |
+
<!-- Right Arm Monitoring -->
|
| 79 |
+
<div class="bg-white rounded-xl shadow-lg p-6">
|
| 80 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4 flex items-center">
|
| 81 |
+
<i class="fas fa-hand-paper text-blue-500 mr-2"></i> Right Arm Strength
|
| 82 |
+
</h3>
|
| 83 |
+
<div class="space-y-4">
|
| 84 |
+
<div class="flex justify-between items-center">
|
| 85 |
+
<span class="text-gray-600">Biceps Strength</span>
|
| 86 |
+
<div class="flex items-center">
|
| 87 |
+
<div class="w-32 bg-gray-200 rounded-full h-2 mr-2">
|
| 88 |
+
<div class="bg-green-500 h-2 rounded-full" style="width: 80%"></div>
|
| 89 |
+
</div>
|
| 90 |
+
<span class="text-sm font-semibold">80%</span>
|
| 91 |
+
</div>
|
| 92 |
+
</div>
|
| 93 |
+
<div class="flex justify-between items-center">
|
| 94 |
+
<span class="text-gray-600">Triceps Strength</span>
|
| 95 |
+
<div class="flex items-center">
|
| 96 |
+
<div class="w-32 bg-gray-200 rounded-full h-2 mr-2">
|
| 97 |
+
<div class="bg-green-500 h-2 rounded-full" style="width: 70%"></div>
|
| 98 |
+
</div>
|
| 99 |
+
<span class="text-sm font-semibold">70%</span>
|
| 100 |
+
</div>
|
| 101 |
+
</div>
|
| 102 |
+
<div class="flex justify-between items-center">
|
| 103 |
+
<span class="text-gray-600">Shoulder Strength</span>
|
| 104 |
+
<div class="flex items-center">
|
| 105 |
+
<div class="w-32 bg-gray-200 rounded-full h-2 mr-2">
|
| 106 |
+
<div class="bg-yellow-500 h-2 rounded-full" style="width: 55%"></div>
|
| 107 |
+
</div>
|
| 108 |
+
<span class="text-sm font-semibold">55%</span>
|
| 109 |
+
</div>
|
| 110 |
+
</div>
|
| 111 |
+
</div>
|
| 112 |
+
</div>
|
| 113 |
+
</div>
|
| 114 |
+
|
| 115 |
+
<!-- Progress Charts -->
|
| 116 |
+
<div class="bg-white rounded-xl shadow-lg p-6 mb-8">
|
| 117 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4">Strength Progress Over Time</h3>
|
| 118 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
|
| 119 |
+
<div>
|
| 120 |
+
<h4 class="font-medium text-gray-700 mb-2">Left Arm Progress</h4>
|
| 121 |
+
<div class="h-48 bg-gray-50 rounded-lg p-4 flex items-end space-x-2">
|
| 122 |
+
<div class="flex-1 bg-blue-200 rounded-t" style="height: 60%"></div>
|
| 123 |
+
<div class="flex-1 bg-blue-300 rounded-t" style="height: 75%"></div>
|
| 124 |
+
<div class="flex-1 bg-blue-400 rounded-t" style="height: 80%"></div>
|
| 125 |
+
<div class="flex-1 bg-blue-500 rounded-t" style="height: 85%"></div>
|
| 126 |
+
<div class="flex-1 bg-blue-600 rounded-t" style="height: 90%"></div>
|
| 127 |
+
</div>
|
| 128 |
+
</div>
|
| 129 |
+
<div>
|
| 130 |
+
<h4 class="font-medium text-gray-700 mb-2">Right Arm Progress</h4>
|
| 131 |
+
<div class="h-48 bg-gray-50 rounded-lg p-4 flex items-end space-x-2">
|
| 132 |
+
<div class="flex-1 bg-green-200 rounded-t" style="height: 65%"></div>
|
| 133 |
+
<div class="flex-1 bg-green-300 rounded-t" style="height: 78%"></div>
|
| 134 |
+
<div class="flex-1 bg-green-400 rounded-t" style="height: 82%"></div>
|
| 135 |
+
<div class="flex-1 bg-green-500 rounded-t" style="height: 87%"></div>
|
| 136 |
+
<div class="flex-1 bg-green-600 rounded-t" style="height: 92%"></div>
|
| 137 |
+
</div>
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<!-- Exercise Recommendations -->
|
| 143 |
+
<div class="bg-white rounded-xl shadow-lg p-6">
|
| 144 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4">Recommended Exercises</h3>
|
| 145 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
| 146 |
+
<div class="border border-gray-200 rounded-lg p-4">
|
| 147 |
+
<div class="flex items-center mb-2">
|
| 148 |
+
<i class="fas fa-dumbbell text-blue-500 mr-2"></i>
|
| 149 |
+
<h4 class="font-medium">Bicep Curls</h4>
|
| 150 |
+
</div>
|
| 151 |
+
<p class="text-sm text-gray-600">3 sets of 12 reps daily</p>
|
| 152 |
+
</div>
|
| 153 |
+
<div class="border border-gray-200 rounded-lg p-4">
|
| 154 |
+
<div class="flex items-center mb-2">
|
| 155 |
+
<i class="fas fa-hands text-blue-500 mr-2"></i>
|
| 156 |
+
<h4 class="font-medium">Tricep Extensions</h4>
|
| 157 |
+
</div>
|
| 158 |
+
<p class="text-sm text-gray-600">3 sets of 10 reps daily</p>
|
| 159 |
+
</div>
|
| 160 |
+
<div class="border border-gray-200 rounded-lg p-4">
|
| 161 |
+
<div class="flex items-center mb-2">
|
| 162 |
+
<i class="fas fa-arrow-up text-blue-500 mr-2"></i>
|
| 163 |
+
<h4 class="font-medium">Shoulder Press</h4>
|
| 164 |
+
</div>
|
| 165 |
+
<p class="text-sm text-gray-600">2 sets of 8 reps daily</p>
|
| 166 |
+
</div>
|
| 167 |
+
</div>
|
| 168 |
+
</div>
|
| 169 |
+
</div>
|
| 170 |
+
|
| 171 |
+
<custom-footer></custom-footer>
|
| 172 |
+
|
| 173 |
+
<script src="components/navbar.js"></script>
|
| 174 |
+
<script src="components/footer.js"></script>
|
| 175 |
+
<script src="script.js"></script>
|
| 176 |
+
</body>
|
| 177 |
+
</html>
|