<div class='menu__item' data-shown='false'>
<span>content</span>
</div>
<div class='menu__item' data-shown='false'>
<span>contentcontentcontent</span>
</div>
<div class='menu__item' data-shown='false'>
<span class="b">contentcontentcontentcontent</span>
</div>
<div class='menu__item' data-shown='false'>
<span>content</span>
</div>
$('.menu__item').click(function() {
if ($(this).attr('data-shown') == 'false') {
openSubmenu();
} else {
closeSubmenu();
}
});
var animationEnd = 'animationend oAnimationEnd mozAnimationEnd webkitAnimationEnd';
var animationNameImage = 'animated fadeInUpImage';
var animationNameButton = 'animated fadeInUpButton';
var animationNameText = 'animated fadeInUpText';
var animationCheckBox = 'animated bounce';
function animatedCheckbox(el){
el.addClass(animationCheckBox).one(animationEnd, function(){
$(this).removeClass(animationCheckBox).addClass('animationEnd');
});
}
function animatedOnInit(event){
var item = 0;
$('#item-text_'+item).addClass(animationNameText).one(animationEnd, function(){
$(this).removeClass(animationNameText).addClass('animationEnd');
});
$('#item-heading_'+item).addClass(animationNameText).one(animationEnd, function(){
$(this).removeClass(animationNameText).addClass('animationEnd');
});
$('#item-button_'+item).addClass(animationNameButton).one(animationEnd, function(){
$(this).removeClass(animationNameButton).addClass('animationEnd');
});
$('#item-mobile_button_'+item).addClass(animationNameButton).one(animationEnd, function(){
$(this).removeClass(animationNameButton).addClass('animationEnd');
});
$('#item-image_'+item).addClass(animationNameImage).one(animationEnd, function(){
$(this).removeClass(animationNameImage).addClass('animationEnd');
});
}
$(document).ready(function() {
animatedOnInit();
});
if($i != $row['max_date']) {
$query = mysqli_query($link7, "SELECT `price` FROM `prices` WHERE price_product != 0 AND id_lab = '{$row_product['id_lab']}' AND `date` < '{$row['max_date']}' ORDER BY `date` ASC LIMIT 1");
$row_query = mysqli_fetch_assoc($query);
$price = $row_query['price'];
} else {
$price = $row['price'];
}