Skip to content

Commit

Permalink
小调整
Browse files Browse the repository at this point in the history
  • Loading branch information
shuax committed Feb 5, 2016
1 parent 9d72a51 commit b096b19
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified GreenChrome.ini
Binary file not shown.
2 changes: 1 addition & 1 deletion src/PatchResourcesPak.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void CustomNewTab(uint8_t *buffer)

if(wcscmp(html_file, L"%demo%")==0)
{
BYTE demo[] = R"(<meta charset="utf-8"><style>html,body{height:100%;overflow:hidden;}body{margin:0;background-image:url(https://unsplash.it/1600/900?blur);background-position:center 0;background-size:cover;}#time{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);font-size:80px;font-family:'Segoe UI',Arial,'Microsoft Yahei',sans-serif;color:#fff;text-shadow:0 1px 0 #000;}</style><div id="time">11:02:22</div><script>function p(a){return("0"+a).substr(-2)}function r(){var a=new Date();t=p(a.getHours())+":"+p(a.getMinutes())+":"+p(a.getSeconds());document.getElementById("time").innerText=t}r();setInterval(r,1000);</script>)";
BYTE demo[] = R"(<meta charset="utf-8"><style>html,body{height:100%;overflow:hidden;}body{background-color:#ccc;margin:0;background-image:url(https://unsplash.it/1920/1080?random&blur);background-position:center 0;background-size:cover;}#time{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);font-size:80px;font-family:'Segoe UI',Arial,'Microsoft Yahei',sans-serif;color:#fff;text-shadow:1px 1px 1px #000;}</style><div id="time">11:02:22</div><script>function p(a){return("0"+a).substr(-2)}function r(){var a=new Date();t=p(a.getHours())+":"+p(a.getMinutes())+":"+p(a.getSeconds());document.getElementById("time").innerText=t}r();setInterval(r,1000);</script>)";
size_t demo_size = sizeof(demo) - 1;
memcpy(begin, demo, demo_size);
}
Expand Down

0 comments on commit b096b19

Please sign in to comment.