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.
38 lines
1.4 KiB
38 lines
1.4 KiB
<?php namespace App\Views;
|
|
/******************************************************************************************************************
|
|
* RPSLS - Rock, Paper, Scissors, Lizard, Spock Game
|
|
*
|
|
* @file app/views/getUser.php
|
|
* @package App\Views
|
|
* @description
|
|
* View - Form Page to get User Name.
|
|
* @author Rick Hays
|
|
* @date 11/15/2019
|
|
* @license MIT
|
|
* @copyright Copyright © 2019 - Rick Hays, All Rights Reserved.
|
|
*
|
|
* Revisions:
|
|
* YYYY-MM-DD XX Description
|
|
******************************************************************************************************************/
|
|
?>
|
|
<!-- Begin page content -->
|
|
<main role="main" class="flex-shrink-0">
|
|
<div class="container">
|
|
<h1 class="mt-5">Rock, Paper, Scissors, Lizard, Spock Game</h1>
|
|
<p class="lead">Try your luck at how many times you can beat the computer.</p>
|
|
<p> </p>
|
|
<div id="getuser">
|
|
<div class="boxerror bg-warning text-dark"><?=$ErrorCode?></div>
|
|
<p> </p>
|
|
<p> Before we start playing lets get a user name to keep track of your score and for the Top 10 list.</p>
|
|
<form class="mt-2 mt-md-0">
|
|
<input id="UserName" class="form-control mr-sm-2" type="text" value="<?=$UserName?>" placeholder="User Name - only (a-z, A-Z, 0-9, _ - @) are allowed." aria-label="User Name">
|
|
<br>
|
|
<button class="btn btn-outline-dark my-2 my-sm-0" type="button" onclick="submitUserName()">Submit</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
|
|
|
|
|