изменить высоту div при загрузке скрипта

<?php
if (eregi("YOUR_INCLUDED_PHP_FILE_NAME", $_SERVER['PHP_SELF'])) { 
 die("<h4>You don't have right permission to access this file directly.</h4>");
}
?>

поместите код выше в верхнюю часть вашего включенного php-файла.

ex:

<?php
if (eregi("some_functions.php", $_SERVER['PHP_SELF'])) {
    die("<h4>You don't have right permission to access this file directly.</h4>");
}

    // do something
?>
0
задан PJW 6 March 2019 в 16:06
поделиться

2 ответа

Вы могли бы сделать это, но, вероятно, есть гораздо лучший способ

$($('.placeholderbokehapp').css('height', '1700px'))
0
ответ дан McMuffin 6 March 2019 в 16:06
поделиться

Если Bokeh загружается в html-теге iframe, вы можете написать скрипт после загрузки всех других js-скриптов внизу html-страницы.

<script>
    $('#tbc-id iframe').load(function(){
        $('#tbc-id').css({height: 1700}) //make container height to 1700px        
       $(this).css({height: 1700}) //make iframe height match the container

    });
</script>
0
ответ дан Bradia 6 March 2019 в 16:06
поделиться
Другие вопросы по тегам:

Похожие вопросы: