Skip to content

Commit

Permalink
Added preloading animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Offerel committed Dec 10, 2020
1 parent f184976 commit 95fc87a
Show file tree
Hide file tree
Showing 9 changed files with 85 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
### v2.2.3
- Added preloading animation

### v2.2.2
- Fix for notifications
- Fix for unvisible settings

### v2.2.0
- Added notifications for pushed links
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"role": "Developer"
}
],
"version": "2.2.2",
"version": "2.2.3",
"repositories": [
{
"type": "composer",
Expand Down
33 changes: 33 additions & 0 deletions skins/elastic/plugin.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
.db-spinner {
width: 50px;
height: 50px;
border-radius: 50%;
background-color: transparent;
border: 10px solid #2229;
border-top: 10px solid #03a9f4;
border-bottom: 100x solid #03a9f4;
-webkit-animation: 1s spin linear infinite;
animation: 1s spin linear infinite;
position: absolute;
top: 50%;
left: 50%;
z-index: 100;
}
@-webkit-keyframes spin {
from {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
} to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes spin {
from {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
} to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
#bmframe{height: 100%;border: 1px solid #bbb;border-top-left-radius: 5px;border-bottom-left-radius: 5px;width: 100%;}
#taskmenu a.bookmarks::before {
content: "\f02e"}
Expand Down
2 changes: 1 addition & 1 deletion skins/elastic/plugin.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions skins/larry/plugin.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
.db-spinner {
width: 50px;
height: 50px;
border-radius: 50%;
background-color: transparent;
border: 10px solid #2229;
border-top: 10px solid #03a9f4;
border-bottom: 100x solid #03a9f4;
-webkit-animation: 1s spin linear infinite;
animation: 1s spin linear infinite;
position: absolute;
top: 50%;
left: 50%;
z-index: 100;
}
@-webkit-keyframes spin {
from {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
} to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes spin {
from {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
} to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
#taskbar a.button-bookmarks span.button-inner {
background: url(images/bookmark.png) 5px 0 no-repeat;
}
Expand Down
2 changes: 1 addition & 1 deletion skins/larry/plugin.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion syncmarks.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ function h_del(t, o, format) {

function bookmarks_cmd() {
if(document.getElementById("bookmarkpane").clientWidth != "300") {
let dv = document.createElement("div");
dv.classList.add("db-spinner");
dv.id = "db-spinner";
document.getElementById("layout").parentNode.appendChild(dv);
rcmail.http_post("syncmarks/get_bookmarks", "_url=2")
}
else {
Expand All @@ -37,9 +41,14 @@ function urladded(t) {

function get_bookmarks(response) {
bookmarks = JSON.parse(response.data);

$('#bookmarkpane').html(bookmarks);
document.getElementById("bookmarkpane").style.width = "300px";
let node = document.getElementById("db-spinner");
setTimeout(function() {
if (node.parentNode) {
node.parentNode.removeChild(node);
}
}, 700);
}

function en_noti(elem) {
Expand Down
Loading

0 comments on commit 95fc87a

Please sign in to comment.