1/* GriGsi Check â suggests related GriGsi tools for the pasted input. */ 2(function () { 3 'use strict'; 4 5 function suggest(text, analysis) { 6 var t = (window.HV1_I18N && window.HV1_I18N.t) || function (k) { return k; }; 7 var hasDomain = !!(analysis && analysis.domain); 8 var hasText = !!(text && text.trim().length > 20); 9 10 return [ 11 { 12 tool: t('omni.trust.tool'), 13 title: t('omni.trust.title'), 14 summary: t('omni.trust.summary'), 15 cta: t('omni.trust.cta'), 16 href: '/check-index.html', 17 level: hasDomain ? 'ok' : 'unknown' 18 }, 19 { 20 tool: t('omni.proof.tool'), 21 title: t('omni.proof.title'), 22 summary: t('omni.proof.summary'), 23 cta: t('omni.proof.cta'), 24 href: '/proof.html', 25 level: hasDomain ? 'ok' : 'unknown' 26 }, 27 { 28 tool: t('omni.noise.tool'), 29 title: t('omni.noise.title'), 30 summary: t('omni.noise.summary'), 31 cta: t('omni.noise.cta'), 32 href: '/noise-text-analyzer.html', 33 level: hasText ? 'ok' : 'unknown' 34 }, 35 { 36 tool: t('omni.intel.tool'), 37 title: t('omni.intel.title'), 38 summary: t('omni.intel.summary'), 39 cta: t('omni.intel.cta'), 40 href: '/similarity/', 41 level: 'unknown' 42 } 43 ]; 44 } 45 46 window.GrigsiOmniSearch = { suggest: suggest }; 47})();
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.