(function ($ang, win) { 'use strict'; $ang.module('ylmis').controller("mapCtrl", ['$scope', '$rootScope', '$state', '$http', '$loading', '$alert', '$interval', '$window', '$modal', 'AuthUser', function ($scope, $rootScope, $state, $http, $loading, $alert, $desData, $interval, $window, $modal, AuthUser) { $("#mapimg").css("height", $(window).height()); var minX = 0.757002; var maxX = 0.891748; var minY = 0.422746; var maxY = 0.536480; $("#mapimg").click(function (e) { var img = $("#mapimg")[0]; if (e.offsetX >= minX * img.width && e.offsetX <= maxX * img.width && e.offsetY >= minY * img.height && e.offsetY <= maxY * img.height) { $state.go("map-index"); } else { } }); }]); })(angular, this);