Skip to content

Commit

Permalink
Removing my ugly comments in the JS
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxxep committed Dec 17, 2014
1 parent 1fb85e6 commit 5c12119
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions dist/waves.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@

// Get click coordinate and element witdh
var pos = offset(el);
var relativeY = (e.pageY - pos.top); //- 45
var relativeX = (e.pageX - pos.left); //- 45
var relativeY = (e.pageY - pos.top);
var relativeX = (e.pageX - pos.left);
var scale = 'scale('+((el.clientWidth / 100) * 2.5)+')';

// Support for touch devices
if ('touches' in e) {
relativeY = (e.touches[0].pageY - pos.top); //- 45
relativeX = (e.touches[0].pageX - pos.left); //- 45
relativeY = (e.touches[0].pageY - pos.top);
relativeX = (e.touches[0].pageX - pos.left);
}

// Attach data to element
Expand Down
8 changes: 4 additions & 4 deletions src/js/waves.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@

// Get click coordinate and element witdh
var pos = offset(el);
var relativeY = (e.pageY - pos.top); //- 45
var relativeX = (e.pageX - pos.left); //- 45
var relativeY = (e.pageY - pos.top);
var relativeX = (e.pageX - pos.left);
var scale = 'scale('+((el.clientWidth / 100) * 2.5)+')';

// Support for touch devices
if ('touches' in e) {
relativeY = (e.touches[0].pageY - pos.top); //- 45
relativeX = (e.touches[0].pageX - pos.left); //- 45
relativeY = (e.touches[0].pageY - pos.top);
relativeX = (e.touches[0].pageX - pos.left);
}

// Attach data to element
Expand Down

0 comments on commit 5c12119

Please sign in to comment.