Commit e3b6dd3c authored by alexandre's avatar alexandre

Test with different refreshing rates

parent a9b76ec9
for (( ; ; ));
for (( ; ; ));
do
mkdir -p svg eps
rm -f svg/*.svg
rm -f eps/*.eps
......@@ -12,12 +12,12 @@ do
echo 'outputtemplate := "%c.svg";' > svg/metahoguet.svg.mp
curl http://osp.constantvzw.org:9999/p/metahoguet/export/txt | tee -a eps/metahoguet.eps.mp >> svg/metahoguet.svg.mp
cd svg
mpost -interaction=batchmode -s 'outputformat="svg"' metahoguet.svg.mp
cd ..
cd eps
mpost -interaction=batchmode -s 'outputformat="eps"' eps/metahoguet.eps.mp
cd ..
sleep 3
done
\ No newline at end of file
sleep 2
done
......@@ -52,7 +52,7 @@
startImg = startImg.substring(2);
elt = startImg.split("-");
}
splitHash();
if(elt.length > 0){
......@@ -61,7 +61,7 @@
$( "body" ).append('<img id="letter_'+i+'" title="cliquez pour imprimer" src="svg/'+elt[i]+'.svg?'+ (new Date()).getTime() + '" />');
}
}
function Zoom(valZ){
var imgH = $('img').height();
if(valZ == 'up'){
......@@ -102,20 +102,20 @@
if(result){
var path = $(this).attr('src').split('?')[0].replace(/svg/g, 'eps');
$.get('/api/ploteps/', { epsfile : path });
}
});
setInterval(function(){
stamp = (new Date).getTime();
$("img").each(function () {
var src = $(this).attr('src').split('?')[0];
$(this).attr('src', src + '?' + stamp);
});
}, 5000);
}, 7000);
testing();
</script>
</body>
</html>
\ No newline at end of file
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment