Skip to content

Commit

Permalink
shortname
Browse files Browse the repository at this point in the history
update short name
  • Loading branch information
Chiara Bonacchi committed May 5, 2016
1 parent 1419607 commit efae652
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions template.html
Original file line number Diff line number Diff line change
Expand Up @@ -296,17 +296,17 @@ <h3>Photo-masking tutorial for 3D modelling </h3>

<script>
function loadUserProgress() {
pybossa.userProgress('jomonFlamePot').done(function(data){
pybossa.userProgress('MuseoEgizio1').done(function(data){

console.log('Tasks done so far: ' + data.done);

if ((data.done == 1) && ($.cookie('surveyjomonFlamePot') === undefined)){
if ((data.done == 1) && ($.cookie('surveyjMuseoEgizio1') === undefined)){
$("#survey").modal('show');
$.cookie('surveyjomonFlamePot', 'shown', { path: '/'});
$.cookie('surveyMuseoEgizio1', 'shown', { path: '/'});
}
if ((data.done == 25) && ($.cookie('survey25jomonFlamePot') === undefined)){
if ((data.done == 25) && ($.cookie('survey25MuseoEgizio1') === undefined)){
$("#survey25").modal('show');
$.cookie('survey25jomonFlamePot', 'shown', { path: '/'});
$.cookie('survey25MuseoEgizio1', 'shown', { path: '/'});
}
var pct = Math.round((data.done*100)/data.total);
$("#progress").css("width", pct.toString() +"%");
Expand Down Expand Up @@ -675,5 +675,5 @@ <h3>Photo-masking tutorial for 3D modelling </h3>

});

pybossa.run('jomonFlamePot');
pybossa.run('MuseoEgizio1');
</script>

0 comments on commit efae652

Please sign in to comment.