Your SlideShare is downloading. ×
0
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
Ruby on JavaScript
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 on JavaScript

1,505

Published on

Created for CSS Nite in Aomori 2009

Created for CSS Nite in Aomori 2009

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

  • Be the first to like this

No Downloads
Views
Total Views
1,505
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
3
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. Ruby on JavaScript ∼ Rubyしませんか? ∼ カームテック 代表 古川 勝也
  • 2. 最近のJavaScript事情
  • 3. jQuery
  • 4. 感想
  • 5. イイね
  • 6. $(function() { $(“#header .nav li”).each(function() { $(this).hover( function() {$(this).css(“border-bottom”, “solid 1px #fff”)}, function() {$(this).css(“border-bottom”, “none”)} ); });});
  • 7. $(function() { $(“#header .nav li”).each(function() { $(this).hover( function() {$(this).css(“border-bottom”, “solid 1px #fff”)}, function() {$(this).css(“border-bottom”, “none”)} ); });HTMLをロードし終わったら {}); id: header内のclass: nav内のli要素それぞれで { マウスカーソルを合わせた時 { のせたらborder-bottomのスタイルをsolid 1px #fffに, はずしたらborder-bottomのスタイルをnoneにする } }}
  • 8. CSSが書ける人だともっと分かりやすい
  • 9. そんな最中
  • 10. JSRuby
  • 11. <script type="text/ruby"> def link_to(text, path, options) if path link_tag = ‘<a href=”’ + path + ‘“ ‘ options.each do |option| link_tag += ‘ ’ option[0] + ‘=”’ link_tag += option[1] + ‘“‘ end end end</script><script type="text/javascript"> var jsr = new RubyEngine.Interpreter(); jsr.exec(RubyEngine.Util.getRubyScript()); var link = jsr.link_to(...)</script>
  • 12. <script type=”text/ruby” type="text/ruby"> def link_to(text, path, options) if path link_tag = ‘<a href=”’ + path + ‘“ ‘ options.each do |option| link_tag += ‘ ’ option[0] + ‘=”’ link_tag += option[1] + ‘“‘ end end end</script><script type="text/javascript"> var jsr = new RubyEngine.Interpreter(); jsr.exec(RubyEngine.Util.getRubyScript()); var link = jsr.link_to(...)</script>
  • 13. ver 0.1.1 はjQueryも動かせる
  • 14. 実際に使ってみた
  • 15. 結果
  • 16. 残念ながら実用はムリ
  • 17. フィードバック重要サンプルは後日配布
  • 18. わざわざなんで?
  • 19. 楽しい
  • 20. 以上
  • 21. 最初のきっかけがなんでも別にいい
  • 22. 本題
  • 23. プログラマーデザイナーの境界が希薄化
  • 24. CMS利用あたりまえ動的コンテンツ普通分散、共同開発必須
  • 25. 個人の限界
  • 26. 交流が必要
  • 27. 続きは勉強会で
  • 28. Ruby勉強会@青森毎月第4土曜日開催
  • 29. http://www.calmtech.net/
  • 30. Thank you! http://www.calmtech.net/

×