2014-06-08 04:11:44 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2014-11-05 01:18:11 +01:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2014-06-08 04:11:44 +02:00
|
|
|
<title>Button</title>
|
2014-11-05 01:18:11 +01:00
|
|
|
<link rel="stylesheet" href="../../../dist/css/bootstrap.min.css">
|
2015-05-06 22:34:14 +02:00
|
|
|
|
|
|
|
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
|
|
|
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
|
|
|
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
|
|
<![endif]-->
|
2014-06-08 04:11:44 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
<div class="page-header">
|
|
|
|
<h1>Button <small>Bootstrap Visual Test</small></h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-primary" data-toggle="button">Single toggle</button>
|
|
|
|
|
|
|
|
<div class="btn-group" data-toggle="buttons">
|
|
|
|
<label class="btn btn-primary">
|
|
|
|
<input type="checkbox"> checkbox 1
|
|
|
|
</label>
|
|
|
|
<label class="btn btn-primary">
|
|
|
|
<input type="checkbox"> checkbox 2
|
|
|
|
</label>
|
|
|
|
<label class="btn btn-primary">
|
|
|
|
<input type="checkbox"> checkbox 3
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="btn-group" data-toggle="buttons">
|
|
|
|
<label class="btn btn-primary">
|
|
|
|
<input type="radio" name="options" id="option1"> Radio 1
|
|
|
|
</label>
|
|
|
|
<label class="btn btn-primary">
|
|
|
|
<input type="radio" name="options" id="option2"> Radio 2
|
|
|
|
</label>
|
|
|
|
<label class="btn btn-primary">
|
|
|
|
<input type="radio" name="options" id="option3"> Radio 3
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- JavaScript Includes -->
|
|
|
|
<script src="../vendor/jquery.min.js"></script>
|
2015-05-08 02:07:38 +02:00
|
|
|
<script src="../../dist/util.js"></script>
|
|
|
|
<script src="../../dist/button.js"></script>
|
2014-06-08 04:11:44 +02:00
|
|
|
|
|
|
|
<!-- JavaScript Test -->
|
|
|
|
<script>
|
|
|
|
$(function () {
|
|
|
|
$('.js-loading-button').on('click', function () {
|
|
|
|
var btn = $(this).button('loading')
|
|
|
|
setTimeout(function (){
|
|
|
|
btn.button('reset')
|
|
|
|
}, 3000)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|