diff --git a/makeprocess.php b/makeprocess.php index 6b53a4f..134586b 100644 --- a/makeprocess.php +++ b/makeprocess.php @@ -36,7 +36,6 @@ function makeprocess($destination, $idprocess, $param, $key, $name){ $folder=stristr($folder, 'system/'); $destination=stristr($destination, 'system/'); $appicon=$folder.'/app.png'; - if (!is_file($appicon)){ $appicon='system/core/design/images/app.png'; } @@ -48,7 +47,6 @@ function makeprocess($destination, $idprocess, $param, $key, $name){ if(!preg_match('/.php/',$destination_)){ $destination_ = $destination_.'.php'; } - $style="'display','block'"; $style2="'display','none'"; echo '
@@ -57,57 +55,29 @@ function makeprocess($destination, $idprocess, $param, $key, $name){
x
-
o
-
'; +
'; ?>
diff --git a/os.php b/os.php index 2bf0140..eb59f24 100644 --- a/os.php +++ b/os.php @@ -1,9 +1,13 @@ +
+ hibernation(); ?>
- document.writeln(id)'; $prepare->autorun(); diff --git a/system/apps/Apps_House/main.php b/system/apps/Apps_House/main.php index 069bdde..97bba23 100644 --- a/system/apps/Apps_House/main.php +++ b/system/apps/Apps_House/main.php @@ -182,6 +182,7 @@ function fullhouseupd(el4){$(".apphouseinfohide").css('display', function update(){ makeprocess('system/apps/update/main.php','','','Update'); } +UpdateWindow("",""); 1){ + closestyle="inline"; + }else{ + closestyle="none"; + } + $(".topbaractbtn").css('display',''+window.closestyle+''); +} + +function makeprocess(dest, param, key, name){ + $('.ui-body').append(""); + $("#process"+id+"").show('drop',500); + $("#process"+id+"" ).load("makeprocess.php?id="+id+"&d="+dest+"/&i="+id+"&p="+param+"&k="+key+"&n="+name); + checkwindows(); +}; + +function ProcessLogic(id, name, destination, destination_, maxwidthm, folder, click, key, param, autohide){ + $( "#app" + id ).draggable({containment:"body",handle:"#drag" + id, snap:".ui-body, .dragwindowtoggle, #topbar"}); + $( "#app" + id ).resizable({containment:"body",minHeight:$(window).height()*0.15,minWidth:$(window).width()*0.15,maxWidth:$(window).width()*maxwidthm,maxHeight:$(window).height()*0.95,autoHide:autohide,alsoResize:"#"+name+id}); + $( "#app" + id ).click(function(){$("#app" + id ).addClass("windowactive")}); + $( "#drag" + id ).click(function(){$("#app" + id ).addClass("windowactive")}); + $( "#drag" + id ).dblclick(function(){$("#app" + id ).css({top:"29px",left:"0"})}); + $( ".window" ).mouseup(function(){$(".window").removeClass("windowactive")}); + if(!$("#process" + id).hasClass('hibernatethis')){ + $("#" + id).load(""+destination+"?id=&appid="+id+"&appname="+name+"&destination="+folder+"/&mobile="+click+"&key="+key+"¶m="+param+""); + } + $(function() { + $(".window").removeClass("windowactive"); + $("#app" + id ).addClass("windowactive"); + }); + function runEffect() { + var options = {}; + $( "#" + id).toggle( "slide", options, 100 ); + }; + $( ".hidewindow" + id ).on( "click", function() { + runEffect(); + if($( "#app" + id ).hasClass("ui-resizable")){ + $( "#app" + id ).resizable({disabled:true,containment:"body"}); + } + if($( "#app" + id ).hasClass("windowborderhide")){ + $( "#app" + id ).resizable({disabled:false,containment:"body",minHeight:$(window).height()*0.15,minWidth:$(window).width()*0.15,maxWidth:$(window).width()*maxwidthm,maxHeight:$(window).height()*0.95,autoHide:autohide,alsoResize:"#"+name+id}); + } + $( "#drag" + id ).toggleClass( "dragwindowtoggle", 500 ); + $( "#app" + id ).toggleClass( "windowborderhide", 500 ); + $( "#app" + id ).toggleClass( "bordertoggle", 1 ); + }); + $(".reload" + id).on( "click", function() { + $("#" + id).load(""+destination_+"?id=&appid="+id+"&appname="+name+"&destination="+folder+"/&mobile="+click+"&key="+key+"¶m="+param+""); + }); + $("#drag" + id ).on( "dblclick", function() { + $("#app" + id ).toggleClass( "windowfullscreen", 100, function(){ + UpdateWindow(id,name); + }); + }); + $("#process" + id ).appendTo("#proceses"); +}; + +$( function() { + $( "#notificationsbtn" ).on( "click", function() { + $('.notificationclass').css('opacity','0'); + if($( "#notifications" ).hasClass("notificationshow")) + { + $('.notificationclass').css('opacity','0'); + $('.notificationclass').css('display','none'); + }else{ + $('.notificationclass').css('opacity','0.97'); + $('.notificationclass').css('display','block'); + } + $( ".notificationhide" ).toggleClass( "notificationshow", 100 ); + }); +$( "#topbar" ).on( "dblclick", function() { + $( ".blurwindowpassive" ).toggleClass( "blurwindowactive", 100 ); +}); + +function runEffect() { + var options = {}; + $( ".hideallclass" ).toggle( "slide", options, 100 ); +}; + +$( "#hideall" ).on( "click", function() { + runEffect(); + $( ".dragwindow" ).toggleClass( "dragwindowtoggle", 500 ); + $( ".windowborder" ).toggleClass( "windowborderhide", 500 ); + $( ".windowborder" ).toggleClass( "bordertoggle", 1 ); +}); +}); + +function releaselink(){ + $(".linktheme").css({ + 'white-space' : 'nowrap', + 'background-color' : 'transparent', + 'border' : '' + }); +} + +function UpdateWindow(id,name){ + var parentWidth = $("#app"+id).css('width'); + var parentHeight = $("#app"+id).css('height'); + if(parentHeight!='0px'){ + $("#"+name+id).css('width', parentWidth); + $("#"+name+id).css('height', parentHeight); + } +} + + $( function() { + $(window).load(function(){ + $(".welcomescreen").hide('fade',500); + $("#topbar").show('fade',1500); + $("#topbar").css('display','block') + $(".trashdrop").droppable({ + accept: ".ico", + drop: function(event, ui){ + var del_file = ui.draggable.attr('d'); + $.ajax({ + type: "POST", + url: "system/core/functions/trash", + data: { + file_delete: del_file + } + }).done(function(o) { + $(".link"+ui.draggable.attr('i')).remove(); + }); + } + }); + }); + $( ".ico" ).draggable({containment:"body", snap:".ico, #topbar"}); + $( ".window" ).mouseup(function(){ + $(".window").removeClass("windowactive") + }); + });