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:
53
res/bin/any/xowa/addon/app/help/log/bin/xolog.css
Normal file
53
res/bin/any/xowa/addon/app/help/log/bin/xolog.css
Normal file
@@ -0,0 +1,53 @@
|
||||
.cur_head_text {
|
||||
display: flex; align-items: center;
|
||||
width: calc(100% - 180px);
|
||||
font-size: 1.1em;
|
||||
height: 100%;
|
||||
margin-left: 10px; /* match img_btn padding */
|
||||
}
|
||||
.cur_head_btns {
|
||||
width: 180px;
|
||||
}
|
||||
.log_div {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
margin: 0px; border: 0px; /* turn off default pre styles*/
|
||||
|
||||
overflow: auto;
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
||||
.date_combo_div {
|
||||
display: inline-block;
|
||||
}
|
||||
.date_combo_btn {
|
||||
display: flex; align-items: center;
|
||||
width: 100%;
|
||||
padding: 4px 0px 4px 4px;
|
||||
border: solid 1px #ddd;
|
||||
|
||||
background-color: white;
|
||||
cursor: pointer;
|
||||
}
|
||||
.date_combo_btn:hover, .dropbtn:focus {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
.date_combo_content {
|
||||
display: none;
|
||||
padding: 4px 4px 4px 4px;
|
||||
position: absolute;
|
||||
|
||||
background-color: #f9f9f9;
|
||||
text-align: left;
|
||||
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
||||
}
|
||||
.date_combo_content a {
|
||||
display: block;
|
||||
color: black;
|
||||
}
|
||||
.date_combo_content a:hover {
|
||||
background-color: #f1f1f1
|
||||
}
|
||||
.date_combo_content_show {
|
||||
display:block;
|
||||
}
|
||||
19
res/bin/any/xowa/addon/app/help/log/bin/xolog.js
Normal file
19
res/bin/any/xowa/addon/app/help/log/bin/xolog.js
Normal file
@@ -0,0 +1,19 @@
|
||||
(function (xo) {
|
||||
xo.xolog = new function() {
|
||||
this.date_combo_show = function() {
|
||||
document.getElementById("date_combo_id").classList.toggle("date_combo_content_show");
|
||||
}
|
||||
window.onclick = function(event) {
|
||||
if (!event.target.matches('.date_combo_clicker')) {
|
||||
var dropdowns = document.getElementsByClassName("date_combo_content");
|
||||
var i;
|
||||
for (i = 0; i < dropdowns.length; i++) {
|
||||
var dropdown = dropdowns[i];
|
||||
if (dropdown.classList.contains('date_combo_content_show')) {
|
||||
dropdown.classList.remove('date_combo_content_show');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}(window.xo = window.xo || {}));
|
||||
44
res/bin/any/xowa/addon/app/help/log/bin/xolog.mustache.html
Normal file
44
res/bin/any/xowa/addon/app/help/log/bin/xolog.mustache.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<div class='main_div'>
|
||||
<div id='cur_help_div' class='xohelp_div'>
|
||||
<div id='cur_help_msg' class='xohelp_msg'>
|
||||
<div>
|
||||
<div class='xohelp_row'><span class='xoimg_help_x24 xoimg_inet_email'> </span><span class='xohelp_row_text'>Email the current log to the XOWA developer</span></div>
|
||||
<div class='xohelp_row'><span class='xoimg_help_x24 xoimg_list_delete'> </span><span class='xohelp_row_text'>Delete the current log</span></div>
|
||||
<div class='xohelp_row'><span class='xoimg_help_x24 xoimg_fsys_trash'> </span><span class='xohelp_row_text'>Delete all logs</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='xotbl_head_row'>
|
||||
<div class='cur_head_text'>
|
||||
<div class="date_combo_div">
|
||||
<div class="date_combo_btn">
|
||||
<div class="date_combo_clicker" onclick="xo.xolog.date_combo_show()">{{log_name}}▼</div>
|
||||
</div>
|
||||
<div id="date_combo_id" class="date_combo_content">
|
||||
{{#log_files}}
|
||||
<a href="/wiki/Special:XowaLog?cmd=show&file={{file}}">{{name}}</a>
|
||||
{{/log_files}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='xotbl_head_btns cur_head_btns'>
|
||||
<a class='xoimg_btn_x24 xoimg_inet_email' title='email' href='/wiki/Special:XowaLog?cmd=email&file={{log_file}}'> </a>
|
||||
<a class='xoimg_btn_x24 xoimg_list_delete' title='delete current log' href='javascript:void(0)'
|
||||
data_alertify_msg='Are you sure you want to delete this log: {{log_name}}?'
|
||||
data_alertify_ok='Delete'
|
||||
data_alertify_cancel='Cancel'
|
||||
data_alertify_href='/wiki/Special:XowaLog?cmd=delete_one&file={{log_file}}'
|
||||
onclick='return xo.alertify.confirm_href(this);'> </a>
|
||||
<a class='xoimg_btn_x24 xoimg_fsys_trash' title='delete all logs' href='javascript:void(0)'
|
||||
data_alertify_msg='Are you sure you want to delete all logs?'
|
||||
data_alertify_ok='Delete All'
|
||||
data_alertify_cancel='Cancel'
|
||||
data_alertify_href='/wiki/Special:XowaLog?cmd=delete_all'
|
||||
onclick='return xo.alertify.confirm_href(this);'> </a>
|
||||
<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">
|
||||
<pre class='log_div'>{{{log_data}}}</pre>
|
||||
</div>
|
||||
</div>
|
||||
57
res/bin/any/xowa/addon/app/help/log/test/xolog.test.html
Normal file
57
res/bin/any/xowa/addon/app/help/log/test/xolog.test.html
Normal file
@@ -0,0 +1,57 @@
|
||||
<!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/app/help/log/bin/xolog.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/javascript" src="bin/any/xowa/addon/app/help/log/bin/xolog.js"></script>
|
||||
|
||||
<!-- mustache -->
|
||||
<script type="text/html" id="templates"></script>
|
||||
<script type="text/javascript">
|
||||
window.view = {
|
||||
log_files:
|
||||
[
|
||||
{name:'2016-03-06 01:02:03', file:'20160306_010203'},
|
||||
{name:'2016-03-05 01:02:03', file:'20160305_010203'},
|
||||
],
|
||||
log_name:'2016-03-06 01:02:03',
|
||||
log_file:'20160306_010203',
|
||||
log_data:'test data',
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$("#templates").load("bin/any/xowa/addon/app/help/log/bin/xolog.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"></div>
|
||||
</body>
|
||||
<script>
|
||||
xo.alertify.log_by_str('{"msg":"test", "type":"success", "wait":3000}');
|
||||
</script>
|
||||
</html>
|
||||
Reference in New Issue
Block a user