$(document).ready(function() { $("#TopNews").click(function() { $("#promotion").slideDown("slow"); }); }); $(document).ready(function() { $("#closeBTN").click(function() { $("#promotion").slideUp("slow"); }); }); $(document).ready(function() { $("#closeTxtBTN").click(function() { $("#promotion").slideUp("slow"); }); }); $(document).ready(function() { $('#horizontalTab').easyResponsiveTabs({ type: 'default', //Types: default, vertical, accordion width: 'auto', //auto or any width like 600px fit: true, // 100% fit in a container closed: 'accordion', // Start closed if in accordion view activate: function(event) { // Callback function if tab is switched var $tab = $(this); var $info = $('#tabInfo'); var $name = $('span', $info); $name.text($tab.text()); $info.show(); } }); $('#verticalTab').easyResponsiveTabs({ type: 'vertical', width: 'auto', fit: true }); }); var amountScrolled = 300; $('a.back-to-top').hide(); $(window).scroll(function() { if ($(window).scrollTop() > amountScrolled) { $('a.back-to-top').fadeIn('slow'); } else { $('a.back-to-top').fadeOut('slow'); } }); $('a.back-to-top').click(function() { $('html, body').animate({ scrollTop: 0 }, 700); return false; }); /*var track_page = 1; //track user scroll as page number, right now page number is 1 var loading = false; //prevents multiple loads load_contents(track_page); //initial content load $(window).scroll(function() { //detect page scroll if ($(window).scrollTop() + $(window).height() >= $(document).height()) { //if user scrolled to bottom of the page track_page++; //page number increment load_contents(track_page); //load content } });*/ $('.showpopupform a').click(function(event){ if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { event.preventDefault(); } else { event.preventDefault(); $(".fancybox").removeAttr('href'); } }); $('#GoogleMap').click(function () { $('#GoogleMap iframe').css("pointer-events", "auto"); }); $( '#GoogleMap').mouseleave(function() { $('#GoogleMap iframe').css("pointer-events", "none"); }); $( ".checkIMG" ).hide(); // $('.LEDIMG input[type="radio"]').click(function(){ // $( ".checkIMG" ).hide(); // if($("input[name='group']:checked")){ // $(this).closest('.LEDIMG').find('.checkIMG').show(); // } // }); $('.LEDGrid input[type="radio"]').change(function(){ if($("input[name='group']:checked")){ $(this).closest('.tab-pane').find('.checkIMG').hide(); $(this).closest('.LEDIMG').find('.checkIMG').show(); } });