Offline-first photo capture app for Nextcloud with: - Camera capture with continuous mode (auto-reopens after each photo) - File browser with fullscreen image gallery, swipe navigation, and rename - Upload queue with background sync engine - Admin panel for Nextcloud user management - Service worker for offline-first caching (v13) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
67 lines
1.9 KiB
HTML
67 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Camera Test</title>
|
|
<style>
|
|
body {
|
|
font-family: sans-serif;
|
|
padding: 20px;
|
|
text-align: center;
|
|
}
|
|
#test-btn {
|
|
font-size: 24px;
|
|
padding: 30px 60px;
|
|
margin: 20px;
|
|
background: blue;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
}
|
|
#status {
|
|
margin: 20px;
|
|
padding: 10px;
|
|
background: #f0f0f0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Camera Test Page</h1>
|
|
<div id="status">Click counter: <span id="count">0</span></div>
|
|
|
|
<button id="test-btn">📷 TEST BUTTON</button>
|
|
|
|
<input type="file" id="camera-input" accept="image/*" capture="environment" style="display:none;">
|
|
|
|
<div id="result"></div>
|
|
|
|
<script>
|
|
let clickCount = 0;
|
|
const btn = document.getElementById('test-btn');
|
|
const input = document.getElementById('camera-input');
|
|
const countEl = document.getElementById('count');
|
|
const resultEl = document.getElementById('result');
|
|
|
|
btn.addEventListener('click', function() {
|
|
clickCount++;
|
|
countEl.textContent = clickCount;
|
|
console.log('Button clicked!', clickCount);
|
|
input.click();
|
|
console.log('Input clicked');
|
|
});
|
|
|
|
input.addEventListener('change', function(e) {
|
|
const file = e.target.files[0];
|
|
if (file) {
|
|
resultEl.textContent = 'File: ' + file.name + ', Size: ' + file.size;
|
|
console.log('File selected:', file);
|
|
}
|
|
});
|
|
|
|
console.log('Test page loaded');
|
|
</script>
|
|
</body>
|
|
</html>
|