This is the code that runs https://bandolier.learnjsthehardway.com/ for you to review.  It uses the https://git.learnjsthehardway.com/learn-javascript-the-hard-way/bandolier-template to create the documentation for the project.
				https://bandolier.learnjsthehardway.com/
			
			
		
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							516 lines
						
					
					
						
							13 KiB
						
					
					
				
			
		
		
	
	
							516 lines
						
					
					
						
							13 KiB
						
					
					
				| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 | |
| <html xmlns="http://www.w3.org/1999/xhtml">
 | |
|   <head>
 | |
|     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
 | |
|     <meta name="x-apple-disable-message-reformatting" />
 | |
|     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 | |
|     <meta name="color-scheme" content="light dark" />
 | |
|     <meta name="supported-color-schemes" content="light dark" />
 | |
|     <title><%- company.product %> -- Register</title>
 | |
|     <style type="text/css" rel="stylesheet" media="all">
 | |
| /* Base ------------------------------ */
 | |
| 
 | |
|     body {
 | |
|       width: 100% !important;
 | |
|       height: 100%;
 | |
|       margin: 0;
 | |
|       -webkit-text-size-adjust: none;
 | |
|     }
 | |
| 
 | |
|     a {
 | |
|       color: #3869D4;
 | |
|     }
 | |
| 
 | |
|     a img {
 | |
|       border: none;
 | |
|     }
 | |
| 
 | |
|     td {
 | |
|       word-break: break-word;
 | |
|     }
 | |
| 
 | |
|     .preheader {
 | |
|       display: none !important;
 | |
|       visibility: hidden;
 | |
|       mso-hide: all;
 | |
|       font-size: 1px;
 | |
|       line-height: 1px;
 | |
|       max-height: 0;
 | |
|       max-width: 0;
 | |
|       opacity: 0;
 | |
|       overflow: hidden;
 | |
|     }
 | |
|     /* Type ------------------------------ */
 | |
| 
 | |
|     body,
 | |
|     td,
 | |
|     th {
 | |
|       font-family: Helvetica, Arial, sans-serif;
 | |
|     }
 | |
| 
 | |
|     h1 {
 | |
|       margin-top: 0;
 | |
|       color: #333333;
 | |
|       font-size: 22px;
 | |
|       font-weight: bold;
 | |
|       text-align: left;
 | |
|     }
 | |
| 
 | |
|     h2 {
 | |
|       margin-top: 0;
 | |
|       color: #333333;
 | |
|       font-size: 16px;
 | |
|       font-weight: bold;
 | |
|       text-align: left;
 | |
|     }
 | |
| 
 | |
|     h3 {
 | |
|       margin-top: 0;
 | |
|       color: #333333;
 | |
|       font-size: 14px;
 | |
|       font-weight: bold;
 | |
|       text-align: left;
 | |
|     }
 | |
| 
 | |
|     td,
 | |
|     th {
 | |
|       font-size: 16px;
 | |
|     }
 | |
| 
 | |
|     p,
 | |
|     ul,
 | |
|     ol,
 | |
|     blockquote {
 | |
|       margin: .4em 0 1.1875em;
 | |
|       font-size: 16px;
 | |
|       line-height: 1.625;
 | |
|     }
 | |
| 
 | |
|     p.sub {
 | |
|       font-size: 13px;
 | |
|     }
 | |
|     /* Utilities ------------------------------ */
 | |
| 
 | |
|     .align-right {
 | |
|       text-align: right;
 | |
|     }
 | |
| 
 | |
|     .align-left {
 | |
|       text-align: left;
 | |
|     }
 | |
| 
 | |
|     .align-center {
 | |
|       text-align: center;
 | |
|     }
 | |
|     /* Buttons ------------------------------ */
 | |
| 
 | |
|     .button {
 | |
|       background-color: #ddd;
 | |
|       border-top: 10px solid #ddd;
 | |
|       border-right: 18px solid #ddd;
 | |
|       border-bottom: 10px solid #ddd;
 | |
|       border-left: 18px solid #ddd;
 | |
|       display: inline-block;
 | |
|       color: #000;
 | |
|       text-decoration: none;
 | |
|       border-radius: 3px;
 | |
|       box-shadow: 0 2px 3px rgba(0, 0, 0, 0.16);
 | |
|       -webkit-text-size-adjust: none;
 | |
|       box-sizing: border-box;
 | |
|     }
 | |
| 
 | |
|     @media only screen and (max-width: 500px) {
 | |
|       .button {
 | |
|         width: 100% !important;
 | |
|         text-align: center !important;
 | |
|       }
 | |
|     }
 | |
|     /* Attribute list ------------------------------ */
 | |
| 
 | |
|     .attributes {
 | |
|       margin: 0 0 21px;
 | |
|     }
 | |
| 
 | |
|     .attributes_content {
 | |
|       background-color: #F4F4F7;
 | |
|       padding: 16px;
 | |
|     }
 | |
| 
 | |
|     .attributes_item {
 | |
|       padding: 0;
 | |
|     }
 | |
|     /* Related Items ------------------------------ */
 | |
| 
 | |
|     .related {
 | |
|       width: 100%;
 | |
|       margin: 0;
 | |
|       padding: 25px 0 0 0;
 | |
|       -premailer-width: 100%;
 | |
|       -premailer-cellpadding: 0;
 | |
|       -premailer-cellspacing: 0;
 | |
|     }
 | |
| 
 | |
|     .related_item {
 | |
|       padding: 10px 0;
 | |
|       color: #CBCCCF;
 | |
|       font-size: 15px;
 | |
|       line-height: 18px;
 | |
|     }
 | |
| 
 | |
|     .related_item-title {
 | |
|       display: block;
 | |
|       margin: .5em 0 0;
 | |
|     }
 | |
| 
 | |
|     .related_item-thumb {
 | |
|       display: block;
 | |
|       padding-bottom: 10px;
 | |
|     }
 | |
| 
 | |
|     .related_heading {
 | |
|       border-top: 1px solid #CBCCCF;
 | |
|       text-align: center;
 | |
|       padding: 25px 0 10px;
 | |
|     }
 | |
|     /* Discount Code ------------------------------ */
 | |
| 
 | |
|     .discount {
 | |
|       width: 100%;
 | |
|       margin: 0;
 | |
|       padding: 24px;
 | |
|       -premailer-width: 100%;
 | |
|       -premailer-cellpadding: 0;
 | |
|       -premailer-cellspacing: 0;
 | |
|       background-color: #F4F4F7;
 | |
|       border: 2px dashed #CBCCCF;
 | |
|     }
 | |
| 
 | |
|     .discount_heading {
 | |
|       text-align: center;
 | |
|     }
 | |
| 
 | |
|     .discount_body {
 | |
|       text-align: center;
 | |
|       font-size: 15px;
 | |
|     }
 | |
|     /* Social Icons ------------------------------ */
 | |
| 
 | |
|     .social {
 | |
|       width: auto;
 | |
|     }
 | |
| 
 | |
|     .social td {
 | |
|       padding: 0;
 | |
|       width: auto;
 | |
|     }
 | |
| 
 | |
|     .social_icon {
 | |
|       height: 20px;
 | |
|       margin: 0 8px 10px 8px;
 | |
|       padding: 0;
 | |
|     }
 | |
|     /* Data table ------------------------------ */
 | |
| 
 | |
|     .purchase {
 | |
|       width: 100%;
 | |
|       margin: 0;
 | |
|       padding: 35px 0;
 | |
|       -premailer-width: 100%;
 | |
|       -premailer-cellpadding: 0;
 | |
|       -premailer-cellspacing: 0;
 | |
|     }
 | |
| 
 | |
|     .purchase_content {
 | |
|       width: 100%;
 | |
|       margin: 0;
 | |
|       padding: 25px 0 0 0;
 | |
|       -premailer-width: 100%;
 | |
|       -premailer-cellpadding: 0;
 | |
|       -premailer-cellspacing: 0;
 | |
|     }
 | |
| 
 | |
|     .purchase_item {
 | |
|       padding: 10px 0;
 | |
|       color: #51545E;
 | |
|       font-size: 15px;
 | |
|       line-height: 18px;
 | |
|     }
 | |
| 
 | |
|     .purchase_heading {
 | |
|       padding-bottom: 8px;
 | |
|       border-bottom: 1px solid #EAEAEC;
 | |
|     }
 | |
| 
 | |
|     .purchase_heading p {
 | |
|       margin: 0;
 | |
|       color: #85878E;
 | |
|       font-size: 12px;
 | |
|     }
 | |
| 
 | |
|     .purchase_footer {
 | |
|       padding-top: 15px;
 | |
|       border-top: 1px solid #EAEAEC;
 | |
|     }
 | |
| 
 | |
|     .purchase_total {
 | |
|       margin: 0;
 | |
|       text-align: right;
 | |
|       font-weight: bold;
 | |
|       color: #333333;
 | |
|     }
 | |
| 
 | |
|     .purchase_total--label {
 | |
|       padding: 0 15px 0 0;
 | |
|     }
 | |
| 
 | |
|     body {
 | |
|       background-color: #F4F4F7;
 | |
|       color: #51545E;
 | |
|     }
 | |
| 
 | |
|     p {
 | |
|       color: #51545E;
 | |
|     }
 | |
| 
 | |
|     p.sub {
 | |
|       color: #6B6E76;
 | |
|     }
 | |
| 
 | |
|     .email-wrapper {
 | |
|       width: 100%;
 | |
|       margin: 0;
 | |
|       padding: 0;
 | |
|       -premailer-width: 100%;
 | |
|       -premailer-cellpadding: 0;
 | |
|       -premailer-cellspacing: 0;
 | |
|       background-color: #F4F4F7;
 | |
|     }
 | |
| 
 | |
|     .email-content {
 | |
|       width: 100%;
 | |
|       margin: 0;
 | |
|       padding: 0;
 | |
|       -premailer-width: 100%;
 | |
|       -premailer-cellpadding: 0;
 | |
|       -premailer-cellspacing: 0;
 | |
|     }
 | |
|     /* Masthead ----------------------- */
 | |
| 
 | |
|     .email-masthead {
 | |
|       padding: 25px 0;
 | |
|       text-align: center;
 | |
|     }
 | |
| 
 | |
|     .email-masthead_logo {
 | |
|       width: 94px;
 | |
|     }
 | |
| 
 | |
|     .email-masthead_name {
 | |
|       font-size: 16px;
 | |
|       font-weight: bold;
 | |
|       color: #A8AAAF;
 | |
|       text-decoration: none;
 | |
|       text-shadow: 0 1px 0 white;
 | |
|     }
 | |
|     /* Body ------------------------------ */
 | |
| 
 | |
|     .email-body {
 | |
|       width: 100%;
 | |
|       margin: 0;
 | |
|       padding: 0;
 | |
|       -premailer-width: 100%;
 | |
|       -premailer-cellpadding: 0;
 | |
|       -premailer-cellspacing: 0;
 | |
|       background-color: #FFFFFF;
 | |
|     }
 | |
| 
 | |
|     .email-body_inner {
 | |
|       width: 570px;
 | |
|       margin: 0 auto;
 | |
|       padding: 0;
 | |
|       -premailer-width: 570px;
 | |
|       -premailer-cellpadding: 0;
 | |
|       -premailer-cellspacing: 0;
 | |
|       background-color: #FFFFFF;
 | |
|     }
 | |
| 
 | |
|     .email-footer {
 | |
|       width: 570px;
 | |
|       margin: 0 auto;
 | |
|       padding: 0;
 | |
|       -premailer-width: 570px;
 | |
|       -premailer-cellpadding: 0;
 | |
|       -premailer-cellspacing: 0;
 | |
|       text-align: center;
 | |
|     }
 | |
| 
 | |
|     .email-footer p {
 | |
|       color: #6B6E76;
 | |
|     }
 | |
| 
 | |
|     .body-action {
 | |
|       width: 100%;
 | |
|       margin: 30px auto;
 | |
|       padding: 0;
 | |
|       -premailer-width: 100%;
 | |
|       -premailer-cellpadding: 0;
 | |
|       -premailer-cellspacing: 0;
 | |
|       text-align: center;
 | |
|     }
 | |
| 
 | |
|     .body-sub {
 | |
|       margin-top: 25px;
 | |
|       padding-top: 25px;
 | |
|       border-top: 1px solid #EAEAEC;
 | |
|     }
 | |
| 
 | |
|     .content-cell {
 | |
|       padding: 35px;
 | |
|     }
 | |
|     /*Media Queries ------------------------------ */
 | |
| 
 | |
|     @media only screen and (max-width: 600px) {
 | |
|       .email-body_inner,
 | |
|       .email-footer {
 | |
|         width: 100% !important;
 | |
|       }
 | |
|     }
 | |
| 
 | |
|     @media (prefers-color-scheme: dark) {
 | |
|       body,
 | |
|       .email-body,
 | |
|       .email-body_inner,
 | |
|       .email-content,
 | |
|       .email-wrapper,
 | |
|       .email-masthead,
 | |
|       .email-footer {
 | |
|         background-color: #333333 !important;
 | |
|         color: #FFF !important;
 | |
|       }
 | |
|       p,
 | |
|       ul,
 | |
|       ol,
 | |
|       blockquote,
 | |
|       h1,
 | |
|       h2,
 | |
|       h3 {
 | |
|         color: #FFF !important;
 | |
|       }
 | |
|       .attributes_content,
 | |
|       .discount {
 | |
|         background-color: #222 !important;
 | |
|       }
 | |
|       .email-masthead_name {
 | |
|         text-shadow: none !important;
 | |
|       }
 | |
|     }
 | |
| 
 | |
|     :root {
 | |
|       color-scheme: light dark;
 | |
|       supported-color-schemes: light dark;
 | |
|     }
 | |
|     </style>
 | |
|     <!--[if mso]>
 | |
|       <style type="text/css">
 | |
|       .f-fallback  {
 | |
|       font-family: Arial, sans-serif;
 | |
|       }
 | |
|       </style>
 | |
|     <![endif]-->
 | |
|   </head>
 | |
|   <body>
 | |
|     <span class="preheader">Thanks for purchasing <em><%- company.product %></em>.</span>
 | |
|     <table class="email-wrapper" width="100%" cellpadding="0" cellspacing="0" role="presentation">
 | |
|       <tr>
 | |
|         <td align="center">
 | |
|           <table class="email-content" width="100%" cellpadding="0" cellspacing="0" role="presentation">
 | |
|             <tr>
 | |
|               <td class="email-masthead">
 | |
|                 <a href="https://<%- company.website %>/client/" class="f-fallback email-masthead_name">
 | |
|                   <em><%- company.product %></em>
 | |
|                 </a>
 | |
|               </td>
 | |
|             </tr>
 | |
|             <!-- Email Body -->
 | |
|             <tr>
 | |
|               <td class="email-body" width="100%" cellpadding="0" cellspacing="0">
 | |
|                 <table class="email-body_inner" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
 | |
|                   <!-- Body content -->
 | |
|                   <tr>
 | |
|                     <td class="content-cell">
 | |
|                       <div class="f-fallback">
 | |
|                         <h1>Welcome, <%- user.full_name %>!</h1>
 | |
| 
 | |
|                         <p>Your <%- company.product %> purchase is complete and you can access the content at:</p>
 | |
|                         <table class="body-action" align="center" width="100%" cellpadding="0" cellspacing="0" role="presentation">
 | |
|                           <tr>
 | |
|                             <td align="center">
 | |
|                                 <table width="100%" border="0" cellspacing="0" cellpadding="0" role="presentation">
 | |
|                                   <tr>
 | |
|                                     <td align="center">
 | |
|                                       <a href="https://<%- company.website %>/client/#/login/" class="f-fallback button" target="_blank">Access Your Dashboard</a>
 | |
|                                     </td>
 | |
|                                   </tr>
 | |
|                                 </table>
 | |
|                             </td>
 | |
|                           </tr>
 | |
|                         </table>
 | |
|                         <p>For reference, here's your login information:</p>
 | |
|                         <table class="attributes" width="100%" cellpadding="0" cellspacing="0" role="presentation">
 | |
|                           <tr>
 | |
|                             <td class="attributes_content">
 | |
|                               <table width="100%" cellpadding="0" cellspacing="0" role="presentation">
 | |
|                                 <tr>
 | |
|                                   <td class="attributes_item">
 | |
|                                     <span class="f-fallback">
 | |
|                                       <strong>Login Page:</strong> <a href="https://<%- company.website %>/client/#/login/">https://<%- company.website %>/client/#/login/</a>
 | |
|                                     </span>
 | |
|                                   </td>
 | |
|                                 </tr>
 | |
|                                 <tr>
 | |
|                                   <td class="attributes_item">
 | |
|                                     <span class="f-fallback">
 | |
|                                       <strong>Username:</strong> <%- user.email %>
 | |
|                                     </span>
 | |
|                                   </td>
 | |
|                                 </tr>
 | |
|                               </table>
 | |
|                             </td>
 | |
|                           </tr>
 | |
|                         </table>
 | |
| 
 | |
|                         <p>You'll receive one more email with your receipt for the purchase shortly after this one.</p>
 | |
| 
 | |
|                         <p>If you have any questions, or problems with your payment feel free to email <a href="mailto:help@<%- company.website %>">help@<%- company.website %></a>.</p>
 | |
|                         <p>Thanks,
 | |
|                         <br><%- company.owner %> and the <em><%- company.product %></em> Team</p>
 | |
|                       </div>
 | |
|                     </td>
 | |
|                   </tr>
 | |
|                 </table>
 | |
|               </td>
 | |
|             </tr>
 | |
|             <tr>
 | |
|               <td>
 | |
|                 <table class="email-footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
 | |
|                   <tr>
 | |
|                     <td class="content-cell" align="center">
 | |
|                       <p class="f-fallback sub align-center">© <%- company.copyright_date %> <em><%- company.owner %></em>. All rights reserved.</p>
 | |
|                       <p class="f-fallback sub align-center">
 | |
|                       <%- company.name %>
 | |
|                       <br><%- company.street %>
 | |
|                       <br><%- company.city %>, <%- company.state %>
 | |
|                       <br><%- company.zip_code %>
 | |
|                       </p>
 | |
|                       <p class="f-fallback sub align-center"><a href="<%- company.unsubscribe %><%- user.unsubkey %>">Unsubscribe</a></p>
 | |
|                     </td>
 | |
|                   </tr>
 | |
|                 </table>
 | |
|               </td>
 | |
|             </tr>
 | |
|           </table>
 | |
|         </td>
 | |
|       </tr>
 | |
|     </table>
 | |
|   </body>
 | |
| </html>
 | |
| 
 |