Convert jquery to javascript code -


if can, please advise me how to:

  1. i need convert nice script, pure javascript without jquery.
  2. very important! selection area need keep aspect ratio.

http://www.script-tutorials.com/html5-image-crop-tool/

well, don't know why need need use html dom / mouse events instead of jquery events:

object.onmousemove

object.onmouseup

object.onmousedown

also need use inmediate function instead jquery document ready shortcut $(function(){...}):

(function(){   // ... code goes here })() 

Comments

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -