1
Posting Tests / Re: Test
« Last post by xTreme on September 14, 2026, 02:22:21 pm »Testing 


<h2>Avatar Generator</h2>
<p>Click "Generate" to create a new random avatar. Keep clicking until you find one you like, then copy the link and paste it into Profile -> Forum Profile -> Avatar (avatar from a URL).</p>
<div style="text-align:center;">
<img id="avatarPreview" src="" width="150" height="150" style="border:1px solid #ccc; border-radius:8px; background:#fff;"><br><br>
<select id="styleSelect">
<option value="bottts">Robots</option>
<option value="adventurer">Adventurer</option>
<option value="fun-emoji">Fun Emoji</option>
<option value="pixel-art">Pixel Art</option>
<option value="micah">Micah</option>
<option value="lorelei">Lorelei</option>
</select>
<button onclick="generateAvatar()">Generate</button>
<br><br>
<input id="avatarLink" type="text" readonly style="width:80%; padding:5px;">
<br><br>
<button onclick="copyLink()">Copy Link</button>
<span id="copyMsg" style="color:green; margin-left:10px;"></span>
</div>
<script>
function generateAvatar() {
var style = document.getElementById('styleSelect').value;
var seed = Math.random().toString(36).substring(2, 10);
var url = 'https://api.dicebear.com/7.x/' + style + '/svg?seed=' + seed;
document.getElementById('avatarPreview').src = url;
document.getElementById('avatarLink').value = url;
document.getElementById('copyMsg').textContent = '';
}
function copyLink() {
var linkField = document.getElementById('avatarLink');
linkField.select();
document.execCommand('copy');
document.getElementById('copyMsg').textContent = 'Copied!';
}
generateAvatar();
</script><script>
document.addEventListener('DOMContentLoaded', function () {
document.querySelectorAll('.c3-cat').forEach(function (cat) {
var head = cat.querySelector('.c3-cat__head');
var body = cat.querySelector('.c3-cat__body');
if (!head || !body) return;
var title = head.querySelector('.c3-cat__title');
var key = 'cat_collapse_' + (title ? title.textContent.trim().replace(/\s+/g, '_') : cat.className);
head.style.cursor = 'pointer';
var arrow = document.createElement('span');
arrow.style.float = 'right';
arrow.style.marginRight = '10px';
head.appendChild(arrow);
function setState(collapsed) {
body.style.display = collapsed ? 'none' : '';
arrow.textContent = collapsed ? '\u25B8' : '\u25BE';
}
setState(localStorage.getItem(key) === 'collapsed');
head.addEventListener('click', function () {
var collapsed = body.style.display !== 'none';
localStorage.setItem(key, collapsed ? 'collapsed' : 'expanded');
setState(collapsed);
});
});
});
</script><script type='text/javascript' src='//mod.postimage.org/smf.js' charset='utf-8'></script>