Files
WebODF/programs/editor/cdn-index.html
T

87 lines
3.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xml:lang="en" lang="en">
<head>
<!--
This HTML page is meant to provide a starting point for testing
out of a source-tree. It does not require a dojo-amalgamation
but uses dojo directly from CDN.
Currently it has all the collaborative editing gadgets included,
but will fallback to non-collaborative editing if the server does
not provide the nowjs namespace.
This page is meant to be served out of a webodf source directory.
-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<title>Editor (CDN)</title>
<script src="webodf.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
var basedir = window.location.pathname;
basedir = basedir.substr(0, basedir.lastIndexOf("/"));
dojoConfig = {
paths: {
"webodf/editor": basedir,
"resources": basedir + "/resources"
}
}
</script>
<link rel="stylesheet" type="text/css"
href="http://ajax.googleapis.com/ajax/libs/dojo/1.8.0/dojo/resources/dojo.css"/>
<link rel="stylesheet" type="text/css"
href="http://ajax.googleapis.com/ajax/libs/dojo/1.8.0/dijit/themes/claro/claro.css"/>
<link rel="stylesheet" type="text/css"
href="http://ajax.googleapis.com/ajax/libs/dojo/1.8.0/dojox/layout/resources/ExpandoPane.css"/>
<link rel="stylesheet"
href="http://ajax.googleapis.com/ajax/libs/dojo/1.8.0/dojox/widget/ColorPicker/ColorPicker.css"/>
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.8.0/dojo/dojo.js"
data-dojo-config="async: true"></script>
<!-- connect back to the server for nowjs based communication -->
<script src="/nowjs/now.js" type="text/javascript" charset="utf-8"></script>
<!-- editor specific code -->
<link rel="stylesheet" type="text/css" href="editor.css"/>
<!-- Stuff for selecting a session;
TODO: port the two to AMD pattern and let them be included automatically. -->
<script src="SessionList.js" type="text/javascript" charset="utf-8"></script>
<script src="SessionListView.js" type="text/javascript" charset="utf-8"></script>
<!-- booting the editor -->
<script src="boot_editor.js" type="text/javascript" charset="utf-8"/></script>
</head>
<body onload="webodfEditor.boot();" class = "claro">
<div id = "loginContainer" style="display: none; text-align: center">
<form name="loginForm">
<p>Login:<br><input name="login" type="text" size="30" maxlength="30"></p>
<p>Password:<br><input name="password" type="password" size="30" maxlength="40"></p>
<input name="Submit" type="submit" value="Let me!"/>
</form>
</div>
<div id = "sessionListContainer" style="display: none; text-align: center">
<h1>Sessions</h1>
<div id = "sessionList"></div>
</div>
<div id = "mainContainer" style="display: none;">
<div id = "editor">
<span id = "menubar"></span>
<span id = "toolbar"></span>
<div id = "container">
<div id="canvas"></div>
</div>
</div>
<div id = "collaboration">
<div id = "collabContainer">
<div id = "people">
<div id = "inviteButton"></div>
<div id = "peopleList"></div>
</div>
</div>
</div>
</body>
</html>