Файл: documentation/index.html
Строк: 438
<?php
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Documentation for Sky Forms Pro</title>
<meta name="viewport" content="width=1024">
<link rel="stylesheet" href="css/main.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="js/main.js"></script>
</head>
<body id="overview">
<article>
<!-- overview -->
<section>
<h1>Sky Forms Pro Documentation</h1>
<p>Sky Forms Pro is a set of beautiful form elements with large amount of javascript features: validation, masking, modals, ajax submit, datepickers. It allows you to create forms of any complexity and for any needs: login, registration, contacts, review, order, comment, checkout, etc.</p>
<p>If you have any questions that are beyond the scope of this documentation, please feel free to email via my user page contact form <a href="http://codecanyon.net/user/voky?ref=voky">here</a>.</p>
</section>
<!--/ overview -->
<!-- integration -->
<section id="integration">
<h2>Integration</h2>
<ol>
<li>Download the zipped pack from codecanyon and extract to a folder on your computer.</li>
<li>Include css and js files to your project.
<pre><link rel="stylesheet" href="css/font-awesome.css">
<link rel="stylesheet" href="css/sky-forms.css">
<!--[if lt IE 9]>
<link rel="stylesheet" href="css/sky-forms-ie8.css">
<![endif]-->
<script src="js/jquery.min.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script src="js/jquery.form.min.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/jquery.maskedinput.min.js"></script>
<script src="js/jquery.modal.js"></script>
<!--[if lt IE 10]>
<script src="js/jquery.placeholder.min.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<script src="js/sky-forms-ie8.js"></script>
<![endif]--></pre>
</li>
<li>Copy HTML and JS code from one of demo files.</li>
<li>Replace demo content with yours.</li>
</ol>
</section>
<!--/ integration -->
<!-- html structure -->
<section id="html">
<h2>HTML structure</h2>
<p>The main HTML structure of the form consists of fieldset, legend, footer and sections. Each section contains label, form element and optional note. Here is the basic structure of registration form.</p>
<pre><form action="" class="sky-form">
<header>Registration form</header>
<fieldset>
<section>
<label class="input">
<i class="icon-append fa fa-user"></i>
<input type="text" name="username" placeholder="Username">
</label>
</section>
<section>
<label class="input">
<i class="icon-append fa fa-envelope-o"></i>
<input type="text" name="email" placeholder="Email address">
</label>
</section>
<section>
<label class="input">
<i class="icon-append fa fa-lock"></i>
<input type="password" name="password" placeholder="Password">
</label>
</section>
<section>
<label class="input">
<i class="icon-append fa fa-lock"></i>
<input type="password" name="passwordConfirm" placeholder="Confirm password">
</label>
</section>
<fieldset>
</fieldset>
<div class="row">
<section class="col col-6">
<label class="input">
<input type="text" name="firstmane" placeholder="First name">
</label>
</section>
<section class="col col-6">
<label class="input">
<input type="text" name="lastname" placeholder="Last name">
</label>
</section>
</div>
<section>
<label class="select">
<select name="gender">
<option value="0" selected disabled>Gender</option>
<option value="1">Male</option>
<option value="2">Female</option>
<option value="3">Other</option>
</select>
<i></i>
</label>
</section>
<section>
<label class="checkbox"><input type="checkbox" name="subscription" id="subscription"><i></i>I want to receive news and special offers</label>
<label class="checkbox"><input type="checkbox" name="terms" id="terms"><i></i>I agree with the Terms and Conditions</label>
</section>
</fieldset>
<footer>
<button type="submit" class="button">Submit</button>
</footer>
</form></pre>
</section>
<!--/ html structure -->
<!-- css structure -->
<section id="css">
<h2>CSS structure</h2>
<p>Sky Forms Pro includes 8 css files.</p>
<ul>
<li><strong>demo.css</strong> - demo page styles</li>
<li><strong>sky-forms.css</strong> - required main styles</li>
<li><strong>sky-forms-ie8.css</strong> - styles for IE8</li>
<li><strong>sky-forms-red.css</strong> - red color scheme</li>
<li><strong>sky-forms-orange.css</strong> - orange color scheme</li>
<li><strong>sky-forms-green.css</strong> - green color scheme</li>
<li><strong>sky-forms-purple.css</strong> - purple color scheme</li>
<li><strong>sky-forms-pink.css</strong> - pink color scheme</li>
</ul>
<p>The file "sky-forms.css" contains all of the specific styling and separated into sections:</p>
<ul>
<li>font</li>
<li>defaults</li>
<li>file inputs</li>
<li>selects</li>
<li>textareas</li>
<li>radios and checkboxes</li>
<li>toggles</li>
<li>ratings</li>
<li>buttons</li>
<li>icons</li>
<li>grid</li>
<li>tooltips</li>
<li>normal state</li>
<li>hover state</li>
<li>focus state</li>
<li>checked state</li>
<li>error state</li>
<li>success state</li>
<li>disabled state</li>
<li>submited state</li>
<li>datepicker</li>
<li>modal</li>
</ul>
<p>If you would like to edit a specific section, simply find the appropriate label in the CSS file.</p>
</section>
<!--/ css structure -->
<!-- schemes -->
<section id="schemes">
<h2>Color schemes</h2>
<p>There are 6 color schemes at your disposal. Cyan is the default scheme and to choose other you need to include appropriate css file. For example, if you want to use orange scheme include <strong>sky-forms-orange.css</strong> file:</p>
<pre><link rel="stylesheet" href="css/sky-forms.css">
<link rel="stylesheet" href="css/sky-forms-orange.css"></pre>
</section>
<!--/ schemes -->
<!-- icons -->
<section id="icons">
<h2>Icons</h2>
<p>There are 369 font icons included. To use one of them you need to add <i> tag with 3 classes. First class defines icon position: <strong>icon-append</strong> or <strong>icon-prepend</strong>. Other classes define appearance of the icon. For example, if we need appended user icon:</p>
<pre><section>
<label class="input">
<i class="icon-append fa fa-user"></i>
<input type="text">
</label>
</section></pre>
<p>All available classes for icons you can find <a href="http://fontawesome.io/icons/" target="_blank">here</a>.</p>
</section>
<!--/ icons -->
<!-- placeholders -->
<section id="placeholders">
<h2>Placeholders</h2>
<p>You can use placeholders for inputs and textareas. Just specify placeholder attribute like in demo below.</p>
<pre><section>
<label class="input">
<input type="text" placeholder="Placeholder text">
</label>
</section>
<section>
<label class="textarea">
<textarea rows="3" placeholder="Placeholder text"></textarea>
</label>
</section></pre>
<p>Also there is a possibility to add placeholder for select element. To do that we need to disable first element.</p>
<pre><section>
<label class="select">
<select>
<option value="0" selected disabled>Gender</option>
<option value="1">Male</option>
<option value="2">Female</option>
<option value="3">Other</option>
</select>
<i></i>
</label>
</section></pre>
</section>
<!--/ placeholders -->
<!-- states -->
<section id="states">
<h2>Elements states</h2>
<p>Each element of Sky Forms Pro has 3 additional states: error, success and disabled. To use one of them just add state-error, state-success or state-disabled class to element container.</p>
<pre><section>
<label class="input state-error">
<input type="text">
</label>
</section>
<section>
<label class="textarea state-success">
<textarea rows="3" placeholder="Placeholder text"></textarea>
</label>
</section></pre>
<p>When using disabled state don't forget to add <strong>disabled</strong> attribute to form element.</p>
<pre><section>
<label class="input state-error">
<input type="text" disabled>
</label>
</section></pre>
</section>
<!--/ states -->
<!-- validation -->
<section id="validation">
<h2>Client-side Validation</h2>
<p>There are lots of validation options and customizations. You can find all of them in special demo file <strong>ext-validation.html</strong>. Also I provided several practical examples of validation usage, so I recommend to use one of that files as a base for your custom form and simply add/remove form fields and validation rules. For more help read the <a href="http://jqueryvalidation.org/documentation">official plugin documentation</a>.</p>
</section>
<!--/ validation -->
<!-- masking -->
<section id="masking">
<h2>Fields Masking</h2>
<p>Masking makes forms more user friendly and easy to fill. In this project I used jQuery Masked Input Plugin and it is very simple to use. You can find several practical examples in special demo file <strong>ext-masking.html</strong>. Use this file as a base for your custom form and simply add/remove masking rules. For more help read the <a href="http://digitalbush.com/projects/masked-input-plugin/">official plugin documentation</a>.</p>
</section>
<!--/ masking -->
<!-- modal -->
<section id="modal">
<h2>Modal Forms</h2>
<p>You can easly transform all regular forms to modal forms. Just add <strong>sky-form-modal</strong> class to the form container and use any link with class <strong>modal-opener</strong> to display form. For more details see the <strong>ext-modal.html</strong> demo file.</p>
</section>
<!--/ modal -->
<!-- credits -->
<section id="credits">
<h2>Credits</h2>
<ol>
<li><a href="http://jquery.com" target="_blank">jQuery library</a> by The jQuery Foundation</li>
<li><a href="http://jqueryui.com" target="_blank">jQuery UI library</a> by The jQuery Foundation</li>
<li><a href="https://github.com/malsup/form" target="_blank">jQuery Form Plugin</a> by The jQuery Foundation</li>
<li><a href="http://matoilic.github.com/jquery.placeholder" target="_blank">jQuery Placeholder Plugin</a> by Mato Ilic</li>
<li><a href="https://github.com/jzaefferer/jquery-validation/" target="_blank">jQuery Validation Plugin</a> by Jörn Zaefferer</li>
<li><a href="http://digitalbush.com/projects/masked-input-plugin/" target="_blank">jQuery Masked Input Plugin</a> by Josh Bush</li>
<li><a href="http://fortawesome.github.com/Font-Awesome/" target="_blank">Font Awesome</a> by Dave Gandy</li>
</ol>
</section>
<!--/ credits -->
</article>
<aside>
<!-- logo -->
<img src="img/thumbnail.png" alt="" />
<!--/ logo -->
<!-- main nav -->
<nav id="main-nav">
<ul>
<li><a href="#overview">Overview</a></li>
<li><a href="#integration">Integration</a></li>
<li><a href="#html">HTML structure</a></li>
<li><a href="#css">CSS structure</a></li>
<li><a href="#schemes">Color schemes</a></li>
<li><a href="#icons">Icons</a></li>
<li><a href="#placeholders">Placeholders</a></li>
<li><a href="#states">Elements states</a></li>
<li><a href="#validation">Validation</a></li>
<li><a href="#masking">Masking</a></li>
<li><a href="#modal">Modal</a></li>
<li><a href="#credits">Credits</a></li>
</ul>
</nav>
<!--/ main nav -->
<!-- copyrights -->
<p>Created by <a href="http://codecanyon.net/user/voky?ref=voky">Voky</a></p>
<!--/ copyrights -->
</aside>
</body>
</html>
?>