Nearby Stores Maps [CSS]

/* Nearby Stores Card */ .nearby-stores-card { position: relative; width: 100%; height: 500px; /* Increased height for prominence */ margin: 20px auto; border-radius: 16px; /* Smooth corners */ overflow: hidden; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), 0 0…Continue reading

MVNO Comparison Table CSS

.tmobile_mvno_comparison_table_button { background-color: #0070ba; /* Adjust color as needed */ color: #fff; border: none; border-radius: 4px; /* Slightly rounded corners */ padding: 10px 16px; font-size: 14px; text-align: center; cursor: pointer; text-decoration: none; /* Remove underline */ display: inline-block; /* So…Continue reading

CSS for Coverage Cards

/* Wrapper class specific to the shortcode */ .zip-coverage-cards { font-family: ‘Montserrat’, sans-serif; color: #fff; /* Ensure all text is white */ padding: 20px 0px; /* Standard padding for the section */ background: transparent; /* Transparent background */ } .zip-coverage-cards…Continue reading

Carousel CSS

/*resCarousel Css*/ .outt { display: none; } .leftRs { position: absolute; margin: auto; top: 0; bottom: 0; z-index: 100; left: 0; width: 50px; height: 50px; box-shadow: 1px 2px 10px -1px rgba(0, 0, 0, .3); border-radius: 999px; } .rightRs { position:…Continue reading

Carousel

function ResCarouselOnInit(){ResCarouselSize(),ResCarouselSlide(),$(document).on(“click”,”.leftRs, .rightRs”,function(){ResCarousel(this)}),$(document).on(“mouseenter”,”.ResHover”,function(){$(this).addClass(“ResHovered”)}),$(document).on(“mouseleave”,”.ResHover”,function(){$(this).removeClass(“ResHovered”)})}function ResCarouselSlide(){$(“.resCarousel”).each(function(){var e=$(this).find(“.rightRs”),t=$(this).attr(“data-interval”);!isNaN(t)&&$(this).addClass(“ResHover”)&&setInterval(function(){!e.parent().hasClass(“ResHovered”)&&ResCarousel(e)},+t)})}function ResCarouselResize(){function e(){console.log(“resize Works”);var e=$(“body”).width();$(“.resCarousel”).each(function(){var t=$(this).attr(“data-value”),s=$(this).find(“.item”).width();$(this).find(“.resCarousel-inner”).scrollLeft(t*s);var a=$(this).attr(“data-items”).split(“,”),i=e>=1200?a[3]:e>=992?a[2]:e>=768?a[1]:a[0];$(this).attr(“data-itm”,i)})}e()}function ResCarouselSize(){var e=performance.now();$(“.resCarousel”).each(function(e){var t=$(this).attr(“data-items”).split(“,”);$(this).addClass(“ResSlid”+e);for(var s=0;4>s;s++)0==s?styleCollector0=”.ResSlid”+e+” .item {width: “+100/t[s]+”%}”:1==s?styleCollector1=”.ResSlid”+e+” .item {width: “+100/t[s]+”%}”:2==s?styleCollector2=”.ResSlid”+e+” .item {width: “+100/t[s]+”%}”:3==s&&(styleCollector3=”.ResSlid”+e+” .item {width: “+100/t[s]+”%}”);$(this).attr(“data-value”,”0″);var a=$(“body”).width(),i=a>=1200?t[3]:a>=992?t[2]:a>=768?t[1]:t[0];$(this).attr(“data-itm”,i);var o=”@media (max-width:767px){“+styleCollector0+”}@media (min-width:768px){“+styleCollector1+”}@media (min-width:992px){“+styleCollector2+”}@media (min-width:1200px){“+styleCollector3+”}”;$(this).find(“style”).remove(),$(this).append(“ “)});var t=performance.now();console.log(“Took”,(t-e).toFixed(4),”milliseconds to Size”)}function ResCarousel(e){var t=$(e).parent(),s=(t.find(“.leftRs”),t.find(“.rightRs”),+t.attr(“data-slide”)),a=t.find(“.resCarousel-inner”),i=+t.attr(“data-speed”),o=+t.attr(“data-load”),r=””,l=””,n=a.find(“.item”).length,d=a.find(“.item”).outerWidth(),u=+t.attr(“data-itm”),c=$(e).hasClass(“leftRs”),f=Math.round(a.scrollLeft()/d);if(i=isNaN(i)?400:i,s=u>s?s:u,c){l=f-s,r=l*d;var m=l+s;0==f?(l=n-s,r=l*d,l=n-u,i=400):s>=m&&(l=r=0)}else{l=f+s,r=l*d;var…Continue reading

om.Campaign.canShow

document.addEventListener(‘om.Campaign.canShow’, function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); } );Continue reading

om.Html.images

document.addEventListener(‘om.Html.images’, function(event) { console.log(event.detail.Html); console.log(event.detail.Campaign); } );Continue reading

om.WebFonts.init

document.addEventListener(‘om.WebFonts.init’, function(event) { console.log(event.detail.WebFonts); console.log(event.detail.Campaign); } );Continue reading