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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>Prompt Generator for Kids Activity Hub Pro</title>
|
| 7 |
+
<style>
|
| 8 |
+
body {
|
| 9 |
+
font-family: sans-serif, Arial, Helvetica;
|
| 10 |
+
background-color: #ffffff;
|
| 11 |
+
display: flex;
|
| 12 |
+
justify-content: center;
|
| 13 |
+
align-items: center;
|
| 14 |
+
min-height: 100vh;
|
| 15 |
+
margin: 0;
|
| 16 |
+
color: #333;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
.container {
|
| 20 |
+
max-width: 450px;
|
| 21 |
+
width: 100%;
|
| 22 |
+
padding: 30px;
|
| 23 |
+
background-color: #f9f9f9;
|
| 24 |
+
border-radius: 15px;
|
| 25 |
+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
| 26 |
+
border-top: 5px solid #8A2BE2;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
h1 {
|
| 30 |
+
color: #8A2BE2;
|
| 31 |
+
font-size: 2em; /* Approx 32px */
|
| 32 |
+
text-align: center;
|
| 33 |
+
margin-top: 0;
|
| 34 |
+
margin-bottom: 30px;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
.form-group {
|
| 38 |
+
margin-bottom: 20px;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
label {
|
| 42 |
+
display: block;
|
| 43 |
+
margin-bottom: 8px;
|
| 44 |
+
font-weight: bold;
|
| 45 |
+
color: #6A1B9A;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
select,
|
| 49 |
+
input[type="text"] {
|
| 50 |
+
width: 100%;
|
| 51 |
+
padding: 15px; /* Reduced for better aesthetics */
|
| 52 |
+
border: 1px solid #D1C4E9;
|
| 53 |
+
border-radius: 8px;
|
| 54 |
+
font-size: 1em; /* Approx 16px */
|
| 55 |
+
box-sizing: border-box;
|
| 56 |
+
background-color: #ffffff;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
#prompt-display {
|
| 60 |
+
width: 100%;
|
| 61 |
+
padding: 20px;
|
| 62 |
+
margin-top: 20px;
|
| 63 |
+
border: 1px solid #ddd;
|
| 64 |
+
border-radius: 8px;
|
| 65 |
+
font-size: 1em;
|
| 66 |
+
background-color: #F3E5F5;
|
| 67 |
+
color: #6A1B9A;
|
| 68 |
+
min-height: 80px;
|
| 69 |
+
box-sizing: border-box;
|
| 70 |
+
white-space: pre-wrap;
|
| 71 |
+
word-wrap: break-word;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
button {
|
| 75 |
+
width: 100%;
|
| 76 |
+
padding: 20px;
|
| 77 |
+
border: 1px solid #D1C4E9;
|
| 78 |
+
border-radius: 8px;
|
| 79 |
+
background-color: #F3E5F5;
|
| 80 |
+
color: #8A2BE2;
|
| 81 |
+
font-size: 1.5em; /* Approx 24px */
|
| 82 |
+
font-weight: bold;
|
| 83 |
+
cursor: pointer;
|
| 84 |
+
transition: background-color 0.3s, color 0.3s;
|
| 85 |
+
margin-top: 10px;
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
button:hover {
|
| 89 |
+
background-color: #8A2BE2;
|
| 90 |
+
color: #ffffff;
|
| 91 |
+
}
|
| 92 |
+
</style>
|
| 93 |
+
</head>
|
| 94 |
+
<body>
|
| 95 |
+
|
| 96 |
+
<div class="container">
|
| 97 |
+
<h1>Prompt Generator</h1>
|
| 98 |
+
|
| 99 |
+
<form id="prompt-form">
|
| 100 |
+
<div class="form-group">
|
| 101 |
+
<label for="class-select">Select Class</label>
|
| 102 |
+
<select id="class-select">
|
| 103 |
+
<option value="Playgroup">Playgroup</option>
|
| 104 |
+
<option value="Nursery">Nursery</option>
|
| 105 |
+
<option value="KG / Prep">KG / Prep</option>
|
| 106 |
+
<option value="Grade 1">Grade 1</option>
|
| 107 |
+
<option value="Grade 2">Grade 2</option>
|
| 108 |
+
<option value="Grade 3">Grade 3</option>
|
| 109 |
+
<option value="Grade 4">Grade 4</option>
|
| 110 |
+
<option value="Grade 5">Grade 5</option>
|
| 111 |
+
</select>
|
| 112 |
+
</div>
|
| 113 |
+
|
| 114 |
+
<div class="form-group">
|
| 115 |
+
<label for="subject-select">Select Subject</label>
|
| 116 |
+
<select id="subject-select">
|
| 117 |
+
<option value="English">English</option>
|
| 118 |
+
<option value="Urdu">Urdu</option>
|
| 119 |
+
<option value="Mathematics">Mathematics</option>
|
| 120 |
+
<option value="Science">Science</option>
|
| 121 |
+
<option value="Social Studies">Social Studies</option>
|
| 122 |
+
<option value="Islamiat">Islamiat</option>
|
| 123 |
+
<option value="Art / Drawing">Art / Drawing</option>
|
| 124 |
+
</select>
|
| 125 |
+
</div>
|
| 126 |
+
|
| 127 |
+
<div class="form-group">
|
| 128 |
+
<label for="type-select">Select Type</label>
|
| 129 |
+
<select id="type-select">
|
| 130 |
+
<option value="General Classroom Activity">General Classroom Activity</option>
|
| 131 |
+
<option value="Printable Worksheet">Printable Worksheet</option>
|
| 132 |
+
<option value="Coloring Sheet">Coloring Sheet</option>
|
| 133 |
+
<option value="Tracing Sheet">Tracing Sheet</option>
|
| 134 |
+
<option value="Drawing Practice">Drawing Practice</option>
|
| 135 |
+
</select>
|
| 136 |
+
</div>
|
| 137 |
+
|
| 138 |
+
<div class="form-group">
|
| 139 |
+
<label for="topic-input">Enter Topic (Optional)</label>
|
| 140 |
+
<input type="text" id="topic-input" placeholder="e.g., Addition, My Family, Plants">
|
| 141 |
+
</div>
|
| 142 |
+
|
| 143 |
+
<div id="prompt-display-container" class="form-group">
|
| 144 |
+
<label>Generated Prompt</label>
|
| 145 |
+
<div id="prompt-display">Your generated prompt will appear here...</div>
|
| 146 |
+
</div>
|
| 147 |
+
|
| 148 |
+
<button type="button" id="generate-btn">Generate Prompt & Copy</button>
|
| 149 |
+
</form>
|
| 150 |
+
</div>
|
| 151 |
+
|
| 152 |
+
<script>
|
| 153 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 154 |
+
const classSelect = document.getElementById('class-select');
|
| 155 |
+
const subjectSelect = document.getElementById('subject-select');
|
| 156 |
+
const typeSelect = document.getElementById('type-select');
|
| 157 |
+
const topicInput = document.getElementById('topic-input');
|
| 158 |
+
const generateBtn = document.getElementById('generate-btn');
|
| 159 |
+
const promptDisplay = document.getElementById('prompt-display');
|
| 160 |
+
const gptUrl = 'https://chat.openai.com/g/g-Y2Wh1aI8k-kids-activity-hub-pro';
|
| 161 |
+
|
| 162 |
+
// Function to generate the prompt text
|
| 163 |
+
function generatePromptText() {
|
| 164 |
+
const classVal = classSelect.value;
|
| 165 |
+
const subjectVal = subjectSelect.value;
|
| 166 |
+
const typeVal = typeSelect.value;
|
| 167 |
+
const topicVal = topicInput.value.trim();
|
| 168 |
+
|
| 169 |
+
let prompt = `Generate a "${typeVal}" for ${classVal} for the subject of ${subjectVal}.`;
|
| 170 |
+
|
| 171 |
+
if (topicVal) {
|
| 172 |
+
prompt += ` The specific topic is "${topicVal}".`;
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
+
return prompt;
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
// Update display whenever a value changes
|
| 179 |
+
const allInputs = [classSelect, subjectSelect, typeSelect, topicInput];
|
| 180 |
+
allInputs.forEach(input => {
|
| 181 |
+
input.addEventListener('change', () => {
|
| 182 |
+
promptDisplay.textContent = generatePromptText();
|
| 183 |
+
});
|
| 184 |
+
input.addEventListener('keyup', () => {
|
| 185 |
+
promptDisplay.textContent = generatePromptText();
|
| 186 |
+
});
|
| 187 |
+
});
|
| 188 |
+
|
| 189 |
+
// Initial prompt generation on page load
|
| 190 |
+
promptDisplay.textContent = generatePromptText();
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
// Button click event
|
| 194 |
+
generateBtn.addEventListener('click', () => {
|
| 195 |
+
const promptText = generatePromptText();
|
| 196 |
+
|
| 197 |
+
// Copy to clipboard
|
| 198 |
+
navigator.clipboard.writeText(promptText).then(() => {
|
| 199 |
+
// Success feedback
|
| 200 |
+
const originalText = generateBtn.textContent;
|
| 201 |
+
generateBtn.textContent = 'Copied!';
|
| 202 |
+
setTimeout(() => {
|
| 203 |
+
generateBtn.textContent = originalText;
|
| 204 |
+
}, 2000);
|
| 205 |
+
|
| 206 |
+
// Open the GPT link in a new tab
|
| 207 |
+
window.open(gptUrl, '_blank');
|
| 208 |
+
|
| 209 |
+
}).catch(err => {
|
| 210 |
+
console.error('Failed to copy text: ', err);
|
| 211 |
+
alert('Failed to copy prompt. Please copy it manually.');
|
| 212 |
+
});
|
| 213 |
+
});
|
| 214 |
+
});
|
| 215 |
+
</script>
|
| 216 |
+
|
| 217 |
+
</body>
|
| 218 |
+
</html>
|