<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TokenReceipt.aspx.cs" Inherits="TruxWebPortal.TokenReceipt" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="_style/stylesheet.css" title="TRUX7" />
    <script type="text/javascript">
        var receiptData = <%= "'" + ReceiptData + "'" %>;
        
        if (receiptData.length > 0) {
            localStorage.setItem('<%= ReceiptKey %>', receiptData);
        }

        window.close();
    </script>
</head>
<body>
<form id="form1" runat="server">
    <div id="main_area">
        <div id="work_area">
            <h1>
                <asp:Label ID="lblStatus" runat="server" Text="Token Success"></asp:Label>
            </h1>
            <p>
                You may now close this window.
            </p>
            <asp:Button runat="server" ID="btnClose" Text="Close" Style="margin-left: auto; float:none; margin-right: auto; display: block"
                        CssClass="default_button" OnClientClick="window.close();"   />
        </div>
    </div>
</form>
</body>
</html>