PageSourceSearch

https://www.ciht.org.uk/assets/scripts/angular/directives/cdFocus.js

js ciht.org.uk collected 2026-09-24 09:24:45 UTC 632 bytes, 22 lines download raw bytes

1(function (a) {
2    'use strict';
3
4    var cdName = 'cdFocus';
5
6    a.directive(cdName, ['$timeout', function (timeout) {
7        return {
8            restrict: 'A',
9            link: function (scope, element, attr) {
10                var focusElement = $('#' + attr[cdName]);
11                element.on('click', function () {
12                    timeout(function () {
13                        focusElement.val('');
14                        focusElement.get(0).select();
15                        focusElement.focus();
16                    }, 500);
17                });
18            }
19        };
20    }]);
21})(app);
22

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.