This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>MutationObserver</title> | |
<script src="dom_observer.js"></script> | |
</head> | |
<body> | |
<input type="button" value="Hello" onclick="appendTextNode()"/> | |
<div id="text-container"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>trim</title> | |
<!--jQuery--> | |
<script src="../library/jquery/jquery-3.1.1.min.js"></script> | |
<script> | |
$(function(){ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
p { | |
padding-left: 1em; | |
text-indent: -1em; | |
} | |
</style> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
.tooltip { | |
display: none; | |
} | |
#tooltip-showing { | |
display: none; | |
padding: 15px; | |
width: 200px; | |
text-align: left; | |
overflow: hidden; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$(function() { | |
$('#open_hoge_dialog').click(function() { | |
HogeFugaDialog.open(this.id); | |
}); | |
$('#open_fuga_dialog').click(function() { | |
HogeFugaDialog.open(this.id); | |
}); | |
}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ダイアログの表示制御を行う共通オブジェクト | |
*/ | |
var CommonDialog = { | |
/** | |
* 表示対象のダイアログIDを格納する | |
* @type {string} | |
*/ | |
dialogId : '', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getData = function (query) { | |
var param = { | |
url: 'http://hoge', | |
data: { | |
userId : 'hoge' | |
query: query, | |
}, | |
dataType: 'json' | |
} | |
//success |