Design a property detail page with the property address as the header and a large property preview image below it. Include a "Cleaning History" section showing a chronological list of past cleanings from the last month with each entry displaying the date/time, cleaner name, and duration. For cleanings within the past 7 days, show a thumbnail and active "Watch Recording" button; for cleanings 8-30 days old, show the details but with a locked/grayed out "Watch Recording" button with text "Upgrade to Extended History" that opens a subscription modal for $4.99/month to access 90 days of recordings. Use a clean modern interface with blue accents, card-based layout, and clear visual hierarchy similar to Airbnb property listings, with no edit capabilities for the property owner.
b75c6e6 verified Download script.js from MirandaSanders/sparklestream-cleaning-dashboard: direct link, hf CLI and curl.
- Browser
- Download file 1.38 kB
-
https://huggingface.co/spaces/MirandaSanders/sparklestream-cleaning-dashboard/resolve/main/script.js
- Command line
-
hf download hf://spaces/MirandaSanders/sparklestream-cleaning-dashboard/script.js
-
curl -L -o script.js https://huggingface.co/spaces/MirandaSanders/sparklestream-cleaning-dashboard/resolve/main/script.js
1.38 kB
| document.addEventListener('DOMContentLoaded', function() { | |
| // Request notification permission | |
| if ('Notification' in window) { | |
| Notification.requestPermission().then(permission => { | |
| if (permission === 'granted') { | |
| console.log('Notification permission granted'); | |
| } | |
| }); | |
| } | |
| // Simulate cleaner arrival notification (demo purposes) | |
| setTimeout(() => { | |
| if (Notification.permission === 'granted') { | |
| new Notification('Cleaner Arrived', { | |
| body: 'Maria Rodriguez has arrived at 123 Clean Street', | |
| icon: '/static/notification-icon.png' | |
| }); | |
| } | |
| }, 5000); | |
| // Close modal when clicking outside | |
| const modal = document.getElementById('subscription-modal'); | |
| if (modal) { | |
| modal.addEventListener('click', function(e) { | |
| if (e.target === modal) { | |
| closeSubscriptionModal(); | |
| } | |
| }); | |
| } | |
| }); | |
| function openSubscriptionModal() { | |
| const modal = document.getElementById('subscription-modal'); | |
| if (modal) modal.classList.remove('hidden'); | |
| document.body.style.overflow = 'hidden'; | |
| } | |
| function closeSubscriptionModal() { | |
| const modal = document.getElementById('subscription-modal'); | |
| if (modal) modal.classList.add('hidden'); | |
| document.body.style.overflow = 'auto'; | |
| } | |