PageSourceSearch

https://www.cgoecology.com/templates/t4_bs5_blank/js/template.js

js cgoecology.com collected 2026-10-03 00:04:53 UTC 2,687 bytes, 69 lines download raw bytes

1jQuery(document).ready(function() {
2    jQuery(document).on("scroll", onScroll);
3    onepageNavLinks = jQuery('.onepage .t4-navbar .nav-link');
4
5    function onScroll(event){
6        var scrollPos = jQuery(document).scrollTop();
7        onepageNavLinks.each(function () {
8            var currLink = jQuery(this);
9            var refElement = jQuery(currLink.attr("href"));
10            if (refElement.position().top <= scrollPos /* && refElement.position().top + refElement.height() > scrollPos*/ ) {
11                onepageNavLinks.removeClass("active");
12                currLink.addClass("active");
13            }
14            else{
15                currLink.removeClass("active");
16            }
17        });
18    }
19})
20
21if (typeof Virtuemart === "undefined")
22  var Virtuemart = {};
23
24jQuery(window).on('load', () => {
25  const $ = jQuery;
26
27  $(document).off("updateVirtueMartCartModule", "body", Virtuemart.customUpdateVirtueMartCartModule);
28
29  Virtuemart.customUpdateVirtueMartCartModule = function (el, options) {
30    var base = this;
31    base.el = $(".vmCartModule");
32    base.options = $.extend({}, Virtuemart.customUpdateVirtueMartCartModule.defaults, options);
33
34    base.init = function () {
35      $.ajaxSetup({ cache: false })
36      $.getJSON(Virtuemart.vmSiteurl + "index.php?option=com_virtuemart&nosef=1&view=cart&task=viewJS&format=json" + Virtuemart.vmLang,
37        function (datas, textStatus) {
38          base.el.each(function (index, module) {
39            if (datas.totalProduct > 0) {
40              $(module).find(".vm_cart_products").html("");
41              $.each(datas.products, function (key, val) {
42                //$("#hiddencontainer .vmcontainer").clone().appendTo(".vmcontainer .vm_cart_products");
43                $(module).find(".hiddencontainer .vmcontainer .product_row").clone().appendTo($(module).find(".vm_cart_products"));
44                $.each(val, function (key, val) {
45                  $(module).find(".vm_cart_products ." + key).last().html(val);
46                });
47              });
48            }
49            $(module).find(".show_cart").html(datas.cart_show);
50            $(module).find(".total_products").html(datas.totalProduct);
51            $(module).find(".total").html(datas.billTotal);
52          });
53        }
54      );
55    };
56    base.init();
57  };
58  // Definition Of Defaults
59  Virtuemart.customUpdateVirtueMartCartModule.defaults = {
60    name1: 'value1'
61  };
62
63  $(document).on("updateVirtueMartCartModule", "body", Virtuemart.customUpdateVirtueMartCartModule);
64});
65
66
67function jsAdvanceSearchResultsNotice(click) {
68  document.getElementById("notice").style.display = 'none';
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.