Last active
August 29, 2015 14:01
-
-
Save lethe2211/cd704d6aa0d177dc1ee6 to your computer and use it in GitHub Desktop.
app/assets/javascripts/main.js
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
$(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