diff --git a/app/js/app.js b/app/js/app.js deleted file mode 100644 index bbc6b66..0000000 --- a/app/js/app.js +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by CoffeeScript 1.4.0 -(function() { - - angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives']).config([ - '$routeProvider', function($routeProvider) { - $routeProvider.when('/', { - templateUrl: 'partials/home.html', - controller: MyCtrl1 - }); - $routeProvider.when('/freelance', { - templateUrl: 'partials/freelance.html', - controller: MyCtrl1 - }); - $routeProvider.when('/projects', { - templateUrl: 'partials/projects.html', - controller: MyCtrl2 - }); - $routeProvider.when('/blog', { - templateUrl: 'partials/blog.html', - controller: MyCtrl2 - }); - $routeProvider.when('/contact', { - templateUrl: 'partials/contact.html', - controller: MyCtrl2 - }); - return $routeProvider.otherwise({ - redirectTo: '/' - }); - } - ]); - -}).call(this); diff --git a/app/js/controllers.js b/app/js/controllers.js deleted file mode 100644 index 58ad306..0000000 --- a/app/js/controllers.js +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by CoffeeScript 1.4.0 -(function() { - - this.dockCtrl = function($scope, $location) { - var defaultSelected; - $scope.icons = [ - { - "class": 'profil', - icon: 'icon-user', - link: '/freelance', - text: 'What I Do' - }, { - "class": 'projects', - icon: 'icon-laptop', - link: '/projects', - text: 'My work' - }, { - "class": 'blog', - icon: 'icon-book', - link: '/blog', - text: 'Ideas' - }, { - "class": 'contact', - icon: 'icon-envelope-alt', - link: '/contact', - text: 'Get in touch' - } - ]; - $scope.selected = null; - defaultSelected = function() { - var icon, _i, _len, _ref, _results; - _ref = $scope.icons; - _results = []; - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - icon = _ref[_i]; - if ($location.path() === icon.link) { - _results.push($scope.selected = $scope.icons.indexOf(icon)); - } else { - _results.push(void 0); - } - } - return _results; - }; - defaultSelected(); - return $scope["switch"] = function($index) { - if ($scope.selected === $index) { - $location.path('/'); - return $scope.selected = null; - } else { - $scope.selected = $index; - return $location.path($scope.icons[$index].link); - } - }; - }; - - dockCtrl.$inject = ['$scope', '$location']; - - window.MyCtrl1 = function() {}; - - MyCtrl1.$inject = []; - - window.MyCtrl2 = function() {}; - - MyCtrl2.$inject = []; - -}).call(this); diff --git a/app/js/directives.js b/app/js/directives.js deleted file mode 100644 index 1d48847..0000000 --- a/app/js/directives.js +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by CoffeeScript 1.4.0 -(function() { - - angular.module('myApp.directives', []).directive('appVersion', [ - 'version', function(version) { - return function(scope, elm, attrs) { - return elm.text(version); - }; - } - ]); - -}).call(this); diff --git a/app/js/filters.js b/app/js/filters.js deleted file mode 100644 index 1c6f7c9..0000000 --- a/app/js/filters.js +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by CoffeeScript 1.4.0 -(function() { - - angular.module('myApp.filters', []).filter('interpolate', [ - 'version', function(version) { - return function(text) { - return String(text).replace(/\%VERSION\%/mg, version); - }; - } - ]); - -}).call(this); diff --git a/app/js/services.js b/app/js/services.js deleted file mode 100644 index c4bd4b2..0000000 --- a/app/js/services.js +++ /dev/null @@ -1,6 +0,0 @@ -// Generated by CoffeeScript 1.4.0 -(function() { - - angular.module('myApp.services', []).value('version', '0.1'); - -}).call(this);