Linux puskom-ProLiant-DL385-Gen10 5.4.0-150-generic #167~18.04.1-Ubuntu SMP Wed May 24 00:51:42 UTC 2023 x86_64
/
home
/
puskom
/
mastur
/
backwpup
/
assets
/
js
/
//home/puskom/mastur/backwpup/assets/js/page_edit_tab_job.min.js
function date(e,n){var a,t,r,u=/\\?([a-z])/gi,i=function(e,n){return(e=e.toString()).length<n?i("0"+e,n,"0"):e},c=["Sun","Mon","Tues","Wednes","Thurs","Fri","Satur","January","February","March","April","May","June","July","August","September","October","November","December"];return r=function(e,n){return t[e]?t[e]():n},t={d:function(){return i(t.j(),2)},D:function(){return t.l().slice(0,3)},j:function(){return a.getDate()},l:function(){return c[t.w()]+"day"},N:function(){return t.w()||7},S:function(){var e=t.j(),n=e%10;return n<=3&&1==parseInt(e%100/10)&&(n=0),["st","nd","rd"][n-1]||"th"},w:function(){return a.getDay()},z:function(){var e=new Date(t.Y(),t.n()-1,t.j()),n=new Date(t.Y(),0,1);return Math.round((e-n)/864e5)},W:function(){var e=new Date(t.Y(),t.n()-1,t.j()-t.N()+3),n=new Date(e.getFullYear(),0,4);return i(1+Math.round((e-n)/864e5/7),2)},F:function(){return c[6+t.n()]},m:function(){return i(t.n(),2)},M:function(){return t.F().slice(0,3)},n:function(){return a.getMonth()+1},t:function(){return new Date(t.Y(),t.n(),0).getDate()},L:function(){var e=t.Y();return e%4==0&e%100!=0|e%400==0},o:function(){var e=t.n(),n=t.W();return t.Y()+(12===e&&n<9?1:1===e&&9<n?-1:0)},Y:function(){return a.getFullYear()},y:function(){return t.Y().toString().slice(-2)},a:function(){return 11<a.getHours()?"pm":"am"},A:function(){return t.a().toUpperCase()},B:function(){var e=3600*a.getUTCHours(),n=60*a.getUTCMinutes(),t=a.getUTCSeconds();return i(Math.floor((e+n+t+3600)/86.4)%1e3,3)},g:function(){return t.G()%12||12},G:function(){return a.getHours()},h:function(){return i(t.g(),2)},H:function(){return i(t.G(),2)},i:function(){return i(a.getMinutes(),2)},s:function(){return i(a.getSeconds(),2)},u:function(){return i(1e3*a.getMilliseconds(),6)},e:function(){throw"Not supported (see source code of date() for timezone on how to add support)"},I:function(){return new Date(t.Y(),0)-Date.UTC(t.Y(),0)!=new Date(t.Y(),6)-Date.UTC(t.Y(),6)?1:0},O:function(){var e=a.getTimezoneOffset(),n=Math.abs(e);return(0<e?"-":"+")+i(100*Math.floor(n/60)+n%60,4)},P:function(){var e=t.O();return e.substr(0,3)+":"+e.substr(3,2)},T:function(){return"UTC"},Z:function(){return 60*-a.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(u,r)},r:function(){return"D, d M Y H:i:s O".replace(u,r)},U:function(){return a/1e3|0}},this.date=function(e,n){return this,a=void 0===n?new Date:n instanceof Date?new Date(n):new Date(1e3*n),e.replace(u,r)},this.date(e,n)}jQuery(document).ready(function(n){n('input[name="type[]"]').change(function(){n('input[name="type[]"]:checked').hasClass("filetype")?n(".hasdests").show():n(".hasdests").hide(),n("#tab-jobtype-"+n(this).val().toLowerCase()).toggle()}),n('input[name="type[]"]:checked').hasClass("filetype")?n(".hasdests").show():n(".hasdests").hide(),n('input[name="destinations[]"]').change(function(){n("#tab-dest-"+n(this).val().toLowerCase()).toggle()}),n('input[name="name"]').keyup(function(){n("#h2jobtitle").replaceWith('<span id="h2jobtitle">'+backwpup_htmlspecialchars(n(this).val())+"</span>")}),n('input[name="name"]').focus(function(){n(this).val()==n(this).data("empty")&&n(this).val("")}),n('input[name="name"]').blur(function(){""===n(this).val()&&n(this).val(n(this).data("empty"))}),n('input[name="backuptype"]').change(function(){"sync"==n(this).val()?(n(".nosync").hide(),n(".sync").show()):(n(".nosync").show(),n(".sync").hide())}),"sync"==n('input[name="backuptype"]:checked').val()?(n(".nosync").hide(),n(".sync").show()):(n(".nosync").show(),n(".sync").hide()),n('input[name="archivename"]').keyup(function(){var e=n(this).val();e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace("%hash%","[hash]")).replace("%d",date("d"))).replace("%j",date("j"))).replace("%m",date("m"))).replace("%n",date("n"))).replace("%Y",date("Y"))).replace("%y",date("y"))).replace("%a",date("a"))).replace("%A",date("A"))).replace("%B",date("B"))).replace("%g",date("g"))).replace("%G",date("G"))).replace("%h",date("h"))).replace("%H",date("H"))).replace("%i",date("i"))).replace("%s",date("s"))).replace("[hash]","%hash%"),n("#archivefilename").replaceWith('<span id="archivefilename">'+backwpup_htmlspecialchars(e)+"</span>")}),n('input[name="archiveformart"]').change(function(){n("#archiveformart").replaceWith('<span id="archiveformart">'+n(this).val()+"</span>")})});