Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions demo/angular.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<ul>
<li><a href="index.html">Vanilla JS</a></li>
<li><a href="jquery.html">jQuery plugin</a></li>
<li><a href="jquery.issue-90.html">jQuery issue #90 plugin</a></li>
<li><a href="angular.html" class="active">Angular module</a></li>
<li><a href="requirejs.html">RequireJS module</a></li>
</ul>
Expand Down
1 change: 1 addition & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<ul>
<li><a href="index.html" class="active">Vanilla JS</a></li>
<li><a href="jquery.html">jQuery plugin</a></li>
<li><a href="jquery.issue-90.html">jQuery issue #90 plugin</a></li>
<li><a href="angular.html">Angular module</a></li>
<li><a href="requirejs.html">RequireJS module</a></li>
</ul>
Expand Down
1 change: 1 addition & 0 deletions demo/jquery.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<ul>
<li><a href="index.html">Vanilla JS</a></li>
<li><a href="jquery.html" class="active">jQuery plugin</a></li>
<li><a href="jquery.issue-90.html">jQuery issue #90 plugin</a></li>
<li><a href="angular.html">Angular module</a></li>
<li><a href="requirejs.html">RequireJS module</a></li>
</ul>
Expand Down
48 changes: 48 additions & 0 deletions demo/jquery.issue-90.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>jQuery</title>
<meta name="viewport" content="width=device-width"/>
<link rel="stylesheet" href="style.css"/>
<style>
body{
background: green;
}
</style>
</head>
<body>

<ul>
<li><a href="index.html">Vanilla JS</a></li>
<li><a href="jquery.html">jQuery plugin</a></li>
<li><a href="jquery.issue-90.html" class="active">jQuery issue #90 plugin</a></li>
<li><a href="angular.html">Angular module</a></li>
<li><a href="requirejs.html">RequireJS module</a></li>
</ul>

<span class="chart" data-percent="86">
<span class="percent"></span>
</span>

<span class="btn js_update">Update chart</span>

<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
<script src="../dist/jquery.easypiechart.issue-90.js"></script>
<script>
$(function() {
$('.chart').easyPieChart({
easing: 'easeOutBounce',
onStep: function(from, to, percent) {
$(this.el).find('.percent').text(Math.round(percent));
}
});
var chart = window.chart = $('.chart').data('easyPieChart');
$('.js_update').on('click', function() {
chart.update(Math.random()*200-100);
});
});
</script>
</body>
</html>
1 change: 1 addition & 0 deletions demo/requirejs.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<ul>
<li><a href="index.html">Vanilla JS</a></li>
<li><a href="jquery.html">jQuery plugin</a></li>
<li><a href="jquery.issue-90.html">jQuery issue #90 plugin</a></li>
<li><a href="angular.html">Angular module</a></li>
<li><a href="requirejs.html" class="active">RequireJS module</a></li>
</ul>
Expand Down
6 changes: 4 additions & 2 deletions demo/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ ul {
font-size: 0;
line-height: 0;
letter-spacing: -0.3em;
width:100%;
display: table;
}
li {
position: relative;
display: inline-block;
display: table-cell;
vertical-align: top;
width: 25%;

text-align: center;
font-size: 18px;
line-height: 60px;
Expand Down
Loading