Submit Search
RubyからJavaScriptへ (!tDiary会議 2011)
0 likes
984 views
Kohei MATSUOKA
1 of 25
Download now
Download to read offline
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
More Related Content
TXT
Load2
grateful7
TXT
Formulario
tukisele
PDF
UI実装におけるコーディングあれこれ
Hiromu Hasegawa
PDF
Working With Ajax Frameworks
Jonathan Snook
PDF
Bootcamp Google Abidjan 2012: Workshop Gaou Search
Ismael Toé
PDF
PHPのすべらない話#3
Moriyoshi Koizumi
PPT
Tools20121015
Frans Van Assche
PDF
Javascript and jQuery for Mobile
Ivano Malavolta
Load2
grateful7
Formulario
tukisele
UI実装におけるコーディングあれこれ
Hiromu Hasegawa
Working With Ajax Frameworks
Jonathan Snook
Bootcamp Google Abidjan 2012: Workshop Gaou Search
Ismael Toé
PHPのすべらない話#3
Moriyoshi Koizumi
Tools20121015
Frans Van Assche
Javascript and jQuery for Mobile
Ivano Malavolta
What's hot
(12)
RTF
Codigo menu
cesarwillyjaguar
PDF
Drupal 8. Movement towards. Susikov Sergey
ADCI Solutions
ODP
Jquery Plugin
Simone Gentili
KEY
Pimp your site with jQuery!
Elliott Kember
PPTX
Gestire l'asincronia in javascript uno sguardo al futuro!
ApuliaSoft
PDF
jQuery sans jQuery
goldoraf
PDF
Jquery2
Inbal Geffen
PDF
WordPress Customizer
slicejack
PDF
Verbo POUPAR
pr_afsalbergaria
PDF
Функциональное реактивное программирование
Dmitriy Kiriyenko
DOCX
Crud secara simultan ala php myadmin
Rizal Di Caprio
KEY
jQuery for designers
Johan Ronsse
Codigo menu
cesarwillyjaguar
Drupal 8. Movement towards. Susikov Sergey
ADCI Solutions
Jquery Plugin
Simone Gentili
Pimp your site with jQuery!
Elliott Kember
Gestire l'asincronia in javascript uno sguardo al futuro!
ApuliaSoft
jQuery sans jQuery
goldoraf
Jquery2
Inbal Geffen
WordPress Customizer
slicejack
Verbo POUPAR
pr_afsalbergaria
Функциональное реактивное программирование
Dmitriy Kiriyenko
Crud secara simultan ala php myadmin
Rizal Di Caprio
jQuery for designers
Johan Ronsse
Ad
More from Kohei MATSUOKA
(7)
PDF
PStore and Memcached benchmark
Kohei MATSUOKA
PDF
How does the Waterfall model survive?
Kohei MATSUOKA
PDF
OpenID Introduction
Kohei MATSUOKA
PDF
Secured Authentication Method for Managing Consumer-Generated Information in ...
Kohei MATSUOKA
PDF
about Shibuya.trac naming
Kohei MATSUOKA
PDF
ID Management
Kohei MATSUOKA
PDF
yet another TDD
Kohei MATSUOKA
PStore and Memcached benchmark
Kohei MATSUOKA
How does the Waterfall model survive?
Kohei MATSUOKA
OpenID Introduction
Kohei MATSUOKA
Secured Authentication Method for Managing Consumer-Generated Information in ...
Kohei MATSUOKA
about Shibuya.trac naming
Kohei MATSUOKA
ID Management
Kohei MATSUOKA
yet another TDD
Kohei MATSUOKA
Ad
RubyからJavaScriptへ (!tDiary会議 2011)
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, '"')); $.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, '"')); $.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 json add_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
Download