@cagatay said in Post Style View:
maybe it depends on me or my web browser. thank you
One thing I have noticed is that there are a number of errors on your site in the console. My concern here is that the jQuery
functions I added are not being executed. For example, I removed the below function from your site about 30 minutes ago because it’s malformed
});ment).ready(function () {
function animateTags() {
if (ajaxify.data.template.name === 'categories') {
var tags = $('.popular-tags .tag-item');
var bar = $('<div class="popular-tags-bar"></div>');
tags.append(bar);
var max;
setTimeout(function() {
tags.each(function() {
var bar = $(this).find('.popular-tags-bar');
var val = parseInt(bar.parents('a').find('.tag-topic-count').text(), 10);
max = max > val ? max : val;
bar.css({
width: val / max * 100 + '%'
});
});
}, 100)
}
}
animateTags();
$(window).on('action:ajaxify.end', animateTags);
});
As you can see, this isn’t right at all. It should be
$(document).ready(function () {
function animateTags() {
if (ajaxify.data.template.name === 'categories') {
var tags = $('.popular-tags .tag-item');
var bar = $('<div class="popular-tags-bar"></div>');
tags.append(bar);
var max;
setTimeout(function () {
tags.each(function () {
var bar = $(this).find('.popular-tags-bar');
var val = parseInt(bar.parents('a').find('.tag-topic-count').text(), 10);
max = max > val ? max : val;
bar.css({
width: val / max * 100 + '%'
});
});
}, 100);
}
}
animateTags();
$(window).on('action:ajaxify.end', animateTags);
});
I’ve put this back how it should be, but am curious as to where that came from.