|
|
@ -2,8 +2,8 @@ const buttons = document.querySelectorAll('.ripple')
|
|
|
|
|
|
|
|
|
|
|
|
buttons.forEach(button => {
|
|
|
|
buttons.forEach(button => {
|
|
|
|
button.addEventListener('click', function (e) {
|
|
|
|
button.addEventListener('click', function (e) {
|
|
|
|
const x = e.clientX
|
|
|
|
const x = e.pageX
|
|
|
|
const y = e.clientY
|
|
|
|
const y = e.pageY
|
|
|
|
|
|
|
|
|
|
|
|
const buttonTop = e.target.offsetTop
|
|
|
|
const buttonTop = e.target.offsetTop
|
|
|
|
const buttonLeft = e.target.offsetLeft
|
|
|
|
const buttonLeft = e.target.offsetLeft
|
|
|
|