This repository has been archived by the owner on Mar 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
293 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1481,5 +1481,8 @@ | |
}, | ||
"lottery_sd":{ | ||
"message":"Fucai 3D" | ||
}, | ||
"pxmovie":{ | ||
"message":"Poxiao Movie recent update" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1450,5 +1450,8 @@ | |
}, | ||
"lottery_sd":{ | ||
"message":"福彩3D" | ||
}, | ||
"pxmovie":{ | ||
"message":"破晓电影最近更新" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
smartup.su_apps#su_apps_pxmovie .su_pxmovie_box{ | ||
width: 360px; | ||
padding: 8px; | ||
} | ||
smartup.su_apps#su_apps_pxmovie ul{ | ||
padding-bottom: 8px; | ||
text-align: left; | ||
width: 100%; | ||
} | ||
smartup.su_apps#su_apps_pxmovie li{ | ||
border: 1px solid rgba(204, 204, 255, 0.6); | ||
border-radius: 2px; | ||
padding: 0 8px; | ||
margin: 1px 0; | ||
width: 100%; | ||
height: 32px; | ||
line-height: 32px; | ||
box-sizing: border-box; | ||
/*font-weight: bold;*/ | ||
font-size: 14px; | ||
color: rgba(0, 0, 0, 0.7); | ||
overflow: hidden; | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
cursor: pointer; | ||
transition:all .4s ease-in-out; | ||
} | ||
smartup.su_apps#su_apps_pxmovie li img{ | ||
width: 16px; | ||
margin-right: 5px; | ||
} | ||
smartup.su_apps#su_apps_pxmovie li:hover{ | ||
box-shadow: 0px 1px 3px #ccc; | ||
background: #d0d9ff; | ||
line-height: 32px; | ||
border-color: rgba(86,119,252,.5) !important; | ||
} | ||
smartup.su_apps#su_apps_pxmovie li:hover .su_tablist_button_liclose{ | ||
opacity: 1; | ||
margin-top: -32px; | ||
} | ||
smartup.su_apps#su_apps_pxmovie li span{ | ||
display: block; | ||
width: 100%; | ||
box-sizing: border-box; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
} | ||
smartup.su_apps#su_apps_pxmovie li:hover .li_0{ | ||
transition:all .4s ease-out; | ||
margin-top: -32px; | ||
} | ||
smartup.su_apps#su_apps_pxmovie .data{ | ||
} | ||
smartup.su_apps#su_apps_pxmovie .name{ | ||
font-size: 14px; | ||
font-weight: bold; | ||
text-align: center; | ||
margin-bottom: 4px; | ||
} | ||
smartup.su_apps#su_apps_pxmovie .info{ | ||
font-size: 12px; | ||
text-align: left; | ||
} | ||
smartup.su_apps#su_apps_pxmovie .infolist{ | ||
display: inline-block; | ||
width: 80px; | ||
text-align: right; | ||
font-weight: bold; | ||
} | ||
smartup.su_apps#su_apps_pxmovie .back{ | ||
margin-bottom: 10px; | ||
position: absolute; | ||
right: 8px; | ||
top: 28px; | ||
} | ||
smartup.su_apps#su_apps_pxmovie .url{ | ||
margin-top: 5px; | ||
min-height: 64px; | ||
width: 354px; | ||
border-radius: 8px; | ||
border: 1px solid rgba(115, 143, 254, 0.7); | ||
} | ||
smartup.su_apps#su_apps_pxmovie .des{ | ||
text-indent: 24px; | ||
border-top: 1px solid #00000057; | ||
padding-top: 6px; | ||
margin-top: 4px; | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
console.log("pxmovie"); | ||
sue.apps.pxmovie={ | ||
cons:{}, | ||
initUI:function(){ | ||
let appInfo={ | ||
appName:"pxmovie", | ||
headTitle:"pxmovie", | ||
headCloseBtn:true, | ||
} | ||
sue.apps.init(); | ||
var dom=sue.apps.initBox(appInfo); | ||
dom.id="su_apps_"+appInfo.appName; | ||
sue.apps[appInfo.appName].dom=dom; | ||
sue.apps.initPos(dom); | ||
|
||
let theAppBox=sue.apps.domCreate("div",{setName:["className"],setValue:["su_pxmovie_box"]}); | ||
dom.querySelector(".su_main").appendChild(theAppBox); | ||
|
||
theAppBox.appendChild(sue.apps.domCreate("div",{setName:["className"],setValue:["list"]},null,"display:none;")); | ||
theAppBox.appendChild(sue.apps.domCreate("div",{setName:["className"],setValue:["data"]},null,"display:none;")); | ||
theAppBox.appendChild(sue.apps.domCreate("img",{setName:["className","src"],setValue:["loading",chrome.runtime.getURL("/image/loading.gif")]})); | ||
|
||
dom.style.cssText+="border-color:#d61717;"; | ||
dom.querySelector(".su_head").style.cssText+="background-color:#d61717;"; | ||
theAppBox.addEventListener("click",this.handleEvent,false); | ||
chrome.runtime.sendMessage({type:"appsAction",app:"pxmovie",action:"getList"}); | ||
}, | ||
handleEvent:function(e){ | ||
switch(e.type){ | ||
case"click": | ||
if(e.target.classList.contains("item")){ | ||
var _list=sue.apps.pxmovie.dom.querySelector(".list"), | ||
_loading=sue.apps.pxmovie.dom.querySelector(".loading"); | ||
_list.style.cssText+="display:none;"; | ||
_loading.style.cssText+="display:block;"; | ||
chrome.runtime.sendMessage({type:"appsAction",app:"pxmovie",action:"getData",value:e.target.dataset.url}); | ||
}else if(e.target.classList.contains("back")){ | ||
var _list=sue.apps.pxmovie.dom.querySelector(".list"), | ||
_data=sue.apps.pxmovie.dom.querySelector(".data"), | ||
_back=sue.apps.pxmovie.dom.querySelector(".back"); | ||
_data.style.cssText+="display:none;"; | ||
_list.style.cssText+="display:block;"; | ||
} | ||
break; | ||
} | ||
}, | ||
list:function(message){ | ||
let value=message.value, | ||
dom=sue.apps.pxmovie.dom; | ||
dom=dom.querySelector(".su_pxmovie_box"); | ||
let _boxList=dom.querySelector(".list"), | ||
_loading=dom.querySelector(".loading"), | ||
_ul=sue.apps.domCreate("ul"); | ||
_boxList.textContent=""; | ||
_boxList.appendChild(_ul); | ||
for(var i=0;i<value.length;i++){ | ||
var _li=sue.apps.domCreate("li",{setName:["className"],setValue:["item"]},null,null,{setName:["url"],setValue:[value[i][3]]},"["+value[i][0]+"]"+value[i][2]); | ||
_ul.appendChild(_li); | ||
} | ||
_loading.style.cssText+="display:none;"; | ||
_boxList.style.cssText+="display:block;"; | ||
}, | ||
data:function(message){ | ||
console.log(message) | ||
let value=message.value, | ||
dom=sue.apps.pxmovie.dom; | ||
dom=dom.querySelector(".su_pxmovie_box"); | ||
let _data=dom.querySelector(".data"), | ||
_loading=dom.querySelector(".loading"), | ||
_name=sue.domCreate("div",{setName:["className"],setValue:["name"]},null,null,null,value.name), | ||
_back=sue.apps.domCreate("button",{setName:["className"],setValue:["back"]},null,"display: inline-block;",null,sue.apps.i18n("back")); | ||
_info=sue.apps.domCreate("div",{setName:["className"],setValue:["info"]}); | ||
_data.textContent=""; | ||
_data.appendChild(_name); | ||
_data.appendChild(_back); | ||
_data.appendChild(_info); | ||
|
||
for(var i=0;i<value.info.length;i++){ | ||
var _infolist=sue.apps.domCreate("div") | ||
_infolist.appendChild(sue.apps.domCreate("span",{setName:["className"],setValue:["infolist"]},null,null,null,value.info[i][0])); | ||
_infolist.appendChild(sue.apps.domCreate("span",null,null,null,null,value.info[i][(i==7?4:1)])) | ||
_info.appendChild(_infolist); | ||
} | ||
for(var i=0;i<value.dl.length;i++){ | ||
var _dl=sue.apps.domCreate("textarea",{setName:["className","value"],setValue:["url",value.dl[i][1]]}); | ||
_info.appendChild(_dl); | ||
} | ||
_info.appendChild(sue.apps.domCreate("div",{setName:["className"],setValue:["des"]},null,null,null,value.des)); | ||
|
||
_data.style.cssText+="display:block;"; | ||
_loading.style.cssText+="display:none;"; | ||
console.log(value); | ||
} | ||
} | ||
chrome.runtime.onMessage.addListener(function(message,sender,sendResponse) { | ||
switch(message.type){ | ||
case"list": | ||
sue.apps.pxmovie.list(message); | ||
break; | ||
case"data": | ||
sue.apps.pxmovie.data(message); | ||
break; | ||
} | ||
}); | ||
sue.apps.pxmovie.initUI(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters