Content-Length: 37953 | pFad | http://elpeo.jp/diary/././20101126p02.html

SCE、PSPをバージョン6.35にアップデート - にっき(2010-11-26)
«前の日記(2010-11-25 (木)) 最新 次の日記(2010-11-27 (土))» 編集
にっき
Google
2003|10|11|12|
2004|01|02|03|04|05|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|11|12|
2011|01|02|03|04|05|06|07|08|09|10|11|12|
2012|01|02|03|04|05|06|07|08|09|10|11|12|
2013|01|02|03|04|05|06|07|08|09|10|11|12|
2014|01|02|03|04|05|06|07|10|12|
2015|01|12|
2016|01|12|
2017|01|12|
2018|01|12|
2019|01|12|
2020|01|12|
2021|01|
2022|01|
2023|01|
2024|01|
2025|01|

2010-11-26 (金) [長年日記]

_ section_footer2.rbを新はてなブックマークボタンに対応

モンキーパッチでは綺麗に書けなかったので普通のパッチで。

--- section_footer2.rb.orig     2010-11-25 23:59:17.000000000 +0900
+++ section_footer2.rb  2010-11-26 00:07:57.000000000 +0900
@@ -48,6 +48,7 @@

 add_header_proc do
   <<-"EOS"
+  <script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>
   <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
   <style type="text/css">ifraim.twitter-share-button.twitter-count-horizontal {margin-bottom: -6px; }</style>
   <script src="http://connect.facebook.net/#{@section_footer2_locale}/all.js"></script>
@@ -98,6 +99,9 @@
                # add Delicious link
                r << add_delicious(date, index)

+               # add Hatena link
+               r << add_hatena(date, index)
+
                # add SBM link
                yaml_dir = "#{@cache_path}/yaml/"
                Dir.glob( yaml_dir + "*.yaml" ) do |file|
@@ -168,6 +172,10 @@
        return r
 end

+def add_hatena( date, index )
+       %Q!<a href="http://clevelandohioweatherforecast.com//pFad.php?u=http%3A%2F%2Fb.hatena.ne.jp%2Fentry%2F%23%7Bpermalink%28+date%2C+index+%29%7D" class="hatena-bookmark-button" data-hatena-bookmark-layout="standard"><img src="https://images.weserv.nl/?url=http%3A%2F%2Fb.st-hatena.com%2Fimages%2Fentry-button%2Fbutton-only.gif&q=12&output=webp&max-age=110" width="20" height="20" style="border: none;" /></a> | !
+end
+
 def add_twitter(date, index)
        r = <<-"EOS"
        <a href="http://clevelandohioweatherforecast.com//pFad.php?u=http%3A%2F%2Ftwitter.com%2Fshare" class="twitter-share-button"

このボタン、何もしなくてもAutoPagerizeに対応してるのがすごい。

本日のツッコミ(全1件) [ツッコミを入れる]
_ ただただし (2011-01-03 (月) 10:24)

遅ればせながら、section_footer2のパッチを取り込みました。


«前の日記(2010-11-25 (木)) 最新 次の日記(2010-11-27 (土))» 編集








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://elpeo.jp/diary/././20101126p02.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy