[html]<div class="guide-wrapper rules-mybb-fix">
<div class="main-box">
<div class="inner-box">
<div class="header-box">
АНКЕТИРОВАНИЕ
</div>
<div class="guide-block">Анкетирование проводится с использованием специального шаблона. Для удобства, мы сделали генератор анкет прямо на форуме.</div>
<div class="guide-block">Заполните форму, нажмите кнопку "Сгенерировать код" и "Скопировать код", затем перейдите к созданию анкеты и вставьте скопированный код в форму ответа. Не забудьте оформить заголовок темы.</div>
<div class="guide-block">При заполнении формы будьте внимательны, поскольку, заполнив некоторые поля и обновив страницу, вы потеряете все свои наработки. </div>
</div>
</div>
</div>
</div>
<style>
@font-face {
font-family: 'Cinzel';
src: url('https://raw.githubusercontent.com/tukiteruamano-a11y/anketa/main/cinzel_regular.ttf') format('truetype');
}
/* FIX MYBB */
.rules-mybb-fix, .rules-mybb-fix * { overflow: visible; box-sizing: border-box; }
/* Основной блок */
.main-box {
width: 600px;
margin: 2px auto;
background: url("https://i.ibb.co/0xP0jH4/6bbf97e48d3c1d7905e6169de8564e74.jpg") repeat;
border-radius: 20px;
padding: 5px;
font-family: 'Cinzel', serif;
}
.main-box a {
font-family: inherit !important;
}
/* Второй уровень */
.inner-box {
background: #c7c7c7;
border-radius: 16px;
padding: 5px;
}
/* Верхний прямоугольник */
.header-box {
background: url("https://i.ibb.co/0xP0jH4/6bbf97e48d3c1d7905e6169de8564e74.jpg") repeat;
border-radius: 12px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
font-size: 32px;
color: #c7c7c7;
}
/* GUIDE BLOCKS */
.guide-block {
position: relative;
padding: 10px;
margin: 10px 5px 5px 5px;
border-radius: 16px;
border: 1px solid #a9a9a9;
font-size: 14px;
text-indent: 25px;
text-align: justify;
}
a {
color: #744D37 !important;
}
a:hover {
color: #AF6F51 !important;
}
</style>
[/html]
[html]<style>
@font-face { font-family:'Cinzel'; src:url('https://raw.githubusercontent.com/tukiteruamano-a11y/anketa/main/cinzel_regular.ttf'); }
.gen-wrapper { width:600px; margin:2px auto; padding:5px; }
.gen-bg { padding:5px; background:url(https://i.ibb.co/0xP0jH4/6bbf97e48d3c1d … 564e74.jpg) repeat; border-radius:15px; }
.gen-inner { background:#c7c7c7; padding:20px; border-radius:10px; font-family:'Cinzel', serif; }
.gen-title { text-align:center; font-size:18px; color:#000; margin-bottom:20px;}
.gen-inner label { font-size:14px; display:block; font-weight:bold; margin-top:10px; color:#333; }
.gen-inner input, .gen-inner textarea { width:100%; padding:8px; border-radius:10px; border:1px solid #a9a9a9; margin-top:5px; font-family:'Cinzel', serif; font-size:14px; box-sizing:border-box; background:#eee;; resize:vertical; color:#000; resize: none;}
.gen-inner button { margin-top:15px; padding:10px; width:100%; border:none; border-radius:10px; font-size:16px; cursor:pointer; font-family:'Cinzel', serif; color:#fff; text-shadow: 1px 1px 2px #000; background:url(https://i.ibb.co/0xP0jH4/6bbf97e48d3c1d … 564e74.jpg) repeat; background-size:cover; transition: opacity 0.3s; }
.gen-inner button:hover { opacity:0.8; }
#output { margin-top:15px; font-family:monospace; padding:10px; border-radius:10px; border:1px solid #a9a9a9;resize: none;background:#eee; width:100%; overflow:auto; }
#copyMessage { color: green; font-weight: bold; margin-top:5px; display:none; text-align:center; margin-top:5px;}
.gen-wrapper::-webkit-scrollbar{width:4px;}
.gen-wrapper::-webkit-scrollbar-track{background:transparent;}
.gen-wrapper::-webkit-scrollbar-thumb{background:#744D37;border-radius:10px;}
.gen-wrapper{scrollbar-width:thin;scrollbar-color:#744D37 transparent;}
</style>
<div class="gen-wrapper">
<div class="gen-bg">
<div class="gen-inner">
<div class="gen-title"><strong>Генератор анкет</strong></div>
<label>Полное имя и возраст на русском:</label>
<input type="text" id="fullName">
<label>Фото 1 URL:</label>
<input type="text" id="photo1">
<label>Фото 2 URL:</label>
<input type="text" id="photo2">
<label>Прототип внешности на английском:</label>
<input type="text" id="fc">
<label>Родственники / связи:<br><em style='font-size:10px;'>(каждого в новой строке, формат: Имя — связь)</em></label>
<textarea id="relatives" rows="4"></textarea>
<label>Биография:<br><em style='font-size:10px;'>(Enter = новый абзац)</em></label>
<textarea id="bio" rows="5"></textarea>
<label>Особые умения / Дополнительно:<br><em style='font-size:10px;'>(Enter = новый абзац)</em></label>
<textarea id="skills" rows="4"></textarea>
<label>Отношение к вирусу:<br><em style='font-size:10px;'>(Enter = новый абзац)</em></label>
<textarea id="virus" rows="3"></textarea>
<label>Связь с вами:</label>
<input type="text" id="contact">
<button onclick="generateCode()">Сгенерировать код</button>
<button onclick="copyCode()">Скопировать код</button>
<div id="copyMessage">Код успешно скопирован!</div>
<div style='font-size:14px; margin:10px 0 0 0;'>Сгенерированный код:</div>
<textarea id="output" rows="15"></textarea>
</div>
</div>
</div>
<script>
function generateCode() {
const name = document.getElementById('fullName').value.trim();
const photo1 = document.getElementById('photo1').value.trim();
const photo2 = document.getElementById('photo2').value.trim();
const fc = document.getElementById('fc').value.trim();
const relatives = document.getElementById('relatives').value.trim().split('\n').map(r => `<li>${r}</li>`).join('\n');
const bio = document.getElementById('bio').value.trim().split('\n').map(p => `<p>${p}</p>`).join('\n');
const skills = document.getElementById('skills').value.trim().split('\n').map(p => `<p>${p}</p>`).join('\n');
const virus = document.getElementById('virus').value.trim().split('\n').map(p => `<p>${p}</p>`).join('\n');
const contact = document.getElementById('contact').value.trim();
const code = `[hideprofile][html]
<style>
@font-face { font-family:'Cinzel'; src:url('https://raw.githubusercontent.com/tukiteruamano-a11y/anketa/main/cinzel_regular.ttf'); }
.weekly-wrapper { width:850px; margin:auto; padding:5px; }
.weekly-bg { padding:5px; background:url(https://i.ibb.co/0xP0jH4/6bbf97e48d3c1d … 564e74.jpg) repeat; border-radius:10px; }
.weekly-inner { background:#c7c7c7; padding:15px; border-radius:10px; font-family:'Cinzel', serif; font-size:14px; }
.images { text-align:center; margin-bottom:15px; }
.images img { width:230px; height:230px; object-fit:cover; border-radius:15px; margin:0 10px; filter:sepia(70%) saturate(50%) brightness(90%);}
.fc { text-align:center; font-style:italic; margin-bottom:20px; }
.section-box { background:url(https://i.ibb.co/0xP0jH4/6bbf97e48d3c1d … 564e74.jpg) repeat; border-radius:20px; padding:3px; text-align:center; margin-top:20px; color:#c7c7c7; font-size:25px; }
.section-box h1, .section-box h2 { margin:0; padding:0; }
.text-box { border:1px solid #a9a9a9; border-radius:10px; padding:10px; margin-top:5px; text-align:justify; text-indent:25px; font-size:14px; }
.relatives { list-style:none; padding-left:0; margin-left:20px; }
.relatives li { margin-bottom:5px; }
.contact { text-align:center; font-size:16px; margin-top:20px; }
</style>
<div class="weekly-wrapper">
<div class="weekly-bg">
<div class="weekly-inner">
<div class="section-box header-box"><h1>${name}</h1></div><br>
<div class="images"><img src="${photo1}" alt="Фото 1"><img src="${photo2}" alt="Фото 2"></div>
<p class="fc">fc: ${fc}</p>
<div class="section-box"><h2>РОДСТВЕННИКИ, СВЯЗИ</h2></div>
<div class="text-box"><ul class="relatives">${relatives}</ul></div>
<div class="section-box"><h2>БИОГРАФИЯ</h2></div>
<div class="text-box">${bio}</div>
<div class="section-box"><h2>ОСОБЫЕ УМЕНИЯ, ДОПОЛНИТЕЛЬНО</h2></div>
<div class="text-box">${skills}</div>
<div class="section-box"><h2>ОТНОШЕНИЕ К ВИРУСУ</h2></div>
<div class="text-box">${virus}</div>
<p class="contact"><strong>СВЯЗЬ С ВАМИ:</strong> ${contact}</p>
</div>
</div>
</div>
[` + `/html]`;
document.getElementById('output').value = code;
document.getElementById('copyMessage').style.display = 'none';
}
function copyCode() {
const output = document.getElementById('output');
output.select();
output.setSelectionRange(0, output.value.length);
try {
document.execCommand('copy'); // fallback для старых браузеров
showMessage();
} catch(e) {
navigator.clipboard.writeText(output.value).then(showMessage).catch(() => alert('Не удалось скопировать код.'));
}
function showMessage() {
const msg = document.getElementById('copyMessage');
msg.style.display = 'block';
setTimeout(() => msg.style.display = 'none', 3000);
}
}
</script>[/html]



























