PageSourceSearch

https://www.silverbayhockey.com/static/js/builder.js?v=cd36f8d9205d16d26a9d02331117da0834b42ac1

js silverbayhockey.com collected 2026-10-04 04:10:50 UTC 3,133 bytes, 95 lines download raw bytes

1$(document).ready(function()
2{
3    Builder.events();
4    Builder.fit_text();
5    Builder.resize_video();
6    setTimeout(Builder.resize_video, 250);
7    setTimeout(Builder.resize_video, 500);
8    setTimeout(Builder.resize_video, 1000);
9    setTimeout(Builder.resize_video, 2000);
10    setTimeout(Builder.resize_video, 4000);
11});
12
13var Builder =
14{
15    events: function()
16    {
17        $('body').on('click', '.read_more', function(e) {  e.preventDefault();  Builder.read_more(this) });
18        $(window).on('resize', function() { Builder.resize_video(); });
19    },
20    read_more: function(that)
21    {
22        var element = $(that).closest('.element');
23        var uuid = element.attr('data-uuid');
24        $('#read_more_'+uuid).show();
25        $(that).closest('P').hide();
26
27        if(typeof BuilderEditor != "undefined")
28        {
29            BuilderEditor.resize_columns();
30        }
31    },
32    fit_text_timeout: 250,
33    fit_text: function()
34    {
35        var min_text_size = 20.0;
36
37        if($(".fit-text").length > 0)
38        {
39            $(".fit-text").each( function()
40            {
41                if($(this).is(":visible"))
42                {
43                    let text_height = $(this).height();
44                    let parent_height = $(this).parent().height() - 15;
45                    let text_width = $(this).width();
46                    let parent_width = $(this).parent().width() - 15;
47
48                    html = $(this).html().trim();
49
50                    while(text_height > parent_height || text_width > parent_width)
51                    {
52                        text_size = $(this).css('font-size').replace('px', '');
53                        text_size = parseInt(text_size) - 1;
54                        if(parseFloat(text_size) <= parseFloat(min_text_size))
55                        {
56                            break;
57                        }
58
59                        $(this).css('font-size', text_size+'px')
60                        text_height = $(this).height();
61                        text_width = $(this).width();
62                        parent_height = $(this).parent().height();
63                    }
64                }
65            });
66        }
67        Builder.fit_text_timeout += 5;
68        setTimeout(Builder.fit_text, Builder.fit_text_timeout);
69    },
70    resize_video: function () {
71        console.log("resize_video");
72        if ($(".hero .video video").length > 0) {
73            video = $(".hero .video video").first();
74            hero_height = $(".hero").height();
75            video_height = video.height();
76            hero_width = $(".hero").width();
77            video_width = video.width();
78            let resized = false;
79
80            if (hero_height > video_height) {
81                video.height(hero_height);
82                video.css('width', 'auto');
83                resized = true;
84            }
85            if (hero_width > video_width) {
86                video.width(hero_width);
87                video.css('height', 'auto');
88                resized = true;
89            }
90            if (resized) {
91                console.log("resize_video:resized");
92            }
93        }
94    }
95}

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.