<div class="matitaapparea">
+<div class="titlebar">
+ <div class="mainTitle"><H2 id="matitaTitle">Matita - <<Filename>></H2></div>
+ <div class="mainRight" id="matitaLogout"><A id="hlogout" href="/logout.html">Log out</A></div>
+</div>
+
+
<div class="toparea">
<div class="navibar">
<A href="javascript:advanceForm1()"><IMG class="topimg" src="icons/advance.png"
background-color: #f3f3f3;
}
+div.titlebar {
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+ margin-bottom: 4px;
+ width:100%;
+ height: 32px;
+ background-color: #007fff;
+ color: white;
+}
+
+div.mainTitle {
+ display: block;
+ margin-left: 3px;
+ margin-right: auto;
+ max-width: 600px;
+ max-height: 32px;
+ float: left;
+ line-height: 32px;
+ vertical-align: middle;
+}
+
+div.mainRight {
+ display: block;
+ max-width: 600px;
+ max-height: 32px;
+ line-height: 32px;
+ display: block;
+ margin-left: auto;
+ margin-right: 3px;
+ float: right;
+ vertical-align: middle;
+}
div.dialog {
position:absolute;
line-height: 32px
}
+a#hlogout {
+ color: inherit;
+ font-weight: bold;
+}
a#butClose {
color: inherit;
}
display: block;
margin-left: auto;
margin-right: auto;
- height:88%;
+ height:84%;
width:100%;
}
if (readCookie("session") == null) {
window.location = "/login.html"
} else {
+ matitaTitle = document.getElementById("matitaTitle");
locked = document.getElementById("locked");
unlocked = document.getElementById("unlocked");
workarea = document.getElementById("workarea");
dialogBox = document.getElementById("dialogBox");
dialogTitle = document.getElementById("dialogTitle");
dialogContent = document.getElementById("dialogContent");
+
+ changeFile("test.ma");
// hide sequent view at start
hideSequent();
}
}
+function changeFile(name) {
+ current_fname = name;
+ matitaTitle.innerHTML = "Matita - cic:/matita/" + name;
+}
+
function init_keyboard(target)
{
if (target.addEventListener)
processor = function(xml)
{
if (is_defined(xml)) {
- current_fname = thefile;
+ changeFile(thefile);
lockedbackup = ""
locked.innerHTML = lockedbackup;
// code originally used in google chrome (problems with mozilla)
// when force is true, reloadDialog is not needed
}
processor = function(xml) {
- current_fname = fname;
if (is_defined(xml)) {
if (xml.childNodes[0].textContent != "ok") {
if (confirm("File already exists. All existing data will be lost.\nDo you want to proceed anyway?")) {
reloadDialog();
}
} else {
- current_fname = fname;
+ changeFile(fname);
debug("file saved!");
if (reloadFile) { retrieveFile(fname); }
}