mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2024-11-01 01:40:12 +00:00
moove animate function to general script
This commit is contained in:
parent
2a256bbd06
commit
0e4de95f97
@ -71,10 +71,3 @@ function buildDownloadMessage(dlProgress) {
|
|||||||
message.appendChild(messageText);
|
message.appendChild(messageText);
|
||||||
box.appendChild(message);
|
box.appendChild(message);
|
||||||
};
|
};
|
||||||
|
|
||||||
function animate(elementId, animationClass) {
|
|
||||||
var toAnimate = document.getElementById(elementId);
|
|
||||||
if (toAnimate.className !== animationClass) {
|
|
||||||
toAnimate.className = animationClass;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -82,7 +82,6 @@ function downloadNow(button) {
|
|||||||
// settings page buttons
|
// settings page buttons
|
||||||
function manualImport() {
|
function manualImport() {
|
||||||
var payload = JSON.stringify({'manual-import': true});
|
var payload = JSON.stringify({'manual-import': true});
|
||||||
console.log(payload);
|
|
||||||
sendPost(payload);
|
sendPost(payload);
|
||||||
// clear button
|
// clear button
|
||||||
var message = document.createElement('p');
|
var message = document.createElement('p');
|
||||||
@ -258,7 +257,6 @@ function showSearch() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function showForm() {
|
function showForm() {
|
||||||
console.log('show hidden form');
|
|
||||||
var formElement = document.getElementById('hidden-form');
|
var formElement = document.getElementById('hidden-form');
|
||||||
var displayStyle = formElement.style.display
|
var displayStyle = formElement.style.display
|
||||||
if (displayStyle === "") {
|
if (displayStyle === "") {
|
||||||
@ -268,3 +266,10 @@ function showForm() {
|
|||||||
formElement.style.display = "";
|
formElement.style.display = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function animate(elementId, animationClass) {
|
||||||
|
var toAnimate = document.getElementById(elementId);
|
||||||
|
if (toAnimate.className !== animationClass) {
|
||||||
|
toAnimate.className = animationClass;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user