Commit 8f188af6 authored by Jon Phillips's avatar Jon Phillips
Browse files

added gitignore

parent 2a961e1b
js/config.js
...@@ -16,12 +16,30 @@ ...@@ -16,12 +16,30 @@
var doDebug = false; var doDebug = false;
var debugNeedle = 1337; var debugNeedle = 1337;
var serviceUrl = 'http://service.fabricatorz.com'; var services;
// var serviceUrl = 'http://service.localhost';
// @TODO really should make this configs and convert code below
$.ajax({
timeout: 1000,
async: false,
url: 'js/config.json',
dataType: "text",
success: function(data) {
services = $.parseJSON(data);
}
});
var serviceUrl, urlShortener;
if ( ! services || typeof services.serviceUrl === 'undefined' )
serviceUrl = 'http://service.fabricatorz.com';
else
serviceUrl = services["serviceUrl"];
// var urlShortener = 'http://contributoragreements.org/u2s'; if ( ! services || typeof services.urlShortener === 'undefined' )
var urlShortener = serviceUrl + '/u2s'; urlShortener = 'http://service.fabricatorz.com/u2s';
// var urlShortener = 'http://service.localhost' + '/u2s'; else
urlShortener = services["urlShortener"];
var generalPageIndex = 0; var generalPageIndex = 0;
......
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