Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions js/solari.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ var solariData;
var current_board = [];
var new_board = [];

var postUrl='../example/postJson.py';

//an attempt to reduce slowdown from animations
jQuery.fx.interval = 20;

Expand All @@ -81,7 +83,9 @@ function ToUpper(code) {
}

//constructs the solariBoard within the given div. If no parameter is given, adds the board to "body"
function addSolariBoard(divSelector) {
function addSolariBoard(divSelector,url) {
postUrl=url || postUrl;

if (solari_setup_done === 1) {
return;
}
Expand Down Expand Up @@ -318,7 +322,7 @@ function GetFailBoard() {
}

function updateSolariBoard() {
$.post('../example/postJson.py', //replace this with your own script
$.post(postUrl,
function (data) {
if (data !== null) {
solariData = data.slice(0);
Expand Down