Updating Blog Archives scripts

This commit is contained in:
Benedek Farkas
2025-09-30 22:21:08 +02:00
parent e23267bd67
commit 84d4cbf32b
2 changed files with 4 additions and 7 deletions

View File

@@ -1,16 +1,13 @@
/** archives **/
(function ($) {
$(function() {
$('.archives ul.years li.previous').each(function() {
$(this).click(function(ev) {
$(function () {
$('.archives ul.years li.previous').each(function () {
$(this).click(function (ev) {
if (!ev || $(ev.target).not("a").length) {
$(this).toggleClass("open");
$(this).find("h4>span").toggle();
$(this).children("ul").toggle();
}
});
//$(this).hoverClassIfy();
});
});
})(jQuery);

View File

@@ -1 +1 @@
!function($){$((function(){$(".archives ul.years li.previous").each((function(){$(this).click((function(ev){ev&&!$(ev.target).not("a").size()||($(this).toggleClass("open"),$(this).find("h4>span").toggle(),$(this).children("ul").toggle())}))}))}))}(jQuery);
!function(t){t(function(){t(".archives ul.years li.previous").each(function(){t(this).click(function(i){i&&!t(i.target).not("a").length||(t(this).toggleClass("open"),t(this).find("h4>span").toggle(),t(this).children("ul").toggle())})})})}(jQuery);