let max_height = window.screen.availHeight - (window.outerHeight - window.innerHeight);
let max_width = window.screen.availWidth - (window.outerWidth - window.innerWidth);
let fullsize = false;
if(window.innerWidth >= max_width && window.innerHeight >= max_height){
fullsize = true;
}
count($new->tags) != ++$i ? "," : "";
<?php $i = 0; ?>
<?php foreach ($new->tags as $tag):?>
<span data-id = "<?= $tag->id ?>"><?= $tag->name ?><?=count($new->tags) != ++$i ? "," : ""?></span>
<?php endforeach; ?>
var course_id = document.getElementsByName("courseid")[0];
var value = course_id.getAttribute("value");
alert(value);
$(document).ready(function() {
var windowHeight = $(window).height();
$(document).on('scroll', function() {
$('.myMouse, .go3, .go4, .go5, .go6, .go7, .go8, .gofooter').each(function() {
var self = $(this),
height = self.offset().top + self.height();
if ($(document).scrollTop() + windowHeight >= height) {
$('#box2, #box3, #box4, #box5, #box6, #box7, #box8, footer, .line_again').show()
}
});
});
});
$(document).ready(function(){var o=$(window).height();$(document).on("scroll",function(){$(".myMouse, .go3, .go4, .go5, .go6, .go7, .go8, .gofooter").each(function(){var n=$(this),t=n.offset().top+n.height();$(document).scrollTop()+o>=t&&$("#box2, #box3, #box4, #box5, #box6, #box7, #box8, footer, .line_again").show()})})});
//let block = {...empty_block};
let block = _.cloneDeep(empty_block);
<div class="container">
<h2>Greetings</h2>
<div class="inner">Hello</div>
<div class="inner">Goodbye</div>
</div>
$( ".inner" ).before( "<p>Test</p>" );
<div class="container">
<h2>Greetings</h2>
<p>Test</p>
<div class="inner">Hello</div>
<p>Test</p>
<div class="inner">Goodbye</div>
</div>