PageSourceSearch

https://www.waveenergyscotland.co.uk/scripts/m-contactprofiles.js?d=3175

js waveenergyscotland.co.uk collected 2026-09-24 18:52:27 UTC 1,356 bytes, 39 lines download raw bytes

1(function ($, window, document) {
2
3    function init() {
4        var originalHeight = $('.m-contactprofiles .e-more').outerHeight();
5        var originalText = $('.m-contactprofiles .e-toggle span').text();
6
7        if ($('.m-contactprofiles .e-more').children().length > 0) {
8            $('.m-contactprofiles .e-more').css({
9                'height': '100px'
10            });
11
12            $('.m-contactprofiles .e-toggle span').on('click', function () {
13                if (!$('.m-contactprofiles .e-more').hasClass('open')) {
14                    $('.m-contactprofiles .e-more').animate({
15                        'height': originalHeight + 'px'
16                    }, 300).addClass('open');
17
18                    $(this).text('Show less -');
19                } else {
20                    $(this).text(originalText);
21                    $('.m-contactprofiles .e-more').animate({
22                        'height': '100px'
23                    }, 500).removeClass('open');
24                }
25            });
26
27        } else {
28            $('.m-contactprofiles .e-more, .m-contactprofiles .e-toggle').remove('.m-contactprofiles .e-more, .m-contactprofiles .e-toggle');
29        }
30    }
31
32    $(function () {
33        setTimeout(function () {
34            init();
35        }, 500);
36
37    });
38
39})(window.jQuery, window, document);

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.