Invite friends card in the lobby + ?ref attribution on every entry page
Marty: members could not find their referral link. A signed-in player now sees an "Invite friends" card right under Play: their /r/<username> link (previews with their own card), Copy (clipboard API, select+copy fallback, prompt last) with a Copied! confirmation, and Share where the phone has a share sheet. Link stats and the how-it-works line moved into the card. No username yet: the card says how to get one. Attribution: ?ref=<name> on /, /play and /signin (and ?r= on the landing, where framed /r/<name> lands) now sets the same dr.ref sponsor cookie as /r/<name>, last touch wins. /r/<name> for a name the game does not know keeps it as /?ref=<name> instead of dropping it. signin.js also reads ?ref straight from the URL. Tests cover each path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -23,6 +23,6 @@ html{background:#050912}
|
||||
<p class="back"><a href="/play">Keep playing as a guest</a></p>
|
||||
</main>
|
||||
<script src="https://instantadpay.com/assets/game-signin.js?v=20261003b"></script>
|
||||
<script src="/signin.js"></script>
|
||||
<script src="/signin.js?v=20261005b"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user