Новости
Привет
Контент для гостей
Контент для игроков
Контент для разыскиваемых
Контент для частых вопросов
Контент для рас мира

Сказания о Земноморье

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.



wewe

Сообщений 1 страница 4 из 4

1

wewewe

0

2

Код:
[hideprofile][html]

<table class="tbgen">
    <tr>
        <td width="50%">

<div class="zqprof">
<!-- Таблица для размещения форм ввода -->

            <form id="form1">
                <label for="text1">Анкета героя:</label>
                <input class="input-prof" type="text" id="text1" name="text1" placeholder="Ссылка на анкету">
            </form>

            <form id="form2">
                <label for="text2">Раса героя:</label>
                <input class="input-prof" type="text" id="text2" name="text2" placeholder="Раса">
            </form>

            <form id="form3">
                <label for="text3">Возраст героя:</label>
                <input class="input-prof" type="text" id="text3" name="text3" placeholder="Возраст со словами лет/года (н/р, 15 лет)">
            </form>

            <form id="form4">
                <label for="text4">Род деятельности:</label>
                <input class="input-prof" type="text" id="text4" name="text4" placeholder="Деятельность героя, профессия, звание/титул">
            </form>

            <form id="form5">
                <label for="text5">Магические умения:</label>
                <input class="input-prof" type="text" id="text5" name="text5" placeholder="Все магические способности">
            </form>


<!-- Кнопки и текстовое поле для вывода результата -->
<button class="zprofil" onclick="generateHTML()">Сгенерировать</button>
<textarea class="textarea-prof" id="output-prof" rows="10" cols="50" readonly></textarea>

<button class="zprofil" onclick="copyText()">Скопировать</button>
<button class="zprofil" onclick="clearText()">Очистить код</button>

</div>

        </td>

        <td width="50%">

<div class="zqprof">essdfsd fsd ыва ы</div>

        </td>
    </tr>
</table>

<script>
// JavaScript функции остаются без изменений
function generateHTML() {
    var text1 = document.getElementById("text1").value;
    var text2 = document.getElementById("text2").value;
    var text3 = document.getElementById("text3").value;
    var text4 = document.getElementById("text4").value;
    var text5 = document.getElementById("text5").value;

    if (text1 === '' || text2 === '' || text3 === '' || text4 === '' || text5 === '') {
        document.getElementById("output-prof").value = "Для получения кода, пожалуйста, заполните все поля!";
    } else {
        var htmlCode = '<div>' + text1 + '</div>' + '<div>' + text2 + '</div>' + '<div>' + text3 + '</div>' + '<div>' + text4 + '</div>' + '\nАнкета: <div><span style="color: red;">' + text5 + '</span></div>';
        document.getElementById("output-prof").value = htmlCode;
    }
}

function copyText() {
    var output = document.getElementById("output-prof");
    output.select();
    document.execCommand("copy");
}

function clearText() {
    document.getElementById("output-prof").value = "";
}
</script>

[/html]

0

3

[hideprofile][html]

<table class="tbgen">
    <tr>
        <td width="50%">

<div class="zqprof">
<!-- Таблица для размещения форм ввода -->

            <form id="form1">
                <label for="text1">Анкета героя:</label>
                <input class="input-prof" type="text" id="text1" name="text1" placeholder="Ссылка на анкету">
            </form>

            <form id="form2">
                <label for="text2">Раса героя:</label>
                <input class="input-prof" type="text" id="text2" name="text2" placeholder="Раса">
            </form>

            <form id="form3">
                <label for="text3">Возраст героя:</label>
                <input class="input-prof" type="text" id="text3" name="text3" placeholder="Возраст со словами лет/года (н/р, 15 лет)">
            </form>

            <form id="form4">
                <label for="text4">Род деятельности:</label>
                <input class="input-prof" type="text" id="text4" name="text4" placeholder="Деятельность героя, профессия, звание/титул">
            </form>

            <form id="form5">
                <label for="text5">Магические умения:</label>
                <input class="input-prof" type="text" id="text5" name="text5" placeholder="Все магические способности">
            </form>

<!-- Кнопки и текстовое поле для вывода результата -->
<button class="zprofil" onclick="generateHTML()">Сгенерировать</button>
<textarea class="textarea-prof" id="output-prof" rows="10" cols="50" readonly></textarea>

<button class="zprofil" onclick="copyText()">Скопировать</button>
<button class="zprofil" onclick="clearText()">Очистить код</button>

<script>
function generateHTML() {
    var text1 = document.getElementById("text1").value;
    var text2 = document.getElementById("text2").value;
    var text3 = document.getElementById("text3").value;
    var text4 = document.getElementById("text4").value;
    var text5 = document.getElementById("text5").value;

    if (text1 === '' || text2 === '' || text3 === '' || text4 === '' || text5 === '') {
        document.getElementById("output-prof").value = "Для получения кода, пожалуйста, заполните все поля!";
    } else {
var htmlCode = 'Анкета:\n<a href="' + text1 + '">Анкета</a>' + '\n\nЛист героя:\n<div class="prace">' + text2 + '</div>' + '<div class="age">' + text3 + '</div>' + '<div class="prof">' + text4 + '</div>' + '<div class="skills">' + text5 + '</div>';

        document.getElementById("output-prof").value = htmlCode;
    }
}

function copyText() {
    var output = document.getElementById("output-prof");
    output.select();
    document.execCommand("copy");
}

function clearText() {
    document.getElementById("output-prof").value = "";
}
</script>

</div>

        </td>

        <td width="50%">

<div class="zqprof">essdfsd fsd ыва ы</div>

        </td>
    </tr>
</table>

[/html]

0

4

Код:
<div class="ibuttons">

<div class="ibutt">Кнопка 1</div>
<div class="ibutt">Кнопка 2</div>
<div class="ibutt">Кнопка 3</div>
<div class="ibutt">Кнопка 4</div>
<div class="ibutt">Кнопка 5</div>
<div class="ibutt">Кнопка 6</div>

</div>

<div class="news">

<p><b>04.09</b> Летнее голосование - <a href="https://alternativereality.mybb.ru/viewtopic.php?id=1741#p108550">ЗДЕСЬ</a>!</p>
<p><b>03.05</b> Апрельское голосование - <a href="https://alternativereality.mybb.ru/viewtopic.php?id=1741#p101873">ТЫК</a>!</p>
<p><b>02.04</b> Голосование в честь открытия - <a href="https://alternativereality.mybb.ru/viewtopic.php?id=1741#p98230">ТЫК</a>!</p>

<p><b>01.04</b> ПРОЕКТ ОТКРЫТ! Подарки в профиле ;)</p>

<p><b>14.03</b> МЫ СНОВА С ВАМИ! </p>

<p>Честно, сами от себя не ожидали, но рискнули попробовать. Что из этого получится - узнаем вместе с вами. </p>

<p>Сразу оговоримся, это «предперезапуск». Официально откроемся 1 апреля (нет, вовсе не шутка). Но уже сейчас можно регистрироваться, подавать анкету и даже играть. </p>

<p>В общем, возвращайтесь, обживайтесь, а мы пока продолжим наводить здесь лоск. 
</p>

</div>

0



Рейтинг форумов | Создать форум бесплатно