blob: e9ed566ce4ff9d7b28f007c76128f19cc32b8a42 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2010."/>
<meta http-equiv="PRAGMA" content="NO-CACHE"/>
<meta http-equiv="Expires" content="-1"/>
<title>Orion TextView Demo</title>
<link rel="stylesheet" type="text/css" href="demo.css" />
<script type="text/javascript" src="../../requirejs/require.js"></script>
<script type="text/javascript">
require({
baseUrl: '',
paths: {
orion: '../../orion',
examples: '../../examples',
tests: '../../js-tests',
}
});
require(["demo"]);
</script>
</head>
<body>
<h3>Orion Text View Demo</h3>
<table width="100%">
<tr>
<th>View</th>
<th>Console</th>
</tr>
<tr>
<td width="100%">
<div id='divParent' class='parentElement' style='width:100%;height:650px;'>
Create the view by clicking one of the buttons at the bottom.
</div>
</td>
<td>
<div id='consoleParent' class='parentElement' style='width:300px;height:650px;'>
<iframe id='console' frameBorder="0" style="width:100%;height:100%;"></iframe>
</div>
</td>
</tr>
</table>
<span id='createJavaSample' class="button">Java file</span>
<span id='createJavaScriptSample' class="button">JavaScript file</span>
<span id='createHtmlSample' class="button">HTML file</span>
<span id='createPlainTextSample' class="button">Plain Text</span>
<span id='createBidiTextSample' class="button">Bidi Text</span>
<span id='clearLog' class="button">ClearConsole</span>
<span id='test' class="button">Test</span>
Performance tests:
<select id="performanceTestSelect">
<option value="test_pageDown">Page Down</option>
<option value="test_pageUp">Page Up</option>
<option value="test_lineDown">Line Down</option>
<option value="test_lineUp">Line Up</option>
<option value="test_selectPageDown">Select Page Down</option>
<option value="test_selectPageUp">Select Page Up</option>
<option value="test_selectLineDown">Select Line Down</option>
<option value="test_selectLineUp">Select Line Up</option>
<option value="test_getLocationAtOffset">Location at Offset</option>
<option value="test_getOffsetAtLocation">Offset at Location</option>
<option value="test_getLocationAtOffsetStyled">Location at Offset[styles]</option>
<option value="test_getOffsetAtLocationStyled">Offset at Location[styles]</option>
</select>
<span id='performanceTest' class="button">Run</span>
<span id='projectionTest' class="button">Projection Test</span>
<p>
Creation options:
Full Selection: <input type="checkbox" checked="true" id="fullSelection">
Tab size: <input type="number" value="4" id="tabSize">
</p>
</body>
</html>