PageSourceSearch

http://wikigenomes.org/static/wiki/js/app/annotations-view/annotations-view.component.js

js wikigenomes.org collected 2026-09-25 23:42:44 UTC 1,691 bytes, 52 lines download raw bytes

1angular
2    .module('annotationsView')
3    .component('annotationsView', {
4        templateUrl: '/static/wiki/js/angular_templates/annotations-view.html',
5        bindings: {
6            data: '<',
7            annotations: '<',
8            org: '<'
9        },
10        controller: function () {
11            var ctrl = this;
12            ctrl.$onInit = function () {
13                //buttons for expanding and collapsing accordion
14                ctrl.expandAll = function () {
15                    ctrl.toggleOpen(true);
16                };
17                ctrl.collapseAll = function () {
18                    ctrl.toggleOpen(false);
19                };
20                ctrl.accordion = {
21                    go: true,
22                    operon: true,
23                    interpro: true,
24                    enzyme: true,
25                    mutants: true,
26                    pubs: true,
27                    product: true,
28                    ortholog: true
29                };
30
31                ctrl.toggleOpen = function (openAll) {
32                    ctrl.accordion.go = openAll;
33                    ctrl.accordion.operon = openAll;
34                    ctrl.accordion.interpro = openAll;
35                    ctrl.accordion.enzyme = openAll;
36                    ctrl.accordion.mutants = openAll;
37                    ctrl.accordion.pubs = openAll;
38                    ctrl.accordion.product = openAll;
39                    ctrl.accordion.ortholog = openAll;
40                };
41
42                ctrl.status = {
43                    isCustomHeaderOpen: false,
44                    isFirstOpen: true,
45                    isFirstDisabled: false
46                };
47            };
48
49        }
50    });
51
52

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.