({
...tab,
is_torn: localTabs[i]?.is_torn || tab.is_torn
}));
}
tornCount = localTabs.filter(t => t.is_torn).length;
if (flyerId) {
const stored = localStorage.getItem('tearoff_torn_' + flyerId);
if (stored) {
try {
const data = JSON.parse(stored);
hasAlreadyTorn = true;
revealedSecret = data.secret;
if (data.revealed) secretRevealed = true;
} catch(e) {}
}
}
if (flyerInteraction) flyerInteraction.refresh();
}
"
class="flyer-container relative w-full max-w-3xl mx-auto z-20 flyer-card-reveal"
style="--paper-texture: url('https://tearoff.app/images/057.webp');"
data-server-tabs='[{"id":"01kgn93ran5xfhckttec964dyf","label":"Grab one","secret":"Thanks for stopping by!","is_torn":false},{"id":"01kgn93rapqmr3mxz7qmskvj5g","label":"Grab one","secret":"Yep \u2014 you just tore a digital tab.","is_torn":false},{"id":"01kgn93raq0w4wzcjxktrd9ttt","label":"Grab one","secret":"Thanks for trying Tearoff \ud83d\udc9b","is_torn":false},{"id":"01kgn93raq0w4wzcjxktrd9ttv","label":"Grab one","secret":"Congrats. Someone else wanted this tab.","is_torn":false},{"id":"01kgn93raq0w4wzcjxktrd9ttw","label":"Grab one","secret":"Want to make your own flyer?","is_torn":false},{"id":"01kgn93raraq1e9g5hwwt6hp58","label":"Grab one","secret":"Built by one person. Thanks for the support.","is_torn":true},{"id":"01kgn93rasewgqej2kegnhj7j4","label":"Grab one","secret":"Early version. Feedback welcome.","is_torn":false},{"id":"01kgn93rasewgqej2kegnhj7j5","label":"Grab one","secret":"No ads. No tracking. Just tabs.","is_torn":false}]'
data-server-bg-color="#1b364f"
data-server-text-color="#df0000"
>
Hi Indie Hackers!
Create a flyer, share a link, and let people tear off tabs. Bring a little street magic to the web.