1var myAppModule = angular.module('TerminalAapp', ['ngIdle', 'ngStorage', 'ngCookies', 'ngSanitize']); 2 3myAppModule.config(function ($httpProvider) { 4 $httpProvider.useApplyAsync(true); 5}); 6 7var pathname = window.location.pathname; 8if (pathname.toLowerCase().indexOf("en") >= 0) { 9 10 myAppModule.constant("utility", 11 { 12 rootAddress: "/en", 13 baseAddress: "/api/" 14 //rootAddress: "http://192.168.0.131/TerminalA", 15 //baseAddress: "http://192.168.0.131/TerminalA/api/" 16 }); 17 18} 19else if (pathname.toLowerCase().indexOf("pt") >= 0) { 20 myAppModule.constant("utility", 21 { 22 rootAddress: "/pt", 23 baseAddress: "/api/" 24 //rootAddress: "http://192.168.0.131/TerminalA", 25 //baseAddress: "http://192.168.0.131/TerminalA/api/" 26 }); 27} 28else if (pathname.toLowerCase().indexOf("es") >= 0) { 29 myAppModule.constant("utility", 30 { 31 rootAddress: "/es", 32 baseAddress: "/api/" 33 //rootAddress: "http://192.168.0.131/TerminalA", 34 //baseAddress: "http://192.168.0.131/TerminalA/api/" 35 }); 36} 37else if (pathname.toLowerCase().indexOf("de") >= 0) { 38 myAppModule.constant("utility", 39 { 40 rootAddress: "/de", 41 baseAddress: "/api/" 42 //rootAddress: "http://192.168.0.131/TerminalA", 43 //baseAddress: "http://192.168.0.131/TerminalA/api/" 44 }); 45} 46else { 47 myAppModule.constant("utility", 48 { 49 rootAddress: "/en", 50 baseAddress: "/api/" 51 //rootAddress: "http://192.168.0.131/TerminalA", 52 //baseAddress: "http://192.168.0.131/TerminalA/api/" 53 }); 54} 55 56 57//myAppModule.constant("utility", 58// { 59// rootAddress: "", 60// baseAddress: "/api/" 61// //rootAddress: "http://192.168.0.131/TerminalA", 62// //baseAddress: "http://192.168.0.131/TerminalA/api/" 63// //rootAddress: "http://localhost/TerminalA", 64// //baseAddress: "http://localhost/TerminalA/api/" 65// //rootAddress: "http://192.168.0.131/TerminalA", 66// //baseAddress: "http://192.168.0.131/TerminalA/api/" 67// }); 68 69myAppModule.constant('_', 70 window._ 71); 72 73//myAppModule.config(function ($stateProvider, $urlRouterProvider) { 74// $urlRouterProvider.otherwise("/"); 75 76// $stateProvider 77// .state("home", { 78// url: "/", 79// templateUrl: 'scripts/app/views/Flight/index.html',
80// controller: 'MainFlightController' 81// }) 82// .state("hotelhome", { 83// url: "/hotelhome", 84// templateUrl: 'scripts/app/views/Hotel/index.html', 85// controller: 'HotelController' 86// }) 87// .state("multiCityResult", { 88// url: "/view/multicityresult", 89// templateUrl: 'scripts/app/views/MultiCity/index.html', 90// controller: 'MultiCityController' 91// }); 92 93//}); 94 95 96 97 98 99
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.