minor bug and formatting

This commit is contained in:
Kenneth Jao 2018-01-20 23:01:36 -05:00
parent 4c8fcc4eb1
commit 7ce57e85a0
3 changed files with 14 additions and 15 deletions

View File

@ -12,7 +12,6 @@ app.config.update(
try:
with open("save.p", "rb") as f:
database = pickle.load(f)
print("Loaded", database)
except (FileNotFoundError) as e:
database = {'languages': [],
'phonemes': [],

View File

@ -1,5 +1,5 @@
var navSelect = "home";
var serverURL = "http://0.0.0.0:5000";
var serverURL = "http://localhost:5000";
var data;
var navi = [ // Array containing navigation items in form [Font-Awesome class name, Display Text, Onclick function].
@ -55,18 +55,18 @@ function updateNav(op) {
function getData() {
$.ajax({
url: serverURL + '/server',
type: 'GET'
})
.then(
function success(incoming) {
data = incoming;
},
function error(e) {
console.log(e);
}
);
console.log(data);
url: serverURL + '/server',
type: 'GET'
})
.then(
function success(incoming) {
data = incoming;
console.log(data);
},
function error(e) {
console.log(e);
}
);
}
function language(language) {

View File

@ -14,7 +14,7 @@
</head>
<body>
<div id="header1" class="colorFade">
<div id="header1" class="transition">
<h1>/smirkär/</h1>
</div>
<div id="header2">