mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
Res: Add resources from xowa_app_windows_64_v4.5.26.1810
This commit is contained in:
44
res/bin/any/xowa/addon/bldr/info/bin/xobc_info.css
Normal file
44
res/bin/any/xowa/addon/bldr/info/bin/xobc_info.css
Normal file
@@ -0,0 +1,44 @@
|
||||
.cur_head_text {
|
||||
width: calc(100% - 47px);
|
||||
}
|
||||
.cur_head_btns {
|
||||
width: 36px;
|
||||
}
|
||||
|
||||
/* Detail Tbl */
|
||||
.cur_data_row {
|
||||
padding: 4px 0px 4px;
|
||||
}
|
||||
.cur_data_row label {
|
||||
display: inline-block;
|
||||
width: 90px;
|
||||
margin: 0px 4px 0px 10px;
|
||||
vertical-align: top;
|
||||
align-self: flex-start;
|
||||
-webkit-align-self: flex-start;
|
||||
|
||||
font-weight: bold;
|
||||
}
|
||||
.cur_data_row label::after {
|
||||
content: ":";
|
||||
}
|
||||
.cur_data_row span {
|
||||
display: inline-block;
|
||||
width: calc(100% - 110px);
|
||||
}
|
||||
.files_table th {
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
.files_table_url, .files_table_size, .files_table_md5 {
|
||||
border-bottom: 1px solid #ddd;
|
||||
padding: 4px;
|
||||
}
|
||||
.files_table_url {
|
||||
}
|
||||
.files_table_size {
|
||||
text-align:right;
|
||||
padding:0px 25px 0px 25px; /* use padding to add space between left and right cols */
|
||||
}
|
||||
.files_table_md5 {
|
||||
font-family:Courier New;
|
||||
}
|
||||
54
res/bin/any/xowa/addon/bldr/info/bin/xobc_info.mustache.html
Normal file
54
res/bin/any/xowa/addon/bldr/info/bin/xobc_info.mustache.html
Normal file
@@ -0,0 +1,54 @@
|
||||
<div id='cur_help_div' class='xohelp_div'>
|
||||
<div id='cur_help_msg' class='xohelp_msg'>
|
||||
<b>Info</b>
|
||||
<div>
|
||||
<div class='xohelp_row'><span class='xohelp_bullet'> </span><span class='xohelp_row_text'><b>Wiki URL</b>: Internet URL of the wiki</span></div>
|
||||
<div class='xohelp_row'><span class='xohelp_bullet'> </span><span class='xohelp_row_text'><b>Wiki folder</b>: Location where the .xowa files should be placed. For example: <code>C:\xowa\wiki\simple.wikipedia.org\simple.wikipedia.org-core.xowa</code></span></div>
|
||||
<div class='xohelp_row'><span class='xohelp_bullet'> </span><span class='xohelp_row_text'><b>Total size</b>: Total size of all files on disk (not downloaded size)</span></div>
|
||||
<div class='xohelp_row'><span class='xohelp_bullet'> </span><span class='xohelp_row_text'><b>Torrent</b>: Torrent link for use in your torrent program. Note that you will need to manually exclude files</span></div>
|
||||
<div class='xohelp_row'><span class='xohelp_bullet'> </span><span class='xohelp_row_text'><b>Download URLs</b>: URLs for use in your download manager / accelerator</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='main_body' id='main_body'>
|
||||
<div class='xotbl_head_row'>
|
||||
<div class='xotbl_head_text cur_head_text'>Task info</div>
|
||||
<a class='xoimg_btn_x24 xoimg_help_tip' title='view help' href='javascript:void(0)' onclick='return xo.help.toggle("cur")'> </a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="xotbl_data_row cur_data_row">
|
||||
<label>Wiki URL</label>
|
||||
<span><a href='https://{{wiki_domain}}' class='external'>https://{{wiki_domain}}</a></span>
|
||||
</div>
|
||||
<div class="xotbl_data_row cur_data_row">
|
||||
<label>Wiki folder</label>
|
||||
<span>{{wiki_dir}}</span>
|
||||
</div>
|
||||
<div class="xotbl_data_row cur_data_row">
|
||||
<label>Total size</label>
|
||||
<span>{{task_size}}</span>
|
||||
</div>
|
||||
<div class="xotbl_data_row cur_data_row">
|
||||
<label>Torrent</label>
|
||||
<span><a href='{{torrent_fil}}'>{{torrent_fil}}</a></span>
|
||||
</div>
|
||||
<div class="xotbl_data_row cur_data_row">
|
||||
<label>Files</label>
|
||||
<span>
|
||||
<table class='files_table' cellspacing='0' cellpadding='0'>
|
||||
<tr>
|
||||
<th>URL</th>
|
||||
<th>Size</th>
|
||||
<th>MD5</th>
|
||||
</tr>
|
||||
{{#urls}}
|
||||
<tr>
|
||||
<td class='files_table_url'><a href='{{url}}'>{{url}}</a></td>
|
||||
<td class='files_table_size'>{{size}}</td>
|
||||
<td class='files_table_md5'>{{md5}}</td>
|
||||
</tr>
|
||||
{{/urls}}
|
||||
</table>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
63
res/bin/any/xowa/addon/bldr/info/test/xobc_info.test.html
Normal file
63
res/bin/any/xowa/addon/bldr/info/test/xobc_info.test.html
Normal file
@@ -0,0 +1,63 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
||||
<!--
|
||||
NOTE: this page loads local files
|
||||
- Chrome is the easiest browser for local files; Use "chrome.exe --disable-web-security"
|
||||
- Change C:/xowa/ to wherever it is on your system
|
||||
-->
|
||||
<!-- base -->
|
||||
<base href="file:///C:/xowa/" target="_blank">
|
||||
|
||||
<!-- css -->
|
||||
<link type="text/css" rel="stylesheet" href="bin/any/xowa/html/res/lib/alertify/themes/alertify.core.css">
|
||||
<link type="text/css" rel="stylesheet" href="bin/any/xowa/html/res/lib/alertify/themes/alertify.bootstrap.css">
|
||||
<link type="text/css" rel="stylesheet" href="bin/any/xowa/html/res/src/xowa/xocss/core/xocss_core-0.0.1.css">
|
||||
<link type="text/css" rel="stylesheet" href="bin/any/xowa/html/res/src/xowa/xocss/core/xoimg_core-0.0.1.css">
|
||||
<link type="text/css" rel="stylesheet" href="bin/any/xowa/html/res/src/xowa/xocss/help/xohelp-0.0.1.css">
|
||||
<link type="text/css" rel="stylesheet" href="bin/any/xowa/addon/bldr/info/bin/xobc_info.css">
|
||||
|
||||
<!-- js -->
|
||||
<script type="text/javascript" src="bin/any/xowa/html/res/lib/alertify/lib/alertify-0.3.11.js"></script>
|
||||
<script type="text/javascript" src="bin/any/xowa/html/res/lib/alertify/lib/xo-alertify-0.0.1.js"></script>
|
||||
<script type="text/javascript" src="bin/any/xowa/html/res/lib/mustache/mustache-2.2.1.js"></script>
|
||||
<script type="text/javascript" src="bin/any/xowa/html/res/lib/jquery/jquery-1.11.3.js"></script>
|
||||
<script type="text/javascript" src="bin/any/xowa/html/res/src/xowa/xocss/help/xohelp-0.0.1.js"></script>
|
||||
<script type="text/html" id="templates"></script>
|
||||
<script type="text/javascript">
|
||||
window.view = {
|
||||
wiki_dir : 'wiki_dir'
|
||||
, torrent : 'torrent_link'
|
||||
, urls :
|
||||
[
|
||||
{ url : 'url1'
|
||||
, size : '123 MB'
|
||||
}
|
||||
,
|
||||
{ url : 'url2'
|
||||
, size : '234 MB'
|
||||
}
|
||||
,
|
||||
{ url : 'url3'
|
||||
, size : '345 MB'
|
||||
}
|
||||
,
|
||||
{ url : 'url4'
|
||||
, size : '456 MB'
|
||||
}
|
||||
]
|
||||
};
|
||||
</script>
|
||||
<script>
|
||||
$("#templates").load("bin/any/xowa/addon/bldr/info/bin/xobc_info.mustache.html", function(response_txt, status_txt, xhr){
|
||||
var template = response_txt;
|
||||
var output = Mustache.render(template, window.view);
|
||||
document.getElementById('main').innerHTML = output;
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id='main' class='bldr_body'></div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user