PageSourceSearch

https://wincomlib.org/wp-content/plugins/optik-search-toggle/inc/js/search-toggle.js?ver=1.0

js wincomlib.org collected 2026-10-05 07:09:08 UTC 958 bytes, 41 lines download raw bytes

1// SHOW CATALOG FORM OR WEBSITE FORM
2function showForm(selectedValue) {
3		
4    if (selectedValue === 'catalog') {
5        $('.catalog-search').show();
6        $('.website-search').hide();
7    } else {
8        $('.catalog-search').hide();
9        $('.website-search').show();
10    }
11
12}
13
14
15
16// SET INITIAL SELECTION
17var urlParams = new URLSearchParams(window.location.search);
18
19// If Website Search Page
20if (urlParams.has('s')) {
21	var radioWebsite = document.getElementById('radio-website');
22	radioWebsite.checked = true;
23	showForm('website');
24}
25// Else
26else {
27var radioCatalog = document.getElementById('radio-catalog');
28radioCatalog.checked = true;
29showForm('catalog');
30}
31
32
33
34// CHANGE FORM ON SELECT CHANGE
35var formSelector = document.getElementsByName('toggle-select');
36for (var i = 0; i < formSelector.length; i++) {
37    formSelector[i].addEventListener('click', function() {
38        var selectedValue = this.value;
39        showForm(selectedValue);
40    });
41}

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.