1angular.module('acadApp', ['ngRoute', 'ui.bootstrap', 'ngResource']) 2 3.config(function($routeProvider, $locationProvider) { 4 $routeProvider 5 .when('/', { 6 templateUrl:'html/main.html' 7 }) 8 .when('/pubs', { 9 controller:'PubsCtrl', 10 templateUrl:'html/pubs.html' 11 }) 12 .when('/bio', { 13 templateUrl:'html/bio.html' 14 }) 15 .when('/more', { 16 templateUrl:'html/more.html' 17 }) 18 .when('/teaching', { 19 controller: 'TeachCtrl', 20 templateUrl:'html/teaching.html' 21 }) 22 .when('/talks', { 23 templateUrl:'html/talks.html' 24 }) 25 .when('/grants', { 26 templateUrl:'html/grants.html' 27 }) 28 .otherwise({ 29 redirectTo:'html/main.html' 30 }) 31 32 $locationProvider.html5Mode(false); 33 $locationProvider.hashPrefix(''); 34 35}) 36.controller('mainCtrl', ['$scope', '$location', '$uibModal', function($scope, $location, $uibModal) { 37 var updateButton = function() { 38 $scope.button = $location.url(); 39 }; 40 41 $scope.navbarCollapsed = true; 42 43 $scope.$on('$routeChangeStart', updateButton); 44 45 $scope.open_pic = function(pic_location) { 46 var modalInstance = $uibModal.open({ 47 animation: false, 48 templateUrl: 'html/picmodal.html', 49 controller: 'PicModalCtrl', 50 size: 'lg', 51 resolve: { 52 pic_location: function () { 53 return pic_location 54 } 55 }, 56 windowClass: 'pic-modal', 57 backdropClass: 'pic-modal-back' 58 }).result.then(function(){}, function(res){}); 59 } 60}]) 61.filter('floor', function() { 62 return function(input) { 63 return Math.floor(input); 64 }; 65});
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.