1(function(){ 2 3 'use strict'; 4 5 angular 6 .module('ktvApp') 7 .directive('ktvHoverimages', ktvHoverimages); 8 9 function ktvHoverimages() { 10 var directive = { 11 restrict: 'A', 12 scope: true, 13 link: linkFunc, 14 //controller: ExampleController, 15 // note: This would be 'ExampleController' (the exported controller name, as string) 16 // if referring to a defined controller in its separate file. 17 controllerAs: 'vm', 18 bindToController: true // because the scope is isolated 19 }; 20 21 return directive; 22 23 function linkFunc(scope, element, attrs, ctrl) { 24 25 //console.log($(element)); 26 $(element).mouseover(function(){ 27 $(this).find('.dark-background').css("display","block"); 28 }); 29 $(element).mouseleave (function(){ 30 $(this).find('.dark-background').css("display","none"); 31 }); 32 33 34 } 35 } 36 37 38 39})()
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.