diff options
author | neodarz <neodarz@neodarz.net> | 2019-08-28 12:21:29 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-08-28 12:21:29 +0200 |
commit | e1e025823c6e868e59cde9ecc8fa495ee45de7bc (patch) | |
tree | ae3450c92daec3b99059a569510a24d6ab6753a6 /js/thumbnails_update.min.js | |
parent | 03588331342e2a401ae4a8617f6225325d099fa7 (diff) | |
download | shaarli_ascii-bafbcc736d96ed1715048a4ed8e41448622b1a8a.tar.xz shaarli_ascii-bafbcc736d96ed1715048a4ed8e41448622b1a8a.zip |
Diffstat (limited to '')
-rw-r--r-- | js/thumbnails_update.min.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/thumbnails_update.min.js b/js/thumbnails_update.min.js new file mode 100644 index 0000000..b64847b --- /dev/null +++ b/js/thumbnails_update.min.js @@ -0,0 +1 @@ +(function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};return a[d].call(e.exports,e,e.exports,b),e.l=!0,e.exports}var c={};return b.m=a,b.c=c,b.d=function(a,c,d){b.o(a,c)||Object.defineProperty(a,c,{configurable:!1,enumerable:!0,get:d})},b.n=function(a){var c=a&&a.__esModule?function(){return a['default']}:function(){return a};return b.d(c,'a',c),c},b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},b.p='',b(b.s=2)})({2:function(){'use strict';function a(b,c,d){var e=new XMLHttpRequest;e.open('POST','?do=ajax_thumb_update'),e.setRequestHeader('Content-Type','application/x-www-form-urlencoded'),e.responseType='json',e.onload=function(){if(200!==e.status)alert('An error occurred. Return code: '+e.status);else{var f=e.response;c+=1,d.progressBar.style.width=100*c/b.length+'%',d.current.innerHTML=c,d.title.innerHTML=f.title,!1!==f.thumbnail&&(d.thumbnail.innerHTML='<img src="'+f.thumbnail+'">'),c<b.length&&a(b,c,d)}},e.send('id='+b[c])}(function(){var b=document.getElementsByName('ids')[0].value.split(','),c={progressBar:document.querySelector('.progressbar > div'),current:document.querySelector('.progress-current'),thumbnail:document.querySelector('.thumbnail-placeholder'),title:document.querySelector('.thumbnail-link-title')};a(b,0,c)})()}});
\ No newline at end of file |