Your IP : 172.70.80.239


Current Path : /var/www/element/data/www/podarokvpodarok.ru/
Upload File :
Current File : /var/www/element/data/www/podarokvpodarok.ru/html code voprosy.txt

#text-container div {
      font-family: 'Roboto', sans-serif;
      color: #333;
      line-height: 1.6;
      margin: 0;
      padding: 0;
      background-color: #f4f4f4;
}

.text-block {
      font-family: 'Roboto', sans-serif;
      color: #333;
      line-height: 1.6;
      margin: 0;
      padding: 0;
      background-color: #f4f4f4;
}

#text-container ul, #text-container li {
    margin: 0;
    padding: 0;
    /* Дополнительно, вы можете добавить или изменить другие стили по вашему усмотрению */
}

ul, li {
    list-style-position: outside; /* или 'outside', в зависимости от нужного вам эффекта */
}

#text-container li {
    white-space: normal; /* Это позволит тексту нормально обтекать маркер */
    display: list-item; /* Это стандартное отображение для элементов списка */
    list-style-position: outside; /* Маркеры списка вне элемента, чтобы избежать переноса */
}

==

<script>
$(document).ready(function(){
    let allLines = $('#text-container').html().split('\n');
    $('#text-container').empty();

    let currentIndex = 0;
    function showNext100Lines() {
	let nextLines = allLines.slice(currentIndex, currentIndex + 99).join('');
        $('#text-container').append($('<div></div>').html(nextLines));
        currentIndex += 99;
    }

    showNext100Lines();

    $(window).scroll(function() {
        if($(window).scrollTop() + $(window).height() > $(document).height() - 99) {
            if (currentIndex < allLines.length) {
                showNext100Lines();
            }
        }
    });
});
</script>