Viewing File: /usr/local/cpanel/base/frontend/jupiter/ssh/main.min.js

function check(){$.ajax({type:"POST",url:"ssh/my_ssh.live.pl",data:{sh_stat:1},success:function(e){var s=!!parseInt(e.sh_stat);$("#ssh_toggle").prop("checked",s),show_details(s)},error:function(e){console.log(e)},dataType:"json"})}function set_toggle(){var e={shell:this.checked?1:0};$.ajax({type:"POST",url:"ssh/my_ssh.live.pl",data:e,success:function(e){var s=!!parseInt(e.shell);show_details(this.checked=s)},dataType:"json"})}function show_details(e){e?$("#set-tab").show():$("#set-tab").hide()}window.addEventListener("library-loaded",function(e){e.detail.library.match(/requirejs/)&&require(["jquery"],function(e){e(document).ready(function(){check(),e("#ssh_toggle").change(set_toggle)})})});
Back to Directory File Manager