diff --git a/seq_module.html b/seq_module.html new file mode 100644 index 0000000000..7d60188c94 --- /dev/null +++ b/seq_module.html @@ -0,0 +1,27 @@ +
+ + + + + + + + + + + + + + + + +
This is content
+ + +
+ %for t in items: +
+ ${t[1]['content']} +
+ %endfor +
diff --git a/seq_module.html~ b/seq_module.html~ new file mode 100644 index 0000000000..a50c9b2c8e --- /dev/null +++ b/seq_module.html~ @@ -0,0 +1,7 @@ +
+% for t in items: +
+ ${t[1]['content']} +
+% endfor +
diff --git a/seq_module.js b/seq_module.js new file mode 100644 index 0000000000..040f8ef89d --- /dev/null +++ b/seq_module.js @@ -0,0 +1,43 @@ +var files=["", + %for t in items: + ${t[1]['content']} , + %endfor + "" + ]; + +var loc; + +function goto(i) { + $('#content').html(files[i]); + loc=i; +} + +function setup_click(i) { + $.get(i+'.html', function(data){ + files[i]=data; + }) + $('#tt_'+i).click(function(eo) { goto(i);}); +} + +function next() { + loc=loc+1; + if(loc>10) loc=10; + goto(loc); +} + +function prev() { + loc=loc-1; + if(loc<1) loc=1; + goto(loc); +} + +$(function() { + var i; + for(i=1; i<11; i++) { + setup_click(i); + } + $('#next').click(function(eo) { next();}); + $('#prev').click(function(eo) { prev();}); + }); + +$('#debug').text('loaded'); \ No newline at end of file diff --git a/seq_module.js~ b/seq_module.js~ new file mode 100644 index 0000000000..b38df10a7e --- /dev/null +++ b/seq_module.js~ @@ -0,0 +1,38 @@ +files=["1.html", "2.html", "3.html", "4.html", "5.html", "6.html", "7.html", "8.html", "9.html", "10.html"]; + +var loc; + +function goto(i) { + $('#content').html(files[i]); + loc=i; +} + +function setup_click(i) { + $.get(i+'.html', function(data){ + files[i]=data; + }) + $('#tt_'+i).click(function(eo) { goto(i);}); +} + +function next() { + loc=loc+1; + if(loc>10) loc=10; + goto(loc); +} + +function prev() { + loc=loc-1; + if(loc<1) loc=1; + goto(loc); +} + +$(function() { + var i; + for(i=1; i<11; i++) { + setup_click(i); + } + $('#next').click(function(eo) { next();}); + $('#prev').click(function(eo) { prev();}); + }); + +$('#debug').text('loaded'); \ No newline at end of file