Publishing Site blog.artifacthub.io at b378a71306 on Tue May 18 13:24:02 UTC 2021

This commit is contained in:
mattfarina 2021-05-18 13:24:02 +00:00
parent 4113c50aaa
commit b846af6d20
4 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
js/en.search.min.js vendored
View File

@ -1 +1 @@
'use strict';(function(){const b=document.querySelector('#gdoc-search-input'),a=document.querySelector('#gdoc-search-results');b.addEventListener('focus',c),b.addEventListener('keyup',d);function c(){b.removeEventListener('focus',c),b.required=!0,e('/js/flexsearch.min.js'),e('/js/en.search-data.min.f93255faf6e9153501b5aa6c420bde472530da5db013dec58612e611627992cc.js',function(){b.required=!1,d()})}function d(){while(a.firstChild)a.removeChild(a.firstChild);if(!b.value){console.log("empty"),a.classList.remove("has-hits");return}const c=window.geekdocSearchIndex.search(b.value,10);console.log(c.length),c.length>0?a.classList.add("has-hits"):a.classList.remove("has-hits"),c.forEach(function(b){const c=document.createElement('li'),d=c.appendChild(document.createElement('a'));d.href=b.href,d.textContent=b.title,a.appendChild(c),a.classList.add("DUMMY")})}function e(b,c){const a=document.createElement('script');a.defer=!0,a.async=!1,a.src=b,a.onload=c,document.head.appendChild(a)}})()
'use strict';(function(){const b=document.querySelector('#gdoc-search-input'),a=document.querySelector('#gdoc-search-results');b.addEventListener('focus',c),b.addEventListener('keyup',d);function c(){b.removeEventListener('focus',c),b.required=!0,e('/js/flexsearch.min.js'),e('/js/en.search-data.min.58d4538d551ccc2f878cb6a11788257b051699dbaa28aa3af615adb7934aa303.js',function(){b.required=!1,d()})}function d(){while(a.firstChild)a.removeChild(a.firstChild);if(!b.value){console.log("empty"),a.classList.remove("has-hits");return}const c=window.geekdocSearchIndex.search(b.value,10);console.log(c.length),c.length>0?a.classList.add("has-hits"):a.classList.remove("has-hits"),c.forEach(function(b){const c=document.createElement('li'),d=c.appendChild(document.createElement('a'));d.href=b.href,d.textContent=b.title,a.appendChild(c),a.classList.add("DUMMY")})}function e(b,c){const a=document.createElement('script');a.defer=!0,a.async=!1,a.src=b,a.onload=c,document.head.appendChild(a)}})()