```
```
Quick Elements:
βοΈ Content Editor
Presets:
πΎ Export Your Page
Copy this HTML code to use on Neocities, GitHub Pages, or anywhere else!
```
Your scrolling text here! \n';
break;
case 'guestbook':
elementHTML = '\nπ Sign My Guestbook!
Leave a message for other visitors!
\n';
break;
case 'counter':
elementHTML = '\nYou are visitor #001337
\n';
break;
case 'construction':
elementHTML = '\nπ§ UNDER CONSTRUCTION π§
\n';
break;
case 'rainbow':
elementHTML = '\nRAINBOW TEXT!
\n';
break;
case 'blink':
elementHTML = '\nThis text blinks!\n';
break;
}
contentInput.value = textBefore + elementHTML + textAfter;
contentInput.focus();
contentInput.setSelectionRange(cursorPos + elementHTML.length, cursorPos + elementHTML.length);
updatePreview();
}
function loadPreset(type) {
const titleInput = document.getElementById('pageTitle');
const contentInput = document.getElementById('contentInput');
const bgColor = document.getElementById('bgColor');
switch(type) {
case 'personal':
titleInput.value = "Welcome to My Personal Homepage!";
bgColor.value = "#ffff00";
contentInput.value = `π About Me π
```
Hi there! Welcome to my little corner of the internet!
Who Am I?
I'm just someone who loves the old-school web. Here you'll find my thoughts, interests, and cool stuff I've discovered.
My Interests
- Web design from the 90s
- Retro gaming
- Making websites
- Escaping social media
π Sign My Guestbook!
Leave a message for other visitors!
You are visitor #001337
`;
break;
```
case 'hobby':
titleInput.value = "My Hobby Website";
bgColor.value = "#00ffff";
contentInput.value = `π¨ My Hobby Corner π¨
```
Welcome to my hobby website! Check out all my cool projects!
Current Projects
Here's what I'm working on right now:
- Building model airplanes
- Learning to code
- Growing my collection
Gallery
Photos of my latest work coming soon!
π§ UNDER CONSTRUCTION π§
`;
break;
```
case 'business':
titleInput.value = "My Small Business";
bgColor.value = "#c0c0c0";
contentInput.value = `πΌ Welcome to My Business πΌ
```
About Our Services
We provide quality services with a personal touch. No corporate nonsense here!
Why Choose Us?
- Personal service
- Fair prices
- Local business
- We actually care
Contact Info
Email: info@mybusiness.com
Phone: (555) 123-4567
You are visitor #002468
`;
break;
```
case 'fan':
titleInput.value = "My Fan Page";
bgColor.value = "#ff00ff";
contentInput.value = `π΅ ULTIMATE FAN PAGE π΅
```
THE BEST BAND EVER!
Why They're Amazing
- Their music changed my life
- Best live performances
- Amazing lyrics
- True artists
Latest News
New album coming soon! Can't wait!
πΆ Now playing: Their greatest hits πΆ Join the fan community! πΆ
π Fan Messages
Share your love for the band here!
`;
break;
}
```
updatePreview();
}
function updatePreview() {
const title = document.getElementById('pageTitle').value || 'My Homepage';
const bgColor = document.getElementById('bgColor').value;
const content = document.getElementById('contentInput').value || 'Welcome to my homepage!';
pageData = { title, bgColor, content };
const preview = document.getElementById('preview');
preview.style.backgroundColor = bgColor;
preview.innerHTML = `
${title}
${content.replace(/\n/g, '
')}
`;
// Update export code
const exportCode = generateFullHTML();
document.getElementById('exportCode').value = exportCode;
}
function generateFullHTML() {
const { title, bgColor, content } = pageData;
return `
```
${title}
```
${title}
```
${content}
Created with Retro Web Page Builder | ${new Date().getFullYear()}
```
`;
}
```
function copyCode() {
const exportCode = document.getElementById('exportCode');
exportCode.select();
exportCode.setSelectionRange(0, 99999);
document.execCommand('copy');
alert('HTML code copied to clipboard!');
}
function downloadPage() {
const htmlContent = generateFullHTML();
const blob = new Blob([htmlContent], { type: 'text/html' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = 'my-retro-page.html';
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
URL.revokeObjectURL(url);
}
// Add CSS for animations
const style = document.createElement('style');
style.textContent = `
@keyframes blink {
0%, 50% { opacity: 1; }
51%, 100% { opacity: 0; }
}
@keyframes scroll {
0% { transform: translateX(100%); }
100% { transform: translateX(-100%); }
}
`;
document.head.appendChild(style);
// Initialize with default content
updatePreview();
```