-
Notifications
You must be signed in to change notification settings - Fork 105
/
thumbnail-controlnav.html
37 lines (34 loc) · 1.24 KB
/
thumbnail-controlnav.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
37
<html ng-app="BasicSlider">
<head>
<title>Angular FlexSlider Example - Thumbnails</title>
<link rel="stylesheet" type="text/css" href="../bower_components/flexslider/flexslider.css">
<style type="text/css">
.flexslider-container {
width: 50%;
margin: 10px auto;
}
</style>
</head>
<body ng-controller="BasicSliderCtrl">
<flex-slider slide="s in slides" animation="slide" control-nav="thumbnails">
<li data-thumb="{{s}}">
<img ng-src="{{s}}">
</li>
</flex-slider>
<script src="../bower_components/jquery/dist/jquery.js"></script>
<script src="../bower_components/flexslider/jquery.flexslider.js"></script>
<script src="../bower_components/angular/angular.js"></script>
<script src="../angular-flexslider.js"></script>
<script type="text/javascript">
angular.module('BasicSlider', ['angular-flexslider'])
.controller('BasicSliderCtrl', function($scope, $timeout) {
$scope.slides = [
'http://flexslider.woothemes.com/images/kitchen_adventurer_cheesecake_brownie.jpg',
'http://flexslider.woothemes.com/images/kitchen_adventurer_lemon.jpg',
'http://flexslider.woothemes.com/images/kitchen_adventurer_donut.jpg',
'http://flexslider.woothemes.com/images/kitchen_adventurer_caramel.jpg'
];
});
</script>
</body>
</html>