angular.module('hannahArtSite', ['ui.bootstrap']); var TabsDemoCtrl = function ($scope) { $scope.tabs = [ { title:'Dynamic Title 1', content:'Dynamic content 1' }, { title:'Dynamic Title 2', content:'Dynamic content 2', disabled: true } ]; $scope.alertMe = function() { setTimeout(function() { alert('You\'ve selected the alert tab!'); }); }; }; function CarouselDemoCtrl($scope) { $scope.myInterval = -10; var slides = $scope.slides = []; $scope.addSlide = function() { var newWidth = 600 + slides.length; slides.push({ image: 'img/' + newWidth + '/pix.jpg', text: ['0) Sinister Rabbit', '1) Frankinbunny', '2) coffee ', '3) Gertrude Howell', '4) ', '5) ', '6) ', '7) ', '8) ', '9) ', '10) ', '11) Louis', '12) BxW Fish', '13) Hook', '14) Kissing Fish', '15) Professor Toad', '16) Positive Fish', '17) Negative Fish', '18) Lady Kittington', '19) ', '20)', '21) Hat Fish', '22) ', '23) Lemur', '24) Penny Mallenoy', '25) Marie-Cristi dreamed of becoming an Icon', '26) ', '27) Lawrence Quale', '28) ', '29) ', '30) Baby Mermaid', '31) Yellow', '32) Tristins Baby', '33) Earth Worm', '34) Rat Race', '35) ', '36) The Bird', '37) ', '38) Oh Piggie!', '39) ', '40) ', '41) ', '42) ', '43) ', '44) ', '45) ', '46) ', '47) ', '48) ', '49) ', '50) ', '51) ', '52) Mr. Fox', '53) ', '54) ', '55) Dads Dog', '56) ', '57) ', '58) ', '59) '][slides.length % 40] }); }; for (var i=0; i<40; i++) { $scope.addSlide(); } } function CarouselShowCtrl($scope) { $scope.myInterval = -10; var slides = $scope.slides = []; $scope.addSlide = function() { var newWidth = 700 + slides.length; slides.push({ image: 'img/' + newWidth + '/pix.jpg', text: ['Hannah', 'Hannah', 'Hannah', 'Hannah'][slides.length % 40] }); }; for (var i=0; i<4; i++) { $scope.addSlide(); } } angular.module('hannahArtSite').directive('youtube', function($sce) { return { restrict: 'EA', scope: { code:'@code' }, replace: true, template: '
', link: function (scope) { console.log('here'); scope.$watch('code', function (newVal) { if (newVal) { scope.url = $sce.trustAsResourceUrl("http://www.youtube.com/embed/" + newVal); } }); } }; }); function footer($scope) { return {restrict: 'A', replace: true, templateUrl: "js/directives/footer.html" } }