minor bug and formatting
This commit is contained in:
parent
4c8fcc4eb1
commit
7ce57e85a0
@ -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': [],
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="header1" class="colorFade">
|
||||
<div id="header1" class="transition">
|
||||
<h1>/smirkär/</h1>
|
||||
</div>
|
||||
<div id="header2">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user