Your IP : 18.221.217.100


Current Path : /home/lentoinv/finationglobal.com/arch/Documentation/
Upload File :
Current File : /home/lentoinv/finationglobal.com/arch/Documentation/form-elements.html

<!DOCTYPE html>
<html>
<head>
<!-- Meta data -->
<meta charset="UTF-8">
<meta name='viewport' content='width=device-width, initial-scale=1.0, user-scalable=0'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Zanex – Bootstrap5  Admin & Dashboard Template">
<meta name="author" content="Spruko Technologies Private Limited">
<meta name="keywords" content="admin template,admin dashboard,bootstrap 5 admin template,html template,html admin template,admin,bootstrap 5 html template,html dashboard,dashboard,crm,admin pane,admin dashboard template,html responsive template,crm admin template,dashboard template.">
<!-- Title -->
<title>Zanex – Bootstrap5  Admin & Dashboard Template</title>
<link rel="icon" href="assets/images/favicon.ico" type="image/x-icon">
<link href="assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">
<link href="assets/plugins/iconfonts/icons.css" rel="stylesheet" />
<!-- Custom Css -->
<link href="assets/css/main.css" rel="stylesheet">
<!---Internal  Prism css-->
<link href="assets/plugins/prism/prism.css" rel="stylesheet">
<link href="assets/plugins/treeview-prism/prism.css" rel="stylesheet">
<link href="assets/plugins/treeview-prism/prism-treeview.css" rel="stylesheet">
<link href="assets/css/themes/all-themes.css" rel="stylesheet" />
</head>

<body class="theme-blush">
<!-- Page Loader -->
<div class="page-loader-wrapper">
    <div class="loader">
        <div class="preloader">
            <div class="spinner-layer pl-blush">
                <div class="circle-clipper left">
                    <div class="circle"></div>
                </div>
                <div class="circle-clipper right">
                    <div class="circle"></div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- #END# Page Loader -->

<!-- Overlay For Sidebars -->
<div class="overlay"></div>
<!-- #END# Overlay For Sidebars -->

<!-- Sidebarover lay -->
<div class="sidebar-overlay" data-toggle="sidebar"></div>

<!-- #Top Bar -->
<section>
    <!-- Left Sidebar -->
    <aside id="leftsidebar" class="sidebar">
        <!-- User Info -->
        <div class="admin-image"> <img src="assets/images/logo-3.png" alt="" > </div>
        <!-- Menu -->
        <div class="menu main-sidebar">
			<ul class="list" id="documenter_nav">
				<li class="nav-item"><a class="nav-link" href="index.html"><i class="fe fe-airplay sidemenu-icon"></i><span class="sidemenu-label">Introduction</span></a></li>
				<li class="nav-item"><a class="nav-link" href="folder-structure.html"><i class="fe fe-folder sidemenu-icon"></i><span class="sidemenu-label">Folder structure</span></a></li>
				<li class="nav-item"><a class="nav-link" href="layouts.html"><i class="fe fe-layout sidemenu-icon"></i><span class="sidemenu-label">Layouts</span></a></li>
				<li class="nav-item"><a class="nav-link" href="faqs.html"><i class="fe fe-help-circle sidemenu-icon"></i><span class="sidemenu-label text-primary fw-bold mr-5">Faqs </span><i class="fa fa-star float-right sidemenu-icon-2 text-warning"></i></a></li>
				<li class="nav-item"><a class="nav-link" href="switcher.html"><i class="fe fe-grid sidemenu-icon"></i><span class="sidemenu-label">Switcher</span></a></li>
				<li class="nav-item"><a class="nav-link" href="gulp.html"><i class="fe fe-settings sidemenu-icon"></i><span class="sidemenu-label">Gulp</span></a></li>
				<li class="nav-item"><a class="nav-link" href="html-structure.html"><i class="fe fe-codepen sidemenu-icon"></i><span class="sidemenu-label">html-structure</span></a></li>
				<li class="nav-item"><a class="nav-link" href="apps.html"><i class="fe fe-briefcase sidemenu-icon"></i><span class="sidemenu-label">Apps</span></a></li>
				<li class="nav-item"><a class="nav-link" href="elements.html"><i class="fe fe-aperture sidemenu-icon"></i><span class="sidemenu-label">Elements</span></a></li>
				<li class="nav-item"><a class="nav-link" href="form-elements.html"><i class="fe fe-file-text sidemenu-icon"></i><span class="sidemenu-label">Form-elements</span></a></li>
				<li class="nav-item"><a class="nav-link" href="form-advanced.html"><i class="fe fe-cpu sidemenu-icon"></i><span class="sidemenu-label">Form-advanced</span></a></li>
				<li class="nav-item"><a class="nav-link" href="treeview.html"><i class="fe fe-lock sidemenu-icon"></i><span class="sidemenu-label">Treeview</span></a></li>
				<li class="nav-item"><a class="nav-link" href="form-wizard.html"><i class="fe fe-hard-drive sidemenu-icon"></i><span class="sidemenu-label">Form-wizard</span></a></li>
				<li class="nav-item"><a class="nav-link" href="form-editor.html"><i class="fe fe-edit sidemenu-icon"></i><span class="sidemenu-label">Form-editor</span></a></li>
				<li class="nav-item"><a class="nav-link" href="form-validation.html"><i class="fe fe-file-plus sidemenu-icon"></i><span class="sidemenu-label">Form-validation</span></a></li>
				<li class="nav-item"><a class="nav-link" href="maps.html"><i class="fe fe-map-pin sidemenu-icon"></i><span class="sidemenu-label">Maps</span></a></li>
				<li class="nav-item"><a class="nav-link" href="charts.html"><i class="fe fe-pie-chart sidemenu-icon"></i><span class="sidemenu-label">Charts</span></a></li>
				<li class="nav-item"><a class="nav-link" href="tables.html"><i class="fe fe-database sidemenu-icon"></i><span class="sidemenu-label">Tables</span></a></li>
				<li class="nav-item"><a class="nav-link" href="icons.html"><i class="fe fe-anchor sidemenu-icon"></i><span class="sidemenu-label">Icons</span></a></li>
				<li class="nav-item"><a class="nav-link" href="others.html"><i class="fe fe-link sidemenu-icon"></i><span class="sidemenu-label">Others</span></a></li>
				<li class="nav-item"><a class="nav-link" href="plugins.html"><i class="fe fe-droplet sidemenu-icon"></i><span class="sidemenu-label">Plugins</span></a></li>
				<li class="nav-item"><a class="nav-link" href="theme.html"><i class="fe fe-layers sidemenu-icon"></i><span class="sidemenu-label">Theme Style</span></a></li>
			</ul>
		</div>
        <!-- #Menu -->
    </aside>
    <!-- #END# Left Sidebar -->
</section>

<section class="content home">
    <div class="container-fluid">
		<div class="block-header mt-3 ml-3">
			<h1>Zanex – Bootstrap 5  Admin & Dashboard HTML Template</h1>
		</div>
		<div class="">
			<div class="alert alert-primary-transparent">
				<button type="button" class="btn-close" data-dismiss="alert" aria-hidden="true">×</button>
				<strong>Note:-</strong>
				<hr class="message-inner-separator">
				<p>Please refer <b class="text-primary fs-6">Faq's </b>page in documentation itself for queries like customization like color ,rtl ,dark style..etc.</p>
			</div>
		</div>
		<div class="row clearfix">
			<div class="col-sm-12 col-lg-12 col-xl-9">
				<div class="row clearfix">
					<div class="col-sm-12">
						<div class="card" id="Filebrowser">
							<div class="body">
								<div id="section41">
									<h5 class="mb-4 mt-0">File Browser</h5>
									<p>Bootstrap file upload, The following HTML should have in your page to implement a File upload.</p>
									<div class="bg-primary-transparent">
									<ul class="nav nav nav-tabs border panel-tabs main-nav-line">
										<li class="nav-item"><a href="#fileupload" class="nav-link active" data-toggle="tab">HTML</a></li>
									</ul>
									<div class="panel-body tabs-menu-body main-content-body-right border-top-0 border">
										<div class="tab-content">
											<div class="tab-pane active" id="fileupload">
								<!-- Prism Code -->
<figure class="highlight clip-widget mb-0">
<pre class="pt-0 mt-0  language-markup p-0 pl-3 m-0">
	<code class="language-markup mt-0 pt-0">
		<script type="html-Zanex/script">
<div class="form-group">
	<label for="formFile" class="form-label mt-0">Default file input example</label>
	<input class="form-control" type="file">
</div>
		</script>
	</code>
</pre>
</figure>
<!-- End Prism Precode -->
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
						<div class="row clearfix">
							<div class="col-sm-12">
								<div class="card" id="radio">
									<div class="body">
										<div id="section41">

											<h5 class="my-4">Radio Buttons</h5>
											<div class="bg-primary-transparent">
											<ul class="nav nav-tabs border panel-tabs main-nav-line">
												<li class="nav-item"><a href="#inputmask" class="active mr-4 nav-link" data-toggle="tab"> HTML</a></li>
											</ul>
											<div class="panel-body tabs-menu-body border border-top-0">
												<div class="tab-content">
													<div class="tab-pane active" id="inputmask">
<!-- Prism Code -->
<figure class="highlight clip-widget mb-0">
<pre class="pt-0 mt-0 line-numbers language-markup p-0 pl-3 m-0">
	<code class="language-markup line-numbers mt-0 pt-0">
		<script type="html-Zanex/script">
<div class="custom-controls-stacked">
	<label class="custom-control custom-radio">
		<input type="radio" class="custom-control-input" name="example-radios" value="option1" checked>
		<span class="custom-control-label">Option 1</span>
	</label>
	<label class="custom-control custom-radio">
		<input type="radio" class="custom-control-input" name="example-radios" value="option2">
		<span class="custom-control-label">Option 2</span>
	</label>
	<label class="custom-control custom-radio">
		<input type="radio" class="custom-control-input" name="example-radios" value="option3" disabled>
		<span class="custom-control-label">Option Disabled</span>
	</label>
	<label class="custom-control custom-radio">
		<input type="radio" class="custom-control-input" name="example-radios2" value="option4" disabled checked>
		<span class="custom-control-label">Option Disabled Checked</span>
	</label>
</div>
		</script>
	</code>
	</pre>
</figure>
<!-- End Prism Precode -->
													</div>

												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
						<div class="row clearfix">
							<div class="col-sm-12">
								<div class="card" id="checkbox">
									<div class="body">
										<div id="section41">
											<h5 class="mt-0">Checkboxes</h5>
											<div class="bg-primary-transparent">
											<ul class="nav nav-tabs border panel-tabs main-nav-line">
												<li class="nav-item"><a href="#colorpicker" class="active mr-4 nav-link" data-toggle="tab"> HTML</a></li>
											</ul>
											<div class="panel-body tabs-menu-body border border-top-0">
												<div class="tab-content">
													<div class="tab-pane active" id="colorpicker">
									<!-- Prism Code -->
<figure class="highlight clip-widget mb-0">
<pre class="pt-0 mt-0 line-numbers language-markup p-0 pl-3 m-0">
	<code class="language-markup line-numbers mt-0 pt-0">
		<script type="html-Zanex/script">
<div class="custom-controls-stacked">
	<label class="custom-control custom-checkbox">
		<input type="checkbox" class="custom-control-input" name="example-checkbox1" value="option1" checked>
		<span class="custom-control-label">Option 1</span>
	</label>
	<label class="custom-control custom-checkbox">
		<input type="checkbox" class="custom-control-input" name="example-checkbox2" value="option2">
		<span class="custom-control-label">Option 2</span>
	</label>
	<label class="custom-control custom-checkbox">
		<input type="checkbox" class="custom-control-input" name="example-checkbox3" value="option3" disabled>
		<span class="custom-control-label">Option Disabled</span>
	</label>
	<label class="custom-control custom-checkbox">
		<input type="checkbox" class="custom-control-input" name="example-checkbox4" value="option4" checked disabled>
		<span class="custom-control-label">Option Disabled Checked</span>
	</label>
</div>
		</script>
	</code>
	</pre>
</figure>
<!-- End Prism Precode -->
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
						<div class="row clearfix">
							<div class="col-sm-12">
								<div class="card" id="switchs">
									<div class="body">
										<div id="section41">
											<h5 class="mt-0">Toggle Switches</h5>
											<div class="bg-primary-transparent">
											<ul class="nav nav-tabs border panel-tabs main-nav-line">
												<li class="nav-item"><a href="#datepicker" class="active mr-4 nav-link" data-toggle="tab"> HTML</a></li>
											</ul>
											<div class="panel-body tabs-menu-body border border-top-0">
												<div class="tab-content">
													<div class="tab-pane active" id="datepicker">
									<!-- Prism Code -->
<figure class="highlight clip-widget mb-0">
<pre class="pt-0 mt-0 line-numbers language-markup p-0 pl-3 m-0">
	<code class="language-markup line-numbers mt-0 pt-0">
		<script type="html-Zanex/script">
<ul class="list-group">
	<li class="list-group-item">
		Bootstrap Switch Default
		<div class="material-switch pull-right">
			<input id="someSwitchOptionDefault" name="someSwitchOption001" type="checkbox" />
			<label for="someSwitchOptionDefault" class="label-default"></label>
		</div>
	</li>
	<li class="list-group-item">
		Bootstrap Switch Primary
		<div class="material-switch pull-right">
			<input id="someSwitchOptionPrimary" name="someSwitchOption001" type="checkbox"/>
			<label for="someSwitchOptionPrimary" class="label-primary"></label>
		</div>
	</li>
	<li class="list-group-item">
		Bootstrap Switch Success
		<div class="material-switch pull-right">
			<input id="someSwitchOptionSuccess" name="someSwitchOption001" type="checkbox"/>
			<label for="someSwitchOptionSuccess" class="label-success"></label>
		</div>
	</li>
	<li class="list-group-item">
		Bootstrap Switch Info
		<div class="material-switch pull-right">
			<input id="someSwitchOptionInfo" name="someSwitchOption001" type="checkbox"/>
			<label for="someSwitchOptionInfo" class="label-info"></label>
		</div>
	</li>
	<li class="list-group-item">
		Bootstrap Switch Warning
		<div class="material-switch pull-right">
			<input id="someSwitchOptionWarning" name="someSwitchOption001" type="checkbox"/>
			<label for="someSwitchOptionWarning" class="label-warning"></label>
		</div>
	</li>
	<li class="list-group-item">
		Bootstrap Switch Danger
		<div class="material-switch pull-right">
			<input id="someSwitchOptionDanger" name="someSwitchOption001" type="checkbox"/>
			<label for="someSwitchOptionDanger" class="label-danger"></label>
		</div>
	</li>
</ul>
		</script>
	</code>
	</pre>
</figure>
<!-- End Prism Precode -->
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
						<div class="row clearfix">
							<div class="col-sm-12">
								<div class="card" id="Range-Slider">
									<div class="body">
										<div id="section41">
											<h5 class="mt-0">Range Slider</h5>
											<p>Range-Slider is very simple to use as a jQuery plug-in with a huge range of customizable option..</p>

											<h6 class="mb-3">1. You need to add these files to make it work.</h6>
											<div class="bg-primary-transparent">
											<ul class="nav nav-tabs border panel-tabs main-nav-line">
												<li class="nav-item"><a href="#rangeslider" class="active mr-4 nav-link" data-toggle="tab"> HTML</a></li>
												<li class="nav-item"><a href="#rangeslider1" data-toggle="tab" class="mr-4 nav-link "> SCSS</a></li>
												<li class="nav-item"><a href="#rangeslider2" data-toggle="tab" class="mr-4 nav-link "> JS</a></li>
											</ul>
											<div class="panel-body tabs-menu-body border border-top-0">
												<div class="tab-content">
													<div class="tab-pane active" id="rangeslider">
									<!-- Prism Code -->
<figure class="highlight clip-widget mb-0">
<pre class="pt-0 mt-0 line-numbers language-markup p-0 pl-3 m-0">
	<code class="language-markup line-numbers mt-0 pt-0">
		<script type="html-Zanex/script">
<h6>Range Slider</h6>

<div class="row row-sm">
	<div class="col-lg-12">
		<input class="rangeslider1" name="example_name" type="text" value="">
	</div>
	<div class="col-lg-12 mt-4">
		<input class="rangeslider2" name="example_name" type="text" value="">
	</div>
</div>
<div class="row row-sm">
	<div class="col-lg-12 mt-4">
		<input class="rangeslider3" name="example_name" type="text" value="">
	</div>
	<div class="col-lg-12 mt-4">
		<input class="rangeslider4" name="example_name" type="text" value="">
	</div>
</div>

<h6>Range Slider (Modern Skin)</h6>

<div class="row row-sm">
	<div class="col-lg-12">
		<input class="rangeslider1" data-bs-extra-classes="irs-modern" name="example_name" type="text">
	</div>
	<div class="col-lg-12 mt-4">
		<input class="rangeslider2" data-bs-extra-classes="irs-modern" name="example_name" type="text">
	</div>
</div>
<div class="row row-sm">
	<div class="col-lg-12 mt-4">
		<input class="rangeslider3" data-bs-extra-classes="irs-modern" name="example_name" type="text">
	</div>
	<div class="col-lg-12 mt-4">
		<input class="rangeslider4" data-bs-extra-classes="irs-modern" name="example_name" type="text">
	</div>
</div>


<h6>Range Slider (Outline Skin)</h6>

<div class="row row-sm">
	<div class="col-lg-12">
		<input class="rangeslider1" data-bs-extra-classes="irs-outline" name="example_name" type="text">
	</div>
	<div class="col-lg-12 mt-4">
		<input class="rangeslider2" data-bs-extra-classes="irs-outline" name="example_name" type="text">
	</div>
</div>
<div class="row row-sm">
	<div class="col-lg-12 mt-4">
		<input class="rangeslider3" data-bs-extra-classes="irs-outline" name="example_name" type="text">
	</div>
	<div class="col-lg-12 mt-4">
		<input class="rangeslider4" data-bs-extra-classes="irs-outline" name="example_name" type="text">
	</div>
</div>
		</script>
	</code>
	</pre>
</figure>
<!-- End Prism Precode -->							</div>
													<div class="tab-pane" id="rangeslider1">
<figure class="highlight clip-widget mb-0">
<pre class="language-css line-numbers language-markup m-0">
    <code class="language-css language-markup">
		<script type="html-Zanex/script">
<!-- INTERNAL ion.rangeSlider scss -->
assets/scss/plugins/_ion.rangeSlider.scss
assets/scss/plugins/_ion.rangeSlider.skinFlat.scss

			</script>
		</code>
	</pre>
</figure>
<!-- End Prism Precode -->

													</div>
													<div class="tab-pane" id="rangeslider2">
<figure class="highlight clip-widget mb-0">
<pre title="jQuery" class="javascript m-0" data-codetype ="JQueryku"><code class="language-javascript">

 &lt;!-- INTERNAL ion.rangeSlider.min js --&gt;
 &lt;script src="../assets/plugins/ion-rangeslider/js/ion.rangeSlider.min.js"&gt;&lt;/script&gt;;
 &lt;script src="../assets/js/rangeslider.js"&gt;&lt;/script&gt;;

	</code>
	</pre>
</figure>

													</div>

<p class="mt-2"><b>Note : </b>After Changing scss you must run gulp command i.e, <code>gulp watch</code> . Refer gulp page for more gulp commands <a href="gulp.html">click here.</a> </p>
												</div>
											</div>
										</div>
									</div>
										<table class="table table-bordered bg-primary-transparent mt-4">
											<thead>
												<tr>
													<th>Type</th>
													<th>URL</th>
												</tr>
											</thead>
											<tbody>
												<tr>
													<td><strong>Plugin Link</strong></td>
													<td><a href="http://ionden.com/a/plugins/ion.rangeSlider/demo.html" target="_blank">http://ionden.com/a/plugins/ion.rangeSlider/demo.html</a></td>
												</tr>
											</tbody>
										</table>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="col-xl-3 col-lg-12 d-none d-xl-block custom-leftnav">
				<div class="main-content-left-components">
					<div class="card custom-card">
						<div class="card-body component-item">
							<div class="collapse  navbar-collapse justify-content-end" id="main-menu">
								<ul class="navbar-nav">
									<li class="nav-item active">
										<a class="nav-link" href="#Filebrowser">Filebrowser</a>
									</li>
									<li class="nav-item">
										<a class="nav-link" href="#radio">Radio Buttons</a>
									</li>
									<li class="nav-item">
										<a class="nav-link" href="#checkbox">Checkboxes</a>
									</li>
									<li class="nav-item">
										<a class="nav-link" href="#switchs">Toggle Switches</a>
									</li>
									<li class="nav-item">
										<a class="nav-link" href="#Range-Slider">Range Slider</a>
									</li>
								</ul>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<!-- Footer opened -->
	<div class="main-footer ht-40">
		<div class="pd-t-0-f ht-100p">
			<span>Copyright © <span id="year"></span> <a href="javascript:void(0)">Zanex</a>. Designed with <span class="fa fa-heart text-danger"></span> by <a href="javascript:void(0)"> Spruko </a> All rights reserved.</span>
		</div>
	</div>
	<!-- Footer closed -->


</section>

<div class="color-bg">
	<div class="sidebar__toggle" data-toggle="sidebar">
		<a class="open-toggle" href="javascript:void(0);"><i class="fe fe-menu"></i></a>
	</div>
	<ul class="nav navbar-nav">
	  <li class="nav-item mr-8"><a class="btn btn-primary btn-header " href="https://themeforest.net/item/zanex-bootstrap-5-admin-dashboard-template/32984858" target="_blank"><i class="icon-help2"></i> Buy Now</a></li>
	  <li class="nav-item mr-8"><a class="btn btn-secondary btn-header " href="https://1.envato.market/MGEaN" target="_blank"><i class="icon-bag3"></i> Portfolio</a></li>
	  <li class="nav-item"><a class="btn btn-danger text-white mr-3 btn-header" href="https://spruko.com/licenses.html" target="_blank"><i class="icon-bag3"></i> Licenses</a></li>
	</ul>
</div>

<!-- Jquery Core Js -->
<script src="assets/bundles/libscripts.bundle.js"></script> <!-- Lib Scripts Plugin Js -->
<script src="assets/bundles/morphingsearchscripts.bundle.js"></script> <!-- morphing search Js -->
<script src="assets/bundles/vendorscripts.bundle.js"></script> <!-- Lib Scripts Plugin Js -->
<script src="assets/bundles/mainscripts.bundle.js"></script><!-- Custom Js -->
<script src="assets/bundles/morphingscripts.bundle.js"></script><!-- morphing search page js -->

<!-- Internal Prism js-->
<script src="assets/plugins/prism/prism.js"></script>

<!-- Treeview js-->
<script src="assets/plugins/treeview-prism/prism.js"></script>
<script src="assets/plugins/treeview-prism/prism-treeview.js"></script>

<!-- Perfectscroll js-->
<script src="assets/plugins/perfect-scrollbar/perfect-scrollbar.min.js"></script>
<script src="assets/plugins/perfect-scrollbar/p-scroll.js"></script>

<!-- Custom js-->
<script src="assets/js/custom.js"></script>
<script src="assets/js/menuspy.min.js.js"></script>

<script>
    var elm = document.querySelector('#main-menu');
    var ms = new MenuSpy(elm);

	(function () {

	if (typeof self === 'undefined' || !self.Prism || !self.document) {
		return;
	}

	/**
	 * Class name for <pre> which is activating the plugin
	 * @type {String}
	 */
	var PLUGIN_CLASS = 'line-numbers';

	/**
	 * Resizes line numbers spans according to height of line of code
	 * @param  {Element} element <pre> element
	 */
	var _resizeElement = function (element) {
		var codeStyles = getStyles(element);
		var whiteSpace = codeStyles['white-space'];

		if (whiteSpace === 'pre-wrap' || whiteSpace === 'pre-line') {
			var codeElement = element.querySelector('code');
			var lineNumbersWrapper = element.querySelector('.line-numbers-rows');
			var lineNumberSizer = element.querySelector('.line-numbers-sizer');
			var codeLines = element.textContent.split('\n');

			if (!lineNumberSizer) {
				lineNumberSizer = document.createElement('span');
				lineNumberSizer.className = 'line-numbers-sizer';

				codeElement.appendChild(lineNumberSizer);
			}

			lineNumberSizer.style.display = 'block';

			codeLines.forEach(function (line, lineNumber) {
				lineNumberSizer.textContent = line || '\n';
				var lineSize = lineNumberSizer.getBoundingClientRect().height;
				lineNumbersWrapper.children[lineNumber].style.height = lineSize + 'px';
			});

			lineNumberSizer.textContent = '';
			lineNumberSizer.style.display = 'none';
		}
	};

	/**
	 * Returns style declarations for the element
	 * @param {Element} element
	 */
	var getStyles = function (element) {
		if (!element) {
			return null;
		}

		return window.getComputedStyle ? getComputedStyle(element) : (element.currentStyle || null);
	};

	window.addEventListener('resize', function () {
		Array.prototype.forEach.call(document.querySelectorAll('pre.' + PLUGIN_CLASS), _resizeElement);
	});

	Prism.hooks.add('complete', function (env) {
		if (!env.code) {
			return;
		}

		// works only for <code> wrapped inside <pre> (not inline)
		var pre = env.element.parentNode;
		// Original regex check for class, leaving it here
		// for its redundancy check
		var clsReg = /\s*\bline-numbers\b\s*/;
		// New regex check for opt-out class
		var clsRegB = /\s*\bno-line-numbers\b\s*/;

		if (env.element.querySelector(".line-numbers-rows")) {
			// Abort if line numbers already exists
			return;
		}

		// Added to facilitate opting out
		if (clsRegB.test(pre.className)) {
			// Respect the opt-out
			return;
		}

		if (clsReg.test(env.element.className)) {
			// Remove the class "line-numbers" from the <code>
			env.element.className = env.element.className.replace(clsReg, ' ');
		}
		if (!clsReg.test(pre.className)) {
			// Add the class "line-numbers" to the <pre>
			pre.className += ' line-numbers';
		}

		var match = env.code.match(/\n(?!$)/g);
		var linesNum = match ? match.length + 1 : 1;
		var lineNumbersWrapper;

		var lines = new Array(linesNum + 1);
		lines = lines.join('<span></span>');

		lineNumbersWrapper = document.createElement('span');
		lineNumbersWrapper.setAttribute('aria-hidden', 'true');
		lineNumbersWrapper.className = 'line-numbers-rows';
		lineNumbersWrapper.innerHTML = lines;

		if (pre.hasAttribute('data-start')) {
			pre.style.counterReset = 'linenumber ' + (parseInt(pre.getAttribute('data-start'), 10) - 1);
		}

		env.element.appendChild(lineNumbersWrapper);

		_resizeElement(pre);
	});

}());
</script>

</body>
</html>

?>