"@type": "CollectionPage",
"@id": "https://www.nucompass.com/tag/press-release/",
"url": "https://www.nucompass.com/tag/press-release/",
"name": "Press Release Archives - NuCompass Mobility",
"@id": "https://www.nucompass.com/tag/press-release/#breadcrumb"
"@id": "https://www.nucompass.com/tag/press-release/#breadcrumb",
"name": "Home",
"item": "https://www.nucompass.com/"
"position": 2,
"name": "Press Release"
document.addEventListener("DOMContentLoaded", function () {
// Fixed color palette (same as PHP)
const colors = ["#FF006E", "#8CC640", "#00ADD8", "#C2AFF0", "#01295F", "#8D6EFF"];
// Target Elementor post badges
const postBadges = document.querySelectorAll(".elementor-widget-posts .elementor-post__badge");
postBadges.forEach((badge, index) => {
const color = colors[index % colors.length]; // repeat color pattern
badge.style.backgroundColor = color;
badge.style.color = "#fff";
badge.style.padding = "4px 10px";
badge.style.borderRadius = "4px";
badge.style.display = "inline-block";
});
// Target tag badges
const tagBadges = document.querySelectorAll(".post-tags .tag-item");
tagBadges.forEach((badge, index) => {
const color = colors[index % colors.length]; // same color sequence
badge.style.marginRight = "5px";
jQuery(document).ready(function($){
const section = $('#custom-slider-section-2025');
const container = section.find('.slider-container');
const slides = container.find('.slide');
let current = 0;
const total = slides.length;
let autoSlideInterval;
function updateSlider() {
if ($(window).width() <= 768) return;
slides.removeClass('position-left position-right position-center position-hidden-left position-hidden-right');
slides.each(function(i){
if (i === current) $(this).addClass('position-center');
else if (i === (current - 1 + total) % total) $(this).addClass('position-left');
else if (i === (current + 1) % total) $(this).addClass('position-right');
else if (i < current) $(this).addClass('position-hidden-left');
else $(this).addClass('position-hidden-right');
updateSlider();
function startAutoSlide() {
if ($(window).width() <= 768) return; // disable slider on mobile
stopAutoSlide(); // prevent multiple intervals
autoSlideInterval = setInterval(() => {
current = (current + 1) % total;
}, 4000);
function stopAutoSlide() {
clearInterval(autoSlideInterval);
startAutoSlide();
// Click to move slide
slides.on('click', function(){
const index = slides.index(this);
if (index === (current + 1) % total) current = (current + 1) % total;
else if (index === (current - 1 + total) % total) current = (current - 1 + total) % total;
stopAutoSlide();
// Touch / Mouse swipe
let startX = 0;
container.on('touchstart mousedown', function(e){
if ($(window).width() <= 768) return; // allow normal scroll on mobile
startX = e.type === 'touchstart' ? e.originalEvent.touches[0].clientX : e.clientX;
if (e.type === 'mousedown') e.preventDefault(); // only block drag on desktop
container.on('touchend mouseup', function(e){
const endX = e.type === 'touchend' ? e.originalEvent.changedTouches[0].clientX : e.clientX;
const diff = startX - endX;
if (diff > 50) current = (current + 1) % total;
else if (diff < -50) current = (current - 1 + total) % total;
// Pause auto-slide on hover
container.on('mouseenter', function(){
container.on('mouseleave', function(){
// Recalculate when resizing
$(window).on('resize', function(){
Skip to content