class Pettanr.View.Social extends Pettanr.View className: 'social' constructor: (@item, @context, options) -> super(options) initialize: (options) -> super(options) @twitter = new Pettanr.View.Social.Twitter() @facebook = new Pettanr.View.Social.Facebook() @hatena = new Pettanr.View.Social.Hatena() render: () -> this.$el.html('') this.$el.append(@twitter.render().el) this.$el.append(@facebook.render().el) this.$el.append(@hatena.render().el) @append_rb() this refresh: () -> @facebook.refresh() class Pettanr.View.Social.Twitter extends Pettanr.View className: 'social-button' render: () -> this.$el.html('') this.$el.append('Tweet') this refresh: () -> class Pettanr.View.Social.Facebook extends Pettanr.View className: 'social-button' render: () -> this.$el.html('') this.$el.append('
') this.$el.append('
') this refresh: () -> FB.XFBML.parse() class Pettanr.View.Social.Hatena extends Pettanr.View className: 'social-button' render: () -> this.$el.html('') url = 'http://b.hatena.ne.jp/entry/' + window.location.href console.log(url) title = document.title this.$el.append('このエントリーをはてなブックマークに追加') this refresh: () ->