Raindrops 0.963 の アップデートで、
raindrop.jsのスクリプト変更を行います。
コメントアウト部分を削除する予定ですので、事前にお知らせします
削除される機能は、現在プライベートプラグインとして公開している
Raindrops helper plugin
の機能として、移管する予定です。
現在の予定では、プラグインの機能に移す事で、theme obandes テーマ enough テーマでも、同様の機能を利用できるように企図しています。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
/** * Raindrops javascript actions * * @package Raindrops */ (function(){ jQuery(function(){ jQuery("blockquote").each(function(){ var cite = jQuery(this).attr("cite"); if( cite ){ jQuery(this).append("<p style=\"text-align:right;\">cite:<a href=\"" + cite +"\" onclick=\"this.target='_blank';\" onkeypress=\"this.target='_blank';\">" + cite + "</a></p>"); } }); jQuery("#month_list ul li:last-child").css({border:"none"}); jQuery(".widget ul li:last-child").css({border:"none"}); jQuery('a').removeAttr("title"); /** Toggle * * * @package Raindrops * @since Raindrop 0.922 */ /* jQuery('.raindrops-toggle').hide().css("width","90%"); jQuery('.raindrops-toggle.raindrops-toggle-title').show().css({"width":"90%","list-style":"none","font-weight":"bold","margin":"0 0 0 -1em"}).prepend("+ "); jQuery('.raindrops-toggle.raindrops-toggle-title').css("cursor","pointer").click(function(){ jQuery(this).siblings().toggle("slow"); var v = jQuery(this).html().substring( 0, 1 ); if ( v == "+" ){ jQuery(this).html( "-" + jQuery(this).html().substring( 1 ) ); }else if ( v == "-" ){ jQuery(this).html( "+" + jQuery(this).html().substring( 1 ) ); } });*/ }); })(jQuery); /** Tab Controll * * * @package Raindrops * @since Raindrop 0.922 */ /* (function(){ jQuery(function(){ var element = ".raindrops-tab-content h3"; var prefix = "raindrops-tab-page-"; jQuery(element).each(function(i){ var fragment = prefix + i; var title = "<li><a href=\"#" + fragment + "\">" + jQuery(element).eq(i).html() + "</a></li>" ; jQuery(this).parents(':eq(1)').prev().append(title); jQuery(this).parent().attr("id", fragment ); }); jQuery(".raindrops-tab-list li.dummy").remove(); //Default Action jQuery(".raindrops-tab-page").hide(); //Hide all content jQuery(".raindrops-tab-list li:first").addClass("active").show(); //Activate first tab jQuery(".raindrops-tab-page:first").show(); //Show first tab content //On Click Event jQuery(".raindrops-tab-list li").click(function() { jQuery(".raindrops-tab-list li").removeClass("active"); //Remove any "active" class jQuery(this).addClass("active"); //Add "active" class to selected tab jQuery(".raindrops-tab-page").hide(); //Hide all tab content var activeTab = jQuery(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content jQuery(activeTab).fadeIn(); //Fade in the active content return false; }); jQuery(".raindrops-tab-list").css({"margin": "auto"}); jQuery(".raindrops-tab-list li").css({"float":"left","list-style":"none"}); jQuery(".raindrops-tab-list li a").css({"display":"block","padding":"10px","text-decoration":"none","margin-right":"1px" }); }); })(jQuery); */ |