📄 testlauncher.html
字号:
<!-- back compat --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><title>Launcher</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">body, html { border: 0; background: ThreeDFace; overflow: auto;}button { width: 100px;}input, select { width: 200px;}body, td { font: Message-Box;}fieldset { padding: 5px;}:link:visited { color: blue;}:link:hover { color: Highlight;}.list div { padding: 1px 5px;}.list { border: 1px solid ThreeDShadow; padding: 1px; margin: 5px; background: Window; color: WindowText; height: 200px; overflow: auto;}</style><script type="text/javascript" src="../html/js/bilauncher.js"></script><script type="text/javascript">/* * This script block is only here to support the argument form. Do not * include this in your page. */function addArgument() { var inp = document.getElementById("argValue"); var s = inp.value; s = s.replace(/(^\s+)|(\s+$)/g, ""); if (s != "") { var opt = document.createElement("OPTION"); opt.text = opt.innerText = s; document.getElementById("argList").appendChild(opt); inp.value = ""; }}function removeArgument() { var list = document.getElementById("argList"); if (list.selectedIndex != -1) list.removeChild(list.options[list.selectedIndex]);}function launch() { var app = document.getElementById("appClass").value; var list = document.getElementById("argList"); var args = []; for (var i = 0; i < list.options.length; i++) args[i] = list.options[i].text; var allArgs = ["../html", app, false].concat(args); biExec.apply(null, allArgs); /* var l = new BiLauncher( "../html/" ); l.setAdfPath( app ); l.setArguments( args ); //l.setTarget( "foo" ); //l.setReuseWindow( false ); l.launch(); if ( l.getHasError() ) alert( l.getErrorMessage() ); */}function prefill() { var h = document.location.hash; h = h.replace(/^#/, ""); var params = {}; var parts = h.split(/;|&/); for (var i = 0; i < parts.length; i++) { var p = parts[i].split("="); params[p[0]] = p[1]; } if (params["class"]) { var el = document.getElementById("appClass"); el.value = params["class"]; el.select(); }}</script></head><body><fieldset><legend>Run a predefined application</legend><div class="list"> <div> <a href="#" onclick="biExec('../html', 'ArgumentTest.xml', false, 0, 'one', true); return false;">ArgumentTest</a> - Application for testing argument support </div> <div> <a href="#" onclick="biExec('../html', 'GridTest.xml', true); return false;">GridTest</a> - Simple grid test application that opens in this window. </div> <div> <a href="#" onclick="biExec('../html', 'ChartTest5.xml'); return false;">ChartTest5</a> - A chart test application that show the different chart types </div> <div> <a href="#" onclick="biExec('../html', 'WindowTest3.xml'); return false;">WindowTest3</a> - A test of the windows and the windows manager </div> </div></fieldset><form action="#" name="customAppFor" onsubmit="launch(); return false"><fieldset><legend>or enter the ADF file and arguments below</legend><table summary="Application name and arguments"> <tr> <td><label for="appClass">Application Name:</label></td> <td><input id="appClass" type="text" name="appClass"> <script type="text/javascript"> var el = document.getElementById("appClass"); el.focus(); el.select(); </script></td> <td><button type="submit">Launch</button></td> </tr> <tr> <td colspan="3"><hr></td> </tr> <tr> <td><label for="argValue">Arguments:</label></td> <td><input id="argValue" type="text"></td> <td></td> </tr> <tr> <td></td> <td><button onclick="addArgument()">Add</button> <button onclick="removeArgument()">Remove</button></td> <td></td> </tr> <tr> <td></td> <td><select id="argList" size="5"></select></td> <td></td> </tr></table></fieldset></form><script type="text/javascript">/* * This script block is only here to add tooltips to the links. Do not * include this in your page. */var links = document.links;var l = links.length;var s;for (var i = 0; i < l; i++) { s = String(links[i].onclick); s = s.replace(/(^function anonymous\(\)\n)|(^\{\n)|(\n\}$)/gim, ""); links[i].title = s;}prefill();</script></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -