Commit 2e2f9b22 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers 🐦

load rules from tomcat server rather than the static list

parent 24e60a77
Pipeline #2052 passed with stages
in 25 seconds
......@@ -57,7 +57,7 @@ function makeRuleItem(list, index, value){
}
function loadAndDisplay(){
$.getJSON("assets/js/rules.json", function(json){
$.getJSON("http://hanabi-eval.aiclash.com/rule-evaluator-1.0-SNAPSHOT/rules", function(json){
json.sort(function(a, b){
if(a.name < b.name) return -1;
if(a.name > b.name) return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment