Backup files not tracked

This commit is contained in:
Piotr Mitros
2012-01-01 19:28:26 -05:00
parent 373221f273
commit 20e0bdef9f
3 changed files with 4 additions and 45 deletions

4
.hgignore Normal file
View File

@@ -0,0 +1,4 @@
syntax: glob
*.pyc
*~

View File

@@ -1,7 +0,0 @@
<div>
% for t in items:
<div id="vert-${items.index(t)}">
${t[1]['content']}
</div>
% endfor
</div>

View File

@@ -1,38 +0,0 @@
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');