Service portal: change to hover over icon using CSS / redirect to home page

in this particular case, an a href was causing problems / blowing up the image (it is embedded in a custom side menu)

 HTML


<img class="homeicon" ng-click="goToHome()" ng-src="{{::portal.logo}}" title="<a title>" role="presentation" alt="${Portal Logo}" />


client controller

function($scope, $location) { $scope.goToHome = function(){ $location.search("id", "home"); } }




CSS

img.homeicon:hover { cursor: pointer; }

Comments

Popular posts from this blog

GlideRecord setValue

variable advanced reference qualifier example

Running transform maps asynchronously