Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Signature Tool

Ji Guang
November 09, 2012

Signature Tool

no

Ji Guang

November 09, 2012
Tweet

More Decks by Ji Guang

Other Decks in Technology

Transcript

  1. Canvas Basics <canvas>Sorry!</canvas> try{ document.createElement(‘canvas’).getContext( ‘2d’); }catch(e){ } var canvas

    = document.getElementById(‘canvas’); var context = canvas.getContext(‘2d’); context.fillText(‘Hello’,200,60);
  2. @font-face IE:Embedded OpenType(.eot) Firefox:TrueType,OpenType(.ttf, .otf) & WOFF Chrome:TrueType,OpenType(.ttf, .otf) &

    SVG Font(.svg) Safari:TrueType,OpenType(.ttf, .otf) & SVG Font(.svg) Opera:TrueType,OpenType(.ttf, .otf) & SVG Font(.svg)
  3. @font-face WHY NOT? COPYRIGHT & FOUT(Flash of unstyled Text) http://www.google.com/webfonts

    (FREE) http://www.fontsquirrel.com/fontface/genera tor (HAS A BLACKLIST)
  4. (Drag &) Drop <span id="custom" ondragenter="return false" ondragover="return false"> Drop

    Yours</span> $('#custom')[0].ondrop = function(e){ // do sth. };
  5. (Drag &) Drop DataTransfer e.dataTransfer.files // FileList same as <input

    id=“fileItem” type=“file”> var file = document.getElementById('fileItem').files[0 ];