PageSourceSearch

https://growing-forest.com/cms/wp-content/themes/forest-international/js/common.js

js growing-forest.com collected 2026-10-08 19:41:40 UTC 1,625 bytes, 69 lines download raw bytes

1$(function() {
2  if (!isPhone())
3    return;
4  $('span[data-action=call]').each(function() {
5    var $ele = $(this);
6    $ele.wrap('<a href="tel:' + $ele.data('tel') + '"></a>');
7  });
8});
9function isPhone() {
10  return (navigator.userAgent.indexOf('iPhone') > 0 || navigator.userAgent.indexOf('Android') > 0);
11}
12$(function() {
13  var topBtn = $('#page-top');
14  topBtn.hide();
15  $(window).scroll(function () {
16    if ($(this).scrollTop() > 200) {
17      topBtn.fadeIn();
18    } else {
19      topBtn.fadeOut();
20    }
21  });
22  topBtn.click(function () {
23    $('body,html').animate({
24      scrollTop: 0
25    }, 500);
26    return false;
27  });
28});
29$(function(){
30  $("#toggle").click(function(){
31    $("#menu").slideToggle();
32    return false;
33  });
34  $(window).resize(function(){
35    var win = $(window).width();
36    var p = 899;
37    if(win > p){
38      $("#menu").show();
39    } else {
40      $("#menu").hide();
41    }
42  });
43});
44$(function(){
45  $('.grid.with-empty-cells').each(function() {
46    emptyCells = [];
47    for (i = 0; i < $(this).find('.cell').length; i++) {
48      emptyCells.push($('<li>', {
49        class: 'cell is-empty'
50      }));
51    }
52    $(this).append(emptyCells);
53  });
54});
55$(function() {
56  $('.box-link').click(function() {
57    window.location = $(this).find('a').attr('href');
58    return false;
59  });
60});
61$(function(){
62  $(".tab li").click(function(){
63    var index = $(this).parent("ul").children("li").index(this);
64    $(this).siblings("li").removeClass("active");
65    $(this).addClass("active");
66    $(this).parent("ul").nextAll(".panel").hide();
67    $(this).parent("ul").nextAll(".panel").eq(index).show();
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.