Your SlideShare is downloading. ×
0
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
RubyからJavaScriptへ (!tDiary会議 2011)
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

RubyからJavaScriptへ (!tDiary会議 2011)

1,187

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,187
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. 1
  • 2. 2
  • 3. 3
  • 4. 4
  • 5. 5
  • 6. 6
  • 7. 7
  • 8. 8
  • 9. 9
  • 10. 10
  • 11.   function socialbutton(target) {    $(.socialbuttons).css(height, 1em);    $(.section, target).each(function() {      var url = $(this).children(h3).children(a).get(0).href;      var title = $(this).children(h3).children(a).attr(title);      var socialbuttons = $(this).find(.socialbuttons);      append_button(url, title, socialbuttons);    });  }  function append_button(url, title, socialbuttons) {    $.each(config.enables, function(i, service) {      var options = callbacks[service](url, title.replace(/"/g, &quot;));      $.extend(options, config.options[service]);      $(<div class="socialbutton"></div>)        .css("float", "left")        .css("margin-right", "0.5em")        .appendTo(socialbuttons)        .socialbutton(service, options);    });  } 11
  • 12. 12
  • 13. 13
  • 14.    function socialbutton(target) {     $(.socialbuttons).css(height, 1em);     $(.section, target).each(function() {       var url = $(this).children(h3).children(a).get(0).href;       var title = $(this).children(h3).children(a).attr(title);       var socialbuttons = $(this).find(.socialbuttons);       append_button(url, title, socialbuttons);     });   }   function append_button(url, title, socialbuttons) {     $.each(config.enables, function(i, service) {       var options = callbacks[service](url, title.replace(/"/g, &quot;));       $.extend(options, config.options[service]);       $(<div class="socialbutton"></div>)         .css("float", "left")         .css("margin-right", "0.5em")         .appendTo(socialbuttons)         .socialbutton(service, options);     });   } 14
  • 15. 15
  • 16. add_js_setting($tDiary.plugin.socialbutton)# convert array to jsonadd_js_setting($tDiary.plugin.socialbutton.enables,   %Q|["#{@conf[socialbutton.enables].split(,).join(", ")}"]|)options = "{ twitter: { via: #{@conf[socialbutton.twitter.via]} } }" 16
  • 17. 17
  • 18. $([name= +document.location.hash.substr(1) + ]) 18
  • 19. 19
  • 20. 20
  • 21. 21
  • 22. 22
  • 23. 23
  • 24. 24
  • 25. 25

×