Commit f8e05fef authored by Łukasz Nowak's avatar Łukasz Nowak

Move out the configuration to the top

parent 9e818a22
......@@ -8,6 +8,17 @@
<title>HTTPing | Access servers based on network response time!</title>
<script type="text/javascript">
/* Configuration start */
var test_url_list = [
{ name : 'Site 1',
testurl: "http://site1.app.example.com/MYTESTFILE.txt",
redirect: "http://site1.app.example.com"},
{ name : 'Site 2',
testurl: "http://site2.app.example.com/MYTESTFILE.txt",
redirect: "http://site2.app.example.com"}
];
/* Configuration finishes */
/* DO NOT EDIT BELOW */
(function(globals) {
var define, requireModule;
......@@ -990,15 +1001,7 @@ window.RSVP = requireModule("rsvp");
/*global console, window, document, RSVP, XMLHttpRequest */
(function (document, RSVP, XMLHttpRequest) {
"use strict";
var promise_list = [],
test_url_list = [
{ name : 'Site 1',
testurl: "http://site1.app.example.com/MYTESTFILE.txt",
redirect: "http://site1.app.exmaple.com"},
{ name : 'Site 2',
testurl: "http://site2.app.example.com/MYTESTFILE.txt",
redirect: "http://site2.app.exmaple.com"}
];
var promise_list = [];
function ajax(param) {
var xhr = new XMLHttpRequest();
......
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