qol update
This commit is contained in:
parent
5930efd357
commit
9afed33c24
|
@ -0,0 +1 @@
|
||||||
|
/node_modules
|
12
index.html
12
index.html
|
@ -226,10 +226,10 @@ transform:scale(0.7);
|
||||||
|
|
||||||
let t = '{color:' + String(item.color) + ', rarity:' + String(item.rarity) + ', value: ' + String(item.value) + '}'
|
let t = '{color:' + String(item.color) + ', rarity:' + String(item.rarity) + ', value: ' + String(item.value) + '}'
|
||||||
if(item.s){
|
if(item.s){
|
||||||
i += ("<div class='shiny' ondrop=\"drop(event," + inv.indexOf(item) + ", 'inv')\" ondragstart=\"drag(event, 'inv')\" ondragover=\"allowDrop(event)\" draggable=\"true\" onclick='s(" + item.value + "," + inv.indexOf(item) + ")' onmouseout='this.innerHTML = \"" + t + "\"'onmouseover='this.innerHTML=\"sell? (or drag to combine) \"' id='" + inv.indexOf(item) + "'>" + t + " //shiny!</div>")
|
i += ("<div style='cursor: pointer;user-select:none;min-width:50px;min-height:10px;' class='shiny' ondrop=\"drop(event," + inv.indexOf(item) + ", 'inv')\" ondragstart=\"drag(event, 'inv')\" ondragover=\"allowDrop(event)\" draggable=\"true\" onclick='s(" + item.value + "," + inv.indexOf(item) + ")' onmouseout='this.innerHTML = \"" + t + "\"'onmouseover='this.innerHTML=\"sell? (or drag to combine) \"' id='" + inv.indexOf(item) + "'>" + t + " //shiny!</div>")
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
i += ("<div ondrop=\"drop(event," + inv.indexOf(item) + ", 'inv')\" ondragstart=\"drag(event, 'inv')\" ondragover=\"allowDrop(event)\" draggable=\"true\" onclick='s(" + item.value + "," + inv.indexOf(item) + ")' onmouseout='this.innerHTML = \"" + t + "\"'onmouseover='this.innerHTML=\"sell? (or drag to combine) \"' id='" + inv.indexOf(item) + "'style='color:" + item.color + ";'>" + t + "</div>")
|
i += ("<div style='cursor: pointer;user-select:none;min-width:50px;min-height:10px;' ondrop=\"drop(event," + inv.indexOf(item) + ", 'inv')\" ondragstart=\"drag(event, 'inv')\" ondragover=\"allowDrop(event)\" draggable=\"true\" onclick='s(" + item.value + "," + inv.indexOf(item) + ")' onmouseout='this.innerHTML = \"" + t + "\"'onmouseover='this.innerHTML=\"sell? (or drag to combine) \"' id='" + inv.indexOf(item) + "'style='color:" + item.color + ";'>" + t + "</div>")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -241,10 +241,10 @@ transform:scale(0.7);
|
||||||
if(item != null){
|
if(item != null){
|
||||||
let t = '{color:' + String(item.color) + ', rarity:' + String(item.rarity) + ', value: ' + String(item.value) + '}'
|
let t = '{color:' + String(item.color) + ', rarity:' + String(item.rarity) + ', value: ' + String(item.value) + '}'
|
||||||
if(item.s){
|
if(item.s){
|
||||||
s += ("<div ondrop=\"drop(event," + inv.indexOf(item) + ", 'store')\" ondragstart=\"drag(event, 'store')\" ondragover=\"allowDrop(event)\" draggable=\"true\" class='shiny' onmouseout='this.innerHTML = \"" + t + "\"'onmouseover='this.innerHTML=\"click to move to inv \"' id='" + storage.indexOf(item) + "'>" + t + " //shiny!</div>")
|
s += ("<div style='cursor: pointer;user-select:none;' ondrop=\"drop(event," + inv.indexOf(item) + ", 'store')\" ondragstart=\"drag(event, 'store')\" ondragover=\"allowDrop(event)\" draggable=\"true\" class='shiny' onmouseout='this.innerHTML = \"" + t + "\"'onmouseover='this.innerHTML=\"click to move to inv \"' id='" + storage.indexOf(item) + "'>" + t + " //shiny!</div>")
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
s += ("<div ondrop=\"drop(event," + inv.indexOf(item) + ", 'store')\" ondragstart=\"drag(event, 'store')\" ondragover=\"allowDrop(event)\" draggable=\"true\" onmouseout='this.innerHTML = \"" + t + "\"'onmouseover='this.innerHTML=\"click to move to inv \"' onclick='toInv(" + storage.indexOf(item) + ");' id='" + storage.indexOf(item) + "'style='color:" + item.color + ";'>" + t + "</div>")
|
s += ("<div style='cursor: pointer;user-select:none;' ondrop=\"drop(event," + inv.indexOf(item) + ", 'store')\" ondragstart=\"drag(event, 'store')\" ondragover=\"allowDrop(event)\" draggable=\"true\" onmouseout='this.innerHTML = \"" + t + "\"'onmouseover='this.innerHTML=\"click to move to inv \"' onclick='toInv(" + storage.indexOf(item) + ");' id='" + storage.indexOf(item) + "'style='color:" + item.color + ";'>" + t + "</div>")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -437,13 +437,13 @@ transform:scale(0.7);
|
||||||
<div style='display:inline;color:rgba(0, 0, 0, 0);'>______________________</div><div style='display:inline;color:#964B00;'>'; ;</div></br>\
|
<div style='display:inline;color:rgba(0, 0, 0, 0);'>______________________</div><div style='display:inline;color:#964B00;'>'; ;</div></br>\
|
||||||
<div style='display:inline;color:green;'>_______\|/__________\\;_\\//___\|/________ </div></b></strong></tt></div>") //yeah i stacked a bold and a stong tag, fight me
|
<div style='display:inline;color:green;'>_______\|/__________\\;_\\//___\|/________ </div></b></strong></tt></div>") //yeah i stacked a bold and a stong tag, fight me
|
||||||
|
|
||||||
setFavicons('https://raw.githubusercontent.com/squiresgrant/Antheia/main/icon.ico');
|
setFavicons('https://git.disroot.org/grantsquires/Antheia/raw/branch/main/icon.ico');
|
||||||
var bank = getCookie('bank');
|
var bank = getCookie('bank');
|
||||||
var inv = getCookie('inv');
|
var inv = getCookie('inv');
|
||||||
var inv = getCookie('storage');
|
var inv = getCookie('storage');
|
||||||
inv = JSON.parse(inv)
|
inv = JSON.parse(inv)
|
||||||
document.write("<div style='position:absolute;right:5%;'>")
|
document.write("<div style='position:absolute;right:5%;'>")
|
||||||
document.write("inv:{ //<a style='color:#696969;' href = \"https://github.com/squiresgrant\">https://github.com/squiresgrant</a> <a style='color:pink;' href=\"https://github.com/squiresgrant/Antheia\">v1.3+10</a><a style='color=purple;'> \<3 "+ "dXd1IQ==".fontsize(1) +"</a></br>")
|
document.write("inv:{ //<a style='color:#696969;' href = \"https://git.disroot.org/grantsquires/\">https://git.disroot.org/grantsquires/</a> <a style='color:pink;' href=\"https://git.disroot.org/grantsquires/Antheia\">v1.3+10</a><a style='color=purple;'> \<3 " + "dXd1IQ==".fontsize(1) + "</a></br>")
|
||||||
document.write("items:[</br>")
|
document.write("items:[</br>")
|
||||||
document.write("<div id='inv'>")
|
document.write("<div id='inv'>")
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"name": "antheia",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "> Antheia",
|
||||||
|
"main": "server.ts",
|
||||||
|
"scripts": {
|
||||||
|
"start": "ts-node ."
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.disroot.org/grantsquires/Antheia"
|
||||||
|
},
|
||||||
|
"keywords": [],
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/node": "^18.7.20",
|
||||||
|
"express": "^4.18.1",
|
||||||
|
"ip": "^1.1.8"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue