-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
36 lines (34 loc) · 1.92 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
34
35
36
<!doctype html >
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hello, this is reevioRating's demo</title>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="src/reevioRating.css" type="text/css">
</head>
<body style="padding:0 2em" ng-app="reevioDemoApp" ng-init="myAngularVariable=3">
<h1>Hello, this is reevioRating's demo <i class="glyphicon glyphicon-heart text-danger"></i></h1>
<h1><span reevio-rating="myAngularVariable" reevio-rating-length="5"></span></h1>
<h2><span reevio-rating="myAngularVariable" reevio-rating-length="5"></span></h2>
<h3><span reevio-rating="myAngularVariable" reevio-rating-length="5"></span></h3>
<h4><span reevio-rating="myAngularVariable" reevio-rating-length="5"></span></h4>
<p><span reevio-rating="myAngularVariable" reevio-rating-length="5"></span></p>
<p class="lead">Rating value: {{myAngularVariable}}</p>
<p>Edit color, etc in the css class</p>
<div class="alert alert-{{(myAngularVariable<3)?'danger':'success'}}">
<b>You can attach various behaviour like:</b><br>
<span ng-if="myAngularVariable==1">Too low!</span>
<span ng-if="myAngularVariable==2">A bit low</span>
<span ng-if="myAngularVariable==3">Medium</span>
<span ng-if="myAngularVariable==4">Nice</span>
<span ng-if="myAngularVariable==5">Attaboy!</span>
</div>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular.min.js"></script>
<script src="src/reevioRating.js"></script>
</html>