Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3C Rating Reviews bis: Allow for partial selection #1

Open
Laoujin opened this issue Mar 28, 2019 · 0 comments
Open

3C Rating Reviews bis: Allow for partial selection #1

Laoujin opened this issue Mar 28, 2019 · 0 comments
Labels
FUN This doesn't seem right

Comments

@Laoujin
Copy link
Member

Laoujin commented Mar 28, 2019

Icon: <i class="fa fa-star-half-o"></i>

With e a mousemove event

function getPosition(e) {
  var rect = e.target.getBoundingClientRect();
  var x = e.clientX - rect.left;
  var y = e.clientY - rect.top;
  return {  x,  y };

  // e.target.clientWidth
}

JSFiddle

@Laoujin Laoujin added the FUN This doesn't seem right label Mar 28, 2019
@Laoujin Laoujin changed the title 3C Rating Reviews: Allow for partial selection 3C Rating Reviews bis: Allow for partial selection Mar 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FUN This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant