Upgrade to Pro — share decks privately, control downloads, hide ads and more …

nodefest2013

53bc8fa21f71dd8e63f3c94275c56191?s=47 ngs
October 26, 2013

 nodefest2013

node 学園祭 2013 の発表資料。

http://nodefest.jp/2013/

53bc8fa21f71dd8e63f3c94275c56191?s=128

ngs

October 26, 2013
Tweet

More Decks by ngs

Other Decks in Programming

Transcript

  1. Atsushi Nagase @ngs

  2. None
  3. None
  4. None
  5. None
  6. None
  7. None
  8. None
  9. 2ͭͷཁૉͷࠩ෼ίʔυΛੜ੒͢Δ jQuery.elementDiff ݎ࿚ͳ CSS ηϨΫλΛੜ੒͢Δ jQuery.selectorator

  10. None
  11. $(event.target).getSelector() // => [“.mod-pageMain > section:eq(0)”]

  12. None
  13. None
  14. None
  15. None
  16. None
  17. None
  18. None
  19. None
  20. None
  21. None
  22. None
  23. None
  24. $(‘<p id=”foo”><span>Original text</span></p>’) .getElementDiff( ‘<p id=”foo2” class=“bar”><b>It works</b></p>’, “p#foo“) //

    => [ ‘$(“#foo > :eq(0)”).replaceWith(“<b>It works</b>”)’, ‘$(“#foo”).attr({”id”: ”foo2”, ”class”: ”bar ”})‘ ]
  25. https://github.com/ngs/jquery-selectorator/ https://github.com/ngs/jquery-elementDiff/

  26. We’re HIRING! http://kaizenplatform.in/

  27. } http://ngs.io