Skip to content

Instantly share code, notes, and snippets.

@lethe2211
Last active Aug 29, 2015
Embed
What would you like to do?
app/assets/javascripts/main.js
$(document).ready(function(){
// 省略 //
// JSONの読み込み(static_pages/get_citationを呼び出すことで,変数dataにJSONが返ってくる)
var data = $.getJSON('get_citation',function(data){
sys.graft({nodes:data.nodes, edges:data.edges})
});
// 省略 //
})(this.jQuery)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment