Compare commits
12 Commits
v1.4.5
...
proj/nanni
| Author | SHA1 | Date | |
|---|---|---|---|
| 1d7a04933b | |||
|
|
cdce5f0a9d | ||
| 839972f77a | |||
|
|
62fa349507 | ||
|
|
d0dc3f4e0b | ||
|
|
bc8a9c2df1 | ||
|
|
fe13a53e19 | ||
|
|
38e24d67f5 | ||
|
|
3871b35652 | ||
|
|
1797f006a7 | ||
|
|
05ad562f1f | ||
|
|
e973ba53f7 |
@@ -2,14 +2,12 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta http-equiv="Cache-Control" content="no-cache" />
|
||||
<title>数瑞客户端</title>
|
||||
|
||||
<title>可信共享浏览器</title>
|
||||
<script src="./js/createWS.js"></script>
|
||||
<script src="./js/cryptico.js"></script>
|
||||
<script src="./js/jquery-2.1.4.js"></script>
|
||||
<script src="./js/bootstrap.min.js"></script>
|
||||
<script src="./js/commonutil.js"></script>
|
||||
|
||||
<link href="./css/common.css" rel="stylesheet">
|
||||
<link href="./css/bootstrap.min.css" rel="stylesheet">
|
||||
<script src="./js/vue.js"></script>
|
||||
@@ -23,7 +21,7 @@
|
||||
<div class="input-group">
|
||||
<a class="navbar-brand" href="#"> <img alt="Brand"
|
||||
src="./img/logo-1.png" style="height: 30px">
|
||||
</a><a class="navbar-brand">数瑞浏览器 </a> <input id="urlInput"
|
||||
</a><a class="navbar-brand">可信共享浏览器 </a> <input id="urlInput"
|
||||
type="text" class="form-control" placeholder="输入地址" style="display: none;">
|
||||
|
||||
<button class="btn btn-outline-secondary" type="button"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta http-equiv="Cache-Control" content="no-cache"/>
|
||||
<title>数瑞客户端</title>
|
||||
<title>可信共享浏览器</title>
|
||||
<script src="./js/createWS.js"></script>
|
||||
<script src="./js/cryptico.js"></script>
|
||||
<script src="./js/jquery-2.1.4.js"></script>
|
||||
@@ -23,7 +23,7 @@
|
||||
<img alt="Brand"
|
||||
src="./img/logo-1.png" style="height: 30px">
|
||||
</a>
|
||||
<a class="navbar-brand">数瑞浏览器 </a>
|
||||
<a class="navbar-brand">可信共享浏览器 </a>
|
||||
<div class="input-group-prepend">
|
||||
<input id="urlInput" style="border-top-left-radius: 5px; border-bottom-left-radius: 5px"
|
||||
type="text" placeholder="输入地址">
|
||||
|
||||
BIN
img/logo-1.png
Normal file → Executable file
BIN
img/logo-1.png
Normal file → Executable file
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 7.8 KiB |
@@ -313,6 +313,7 @@ function displayOutput(obj) {
|
||||
|
||||
function initWSocket() {
|
||||
let host = $("#urlInput")[0].value;
|
||||
document.title = `数瑞浏览器(${host})`
|
||||
if (!host.startsWith("ws")) {
|
||||
if (location.href.startsWith("https")) {
|
||||
host = "wss://" + host;
|
||||
@@ -375,6 +376,7 @@ function changeApp() {
|
||||
return;
|
||||
}
|
||||
console.log(global.currentContract);
|
||||
document.title = `数瑞浏览器(${global.currentContract.name} - ${$("#urlInput")[0].value})`
|
||||
changeAppInternal(needRender(global.currentContract));
|
||||
}
|
||||
|
||||
@@ -397,7 +399,10 @@ function changeAppInternal(requireRendering) {
|
||||
+ " <div class=\"row\">\n"
|
||||
+ " <div class=\"col-sm-12 d-flex justify-content-center\">\n"
|
||||
+ " <div class=\"input-group mb-2\">\n"
|
||||
+ " <div class=\"input-group-prepend\">\n"
|
||||
+ " <div class=\"input-group-prepend input-group-text\">\n"
|
||||
+ "<input type=\"checkbox\" id=\"showIOInput\" onchange=\"filterIOFunction()\" checked=\"on\" aria-label=\"Checkbox for ShowIO\" data-toggle=\"tooltip\" title=\"仅显示有IO函数\"></input>"
|
||||
+ " </div>\n"
|
||||
+ " <div class=\"input-group-append\">\n"
|
||||
+ " <select id=\"selectAction\" onchange=\"showDescription()\" class=\"custom-select\" style=\"-webkit-appearance: none;\"><option value=\"-1\">选择方法</option></select> \n"
|
||||
+ " </div>\n"
|
||||
+ " <input type=\"text\" class=\"form-control\" id=\"argInput\" placeholder=\"填写参数\" >\n"
|
||||
@@ -435,12 +440,18 @@ function changeAppInternal(requireRendering) {
|
||||
+ " </div>\n"
|
||||
+ " </div></div>\n" + "";
|
||||
$("#mainDiv")[0].innerHTML = html;
|
||||
filterIOFunction();
|
||||
}
|
||||
}
|
||||
function filterIOFunction(){
|
||||
var showIO = showIOInput.checked;
|
||||
$('#selectAction').html("<option value=\"-1\">选择方法</option>");
|
||||
for (const f of global.currentContract.exportedFunctions) {
|
||||
if (!showIO || f.relatedPermission.length!=0)
|
||||
$('#selectAction')
|
||||
.append(`<option value="${f.functionName}">${f.functionName}</option>`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getContractDesp() {
|
||||
try {
|
||||
@@ -824,6 +835,7 @@ function getRequestParameters() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function changeRender() {
|
||||
if (global.urlparam["noRender"] === "true") {
|
||||
global.urlparam["noRender"] = undefined;
|
||||
|
||||
Reference in New Issue
Block a user