PageSourceSearch

https://www.westmetalworks.com/themes/hard-hat_hwbqrkpl/js/scripts.js

js westmetalworks.com collected 2026-09-29 16:28:29 UTC 1,141 bytes, 45 lines download raw bytes

1(function($){
2
3  $(function () {
4
5    /* Horizontal blocks
6    -------------------------------------------------------- */
7    /*
8     * Apply the proper bootstrap class to the target blocks
9     * so they get laid out side-by-side using bootstrap's grid.
10     */
11
12    var target_container = $(".block-style-horizontal").parent();
13
14    /* loop through each container that has "block-style-horizontal" */
15    target_container.each(function(i, el) {
16      var target_divs = $(el).find(".block-style-horizontal");
17      var num_of_divs = target_divs.length;
18
19      // wrap all target DIVs with a new row
20      target_divs.wrapAll('<div class="js-row clearfix">');
21
22      // Apply the proper bootstrap class to the
23      // target DIVs in each container
24      target_divs.each(function(i, element) {
25
26        // four (or more)
27        if (num_of_divs >= 4) {
28          $(element).addClass("span3");
29        }
30
31        // three
32        if (num_of_divs == 3) {
33          $(element).addClass("span4");
34        }
35
36        // two
37        if (num_of_divs == 2) {
38          $(element).addClass("span6");
39        }
40      });
41    });
42
43  });
44
45})(jQuery);

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.