S5 Slide notes

Slide notes are now served correctly (as application/xhtml+xml) to compatible
browsers. So you can put math in your notes, and the MathML will render.

We don't do real content-negotioation. IE gets text/html; everyone else gets application/xhtml+xml.
This commit is contained in:
Jacques Distler 2007-09-15 00:29:20 -05:00
parent 08857ebe8e
commit 2c4473a0e9
6 changed files with 11 additions and 6 deletions

View file

@ -1,6 +1,7 @@
/* Following are the note styles -- edit away! */
body {
html { background: #333; color: #FFF; }
body {
margin: 0;
padding: 1.0em;
background: #333;

View file

@ -631,7 +631,11 @@ function createNotesWindow() { // creates a window for our notes
if (!s5NotesWindow || s5NotesWindow.closed) { // Create the window if it doesn't exist
s5NotesWindowLoaded = false;
// Note: Safari has a tendency to ignore window options preferring to default to the settings of the parent window, grr.
s5NotesWindow = window.open('/s5/ui/s5-notes.html', 's5NotesWindow', 'top=0,left=0,resizable=yes,scrollbars=auto');
if (isIE) {
s5NotesWindow = window.open('/s5/ui/s5-notes.html', 's5NotesWindow', 'top=0,left=0,resizable=yes,scrollbars=auto');
} else {
s5NotesWindow = window.open('/s5/ui/s5-notes.xhtml', 's5NotesWindow', 'top=0,left=0,resizable=yes,scrollbars=auto');
}
}
if (s5NotesWindowLoaded) { // Load the current note if the Note HTML has loaded
loadNote();