PageSourceSearch

https://www.yinnarsthps.vic.edu.au/themes/theme5b/js/theme-custom.js

js yinnarsthps.vic.edu.au collected 2026-10-09 00:58:00 UTC 1,870 bytes, 66 lines download raw bytes

1 
2//Expandable searchbox
3
4  $(document).ready(function(){
5            var submitIcon = $('.searchbox-icon');
6            var inputBox = $('.searchbox-input');
7            var searchBox = $('.searchbox');
8            var isOpen = false;
9            submitIcon.click(function(){
10                if(isOpen == false){
11                    searchBox.addClass('searchbox-open');
12                    inputBox.focus();
13                    isOpen = true;
14                } else {
15                    searchBox.removeClass('searchbox-open');
16                    inputBox.focusout();
17                    isOpen = false;
18                }
19            });  
20             submitIcon.mouseup(function(){
21                    return false;
22                });
23            searchBox.mouseup(function(){
24                    return false;
25                });
26            $(document).mouseup(function(){
27                    if(isOpen == true){
28                        $('.searchbox-icon').css('display','block');
29                        submitIcon.click();
30                    }
31                });
32        });
33            function buttonUp(){
34                var inputVal = $('.searchbox-input').val();
35                inputVal = $.trim(inputVal).length;
36                if( inputVal !== 0){
37                    $('.searchbox-icon').css('display','none');
38                } else {
39                    $('.searchbox-input').val('');
40                    $('.searchbox-icon').css('display','block');
41                }
42            }
43
44
45// searchbox mobile
46
47if ($(window).width() <= 575) {
48$(function() {
49  $('.searchbox').addClass('searchbox-open');
50});
51}
52else {
53  
54}
55
56
57
58
59//google translator
60
61function googleTranslateElementInit() {
62  new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
63}
64 
65
66

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.