2018-12-20 19:23:16 +03:00
<!DOCTYPE html>
< html >
< head >
< meta charset = "UTF-8" / >
< title > Maloja - Issues< / title >
2019-03-24 18:04:44 +03:00
< script src = "javascript/cookies.js" > < / script >
2018-12-20 19:23:16 +03:00
< / head >
2019-03-24 18:04:44 +03:00
2019-06-24 16:02:38 +03:00
< body >
2018-12-20 19:23:16 +03:00
< table class = "top_info" >
< tr >
2019-03-25 19:49:52 +03:00
< td class = "image" >
< div style = "background-image:url('/favicon.png')" > < / div >
< / td >
2018-12-20 19:23:16 +03:00
< td class = "text" >
< h1 > Possible Issues< / h1 > < br / >
< span > with your library< / span >
2019-03-10 19:38:33 +03:00
< p class = "stats" > KEY_ISSUES Issues< / p >
2019-03-24 18:04:44 +03:00
2019-03-04 19:39:21 +03:00
< p > Maloja can identify possible problems with consistency or redundancy in your library. After making any changes, you should < a class = "textlink" onclick = 'fullrebuild()' > rebuild your library< / a > .< br / >
2018-12-29 18:57:52 +03:00
Your API key is required to make any changes to the server: < input id = 'apikey' onchange = 'checkAPIkey()' style = 'width:300px;' / > < / p >
2018-12-20 19:23:16 +03:00
< / td >
< / tr >
< / table >
KEY_ISSUESLIST
2019-03-24 18:04:44 +03:00
2018-12-20 19:23:16 +03:00
< / body >
2019-03-24 18:04:44 +03:00
2018-12-20 19:23:16 +03:00
< script >
2019-03-24 18:04:44 +03:00
2018-12-29 18:57:52 +03:00
function newrule() {
if (apikeycorrect) {
keys = ""
for (var i = 1; i < arguments.length ; i + + ) {
keys += encodeURIComponent(arguments[i]) + "& "
}
apikey = document.getElementById("apikey").value
keys += "key=" + encodeURIComponent(apikey)
console.log(keys)
2019-03-24 18:04:44 +03:00
2018-12-29 18:57:52 +03:00
var xhttp = new XMLHttpRequest();
xhttp.open("POST","/db/newrule?", true);
xhttp.send(keys);
e = arguments[0]
line = e.parentNode
line.parentNode.removeChild(line)
}
2018-12-20 19:23:16 +03:00
}
2019-03-24 18:04:44 +03:00
2018-12-21 18:32:21 +03:00
function fullrebuild() {
2018-12-29 18:57:52 +03:00
if (apikeycorrect) {
apikey = document.getElementById("apikey").value
2019-03-24 18:04:44 +03:00
2018-12-29 18:57:52 +03:00
var xhttp = new XMLHttpRequest();
xhttp.open("POST","/db/rebuild", true);
xhttp.send("key=" + encodeURIComponent(apikey))
2019-03-24 18:04:44 +03:00
window.location = "/wait";
2018-12-29 18:57:52 +03:00
}
2019-03-24 18:04:44 +03:00
2018-12-21 18:32:21 +03:00
}
2019-03-24 18:04:44 +03:00
2018-12-20 19:23:16 +03:00
< / script >
< / html >