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');
}
})
$city = [
'name' => 'Azn',
$streets => [
'name' => 'Firas street',
'buildings_count' => '15',
'old_buildings' => [1, 3, 4]
],
[
'name' => 'second street',
'buildings_count' => '25',
'old_buildings' => [5, 7, 9],
]
];