"use strict"; angular.module("dialHorseshoeAppHistoric", ["ngAnimate", "ngAria", "ngCookies", "ngResource", "ngRoute", "ngSanitize", "ngTouch"]).config(["$routeProvider", function(a) { a.when("/", { templateUrl: "views/main.html", controller: "MainCtrlAppHist", controllerAs: "main" }).otherwise({ redirectTo: "/" }) }]), angular.module("dialHorseshoeAppHistoric").controller("MainCtrlAppHist", ["$scope", "$timeout", "$http", function(a, b, c) { a.dails = null, c.get("/cstatic/static/general-election/dail-historic/dail_members_historic.json").success(function(b) { a.dails = b }), a.currentImage = 0, a.sliderValue = a.currentImage, a.fadeTimeout = 500, a.getMainCtrlScope = function() { return a }, a.updateSlider = function(b) { b = parseInt(b), b !== a.currentImage && a.updateImage(b) }, a.updateImage = function(b) { parseInt(b) < 0 || parseInt(b) >= a.dails.length || parseInt(b) !== a.currentImage && a.fadeOutImage(b) }, a.fadeOutImage = function(c) { a.startFadeIn = !1, a.startFadeOut = !0, b(function() { a.currentImage = parseInt(c) }, a.fadeTimeout) }, a.fadeInImage = function() { a.startFadeOut = !1, a.startFadeIn = !0 } }]).directive("resize", ["$window", function(a) { return function(b) { var c = angular.element(a); b.$watch(function() { b.windowWidth = c.width(), b.windowWidth < 767 ? (b.showMobile || (b.sliderValue = b.currentImage - 22), b.showMobile = !0) : b.showMobile = !1 }, !0), c.bind("resize", function() { b.$apply() }) } }]), angular.module("dialHorseshoeAppHistoric").run(["$templateCache", function(a) { a.put("views/main.html", '
{{dails[currentImage].startDate}} - {{dails[currentImage].endDate}}
![]() | ![]() |