PageSourceSearch

https://www.kla.tv/js/app/directive/tooltipster.directive.js?v=2026092401

js kla.tv collected 2026-09-24 08:59:48 UTC 1,559 bytes, 50 lines download raw bytes

1(function(){
2
3    'use strict';
4
5    angular
6        .module('ktvApp')
7        .directive('ktvTooltipster', ktvTooltipster);
8
9    function ktvTooltipster() {
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            var position = attrs.tooltipPosition ? attrs.tooltipPosition : 'top';
25            var maxWidth = attrs.tooltipMaxWidth ? attrs.tooltipMaxWidth : null;
26
27            $(element).tooltipster({
28                position: position,
29                content: angular.element('<div>' + attrs.tooltipContent + '</div>'),
30                maxWidth: maxWidth,
31                contentAsHTML: true
32            });
33        }
34    }
35
36    //ExampleController.$inject = ['$scope'];
37    //
38    //function ExampleController($scope) {
39    //    // Injecting $scope just for comparison
40    //    var vm = this;
41    //
42    //    vm.min = 3;
43    //
44    //    console.log('CTRL: $scope.vm.min = %s', $scope.vm.min);
45    //    console.log('CTRL: $scope.vm.max = %s', $scope.vm.max);
46    //    console.log('CTRL: vm.min = %s', vm.min);
47    //    console.log('CTRL: vm.max = %s', vm.max);
48    //}
49
50})()

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.