Tabs not Available

Tabs not Available

Submit & earn +5 pts

Be the first to submit Memori Cinto Talukoi and help others to master it!

Submit tabs
Lyrics not available
Tab not available
 Buy song Memori Cinto Talukoi on iTunes store

Support artists with purchashing the original song!

Author
milanello
901 pts, Indonesia
Not signed in yet? Click here to sign in



Master. Play. Share.

Share the tabs you’ve mastered and inspire others to follow your lead!

Publish Tab Now

Master. Play. Share.

Share the tabs you’ve mastered and inspire others to follow your lead!

Publish Tab Now
All Artists:
All Artists: # A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
shareButtonIds.forEach(id => { const btn = document.getElementById(id); if (!btn) return; // Get chord ID from data attribute const chordId = Number(btn.dataset.chordId || 0); const versionId = Number(btn.dataset.versionId || 0); btn.addEventListener('click', async () => { console.log("Share button clicked, chordId=", chordId); // 👈 add here const shareData = { title: pageTitle, text: pageTitle, url: pageUrl }; // Optional image support if (navigator.canShare && navigator.canShare({ files: [] }) && pageImage) { try { const response = await fetch(pageImage); const blob = await response.blob(); const file = new File([blob], 'image.jpg', { type: blob.type }); if (navigator.canShare({ files: [file] })) { shareData.files = [file]; } } catch (err) { console.warn('Image fetch failed for sharing:', err); } } /* if (navigator.canShare && pageImage) { try { const response = await fetch(pageImage, { mode: 'cors' }); const blob = await response.blob(); const file = new File([blob], 'image.jpg', { type: 'image/jpeg' }); if (navigator.canShare({ files: [file] })) { shareData.files = [file]; } } catch (err) { console.warn('Image fetch failed for sharing:', err); } } */ if (navigator.share) { try { await navigator.share(shareData); if (chordId) { console.log("Calling shareChord with chordId=", chordId); shareChord(chordId, versionId); } } catch (err) { console.warn("Share canceled or failed:", err); } } else { if (chordId && navigator.clipboard && navigator.clipboard.writeText) { try { await navigator.clipboard.writeText(pageUrl); shareChord(chordId, versionId); return; } catch (err) { console.warn('Unable to copy share link:', err); } } if (shareFallback) { shareFallback.style.display = 'flex'; btn.style.display = 'none'; } } }); }); // Function to record share in backend function shareChord(chordId, versionId) { fetch(`/index/share/${chordId}`, { method: "POST", credentials: "include", body: new URLSearchParams({version_id: String(versionId)}) }) .then(res => res.json()) .then(data => { if (data.success) { alert(data.message); } }) .catch(err => console.error("Error recording share:", err)); } });