//$1 as an alias instead of $ / jQuery var $1 = jQuery.noConflict(); $1( document ).ready(function() { //evitar bg blanco anterior al diente vectorial $1( '.remove-bg' ).removeClass( 'vc_row-fluid' ); $1( '.remove-bg' ).removeClass( 'vc_row' ); $1( '#footer-widgets' ).prepend('
'); $1( '#footer-widgets' ).append('

Escríbanos al correo

'); $1( '#cirugia-toggle, #toggle-header, #cirugia-otras' ).hide(); $1( '.card-container-right .card-container a' ).remove(); $1('.wpb_tabs_nav li a').click(function() { if($1(this).text() === "Cirugía Oral") { $1( '#cirugia-toggle, #toggle-header, #cirugia-otras, #implan-cita' ).hide(); } else { $1( '#cirugia-toggle, #toggle-header, #cirugia-otras, #implan-cita' ).show(); } }); $1('.continue-reading').text('Leer Más'); //delay setTimeout( function() { $1( '.card-container' ).css('opacity', '1'); }, 1000); $1(function() { var timer_id; var $window = $1(window); var width = $window.width(); var margincalculation = 0; $1(window).resize(function() { clearTimeout(timer_id); timer_id = setTimeout(function() { if ( width != $window.width() && $window.width() > 1930 ) { width = $window.width(); margincalculation = (width - 1930) * 0.52; $1( '.row' ).css( 'margin-left',margincalculation+'px' ); } else { $1( '.row' ).css( 'margin-left', 0 ); } }, 300); }); setTimeout( function() { if ( width > 1930 ) { width = $window.width(); margincalculation = (width - 1930) * 0.52; $1( '.row' ).css( 'margin-left',margincalculation+'px' ); } }, 900); }); });