jQuery to typeScript converter online
function foo()
{
$('.pre').hide();
if($('.superheader').parent('.active').length){
$('.sup').show();
$('.pre').hide();
// console.log('showing sup');
}
else{
// console.log('showing pre');
$('.pre').show();
$('.sup').hide();
}
setTimeout(foo, 500);
}
$(function(){
foo();
})
Md. Jasim Uddin