Skip to content

Commit

Permalink
focus after rename
Browse files Browse the repository at this point in the history
  • Loading branch information
strukturart committed Dec 23, 2023
1 parent a61c14b commit 0c661ef
Show file tree
Hide file tree
Showing 12 changed files with 216 additions and 103 deletions.
22 changes: 21 additions & 1 deletion application/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,27 @@ kbd {
margin: 0 0 5px 0;
}

kbd.title {
background: rgba(113, 86, 187, 0.4);
}

#intro-icon {
font-size: 1rem;
position: absolute;
left: 30%;
top: 40%;
border: 3px solid white;
box-shadow: 5px 5px white;
color: white;
line-height: 1.85em;
display: inline-block;
font-weight: 600;
letter-spacing: 0.05em;
padding: 3px 5px;
white-space: nowrap;
margin: 0 0 5px 0;
}

input {
font-family: "Lato-Regular";
}
Expand Down Expand Up @@ -401,7 +422,6 @@ main {

main div {
height: 90vh;

max-height: 90vh;
overflow: hidden !important;
position: relative;
Expand Down
Binary file added application/assets/icons/icon-112-112-png
Binary file not shown.
Binary file removed application/assets/icons/icon-112-112.png
Binary file not shown.
35 changes: 28 additions & 7 deletions application/assets/icons/icon-112-112.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added application/assets/icons/icon-56-56-png
Binary file not shown.
Binary file removed application/assets/icons/icon-56-56.png
Binary file not shown.
89 changes: 59 additions & 30 deletions application/assets/icons/icon-56-56.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 8 additions & 5 deletions application/assets/js/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const helper = (() => {
js.onload = function () {
getKaiAd({
publisher: "4408b6fa-4e1d-438f-af4d-f3be2fa97208",
app: "parrot",
slot: "parrot",
app: "passport",
slot: "passport",
test: 0,
timeout: 10000,
h: 120,
Expand Down Expand Up @@ -157,7 +157,7 @@ const helper = (() => {
};

//delete file
let deleteFile = function (filename) {
let deleteFile = function (filename, callback) {
let sdcard = "";

try {
Expand All @@ -174,13 +174,13 @@ const helper = (() => {

requestDel.onsuccess = function () {
helper.side_toaster("File successfully deleted", 2000);

document.querySelector("[data-path='" + filename + "']").remove();
callback(filename);
};

requestDel.onerror = function () {
console.log("error");
helper.toaster("Unable to delete the file: " + this.error);
general.blocker = false;
};
};

Expand Down Expand Up @@ -303,15 +303,18 @@ const helper = (() => {
request_del.onerror = function () {
// success copy not delete
helper.side_toaster("Unable to write the file", 3000);
general.blocker = false;
};
};
requestAdd.onerror = function () {
helper.side_toaster("Unable to write the file", 3000);
general.blocker = false;
};
};

request.onerror = function () {
helper.side_toaster("Unable to write the file", 3000);
general.blocker = false;
};
};

Expand Down
9 changes: 7 additions & 2 deletions application/assets/js/mozactivity.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ const mozactivity = (() => {
});

pick.onsuccess = function (e) {
console.log("hey" + pick.result.blob);
callback(pick);
};

pick.onerror = function () {
alert("The activity encounter en error: " + this.error);
general.blocker = false;
console.log("The activity encounter en error: " + this.error);
};
} catch (e) {
console.log(e);
Expand All @@ -147,10 +147,15 @@ const mozactivity = (() => {

pick.start().then(
(rv) => {
general.blocker = false;
callback(pick);

console.log("Results passed back from activity handler:");
console.log(rv);
},
(err) => {
general.blocker = false;

console.log(err);
}
);
Expand Down
Loading

0 comments on commit 0c661ef

Please sign in to comment.