137 lines
5.2 KiB
Plaintext
137 lines
5.2 KiB
Plaintext
|
|
@{
|
|
Layout = null;
|
|
}
|
|
<!DOCTYPE html>
|
|
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6 lt8"> <![endif]-->
|
|
<!--[if IE 7 ]> <html lang="en" class="no-js ie7 lt8"> <![endif]-->
|
|
<!--[if IE 8 ]> <html lang="en" class="no-js ie8 lt8"> <![endif]-->
|
|
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
|
|
<!--[if (gt IE 9)|!(IE)]><!-->
|
|
<html lang="en" class="no-js">
|
|
<!--<![endif]-->
|
|
@Scripts.Render("~/bundles/jquery")
|
|
@Scripts.Render("~/bundles/jqueryval")
|
|
@Html.Partial("_Processing")
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no,user-scalable=0">
|
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
<meta charset="UTF-8" />
|
|
<!-- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> -->
|
|
<title>New</title>
|
|
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
|
|
<link href="https://fonts.googleapis.com/css?family=Raleway:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
|
|
|
|
<link rel="shortcut icon" href="/favicon.ico">
|
|
<link href="/Content/Login.css" rel="stylesheet" type="text/css" />
|
|
@*<link href="/Content/sweetalert2.css" rel="stylesheet" type="text/css" />*@
|
|
|
|
</head>
|
|
<body style="background-image: url('/Images/background.jpg');background-position: center;">
|
|
<script src="/Scripts/sweetalert2.all.js"></script>
|
|
|
|
<div class="container">
|
|
|
|
<header>
|
|
<h1>LOGO Here</h1>
|
|
</header>
|
|
<section>
|
|
<div id="container_demo">
|
|
<a class="hiddenanchor" id="toregister"></a>
|
|
<a class="hiddenanchor" id="tologin"></a>
|
|
<div id="wrapper">
|
|
<div id="login" class="animate form">
|
|
@using (Html.BeginForm("Registration", "NewVisitor", FormMethod.Post, new { enctype = "multipart/form-data" }))
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
<h1> Weclome Text </h1>
|
|
<p>
|
|
<label for="usernamesignup" class="uname">
|
|
First Name
|
|
</label>
|
|
<input />
|
|
@*@Html.ValidationMessageFor(c => c)
|
|
@Html.TextBoxFor(c => c, new
|
|
{
|
|
placeholder = "請輸入您的姓氏"
|
|
})*@
|
|
</p>
|
|
|
|
<p>
|
|
<label for="usernamesignup" class="uname">
|
|
Last Name
|
|
</label>
|
|
<input />
|
|
@*@Html.ValidationMessageFor(c => c)
|
|
@Html.TextBoxFor(c => c, new
|
|
{
|
|
placeholder = "請輸入您的名字"
|
|
})*@
|
|
</p>
|
|
<p class="signin button">
|
|
<input type="submit" value="Test" />
|
|
</p>
|
|
|
|
}
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
<script>
|
|
@if (!string.IsNullOrWhiteSpace(ViewBag.StartScript))
|
|
{
|
|
@Html.Raw(ViewBag.StartScript)
|
|
}
|
|
$(function() {
|
|
|
|
$('Form').each(function (index) {
|
|
|
|
var formData = $.data(this);
|
|
|
|
var validator = formData.validator;
|
|
if (validator != null) {
|
|
var settings = formData.validator.settings
|
|
// Store existing event handlers in local variables
|
|
, oldErrorPlacement = settings.errorPlacement
|
|
, oldSuccess = settings.success;
|
|
|
|
settings.errorPlacement = function (label, element) {
|
|
|
|
// Call old handler so it can update the HTML
|
|
oldErrorPlacement(label, element);
|
|
|
|
// Add Bootstrap classes to newly added elements
|
|
label.parents('.form-group').addClass('has-error');
|
|
label.addClass('label label-warning');
|
|
};
|
|
|
|
settings.success = function (label) {
|
|
// Remove error class from <div class="form-group">, but don't worry about
|
|
// validation error messages as the plugin is going to remove it anyway
|
|
label.parents('.form-group').removeClass('has-error');
|
|
|
|
// Call old handler to do rest of the work
|
|
oldSuccess(label);
|
|
};
|
|
|
|
}
|
|
|
|
|
|
$(this).submit(function () {
|
|
if ((typeof Page_IsValid == 'undefined' || Page_IsValid) && $(this).valid()) {
|
|
window.ShowProcessing();
|
|
}
|
|
});
|
|
$(".field-validation-error").removeClass("field-validation-error").addClass("field-validation-valid").html("");
|
|
$(".input-validation-error").removeClass("input-validation-error").addClass("form-control valid");
|
|
});
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
</body>
|
|
|
|
</html> |