曾与蒿藜同雨露,한때 잡초와 쑥과 함께 비와 이슬을 나누던 곳이 이제는 소나무와 삼나무와 함께 서리와 눈을 견뎌내고 있다.终随松柏到冰霜.かつては雑草やヨモギと共に雨や露を分かち合っていたが、今では松やヒノキと共に霜や雪に耐えている。曾与蒿藜同雨露,Once sharing rain and dew with weeds and wormwood, now enduring frost and snow with pines and cypresses.终随松柏到冰霜.曾与蒿藜同雨露한때 잡초와 쑥과 함께 비와 이슬을 나누던 곳이 이제는 소나무와 삼나무와 함께 서리와 눈을 견뎌내고 있다.,终随松柏到冰霜.譖セ荳手珍阯懷酔髮ィ髴イ�檎サ磯囂譚セ譟丞芦蜀ー髴�曾与蒿藜同雨露,鏇句笌钂胯棞鍚岄洦闇诧紝缁堥殢鏉炬煆鍒板啺闇�终随松柏到冰霜.曾与蒿藜同雨露,한때 잡초와 쑥과 함께 비와 이슬을 나누던 곳이 이제는 소나무와 삼나무와 함께 서리와 눈을 견뎌내고 있다.终随松柏到冰霜.曾与蒿藜同雨露,终随松柏到冰霜. rahbord-ins.ir - GrazzMean-Shell
Uname: Linux server18.dn-server.com 3.10.0-962.3.2.lve1.5.88.el7.x86_64 #1 SMP Fri Sep 26 14:06:42 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 7.4.33 [ PHP INFO ] PHP os: Linux
Server Ip: 185.126.202.122
Your Ip: 216.73.216.193
User: rahbordf (4876) | Group: rahbordf (4881)
Safe Mode: OFF
Disable Function:
show_source, system, shell_exec, passthru, exec, popen, proc_open

name : custom.js
// Testimonial Section
jQuery(document).ready(function () {
  jQuery('.testimonial-section .owl-carousel').owlCarousel({
    loop: true,
    margin: 15,
    nav: true,
    navText: ["<span class='left-btn p-3'></span>", "<span class='right-btn p-3'></span>"],
    dots: false,
    rtl: false,
    responsive: {
      0: {
        items: 1
      },
      768: {
        items: 2
      },
      992: {
        items: 2
      },
      1200: {
        items: 3
      }
    },
    autoplay: true,
  });
});

// News Section
jQuery(document).ready(function () {
  jQuery('.news-section .owl-carousel').owlCarousel({
    loop: true,
    margin: 15,
    nav: false,
    dots: false,
    rtl: false,
    responsive: {
      0: {
        items: 1
      },
      768: {
        items: 2
      },
      992: {
        items: 2
      },
      1200: {
        items: 3
      }
    },
    autoplay: true,
  });
});

// Scroll to Top
window.onscroll = function () {
  const service_business_button = document.querySelector('.scroll-top-box');
  if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
    service_business_button.style.display = "block";
  } else {
    service_business_button.style.display = "none";
  }
};

document.querySelector('.scroll-top-box a').onclick = function (event) {
  event.preventDefault();
  window.scrollTo({ top: 0, behavior: 'smooth' });
};

// project tabs
document.addEventListener("DOMContentLoaded", () => {
  const service_business_tabTitles = [...document.querySelectorAll(".tab-title")];
  const service_business_tabContents = [...document.querySelectorAll(".tab-content")];

  if (!service_business_tabTitles.length) return;

  // Default: activate first tab
  service_business_tabTitles.forEach((tab, index) => {
    tab.classList.toggle("active", index === 0);
    tab.setAttribute("tabindex", "0"); // make focusable by keyboard
  });
  service_business_tabContents.forEach((content, index) => {
    content.classList.toggle("active", index === 0);
  });

  // Mouse click handling (FIXED)
  document.addEventListener("click", (e) => {
    const service_business_clickedTab = e.target.closest(".tab-title");
    if (service_business_clickedTab) {
      const service_business_clickedIndex = service_business_tabTitles.indexOf(service_business_clickedTab);
      if (service_business_clickedIndex !== -1) {
        service_business_setActive(service_business_clickedIndex);
      }
    }
  });

  // Keyboard navigation
  document.addEventListener("keydown", (e) => {
    const service_business_activeIndex = service_business_tabTitles.findIndex(tab => tab.classList.contains("active"));
    let service_business_newIndex = service_business_activeIndex;

    if (e.key === "ArrowRight") {
      service_business_newIndex = (service_business_activeIndex + 1) % service_business_tabTitles.length;
      service_business_tabTitles[service_business_newIndex].focus();
      service_business_setActive(service_business_newIndex);
    } else if (e.key === "ArrowLeft") {
      service_business_newIndex = (service_business_activeIndex - 1 + service_business_tabTitles.length) % service_business_tabTitles.length;
      service_business_tabTitles[service_business_newIndex].focus();
      service_business_setActive(service_business_newIndex);
    } else if (e.key === "Enter" || e.key === " ") {
      const focusedIndex = service_business_tabTitles.indexOf(document.activeElement);
      if (focusedIndex !== -1) service_business_setActive(focusedIndex);
    }
  });

  function service_business_setActive(index) {
    service_business_tabTitles.forEach((tab, i) => tab.classList.toggle("active", i === index));
    service_business_tabContents.forEach((content, i) => content.classList.toggle("active", i === index));
  }
});

// Project Section
jQuery(document).ready(function ($) {

  $('.tab-title').on('click', function () {
    var $service_business_container = $('.main-tab');
    var $service_business_tabs = $service_business_container.find('.tab-title');
    var service_business_tabHeight = $service_business_tabs.first().outerHeight(true);
    var service_business_total = $service_business_tabs.length;

    // Index of the clicked tab
    var service_business_clickedIndex = $service_business_tabs.index(this);

    // Current scroll position (in tab units)
    var service_business_currentScroll = $service_business_container.scrollTop();
    var service_business_currentTopIndex = Math.round(service_business_currentScroll / service_business_tabHeight);

    // How many tabs are visible at once
    var service_business_visibleCount = Math.floor($service_business_container.outerHeight() / service_business_tabHeight);

    var service_business_newTopIndex;

    if (service_business_clickedIndex === service_business_currentTopIndex) {
      // Clicked the topmost visible tab → scroll up by one (show previous tab above)
      service_business_newTopIndex = service_business_currentTopIndex - 1;
    } else {
      // Scroll so clicked tab sits at the top of the visible window
      service_business_newTopIndex = service_business_clickedIndex;
    }

    // Clamp: don't go below 0 or beyond the last page
    var service_business_maxTop = service_business_total - service_business_visibleCount;
    if (service_business_maxTop < 0) service_business_maxTop = 0;
    service_business_newTopIndex = Math.max(0, Math.min(service_business_newTopIndex, service_business_maxTop));

    $service_business_container.animate({
      scrollTop: service_business_newTopIndex * service_business_tabHeight
    }, 400);
  });
});

// Toggle
document.addEventListener("DOMContentLoaded", () => {
  const service_business_toggle = document.querySelector(".header-info-btn a"),
        service_business_info = document.querySelector(".header-info"),
        service_business_close = document.querySelector(".info-close-btn a");

  if (!service_business_toggle || !service_business_info) return;

  service_business_toggle.onclick = () => (service_business_info.classList.add("active"), document.body.classList.add("header-info-open"));
  service_business_close && (service_business_close.onclick = () => (service_business_info.classList.remove("active"), document.body.classList.remove("header-info-open")));

  document.addEventListener("click", e => {
    if (document.body.classList.contains("header-info-open") &&
        !service_business_info.contains(e.target) && !service_business_toggle.contains(e.target)) {
      service_business_info.classList.remove("active");
      document.body.classList.remove("header-info-open");
    }
  });
});

document.addEventListener("DOMContentLoaded", () => {
  const service_business_toggleBtn = document.querySelector(".header-info-btn a"); // open button
  const service_business_infoBox = document.querySelector(".header-info"); // info box
  const service_business_closeBtn = document.querySelector(".info-close-btn a"); // close button

  if (!service_business_toggleBtn || !service_business_infoBox || !service_business_closeBtn) return;

  // OPEN the info box
  service_business_toggleBtn.addEventListener("click", () => {
    service_business_infoBox.classList.add("active");
    document.body.classList.add("header-info-active");

    // Optional: move keyboard focus inside
    const firstFocusable = service_business_infoBox.querySelector(
      'a, button, input, textarea, select, [tabindex]:not([tabindex="-1"])'
    );
    if (firstFocusable) firstFocusable.focus();
  });

  // CLOSE the info box (when clicking the close icon)
  service_business_closeBtn.addEventListener("click", () => {
    service_business_infoBox.classList.remove("active");
    document.body.classList.remove("header-info-active");
    service_business_toggleBtn.focus(); // return focus to the button
  });

  // Trap focus inside when active
  document.addEventListener("keydown", (e) => {
    if (!service_business_infoBox.classList.contains("active")) return;

    const focusable = service_business_infoBox.querySelectorAll(
      'a, button, input, textarea, select, [tabindex]:not([tabindex="-1"])'
    );
    const first = focusable[0];
    const last = focusable[focusable.length - 1];

    if (e.key === "Tab") {
      if (e.shiftKey && document.activeElement === first) {
        e.preventDefault();
        last.focus();
      } else if (!e.shiftKey && document.activeElement === last) {
        e.preventDefault();
        first.focus();
      }
    }

    // ESC key also closes the box
    if (e.key === "Escape") {
      service_business_closeBtn.click();
    }
  });
});
© 2026 GrazzMean-Shell