Your Cards
Here are the cards you have linked to your account:
{#if me}
{#each me.cards as card (card.luid)}
{card.isGhost ? "Account Card" : cardType(card.luid)}
Registered: {moment(card.registerTime).format("YYYY MMM DD")}
Last used: {moment(card.accessTime).format("YYYY MMM DD")}
{formatLUID(card.luid, card.isGhost)}
{#if !card.isGhost}
unlink(card)}>
{/if}
{/each}
{/if}
Link Card
Please enter the following information:
{#if !inputSN}
The 20-digit access code on the back of your card.
(If it doesn't work, please try scanning your card in game and enter the access code shown on screen)
{
e.key === "Enter" && link('AC')
// Ensure key is numeric
if (isInput(e) && !/[\d ]/.test(e.key)) e.preventDefault()
}}
bind:value={inputAC}
on:input={inputACChange}
class:error={inputAC && (!inputACRegex.test(inputAC) || errorAC)}>
{#if inputAC.length > 0}
{link('AC');inputAC=''}}>Link
{/if}
{#if errorAC}
{errorAC}
{/if}
{/if}
{#if !inputAC}
Download the NFC Tools app on your phone
(Android /
Apple ) and scan your card.
Then, enter the Serial Number.
{
e.key === "Enter" && link('SN')
// Ensure key is hex or colon
if (isInput(e) && !/[0-9A-Fa-f:]/.test(e.key)) e.preventDefault()
}}
bind:value={inputSN}
on:input={inputSNChange}
class:error={inputSN && (!inputSNRegex.test(inputSN) || errorSN)}>
{#if inputSN.length > 0}
{link('SN'); inputSN = ''}}>Link
{/if}
{#if errorSN}
{errorSN}
{/if}
{/if}
{#if conflictOld && conflictNew && me}
Data Conflict
The card contains data for {conflictGame}, which is already present on your account.
Please choose the data you would like to keep
linkConflictContinue('old')}
role="button" tabindex="0" on:keydown={e => e.key === "Enter" && linkConflictContinue('old')}>
Account Card
Name: {conflictOld.name}
Rating: {conflictOld.rating}
Last Login: {moment(conflictOld.lastLogin).format("YYYY MMM DD")}
{formatLUID(me.ghostCard.luid, true)}
linkConflictContinue('new')}
role="button" tabindex="0" on:keydown={e => e.key === "Enter" && linkConflictContinue('new')}>
{cardType(conflictCardID)}
Name: {conflictNew.name}
Rating: {conflictNew.rating}
Last Login: {moment(conflictNew.lastLogin).format("YYYY MMM DD")}
{conflictCardID}
Cancel
{/if}