indikatordesign

Canvas Container Width and Height

Apr 28th, 2017
88
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var content = $( '#main-content' ),
  2.     header  = $( '#main-header' ),
  3.     tela    = $( '<canvas />' ).prop({
  4.         width  : content.width(),
  5.         height : $( window ).height() - header.height(),
  6.     });
  7.  
  8. $( 'div.connections' ).append( tela );
RAW Paste Data