1'use strict'; 2 3angular.module('repertorioApp').controller('HeaderController', function ($routeParams, $rootScope, $scope, $location, $localStorage, PageLoader, $window) { 4 $scope.isActive = function (viewLocation) { 5 6 var path = $location.path(); 7 var res = path.split('/'); 8 var purchasePath = res[1]; 9 if (purchasePath==='purchase' || purchasePath==='signup'){ 10 $('.header-nav').css('background-color','rgba(0, 0, 0, 1)'); 11 }else{ 12 $('.header-nav').css('background-color','rgba(0, 0, 0, 0.5)'); 13 } 14 15 if(path==='/'){ 16 $('html, body').css('overflow','hidden'); 17 }else{ 18 $('html, body').css('overflow','visible'); 19 $('.header-nav').animate({top:0}, 800, function() {}); 20 } 21 return viewLocation === path; 22 23 }; 24 25 26 27 $('#'+$rootScope.lang).addClass('lactive'); 28 $scope.changeLang = function(lang){ 29 $('.lang').removeClass('lactive'); 30 $('#'+lang).addClass('lactive'); 31 $rootScope.lang = lang; 32 $localStorage.lang = lang; 33 console.log(lang); 34 //$rootScope.loadJSON(); 35 36 PageLoader.getPage($rootScope.page_id, function(data) { 37 $rootScope.pageData = data; 38 $window.location.reload(); 39 }); 40 //$window.location.reload(); 41 if($routeParams.id){ 42 PageLoader.getPosts(function(data) { 43 data = JSON.stringify(data); 44 data = JSON.parse(data); 45 for (var i = data.length - 1; i >= 0; i--) { 46 if(data[i].custom_fields.event_id[0].toString()==$routeParams.id.toString()){ 47 $rootScope.postData = data[i]; 48 } 49 }; 50 }); 51 } 52 } 53 54 55 56 57}); 58 59
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.