PageSourceSearch

https://iconix-comics-games.co.nz/public/templates/shop/iconix-2018/js/layout.ie.js?1791509241240

js iconix-comics-games.co.nz collected 2026-10-10 02:02:59 UTC 2,471 bytes, 69 lines download raw bytes

1jQuery(function ($) {
2    'use strict';
3
4    var rows = $('.bd-flex-horizontal.bd-flex-wide');
5
6    fixContentLayoutHeight(rows);
7
8    var t = null;
9    $(window).on('resize', function () {
10        clearTimeout(t);
11        t = setTimeout(fixContentLayoutHeight.bind(null, rows), 100);
12    });
13
14    function fixContentLayoutHeight(rows) {
15        var loadPromises = [];
16
17        function off() {
18            /* jshint validthis: true */
19            this.onload = null;
20            this.onerror = null;
21            this.onabort = null;
22        }
23
24        function on(dfd) {
25            /* jshint validthis: true */
26            off.bind(this)();
27            dfd.resolve();
28        }   
29
30        rows.each(function () {
31            $(this).find('img').each(function () {
32                if (this.complete) return;
33                var deferred = $.Deferred();
34                this.onload = on.bind(this, deferred);
35                this.onerror = on.bind(this, deferred);
36                this.onabort = on.bind(this, deferred);
37                loadPromises.push(deferred.promise());
38            });
39
40            $.when.apply($, loadPromises).done(function () {
41                var columns = $(this).children('[class*="-column "], [class$="-column"]');
42                var contentColumn = $(this).children('.bd-flex-vertical.bd-flex-wide');
43                var contentArea = contentColumn.children('.bd-flex-wide');
44
45                contentArea.css('min-height', '');
46                columns.children().css('min-height', '').each(function () {
47                    var sidebar = $(this);
48                    ['padding-top', 'padding-right', 'padding-bottom', 'padding-left'].forEach(function (padding) {
49                        if (!parseInt(sidebar.css('padding'), 10)) {
50                            sidebar.css(padding, '0.01px');
51                        }
52                    });
53                });
54
55                var columnHeight = columns.height();
56                columns.children().css('min-height', columnHeight + 'px');
57
58                var siblingsHeight = 0;
59                contentArea.siblings().each(function () {
60                    siblingsHeight += $(this).outerHeight(true);
61                });
62
63                if (contentColumn.height() > siblingsHeight + contentArea.outerHeight(true)) {
64                    contentArea.css('min-height', (contentColumn.height() - siblingsHeight) + 'px');
65                }
66            }.bind(this));
67        });
68    }
69});

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.