1var app = angular.module('app.banner', []); 2 3app.directive('bannerPage', function () { 4 return { 5 restrict: "EA", 6 templateUrl: "/directives/page/banner/banners.php", 7 // controller: BannerController 8 }; 9}); 10function BannerController($scope,$http,$rootScope) { 11 $rootScope.isVip = false; 12 $http.get("/api/player/GetNewMemberInfo") 13 .success(function (data) { 14 $scope.SpecialPromo(data.bonus.MemberLevel); 15 }).error(function (data, result) { 16 console.error('Repos error', result, data); 17 })["finally"](function () { 18 }); 19 $scope.SpecialPromo = function (rank) { 20 $rootScope.isVip = false; 21 22 if($rootScope.loggedIn){ 23 if(rank == 5 || rank == 6 || rank == 7 || rank == 8){ 24 $rootScope.isVip = true; 25 } 26 } 27 28 $('#layerslider').layerSlider({ 29 autoStart: false, 30 type: 'responsive', 31 controls: true, 32 showBarTimer: true, 33 navStartStop: false, 34 showCircleTimer: false, 35 skin: 'outline', 36 thumbnailNavigation: 'disabled', 37 skinsPath: '/common/plugins/layerslider/skins/', 38 firstSlide: 1, 39 allowFullscreen: false 40 // Slider options will be added here 41 // later in this guide. 42 }); 43 } 44}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.