Upload files to "/"
first commit
This commit is contained in:
+211
@@ -0,0 +1,211 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Google Meet Generator</title>
|
||||
<style>
|
||||
/* Page Styling */
|
||||
body {
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
background: #f4f7f6;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Modal Overlay */
|
||||
.modal-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
backdrop-filter: blur(4px);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.modal-overlay.active {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
/* Modal Card */
|
||||
.modal-card {
|
||||
background: #ffffff;
|
||||
border-radius: 12px;
|
||||
padding: 24px;
|
||||
width: 90%;
|
||||
max-width: 480px;
|
||||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
|
||||
position: relative;
|
||||
transform: translateY(20px);
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.modal-overlay.active .modal-card {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.modal-card h2 {
|
||||
margin-top: 0;
|
||||
font-size: 20px;
|
||||
color: #202124;
|
||||
}
|
||||
|
||||
/* Important Notice Box */
|
||||
.notice-box {
|
||||
background-color: #e8f0fe;
|
||||
border-left: 4px solid #1a73e8;
|
||||
border-radius: 4px;
|
||||
padding: 12px 14px;
|
||||
margin: 16px 0;
|
||||
font-size: 13px;
|
||||
color: #1f1f1f;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.notice-box ul {
|
||||
margin: 8px 0 0 0;
|
||||
padding-left: 18px;
|
||||
}
|
||||
|
||||
/* Styled Input + Copy Button */
|
||||
.input-group {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.input-group input {
|
||||
flex: 1;
|
||||
padding: 10px 14px;
|
||||
border: 1px solid #dadce0;
|
||||
border-radius: 6px;
|
||||
font-size: 14px;
|
||||
outline: none;
|
||||
background: #f8f9fa;
|
||||
color: #3c4043;
|
||||
}
|
||||
|
||||
.input-group input.error {
|
||||
color: #d93025;
|
||||
border-color: #d93025;
|
||||
background-color: #fce8e6;
|
||||
}
|
||||
|
||||
.copy-btn {
|
||||
padding: 10px 18px;
|
||||
background-color: #34a853;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.copy-btn:disabled {
|
||||
background-color: #ccc;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.copy-btn:hover:not(:disabled) {
|
||||
background-color: #2d8e47;
|
||||
}
|
||||
|
||||
.close-btn {
|
||||
position: absolute;
|
||||
top: 16px;
|
||||
right: 16px;
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 20px;
|
||||
cursor: pointer;
|
||||
color: #5f6368;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- Popup Overlay -->
|
||||
<div class="modal-overlay" id="modalOverlay">
|
||||
<div class="modal-card">
|
||||
<button class="close-btn" id="closeBtn">×</button>
|
||||
<h2>Public Google Meet Link</h2>
|
||||
|
||||
<!-- User Guidelines / Description Notice -->
|
||||
<div class="notice-box">
|
||||
<strong>Important Usage Guidelines:</strong>
|
||||
<ul>
|
||||
<li>This public link should be used for urgent customer communications, mainly for high-priority incidents or service requests.</li>
|
||||
<li>If you only wish to chat, join the meeting room with your camera and microphone disabled.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<p style="font-size: 13px; color: #5f6368; margin: 0;">Your generated Google Meet link:</p>
|
||||
|
||||
<div class="input-group">
|
||||
<input type="text" id="meetUrlInput" readonly value="Generating link..." />
|
||||
<button class="copy-btn" id="copyBtn" disabled>Copy</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const modalOverlay = document.getElementById('modalOverlay');
|
||||
const closeBtn = document.getElementById('closeBtn');
|
||||
const meetUrlInput = document.getElementById('meetUrlInput');
|
||||
const copyBtn = document.getElementById('copyBtn');
|
||||
|
||||
window.addEventListener('DOMContentLoaded', async () => {
|
||||
modalOverlay.classList.add('active');
|
||||
meetUrlInput.value = 'Generating link...';
|
||||
copyBtn.disabled = true;
|
||||
|
||||
try {
|
||||
const response = await fetch('http://localhost:8585/webhook/new-meet', {
|
||||
method: 'POST'
|
||||
});
|
||||
const data = await response.json();
|
||||
|
||||
if (data.success) {
|
||||
meetUrlInput.value = data.meetLink;
|
||||
meetUrlInput.classList.remove('error');
|
||||
copyBtn.disabled = false;
|
||||
} else {
|
||||
meetUrlInput.value = 'Error: ' + (data.error || 'Failed to generate meeting link');
|
||||
meetUrlInput.classList.add('error');
|
||||
copyBtn.disabled = true;
|
||||
}
|
||||
} catch (err) {
|
||||
meetUrlInput.value = 'Error: Could not connect to backend server';
|
||||
meetUrlInput.classList.add('error');
|
||||
copyBtn.disabled = true;
|
||||
}
|
||||
});
|
||||
|
||||
closeBtn.addEventListener('click', () => {
|
||||
modalOverlay.classList.remove('active');
|
||||
});
|
||||
|
||||
copyBtn.addEventListener('click', () => {
|
||||
if (!meetUrlInput.value || meetUrlInput.classList.contains('error')) return;
|
||||
|
||||
navigator.clipboard.writeText(meetUrlInput.value);
|
||||
copyBtn.textContent = 'Copied!';
|
||||
setTimeout(() => {
|
||||
copyBtn.textContent = 'Copy';
|
||||
}, 2000);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user