diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-21 12:49:18 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-21 12:49:18 -0400 |
| commit | b28028ac4082842143b0f528d6bc539da6ccb419 (patch) | |
| tree | 1e26ea969a781ed8e323fca4e3c76345113fc694 /www/lib/angular-carousel/fullscreen.html | |
| parent | 676270d21beed31d767a06c89522198c77d5d865 (diff) | |
mega changes, including updates and X
Diffstat (limited to 'www/lib/angular-carousel/fullscreen.html')
| -rw-r--r-- | www/lib/angular-carousel/fullscreen.html | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/www/lib/angular-carousel/fullscreen.html b/www/lib/angular-carousel/fullscreen.html new file mode 100644 index 00000000..234e6283 --- /dev/null +++ b/www/lib/angular-carousel/fullscreen.html @@ -0,0 +1,74 @@ +<!DOCTYPE html> +<html ng-app="DemoApp"> + <head> + <meta charset="UTF-8"> + <title>angular-carousel demo</title> + <meta name="viewport" content="width=620, user-scalable=no"> + <link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'> + <link href='./dist/angular-carousel.css' rel='stylesheet' type='text/css'> + <link href='./demo/demo.css' rel='stylesheet' type='text/css'> + <style> + html, body{ + margin:0; + padding:0; + } + </style> + </head> + <body ng-controller="DemoCtrl"> + <div class="carousel-demo-fullscreen"> + <ul rn-carousel rn-carousel-controls rn-carousel-transition="hexagon" rn-carousel-index="carouselIndex" rn-carousel-buffered class="carousel1"> + <li ng-repeat="slide in slides track by slide.id" ng-class="'id-' + slide.id"> + <div ng-style="{'background-image': 'url(' + slide.img + ')'}" class="bgimage"> + #{{ slide.id }} + </div> + </li> + </ul> + </div> + + </body> + <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.9/angular.min.js"></script> + <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.9/angular-touch.min.js"></script> + + <script src="./dist/angular-carousel.min.js"></script> + <!--<script src="./src/angular-carousel.js"></script> + <script src="./src/directives/rn-carousel.js"></script> + <script src="./src/directives/rn-carousel-indicators.js"></script> + <script src="./src/directives/sliceFilter.js"></script> + <script src="./src/directives/shifty.js"></script> + --> + <script> + angular.module('DemoApp', [ + 'angular-carousel' + ]) + + .controller('DemoCtrl', function($scope) { + + $scope.colors = ["#fc0003", "#f70008", "#f2000d", "#ed0012", "#e80017", "#e3001c", "#de0021", "#d90026", "#d4002b", "#cf0030", "#c90036", "#c4003b", "#bf0040", "#ba0045", "#b5004a", "#b0004f", "#ab0054", "#a60059", "#a1005e", "#9c0063", "#960069", "#91006e", "#8c0073", "#870078", "#82007d", "#7d0082", "#780087", "#73008c", "#6e0091", "#690096", "#63009c", "#5e00a1", "#5900a6", "#5400ab", "#4f00b0", "#4a00b5", "#4500ba", "#4000bf", "#3b00c4", "#3600c9", "#3000cf", "#2b00d4", "#2600d9", "#2100de", "#1c00e3", "#1700e8", "#1200ed", "#0d00f2", "#0800f7", "#0300fc"]; + + function addSlide(target, style) { + var i = target.length; + target.push({ + id: (i + 1), + label: 'slide #' + (i + 1), + img: 'http://lorempixel.com/450/300/' + style + '/' + ((i + 1) % 10) , + color: $scope.colors[ (i*10) % $scope.colors.length], + odd: (i % 2 === 0) + }); + }; + + $scope.carouselIndex = 3; + + function addSlides(target, style, qty) { + for (var i=0; i < qty; i++) { + addSlide(target, style); + } + } + + // 1st ngRepeat demo + $scope.slides = []; + addSlides($scope.slides, 'sports', 50); + + }); + + </script> +</html> |
