Commit e3b6dd3c authored by alexandre's avatar alexandre

Test with different refreshing rates

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