Template:Team:Paris Saclay/simbox

From 2013.igem.org

(Difference between revisions)
Line 18: Line 18:
  var canv= document.createElement('canvas');
  var canv= document.createElement('canvas');
  canv.id= "simbox_canv"+id;
  canv.id= "simbox_canv"+id;
-
  canv.width= sb.style.width;
+
  canv.width= sb.data-width;
-
  canv.height= sb.style.height;
+
  canv.height= sb.data-height;
  alert(canv.width);
  alert(canv.width);
Line 28: Line 28:
</script>
</script>
-
<div class="simbox" style="width:</html>{{{width}}}<html>px;height:</html>{{{height}}}<html>px;background-color:#DEDEDE;"></html>{{{load}}}<html></div>
+
<div class="simbox" data-width="</html>{{{width}}}<html>" data-height="</html>{{{height}}}<html>" data-load="</html>{{{load}}}<html>"></div>
</html>
</html>

Revision as of 18:15, 2 August 2013