-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
57 lines (56 loc) · 1.67 KB
/
index.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html>
<head>
<title>Higgidy Carousel Demo</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.4/angular.min.js"></script>
<script src="./dist/higgidy_carousel.js"></script>
<link rel="stylesheet" type="text/css" href="./dist/higgidy_carousel.css">
<script>
angular.module("app", ['HiggidyCarousel'])
.controller('appController', function($scope) {
$scope.images = [
{
src: "./images/higgidy_1.jpg",
alt: "image 1",
link: "http://www.higgidy.co.uk"
},
{
src: "./images/higgidy_2.jpg",
alt: "image 2",
link: "http://www.higgidy.co.uk"
},
{
src: "./images/higgidy_3.jpg",
alt: "image 3",
link: "http://www.higgidy.co.uk"
},
{
src: "./images/higgidy_3.jpg",
alt: "image 3",
link: "http://www.higgidy.co.uk"
}
]
});
</script>
</head>
<body ng-app="app" ng-controller="appController">
<div higgidy-carousel='images' timeout="10000">
<ul higgidy-carousel-images>
<li ng-repeat="image in images">
<a href="{{image.link}}">
<img ng-src="{{image.src}}" alt="{{img.alt}}" />
</a>
</li>
</ul>
<nav class="links">
<ul>
<li ng-repeat="image in images">
<a href="" ng-click="show($index)" ng-class="{selected: carousel.current == $index}">
{{$index}}
</a>
</li>
</ul>
</nav>
</div>
</body>
</html>