PageSourceSearch

http://wikigenomes.org/static/wiki/js/app/keyword-form/keyword-form.component.js

js wikigenomes.org collected 2026-09-25 23:43:08 UTC 642 bytes, 20 lines download raw bytes

1angular
2    .module('keywordForm')
3    .component('keywordForm', {
4        bindings: {
5            data: '<'
6        },
7        controller: function ($filter, $location) {
8            var ctrl = this;
9            ctrl.$onInit = function(){
10                ctrl.submitKeyword = function ($item) {
11                    if ($item == undefined){
12                        alert("Please enter a keyword or ID");
13                    } else{
14                        $location.path('keyword/' + $item);
15                    }
16                };
17            };
18        },
19        templateUrl: '/static/wiki/js/angular_templates/keyword-form.html'
20    });

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.