Skip to content

Commit

Permalink
Added an automation
Browse files Browse the repository at this point in the history
  • Loading branch information
ImAARIX committed Jan 17, 2022
1 parent e96add0 commit 9a38be5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions assets/le-cafoutch/js/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ var expdate = document.getElementById('expdate');

var noUpload = 0;

changeSlider();

if(expirationTime.value == 0) {
showedTime.innerText = "aucune"
}
Expand All @@ -41,6 +43,21 @@ closeAnimationButton.onclick = () => {
closeAnimation();
}

async function changeSlider() {
var webSliderFile = await axios.get('https://aarix.social/desktop/slider.json', {
validateStatus: function (status) {
return true;
},
timeout: 5000
});
if(webSliderFile.status == "200") {
expirationTime.setAttribute('min', webSliderFile.data.base_user_slider_min);
expirationTime.setAttribute('max', webSliderFile.data.base_user_slider_max);
} else {

}
}

async function uploadFile(inp) {
noUpload++;

Expand Down

0 comments on commit 9a38be5

Please sign in to comment.