Skip to content

Instantly share code, notes, and snippets.

@satour
Created June 30, 2012 06:39
Show Gist options
  • Save satour/3022686 to your computer and use it in GitHub Desktop.
Save satour/3022686 to your computer and use it in GitHub Desktop.
$(function() {
$("a#get_name").one('click', function() {
var yamada_name = $("p#yamada_name").text()
$("span#subject01_result").text(yamada_name)
});
$("a#add_sakurako").one('click', function() {
var sakurako = '<li id="sakurako">櫻子</li>'
$("ul#member_list").append(sakurako)
});
$("a#add_himawari").one('click', function() {
var himawari = '<li id="himawari">向日葵</li>'
$("ul#member_list").append(himawari)
});
$("a#remove_akari").one('click', function() {
$("li#akari").remove()
});
$("a#change_visible_momo").bind('click', function() {
var time = 1
$("p#stealth_momo").toggle(time)
});
$("a#change_header_html").one('click', function() {
$("h2").each(function(index) {
$(this).text("【" + $(this).text() + "】")
});
});
});;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment