Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
144 lines (134 loc) · 7.04 KB
/
Copy pathindex.html
File metadata and controls
144 lines (134 loc) · 7.04 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cat Intake</title><!-- by Anti & Radu (& AI) -->
<link rel="manifest" href="manifest.webmanifest?v=90">
<link rel="icon" type="image/png" href="img/icon.png?v=90">
<link rel="apple-touch-icon" href="img/icon.png?v=90">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="styles.css?v=90">
<script>
// Apply saved page zoom before first paint (see js/page-zoom.js)
try {
var savedZoom = parseFloat(localStorage.getItem('cat-intake-page-zoom'));
if (savedZoom > 0 && savedZoom < 1) document.documentElement.style.setProperty('--page-zoom', savedZoom);
} catch (e) {}
</script>
</head>
<body>
<header>
<h1>🐈⬛ Intake</h1>
</header>
<nav>
<div class="header-buttons" id="header-buttons">
<div class="nav-left">
<div class="nav-menu-container">
<button type="button" id="nav-menu-btn" class="nav-btn nav-menu-btn">⋯</button>
<div id="nav-menu-dropdown" class="nav-menu-dropdown">
<button type="button" data-action="print">Print & Export</button>
<button type="button" data-action="share">Share Link</button>
<button type="button" data-action="zoom">Page Zoom</button>
<a href="calc/">All Meds Calculator</a>
<hr>
<button type="button" data-action="clear" class="destructive">Clear All</button>
</div>
</div>
<div class="nav-date">
<span class="nav-date-text" id="intake-date-text" aria-hidden="true"></span>
<svg class="nav-date-icon" viewBox="0 0 16 16" aria-hidden="true">
<rect x="2" y="3" width="12" height="11" rx="2" fill="none" stroke="currentColor" stroke-width="1.5"/>
<path d="M2 6.5h12M5.5 1.5v3M10.5 1.5v3" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
</svg>
<input type="date" id="intake-date" aria-label="Intake date" title="Intake date">
</div>
</div>
<div class="nav-center" id="nav-center">
<div id="pagination-dots" class="pagination-dots">
<!-- Pagination dots will be added here dynamically -->
</div>
</div>
<button type="button" id="add-kitten-btn" class="nav-btn nav-btn-primary">Add Cat</button>
</div>
</nav>
<!-- Banner for shared URL state -->
<div id="shared-url-banner" class="shared-url-banner" style="display: none;">
<span class="shared-url-message">📋 Shared Link</span>
<div class="shared-url-actions">
<button type="button" id="eject-btn" class="btn btn-secondary btn-small">Back To Yours</button>
<button type="button" id="keep-btn" class="btn btn-primary btn-small">Use This Data</button>
</div>
</div>
<h2 class="print-only">Cat Intake</h2>
<section class="input-section">
<div id="kittens-container">
<!-- Kitten forms will be added here dynamically -->
</div>
</section>
<section class="results-section" id="results-section" style="display: none;">
<div class="results-content">
<div id="dispense-summary" class="result-section">
<h3>Aggregate Totals for Foster Home</h3>
<div id="dispense-summary-content"></div>
</div>
<div id="foster-checklist" class="result-section">
<h3>Foster Medication Checklist</h3>
<div class="checklist-start no-print">
<label for="checklist-start-date">Start on…</label>
<input type="date" id="checklist-start-date">
</div>
<div id="foster-checklist-content"></div>
</div>
</div>
</section>
<!-- Checklist for the cats chosen in the print picker (print-only) -->
<section class="results-section" id="print-subset-section">
<div class="results-content">
<div id="print-foster-checklist" class="result-section">
<h3>Foster Medication Checklist</h3>
<div id="print-foster-checklist-content"></div>
</div>
</div>
</section>
<!-- Page zoom bottom sheet -->
<div id="page-zoom-backdrop" class="page-zoom-backdrop"></div>
<div id="page-zoom-sheet" class="page-zoom-sheet" role="dialog" aria-label="Page Zoom">
<button type="button" class="page-zoom-step page-zoom-smaller" data-zoom="out" aria-label="Smaller">A</button>
<button type="button" class="page-zoom-value" data-zoom="reset" aria-label="Reset zoom">100%</button>
<button type="button" class="page-zoom-step page-zoom-bigger" data-zoom="in" aria-label="Bigger">A</button>
</div>
<!-- Print picker bottom sheet -->
<div id="print-sheet-backdrop" class="print-sheet-backdrop"></div>
<div id="print-sheet" class="print-sheet" role="dialog" aria-label="Choose cats to export">
<div class="print-sheet-header">
<span>Cats to Export</span>
<button type="button" id="print-sheet-toggle-all" class="print-sheet-toggle-all">Deselect All</button>
</div>
<div id="print-sheet-list" class="print-sheet-list"></div>
<button type="button" id="print-sheet-print" class="btn btn-primary print-sheet-print">Export</button>
</div>
<footer>
<small>Updated 09/14/26 · <a href="https://github.com/radutzan/kitten-intake">#90</a> · For the cats</small>
<p class="footer-disclaimer">This tool is provided for informational purposes only. It does not constitute veterinary or medical advice. Always consult a licensed veterinarian before administering any medication. Use this tool at your own risk.</p>
</footer>
<script src="https://cdn.jsdelivr.net/npm/barcode-detector@3/dist/iife/polyfill.js"></script>
<script src="js/constants.js?v=90"></script>
<script src="js/app-state.js?v=90"></script>
<script src="js/meds-data.js?v=90"></script>
<script src="js/med-calculator.js?v=90"></script>
<script src="js/dose-calculator.js?v=90"></script>
<script src="js/form-pagination.js?v=90"></script>
<script src="js/form-template.js?v=90"></script>
<script src="js/form-renderer.js?v=90"></script>
<script src="js/form-validator.js?v=90"></script>
<script src="js/form-manager.js?v=90"></script>
<script src="js/schedule-manager.js?v=90"></script>
<script src="js/results-display.js?v=90"></script>
<script src="js/print-manager.js?v=90"></script>
<script src="js/page-zoom.js?v=90"></script>
<script src="js/main-app.js?v=90"></script>
<script src="js/localStorage-manager.js?v=90"></script>
<script src="js/url-state-manager.js?v=90"></script>
</body>
</html>