Skip to content

Commit

Permalink
Update: Version Indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
evannilaz-zz committed Sep 3, 2020
1 parent d8a1bf7 commit 1e65eeb
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 15 deletions.
2 changes: 1 addition & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ span.cm-keyword-2 {
}

span.cm-keyword-2, span.cm-bracket, span.cm-symbol {
color: rgb(150, 240, 255) !important;
color: #96f0ff !important;
}

#edit #logoPage {
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h3>
<a href="https://code.artrium.app">Artrium Code<span>:</span></a>
<div></div>
</h3>
<span>Beta v0.4.5</span>
<span>Public v0.5</span>
<div>
<button id="download" title="Download file">
<img src="img/download.webp">
Expand Down
36 changes: 23 additions & 13 deletions js/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,21 +270,31 @@ function drop(event) {
const droppedFile = files[parseInt(droppedElementId)];
const draggedFile = files[parseInt(data[1])];
if (data[1] != droppedElementId) {
document.getElementById(data[1]).outerHTML = droppedElement;
// document.getElementById(data[1]).outerHTML = droppedElement;
// event.target.outerHTML = data[0];
// for (var i = 0; i < document.querySelectorAll(".file").length; i++) {
// document.querySelectorAll(".file")[i].id = i;
// }
// files.forEach((file) => {
// if (file.no === parseInt(droppedElementId)) {
// files[parseInt(droppedElementId)] = draggedFile;
// file.no = parseInt(data[1]);
// } else if (file.no === parseInt(data[1])) {
// files[parseInt(data[1])] = droppedFile;
// file.no = parseInt(droppedElementId);
// }
// });
// saveFile();
event.target.outerHTML = data[0];
for (var i = 0; i < document.querySelectorAll(".file").length; i++) {
document.querySelectorAll(".file")[i].id = i;
}
files.forEach((file) => {
if (file.no === parseInt(droppedElementId)) {
files[parseInt(droppedElementId)] = draggedFile;
file.no = parseInt(data[1]);
} else if (file.no === parseInt(data[1])) {
files[parseInt(data[1])] = droppedFile;
file.no = parseInt(droppedElementId);
}
contexted = event.target;
deleteFile({
preventDefault: function() {},
target: document.createElement("div")
});
saveFile();
// for (var i = 0; i < document.querySelectorAll(".file").length; i++) {
// document.querySelectorAll(".file")[i].id = i;
// }

}
}

Expand Down

0 comments on commit 1e65eeb

Please sign in to comment.