forked from javiertoledo/bootstrap-rating-input
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
33 lines (30 loc) · 1.43 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<html>
<head>
<title>Bootstrap Rating Input Demo</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<!--script src="src/bootstrap-rating-input.js"></script-->
<script src="build/bootstrap-rating-input.min.js"></script>
<style>
body {
font-size: 20px;
padding: 50px;
}
</style>
<script>
$(function(){
$('input').on('change', function(){
alert("Changed: " + $(this).val())
});
});
</script>
</head>
<body>
<h1>The Original Bootstrap Rating Input <small>in action...</small></h1>
<p>My rating: <input type="number" name="your_awesome_parameter" id="some_id" class="rating" data-clearable="remove"/></p>
<h1>The Bootstrap Rating input with custom icon classes <small>by <a href="https://github.com/johncadigan">johncadigan</a></small></h1>
<p>My rating: <input type="number" name="your_awesome_parameter" id="some_id" class="rating" data-clearable="remove" data-icon-lib="fa" data-active-icon="fa-heart" data-inactive-icon="fa-heart-o" data-clearable-icon="fa-trash-o"/></p>
</body>
</html>