Файл: version 2.0.5/ext-slider.html
Строк: 64
<?php
<!DOCTYPE html>
<html>
<head>
<title>Sky Forms Pro</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="css/demo.css">
<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>
<!--[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]-->
</head>
<body class="bg-cyan">
<div class="body">
<form action="" id="sky-form" class="sky-form">
<header>Sliders</header>
<fieldset>
<section>
<label class="label">Regular slider (<span id="slider1-value">0</span>)</label>
<div id="slider1"></div>
</section>
<section>
<label class="label">Range slider (<span id="slider2-value1">75</span> - <span id="slider2-value2">300</span>)</label>
<div id="slider2"></div>
</section>
<section>
<label class="label">Step slider (<span id="slider3-value">0</span>)</label>
<div id="slider3"></div>
</section>
</fieldset>
<footer>
<button type="submit" class="button">Send</button>
<button type="button" class="button button-secondary" onclick="window.history.back();">Back</button>
</footer>
</form>
</div>
<script type="text/javascript">
$(function()
{
// Regular slider
$('#slider1').slider({
min: 0,
max: 500,
slide: function(event, ui)
{
$('#slider1-value').text(ui.value);
}
});
// Range slider
$('#slider2').slider({
min: 0,
max: 500,
range: true,
values: [75, 300],
slide: function(event, ui)
{
$('#slider2-value1').text(ui.values[0]);
$('#slider2-value2').text(ui.values[1]);
}
});
// Step slider
$('#slider3').slider({
min: 0,
max: 500,
step: 100,
slide: function(event, ui)
{
$('#slider3-value').text(ui.value);
}
});
});
</script>
</body>
</html>
?>