• Hola a todos. Por favor no se comos solucionar este tema. Mi sitio desarrollado con wordpres cada vez que ingreso al sitio o a laguna pagina me aparece el mensaje
    vivetusalud.com.ar dice:Done!
    Ya revise toda la configuracion del tema que utilizo (DocDirect), pero no encuentro la solucion. gracias

    La página con la que necesito ayuda: [accede para ver el enlace]

Viendo 9 respuestas - 1 de 9 (de 9 total)
  • Moderador LGrusin

    (@lgrusin)

    Revisa los plugins que tienes instalados y activados.

    También sería recomendable que vaciaras el plugin de caché.

    Un saludo

    bien Ok, muchas gracias. pruebo y te aviso. Muchas gracias

    hola, despues de un tiempo que no pude trabajar eneste tema, pude verificar los plugins activados y no resolfi el problema. sigue saliendo el mensaje.

    Esto es una alert de javascript que salta cada vez que abres una página. Al salir en todas las páginas seguramente lo tengas en el footer o en el header de la web. Abre el header.php y el footer.php de tu plantilla y busca un codigo alert si lo encuentras pégalo aquí y te decimos como quitarlo.

    ok, buenisimo, lo busco y te aviso, muchas gracias. estamos en contacto.

    El problema lo tienes en /wp-content/themes/docdirect/js/docdirect_functions.js?ver=3.5, ahí tienes como este código alert('Done!'); que te produce la alerta en cuestión.

    a bien!!!ok, y como lo soluciono para que no aparezca? muchas gracias estamos en contacto

    Pues quitando el código responsable de la alerta, no se me ocurre otra solución. Pero igual es mejor que contactes con el soporte del theme y que lo solucionen ellos; es un problema de un producto de pago, poco podemos hacer desde aquí.

    aqui esta el codigo de alerta

    var loder_html = ‘<div class=”docdirect-loader-wrap”><div class=”docdirect-loader”><div class=”bounce1″></div><div class=”bounce2″></div><div class=”bounce3″></div></div></div>’;

    //Preloader
    jQuery(window).load(function() {
    jQuery(“.preloader-outer”).delay(2000).fadeOut();
    jQuery(“.pins”).delay(1500).fadeOut(“slow”);
    });

    /*————————————–
    COMMING SOON COUNTER
    ————————————–*/
    $(‘#comming-countdown’).countdown({
    date: ’10/5/2017 13:41:59′,
    offset: -100,
    day: ‘Day’,
    days: ‘Days’
    },function () {
    alert(‘Done!’);
    });

    //SVG Inject
    if ($(“.geo-locate-me”).length) {
    $(“.geo-locate-me”).svgInject();
    };

    /*if ($(“.verified-user”).length) {
    $(“.verified-user”).svgInject();
    };*/

    //Toogle Radius Search
    jQuery(document).on(‘click’,’.geodistance’,function(){
    jQuery(‘.geodistance_range’).toggle();
    });
    /*————————————–
    DOCTOR’S GALLERY
    ————————————–*/
    $(“#tg-photosgallery”).owlCarousel({
    autoPlay: true,
    items: 3,
    itemsDesktop: [1199, 3],
    itemsDesktopSmall: [991, 2],
    itemsTabletSmall: [568, 1],
    slideSpeed: 300,
    paginationSpeed: 400,
    pagination: false,
    navigation: true,
    navigationText: [
    “<i class=’tg-prev fa fa-angle-left’></i>”,
    “<i class=’tg-next fa fa-angle-right’></i>”
    ]
    });
    /*————————————–
    PRETTY PHOTO GALLERY
    ————————————–*/
    $(“a[data-rel]”).each(function () {
    $(this).attr(“rel”, $(this).data(“rel”));
    });
    $(“a[data-rel^=’prettyPhoto’]”).prettyPhoto({
    animation_speed: ‘normal’,
    theme: ‘dark_square’,
    slideshow: 3000,
    autoplay_slideshow: false,
    social_tools: false,
    show_title: false /* true/false */
    });

    /*————————————–
    GRAPH
    ————————————–*/

    /*————————————–
    THEME ACCORDION
    ————————————–*/
    $(‘#accordion .tg-panel-heading’).on(‘click’,function () {
    $(‘.tg-panel-heading’).removeClass(‘active’);
    $(this).parents(‘.tg-panel-heading’).addClass(‘active’);
    $(‘.panel’).removeClass(‘active’);
    $(this).parent().addClass(‘active’);
    });

    /*
    * @contact Form
    * @return{}
    */
    jQuery(‘.contact_wrap’).on(‘click’,’.contact_now’,function(e){
    e.preventDefault();
    var $this = jQuery(this);

    var success = $this.parents(‘.form-data’).data(‘success’);
    var error = $this.parents(‘.form-data’).data(‘error’);
    var email = $this.parents(‘.form-data’).data(‘email’);

    var serialize_data = $this.parents(‘.contact_wrap’).find(‘.contact_form’).serialize();
    var dataString = serialize_data+’&success=’+success+’&error=’+error+’&email=’+email+’&action=docdirect_submit_contact’;

    $this.parents(‘.contact_wrap’).find(‘.message_contact’).html(”).hide();
    jQuery($this).append(“<i class=’fa fa-refresh fa-spin’></i>”);
    $this.parents(‘.contact_wrap’).find(‘.message_contact’).removeClass(‘alert-success’);
    $this.parents(‘.contact_wrap’).find(‘.message_contact’).removeClass(‘alert-danger’);

    jQuery.ajax({
    type: “POST”,
    url: scripts_vars.ajaxurl,
    data: dataString,
    dataType:”json”,
    success: function(response) {
    jQuery($this).find(‘i’).remove();
    jQuery(‘.message_contact’).show();
    if( response.type == ‘error’ ) {
    $this.parents(‘.contact_wrap’).find(‘.message_contact’).addClass(‘alert alert-danger’).show();
    $this.parents(‘.contact_wrap’).find(‘.message_contact’).html(response.message);
    } else{
    $this.parents(‘.contact_wrap’).find(‘.contact_form’).get(0).reset();
    $this.parents(‘.contact_wrap’).find(‘.message_contact’).addClass(‘alert alert-success’).show();
    $this.parents(‘.contact_wrap’).find(‘.message_contact’).html(response.message);
    }
    }
    });

    return false;

    });

    /*
    * @make Review
    * @return{}
    */
    jQuery(document).on(‘click’,’.make-review’,function(e){
    e.preventDefault();
    var $this = jQuery(this);

    var serialize_data = $this.parents(‘.form-review’).serialize();
    var dataString = serialize_data+’&action=docdirect_make_review’;

    jQuery(‘.message_contact’).html(”).hide();
    jQuery($this).append(“<i class=’fa fa-refresh fa-spin’></i>”);
    jQuery(‘.message_contact’).removeClass(‘alert-success’);
    jQuery(‘.message_contact’).removeClass(‘alert-danger’);

    jQuery.ajax({
    type: “POST”,
    url: scripts_vars.ajaxurl,
    data: dataString,
    dataType:”json”,
    success: function(response) {
    $this.find(‘i’).remove();
    jQuery(‘.message_contact’).show();
    if( response.type == ‘error’ ) {
    jQuery(‘.message_contact’).addClass(‘alert alert-danger’).show();
    jQuery(‘.message_contact’).html(response.message);
    } else{
    jQuery(‘.message_contact’).addClass(‘alert alert-success’).show();
    jQuery(‘.message_contact’).html(response.message);
    if( response.html == ‘refresh’ ){
    window.location.reload();
    }
    $this.parents(‘.form-review’).find(‘.contact_form’).get(0).reset();

    }
    }
    });

    return false;

    });

    /*————————————–
    SCHEDULE SLIDER
    ————————————–*/
    jQuery(“#tg-schedule-slider”).owlCarousel({
    autoPlay: true,
    items: 1,
    slideSpeed: 300,
    paginationSpeed: 400,
    pagination: false,
    navigation: true,
    navigationText: [
    “<i class=’tg-prev fa fa-angle-left’></i>”,
    “<i class=’tg-next fa fa-angle-right’></i>”
    ]
    });

    /*
    * @contact Form
    * @return{}
    */
    jQuery(‘.doc-contact’).on(‘click’,’.contact_me’,function(e){
    e.preventDefault();
    var $this = jQuery(this);

    var serialize_data = $this.parents(‘.doc-contact’).find(‘.contact_form’).serialize();
    var dataString = serialize_data+’&action=docdirect_submit_me’;
    $this.append(“<i class=’fa fa-refresh fa-spin’></i>”);

    jQuery.ajax({
    type: “POST”,
    url: scripts_vars.ajaxurl,
    data: dataString,
    dataType:”json”,
    success: function(response) {
    $this.find(‘i’).remove();
    jQuery(‘.message_contact’).show();
    if (response.type == ‘success’) {
    jQuery.sticky(response.message, {classList: ‘success’, speed: 200, autoclose: 5000,position: ‘top-right’,});
    $this.parents(‘.doc-contact’).find(‘.contact_form’).get(0).reset();
    } else {
    jQuery.sticky(response.message, {classList: ‘important’, speed: 200, autoclose: 5000});
    }
    }
    });

    return false;

    });

    /*
    * @report User
    * @return{}
    */
    jQuery(‘.doc-claim’).on(‘click’,’.report_now’,function(e){
    e.preventDefault();
    var _this = jQuery(this);

    var serialize_data = jQuery(‘.claim_form’).serialize();
    var dataString = serialize_data+’&action=docdirect_submit_claim’;
    _this.append(“<i class=’fa fa-refresh fa-spin’></i>”);

    jQuery.ajax({
    type: “POST”,
    url: scripts_vars.ajaxurl,
    data: dataString,
    dataType:”json”,
    success: function(response) {
    _this.find(‘i’).remove();
    if (response.type == ‘success’) {
    jQuery.sticky(response.message, {classList: ‘success’, speed: 200, autoclose: 5000,position: ‘top-right’,});
    _this.parents(‘.doc-claim’).find(‘.claim_form’).get(0).reset();
    } else {
    jQuery.sticky(response.message, {classList: ‘important’, speed: 200, autoclose: 5000});
    }
    }
    });

    return false;

    });

    /* —————————————
    rtegistration Ajax
    ————————————— */
    jQuery(‘.do-registration-form’).on(‘click’, ‘.do-register-button’, function (event) {
    event.preventDefault();
    var $this = jQuery(this);
    $this.append(‘<i class=”fa fa-refresh fa-spin”></i>’);
    jQuery(‘.registration-message’).html(”).hide();
    jQuery.ajax({
    type: “POST”,
    url: scripts_vars.ajaxurl,
    data: jQuery(‘.do-registration-form’).serialize() + ‘&action=docdirect_user_registration’,
    dataType: “json”,
    success: function (response) {
    $this.find(‘i.fa-spin’).remove();
    jQuery(‘.registration-message’).show();
    if (response.type == ‘success’) {
    jQuery.sticky(response.message, {classList: ‘success’, speed: 200, autoclose: 5000,position: ‘top-right’,});
    } else {
    jQuery.sticky(response.message, {classList: ‘important’, speed: 200, autoclose: 5000});
    }
    }
    });
    });

    /* —————————————
    Login Ajax
    ————————————— */
    jQuery(‘.do-login-form’).on(‘click’, ‘.do-login-button’, function (event) {
    event.preventDefault();
    var $this = jQuery(this);
    $this.append(‘<i class=”fa fa-refresh fa-spin”></i>’);
    jQuery(‘.login-message’).html(”).hide();
    jQuery.ajax({
    type: “POST”,
    url: scripts_vars.ajaxurl,
    data: jQuery(‘.do-login-form’).serialize() + ‘&action=docdirect_ajax_login’,
    dataType: “json”,
    success: function (response) {
    $this.find(‘i.fa-spin’).remove();
    jQuery(‘.login-message’).show();
    if (response.type == ‘success’) {
    jQuery.sticky(response.message, {classList: ‘success’, speed: 200, autoclose: 5000,position: ‘top-right’,});
    window.location.reload();
    } else {
    jQuery.sticky(response.message, {classList: ‘important’, speed: 200, autoclose: 5000});
    }
    }
    });
    });

    /* —————————————
    Add to favorites
    ————————————— */
    jQuery(document).on(‘click’, ‘.add-to-fav’, function (event) {
    event.preventDefault();

    if( user_status == ‘false’ ){
    jQuery.sticky(fav_message, {classList: ‘important’, speed: 200, autoclose: 7000});
    return false;
    }

    var _this = jQuery(this);
    var wl_id = _this.data(‘wl_id’);
    _this.append(‘<i class=”fa fa-refresh fa-spin”></i>’);
    _this.addClass(‘loading’);

    jQuery.ajax({
    type: “POST”,
    url: scripts_vars.ajaxurl,
    data: ‘wl_id=’+wl_id+’&action=docdirect_update_wishlist’,
    dataType: “json”,
    success: function (response) {
    _this.removeClass(‘loading’);
    _this.find(‘i.fa-spin’).remove();
    jQuery(‘.login-message’).show();
    if (response.type == ‘success’) {
    jQuery.sticky(response.message, {classList: ‘success’, speed: 200, autoclose: 5000,position: ‘top-right’,});
    _this.removeClass(‘tg-like add-to-fav’);
    _this.addClass(‘tg-dislike’);
    } else {
    jQuery.sticky(response.message, {classList: ‘important’, speed: 200, autoclose: 5000});
    }
    }
    });
    });

    /* —————————————
    Add to favorites
    ————————————— */
    jQuery(document).on(‘click’, ‘.remove-wishlist’, function (event) {
    event.preventDefault();
    var _this = jQuery(this);
    var wl_id = _this.data(‘wl_id’);
    _this.append(‘<i class=”fa fa-refresh fa-spin”></i>’);
    _this.addClass(‘loading’);

    jQuery.ajax({
    type: “POST”,
    url: scripts_vars.ajaxurl,
    data: ‘wl_id=’+wl_id+’&action=docdirect_remove_wishlist’,
    dataType: “json”,
    success: function (response) {
    _this.removeClass(‘loading’);
    _this.find(‘i.fa-spin’).remove();

    if (response.type == ‘success’) {
    jQuery.sticky(response.message, {classList: ‘success’, speed: 200, autoclose: 5000,position: ‘top-right’,});
    _this.parents(‘#wishlist-‘+wl_id).remove();
    if( jQuery( ‘.tg-lists .tg-list’ ).length < 1 ){
    jQuery( ‘.tg-lists’ ).html(‘<div class=”tg-list”><p>’+fav_nothing+'</div>’);
    }

    } else {
    jQuery.sticky(response.message, {classList: ‘important’, speed: 200, autoclose: 5000});
    }
    }
    });
    });

    //Rating bars
    try {
    jQuery(‘#tg-userskill’).appear(function () {
    jQuery(‘.tg-skillholder’).each(function () {
    jQuery(this).find(‘.tg-skillbar’).animate({
    width: jQuery(this).attr(‘data-percent’)
    }, 2500);
    });
    });
    } catch (err) {}

    });

    var DocDirectCaptchaCallback = function() {
    grecaptcha.render(‘recaptcha_signin’, {‘sitekey’ : scripts_vars.site_key });
    grecaptcha.render(‘recaptcha_signup’, {‘sitekey’ : scripts_vars.site_key });
    };

    /* ————————————-
    SVG Injector
    ————————————– */

    ;(function($,window,document,undefined){var pluginName=’svgInject’;function Plugin(element,options){this.element=element;this._name=pluginName;this.init();}
    Plugin.prototype={init:function(){$(this.element).css(‘visibility’,’hidden’);this.swapSVG(this.element);},swapSVG:function(el){var imgURL=$(el).attr(‘src’);var imgID=$(el).attr(‘id’);var imgClass=$(el).attr(‘class’);var imgData=$(el).clone(true).data();var dimensions={w:$(el).attr(‘width’),h:$(el).attr(‘height’)};$.get(imgURL,function(data){var svg=$(data).find(‘svg’);if(typeof imgID!==undefined){svg=svg.attr(‘id’,imgID);}
    if(typeof imgClass!==undefined){var cls=(svg.attr(‘class’)!==undefined)?svg.attr(‘class’):”;svg=svg.attr(‘class’,imgClass+’ ‘+cls+’ replaced-svg’);}
    $.each(imgData,function(name,value){svg[0].setAttribute(‘data-‘+name,value);});svg=svg.removeAttr(‘xmlns:a’);var ow=parseFloat(svg.attr(‘width’));var oh=parseFloat(svg.attr(‘height’));if(dimensions.w&&dimensions.h){$(svg).attr(‘width’,dimensions.w);$(svg).attr(‘height’,dimensions.h);}
    else if(dimensions.w){$(svg).attr(‘width’,dimensions.w);$(svg).attr(‘height’,(oh/ow)*dimensions.w);}
    else if(dimensions.h){$(svg).attr(‘height’,dimensions.h);$(svg).attr(‘width’,(ow/oh)*dimensions.h);}
    $(el).replaceWith(svg);var js=new Function(svg.find(‘script’).text());js();});}};$.fn[pluginName]=function(options){return this.each(function(){if(!$.data(this,’plugin_’+pluginName)){$.data(this,’plugin_’+pluginName,new Plugin(this,options));}});};})(jQuery,window,document);

    /* ————————————-
    Map Styles
    ————————————– */
    function docdirect_get_map_styles(style){

    var styles = ”;
    if(style == ‘view_1’){
    var styles = [{“featureType”:”administrative.country”,”elementType”:”geometry”,”stylers”:[{“visibility”:”simplified”},{“hue”:”#ff0000″}]}];
    }else if(style == ‘view_2’){
    var styles = [{“featureType”:”water”,”elementType”:”all”,”stylers”:[{“hue”:”#7fc8ed”},{“saturation”:55},{“lightness”:-6},{“visibility”:”on”}]},{“featureType”:”water”,”elementType”:”labels”,”stylers”:[{“hue”:”#7fc8ed”},{“saturation”:55},{“lightness”:-6},{“visibility”:”off”}]},{“featureType”:”poi.park”,”elementType”:”geometry”,”stylers”:[{“hue”:”#83cead”},{“saturation”:1},{“lightness”:-15},{“visibility”:”on”}]},{“featureType”:”landscape”,”elementType”:”geometry”,”stylers”:[{“hue”:”#f3f4f4″},{“saturation”:-84},{“lightness”:59},{“visibility”:”on”}]},{“featureType”:”landscape”,”elementType”:”labels”,”stylers”:[{“hue”:”#ffffff”},{“saturation”:-100},{“lightness”:100},{“visibility”:”off”}]},{“featureType”:”road”,”elementType”:”geometry”,”stylers”:[{“hue”:”#ffffff”},{“saturation”:-100},{“lightness”:100},{“visibility”:”on”}]},{“featureType”:”road”,”elementType”:”labels”,”stylers”:[{“hue”:”#bbbbbb”},{“saturation”:-100},{“lightness”:26},{“visibility”:”on”}]},{“featureType”:”road.arterial”,”elementType”:”geometry”,”stylers”:[{“hue”:”#ffcc00″},{“saturation”:100},{“lightness”:-35},{“visibility”:”simplified”}]},{“featureType”:”road.highway”,”elementType”:”geometry”,”stylers”:[{“hue”:”#ffcc00″},{“saturation”:100},{“lightness”:-22},{“visibility”:”on”}]},{“featureType”:”poi.school”,”elementType”:”all”,”stylers”:[{“hue”:”#d7e4e4″},{“saturation”:-60},{“lightness”:23},{“visibility”:”on”}]}];
    }else if(style == ‘view_3’){
    var styles = [{“featureType”:”water”,”stylers”:[{“saturation”:43},{“lightness”:-11},{“hue”:”#0088ff”}]},{“featureType”:”road”,”elementType”:”geometry.fill”,”stylers”:[{“hue”:”#ff0000″},{“saturation”:-100},{“lightness”:99}]},{“featureType”:”road”,”elementType”:”geometry.stroke”,”stylers”:[{“color”:”#808080″},{“lightness”:54}]},{“featureType”:”landscape.man_made”,”elementType”:”geometry.fill”,”stylers”:[{“color”:”#ece2d9″}]},{“featureType”:”poi.park”,”elementType”:”geometry.fill”,”stylers”:[{“color”:”#ccdca1″}]},{“featureType”:”road”,”elementType”:”labels.text.fill”,”stylers”:[{“color”:”#767676″}]},{“featureType”:”road”,”elementType”:”labels.text.stroke”,”stylers”:[{“color”:”#ffffff”}]},{“featureType”:”poi”,”stylers”:[{“visibility”:”off”}]},{“featureType”:”landscape.natural”,”elementType”:”geometry.fill”,”stylers”:[{“visibility”:”on”},{“color”:”#b8cb93″}]},{“featureType”:”poi.park”,”stylers”:[{“visibility”:”on”}]},{“featureType”:”poi.sports_complex”,”stylers”:[{“visibility”:”on”}]},{“featureType”:”poi.medical”,”stylers”:[{“visibility”:”on”}]},{“featureType”:”poi.business”,”stylers”:[{“visibility”:”simplified”}]}];

    }else if(style == ‘view_4’){
    var styles = [{“elementType”:”geometry”,”stylers”:[{“hue”:”#ff4400″},{“saturation”:-68},{“lightness”:-4},{“gamma”:0.72}]},{“featureType”:”road”,”elementType”:”labels.icon”},{“featureType”:”landscape.man_made”,”elementType”:”geometry”,”stylers”:[{“hue”:”#0077ff”},{“gamma”:3.1}]},{“featureType”:”water”,”stylers”:[{“hue”:”#00ccff”},{“gamma”:0.44},{“saturation”:-33}]},{“featureType”:”poi.park”,”stylers”:[{“hue”:”#44ff00″},{“saturation”:-23}]},{“featureType”:”water”,”elementType”:”labels.text.fill”,”stylers”:[{“hue”:”#007fff”},{“gamma”:0.77},{“saturation”:65},{“lightness”:99}]},{“featureType”:”water”,”elementType”:”labels.text.stroke”,”stylers”:[{“gamma”:0.11},{“weight”:5.6},{“saturation”:99},{“hue”:”#0091ff”},{“lightness”:-86}]},{“featureType”:”transit.line”,”elementType”:”geometry”,”stylers”:[{“lightness”:-48},{“hue”:”#ff5e00″},{“gamma”:1.2},{“saturation”:-23}]},{“featureType”:”transit”,”elementType”:”labels.text.stroke”,”stylers”:[{“saturation”:-64},{“hue”:”#ff9100″},{“lightness”:16},{“gamma”:0.47},{“weight”:2.7}]}];

    }else if(style == ‘view_5’){
    var styles = [{“featureType”:”water”,”elementType”:”geometry”,”stylers”:[{“color”:”#e9e9e9″},{“lightness”:17}]},{“featureType”:”landscape”,”elementType”:”geometry”,”stylers”:[{“color”:”#f5f5f5″},{“lightness”:20}]},{“featureType”:”road.highway”,”elementType”:”geometry.fill”,”stylers”:[{“color”:”#ffffff”},{“lightness”:17}]},{“featureType”:”road.highway”,”elementType”:”geometry.stroke”,”stylers”:[{“color”:”#ffffff”},{“lightness”:29},{“weight”:0.2}]},{“featureType”:”road.arterial”,”elementType”:”geometry”,”stylers”:[{“color”:”#ffffff”},{“lightness”:18}]},{“featureType”:”road.local”,”elementType”:”geometry”,”stylers”:[{“color”:”#ffffff”},{“lightness”:16}]},{“featureType”:”poi”,”elementType”:”geometry”,”stylers”:[{“color”:”#f5f5f5″},{“lightness”:21}]},{“featureType”:”poi.park”,”elementType”:”geometry”,”stylers”:[{“color”:”#dedede”},{“lightness”:21}]},{“elementType”:”labels.text.stroke”,”stylers”:[{“visibility”:”on”},{“color”:”#ffffff”},{“lightness”:16}]},{“elementType”:”labels.text.fill”,”stylers”:[{“saturation”:36},{“color”:”#333333″},{“lightness”:40}]},{“elementType”:”labels.icon”,”stylers”:[{“visibility”:”off”}]},{“featureType”:”transit”,”elementType”:”geometry”,”stylers”:[{“color”:”#f2f2f2″},{“lightness”:19}]},{“featureType”:”administrative”,”elementType”:”geometry.fill”,”stylers”:[{“color”:”#fefefe”},{“lightness”:20}]},{“featureType”:”administrative”,”elementType”:”geometry.stroke”,”stylers”:[{“color”:”#fefefe”},{“lightness”:17},{“weight”:1.2}]}];

    }else if(style == ‘view_6’){
    var styles = [{“featureType”:”landscape”,”stylers”:[{“hue”:”#FFBB00″},{“saturation”:43.400000000000006},{“lightness”:37.599999999999994},{“gamma”:1}]},{“featureType”:”road.highway”,”stylers”:[{“hue”:”#FFC200″},{“saturation”:-61.8},{“lightness”:45.599999999999994},{“gamma”:1}]},{“featureType”:”road.arterial”,”stylers”:[{“hue”:”#FF0300″},{“saturation”:-100},{“lightness”:51.19999999999999},{“gamma”:1}]},{“featureType”:”road.local”,”stylers”:[{“hue”:”#FF0300″},{“saturation”:-100},{“lightness”:52},{“gamma”:1}]},{“featureType”:”water”,”stylers”:[{“hue”:”#0078FF”},{“saturation”:-13.200000000000003},{“lightness”:2.4000000000000057},{“gamma”:1}]},{“featureType”:”poi”,”stylers”:[{“hue”:”#00FF6A”},{“saturation”:-1.0989010989011234},{“lightness”:11.200000000000017},{“gamma”:1}]}];
    } else{
    var styles = [{“featureType”:”administrative.country”,”elementType”:”geometry”,”stylers”:[{“visibility”:”simplified”},{“hue”:”#ff0000″}]}];
    }
    return styles;
    }

    /* ————————————-
    Validate Amount
    ————————————– */
    function validateAmount(_this) {
    if (isNaN(jQuery.trim(jQuery(_this).val()))) {
    jQuery(_this).val(“”);

    } else {
    var amt = jQuery(_this).val();
    if (amt != ”) {
    if (amt.length > 16) {
    amt = amt.substr(0, 16);
    jQuery(_this).val(amt);
    }
    //amount = amt;
    return true;
    } else {
    //amount = gloAmount;
    return true;
    }
    }
    }

    /* ————————————-
    Init Full Width Sections
    ————————————– */
    builder_full_width_section(); //Init Sections
    var $ = window.jQuery;
    $(window).off(“resize.sectionSettings”).on(“resize.sectionSettings”, builder_full_width_section);
    function builder_full_width_section() {
    var $sections = jQuery(‘.main-page-wrapper .stretch_section’);

    jQuery.each($sections, function (key, item) {
    var _sec = jQuery(this);
    var _sec_full = _sec.next(“.section-current-width”);
    _sec_full.length || (_sec_full = _sec.parent().next(“.section-current-width”));

    var _sec_margin_left = parseInt(_sec.css(“margin-left”), 10);
    var _sec_margin_right = parseInt(_sec.css(“margin-right”), 10);
    var offset = 0 – _sec_full.offset().left – _sec_margin_left;
    var width = jQuery(window).width();

    if (_sec.css({
    position: “relative”,
    left: offset,
    “box-sizing”: “border-box”,
    width: jQuery(window).width()
    }), !_sec.hasClass(“stretch_data”)) {

    var padding = -1 * offset;

    0 > padding && (padding = 0);
    var paddingRight = width – padding – _sec_full.width() + _sec_margin_left + _sec_margin_right;
    0 > paddingRight && (paddingRight = 0), _sec.css({
    “padding-left”: padding + “px”,
    “padding-right”: paddingRight + “px”
    })
    }
    });
    }

    /**
    * Mega Menu
    */
    jQuery(function ($) {

    function hoverIn() {
    var a = $(this);
    var nav = a.closest(‘.tg-navigation’);
    var mega = a.find(‘.mega-menu’);
    var offset = rightSide(nav) – leftSide(a);
    mega.width(Math.min(rightSide(nav), columns(mega)*325));
    mega.css(‘left’, Math.min(0, offset – mega.width()));
    }

    function hoverOut() {
    }

    function columns(mega) {
    var columns = 0;
    mega.children(‘.mega-menu-row’).each(function () {
    columns = Math.max(columns, $(this).children(‘.mega-menu-col’).length);
    });
    return columns;
    }

    function leftSide(elem) {
    return elem.offset().left;
    }

    function rightSide(elem) {
    return elem.offset().left + elem.width();
    }

    $(‘.tg-navigation .menu-item-has-mega-menu’).hover(hoverIn, hoverOut);

    });

    /* ————————————-
    Form Serilization
    ————————————– */
    // Serialize Function
    $.fn.serializeObject=function(){“use strict”;var a={},b=function(b,c){var d=a[c.name];”undefined”!=typeof d&&d!==null?$.isArray(d)?d.push(c.value):a[c.name]=[d,c.value]:a[c.name]=c.value};return $.each(this.serializeArray(),b),a};

    lo quito pero no soluciono el problema…

    si alguien mas sabe que puedo hacer…le agadezco

Viendo 9 respuestas - 1 de 9 (de 9 total)
  • El debate ‘Mensaje: Done!’ está cerrado a nuevas respuestas.