diff --git a/resources/web/homepage/index.html b/resources/web/homepage/index.html index a3e2d4101c..0c19e78a12 100644 --- a/resources/web/homepage/index.html +++ b/resources/web/homepage/index.html @@ -74,44 +74,7 @@ -
- -
-
-
Christmas Cabin
-
-
- -
-
- +
recent open
diff --git a/resources/web/homepage/js/home.js b/resources/web/homepage/js/home.js index c96006fc0b..bfb27fe72c 100644 --- a/resources/web/homepage/js/home.js +++ b/resources/web/homepage/js/home.js @@ -12,9 +12,6 @@ function OnInit() SendMsg_GetLoginInfo(); SendMsg_GetRecentFile(); - - //-----Christmas----- - ShowCabin(); } //------最佳打开文件的右键菜单功能---------- @@ -405,60 +402,3 @@ function OpenWikiUrl( strUrl ) //---------------Global----------------- window.postMessage = HandleStudio; - -//---------------Christma cabin -var CCabin={ - "model":[ - { - "name":"Bambu Christmas Cabin", - "icon":"christmas_cabin.png", - "file":"Bambu Christmas Cabin.3mf" - } - ] -}; - -function ShowCabin() -{ - let nCabin=CCabin.model.length; - - if(nCabin==0) - { - $('#CabinList').html(''); - - $('#ChristmasArea').hide(); - return; - } - - let strHtml=''; - for(let m=0;m'+ - '
'+ - '
'+OneCabin.name+'
'+ - '
'; - - strHtml+=OneHtml; - } - - $('#CabinList').html(strHtml); - - $('#ChristmasArea').show(); - $('#ChristmasArea').css('display','flex'); -} - -function OnOpenCabin( cabinfile ) -{ - //alert(cabinfile); - - var tSend={}; - tSend['sequence_id']=Math.round(new Date() / 1000); - tSend['command']="homepage_open_ccabin"; - tSend['data']={}; - tSend['data']['file']=cabinfile; - - SendWXMessage( JSON.stringify(tSend) ); -} - -