Fix: Remove alert

This commit is contained in:
František Musil 2020-04-06 00:45:27 +02:00
parent 3d2ddb1eee
commit 44cdaee77e
2 changed files with 1 additions and 2 deletions

View File

@ -49,7 +49,6 @@
(function () {
$('.mailtoDataFill').each(function () {
alert($(this).data('email').replace('(at)', '@'));
$(this).attr('href', 'mailto:' + $(this).data('email').replace('(at)', '@') + '?subject=Zpráva z webu gamesplit.cz');
});
})();

View File

@ -4,4 +4,4 @@
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-agency/blob/master/LICENSE)
*/
!function(t){"use strict";t('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var a=t(this.hash);if((a=a.length?a:t("[name="+this.hash.slice(1)+"]")).length)return t("html, body").animate({scrollTop:a.offset().top-54},1e3,"easeInOutExpo"),!1}}),t(".js-scroll-trigger").click(function(){t(".navbar-collapse").collapse("hide")}),t("body").scrollspy({target:"#mainNav",offset:56});function a(){100<t("#mainNav").offset().top?(t("#mainNav img").addClass("img-shrink"),t("#mainNav").addClass("navbar-shrink")):(t("#mainNav img").removeClass("img-shrink"),t("#mainNav").removeClass("navbar-shrink"))}a(),t(window).scroll(a),t(".mailtoFill").each(function(){t(this).attr("href","mailto:"+t(this).text().replace("(at)","@")+"?subject=Zpráva z webu gamesplit.cz")}),t(".mailtoDataFill").each(function(){alert(t(this).data("email").replace("(at)","@")),t(this).attr("href","mailto:"+t(this).data("email").replace("(at)","@")+"?subject=Zpráva z webu gamesplit.cz")})}(jQuery);
!function(t){"use strict";t('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var a=t(this.hash);if((a=a.length?a:t("[name="+this.hash.slice(1)+"]")).length)return t("html, body").animate({scrollTop:a.offset().top-54},1e3,"easeInOutExpo"),!1}}),t(".js-scroll-trigger").click(function(){t(".navbar-collapse").collapse("hide")}),t("body").scrollspy({target:"#mainNav",offset:56});function a(){100<t("#mainNav").offset().top?(t("#mainNav img").addClass("img-shrink"),t("#mainNav").addClass("navbar-shrink")):(t("#mainNav img").removeClass("img-shrink"),t("#mainNav").removeClass("navbar-shrink"))}a(),t(window).scroll(a),t(".mailtoFill").each(function(){t(this).attr("href","mailto:"+t(this).text().replace("(at)","@")+"?subject=Zpráva z webu gamesplit.cz")}),t(".mailtoDataFill").each(function(){t(this).attr("href","mailto:"+t(this).data("email").replace("(at)","@")+"?subject=Zpráva z webu gamesplit.cz")})}(jQuery);