OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
reels
/
assets
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:13 AM
rwxr-xr-x
📄
script.js
553 bytes
01/20/2025 08:39:05 AM
rw-r--r--
📄
style.css
575 bytes
01/20/2025 08:39:05 AM
rw-r--r--
Editing: script.js
Close
document.querySelectorAll('.like-button').forEach(button => { button.addEventListener('click', function () { const videoId = this.getAttribute('data-video-id'); fetch('like.php', { method: 'POST', body: JSON.stringify({ videoId }), }).then(response => response.text()).then(data => { console.log(data); const likeCount = document.getElementById(`like-count-${videoId}`); likeCount.innerText = parseInt(likeCount.innerText) + 1; }); }); });