PageSourceSearch

https://lund.se/download/18.31305b8f178fec5d5c8387/1634764954236/fullWidthLayout.js

js lund.se collected 2026-10-02 18:17:35 UTC 2,096 bytes, 84 lines download raw bytes

1svDocReady(function () {
2   
3   const decorationClass='.lnd-full-width-layout';
4  
5  function followChanges(id, container) {
6    $svjq(window).on('resize', function () {
7      $svjq(decorationClass).each(function (i, obj) {
8        var areaHeight = $svjq(this).outerHeight();
9        var pos = $svjq(this).offset();
10        var id = $svjq(this).attr('id');
11        setHeight($svjq(this), areaHeight, pos, id);
12      });
13    });
14  }
15
16  function setHeight(container, height, pos, id) {
17    var refId = "#background_" + id;
18    $svjq(refId).height(height);
19    $svjq(refId).css({
20      top: pos
21    });
22  }
23
24  function createSpanBlock(container) {
25     
26    var height = container.height();
27    var pos = container.offset();
28    var id = container.attr('id');
29     
30    // createSpanBlock($svjq(this), areaHeight, pos, id);
31     
32    id = "background_" + id;
33    var refId = "#" + id;
34    var newObj = '<div id="' + id + '"></div>';
35
36    $svjq(container).css('position', 'relative');
37    $svjq(refId).css('z-index', -1);
38    $svjq(newObj).insertBefore(container);
39
40    var backgroundRemove = {
41      "backround": "initial",
42      "background-color": "initial",
43      "background-image": "initial",
44      "background-position": "initial"
45    };
46
47    var backgroundStuff = [
48      "background-color",
49      "background-image",
50      "background-position",
51      "background-repeat"
52    ];
53
54    var props = $svjq(container).css(backgroundStuff);
55
56    $svjq(container).css(backgroundRemove);
57    $svjq(refId).css(props);
58    $svjq(refId).height(height);
59    $svjq(refId).css({
60      width: "100%",
61      top: pos,
62      left: 0,
63      position: 'absolute'
64    });
65
66    followChanges(id, container);
67  }
68
69
70  $svjq(decorationClass).each(function (i, obj) {
71   
72    createSpanBlock($svjq(this));
73   });
74   
75   $svjq(window).on('load', function(){
76      $svjq(decorationClass).each(function (i, obj) {
77        var areaHeight = $svjq(this).outerHeight();
78        var pos = $svjq(this).offset();
79        var id = $svjq(this).attr('id');
80        setHeight($svjq(this), areaHeight, pos, id);
81      });
82	});
83
84});

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.