予告

Raindrops 0.963 の アップデートで、

raindrop.jsのスクリプト変更を行います。

コメントアウト部分を削除する予定ですので、事前にお知らせします

削除される機能は、現在プライベートプラグインとして公開している
https://www.tenman.info/wp3/raindrops-helper/(b:Raindrops helper plugin)
の機能として、移管する予定です。

現在の予定では、プラグインの機能に移す事で、theme https://www.tenman.info/wp3/obandes(b:obandes テーマ) https://www.tenman.info/wp3/enough(b:enough テーマ)でも、同様の機能を利用できるように企図しています。 

[php]
 /**
  * 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);
 */
[/php]


コメントは受け付けていません。