mirror of
https://github.com/hanzoai/jube-fork.git
synced 2026-11-02 14:29:36 +00:00
86 lines
2.4 KiB
HTML
Executable File
86 lines
2.4 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Overview</title>
|
|
<meta charset="utf-8">
|
|
<link href="../content/shared/styles/examples-offline.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.common.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.rtl.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.default.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.default.mobile.min.css" rel="stylesheet">
|
|
<script src="../../js/jquery.min.js"></script>
|
|
<script src="../../js/jszip.min.js"></script>
|
|
<script src="../../js/kendo.all.min.js"></script>
|
|
<script src="../content/shared/js/console.js"></script>
|
|
<script>
|
|
|
|
</script>
|
|
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<a class="offline-button" href="../index.html">Back</a>
|
|
|
|
<div id="example">
|
|
<div class="demo-section k-content">
|
|
<form id="invitationForm">
|
|
<h4>Send invitation:</h4>
|
|
<textarea id="invitation" style="width: 100%;" required data-required-msg="Please enter a text." data-max-msg="Enter value between 1 and 200" ></textarea>
|
|
<div class="k-form-footer">
|
|
<div class="k-counter-container"><span class="k-counter-value">0</span>/200</div>
|
|
<button class="k-button k-primary">Send</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
// create TextArea from input HTML element
|
|
$("#invitation").kendoTextArea({
|
|
rows: 10,
|
|
maxLength:200,
|
|
placeholder: "Enter your text here."
|
|
});
|
|
|
|
$("#invitation").on('input', function (e) {
|
|
$('.k-counter-container .k-counter-value').html($(e.target).val().length);
|
|
});
|
|
|
|
$("#invitationForm").kendoValidator();
|
|
|
|
$("form").submit(function (event) {
|
|
event.preventDefault();
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<style>
|
|
.k-floating-label-container {
|
|
width: 100%;
|
|
}
|
|
|
|
.k-form-footer{
|
|
display:flex;
|
|
flex-direction:column;
|
|
}
|
|
|
|
#example .k-button{
|
|
margin-top: 20px;
|
|
width:80px;
|
|
margin-left:auto;
|
|
}
|
|
#example .k-counter-container {
|
|
color: #9C9C9C;
|
|
font-size:13px;
|
|
margin-top: 5px;
|
|
margin-left:auto;
|
|
}
|
|
</style>
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|