Minor cleanups. Basic infrastructure for restoring video playback state (but unfinished)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// CRITICAL TODO: Namespace
|
||||
|
||||
var files=["",
|
||||
%for t in items:
|
||||
${t[1]['content']} ,
|
||||
@@ -5,10 +7,17 @@ var files=["",
|
||||
""
|
||||
];
|
||||
|
||||
var functions=["",
|
||||
%for t in items:
|
||||
function(){ ${t[1]['js']} },
|
||||
%endfor
|
||||
""];
|
||||
|
||||
var loc;
|
||||
|
||||
function goto(i) {
|
||||
$('#content').html(files[i]);
|
||||
functions[i]()
|
||||
loc=i;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user