const photo = $('#photo');
for (let i = 0; i < data.length; i++) {
const img = $('<img>');
photo.append(img);
img.attr({ src: data[i].url, width: data[i].width, height: data[i].height, alt: data[i].alt })
}
function handleOhioDynamicTextSc() {
$('div[data-dynamic-text="true"]').each(function () {
var options = JSON.parse($(this).attr('data-dynamic-text-options'));
new Typed('#' + $(this).attr('id') + ' .dynamic', options);
});
}
$(window).on('ohio:handle_ohio_dynamic_text', handleOhioDynamicTextSc);
$(".menu-item-has-children").click(function() {
var self = $(this);
if (self.hasClass('active')) {
self.removeClass('active');
} else {
$(".menu-item-has-children.active").removeClass('active');
self.addClass('active');
}
})