-
Notifications
You must be signed in to change notification settings - Fork 0
twitter_badge.rb
TADA Tadashi edited this page Nov 10, 2017
·
2 revisions
TwitterへのリンクになるGO2WEB20のFollow meバッヂを貼るプラグインです。IEでのエラー対策を組み込んであります。
ヘッダかフッタの任意の場所に記述して下さい。
<% twitter_badge( 'account', :label => 'follow-me', ...) %>
account: あなたのTwitterアカウント
以下オプション(「:OPTION => VALUE」の形式)
:label: 「Follow me」などのラベル。任意のものは指定できません。
:color: バッヂの色。CSSでの指定に準じます。
:side: ページの左右どちらに貼るか。'r'か'l'。
:top: ページトップからの距離(px)。
:delay: IE対策のために表示を遅らせます。無指定時「5」(秒)
任意の場所に記述できますが、実際のスクリプトはフッタに挿入されます。