var opts = { lines: 13, // The number of lines to draw length: 11, // The length of each line width: 5, // The line thickness radius: 17, // The radius of the inner circle corners: 1, // Corner roundness (0..1) rotate: 0, // The rotation offset color: '#FFF', // #rgb or #rrggbb speed: 1, // Rounds per second trail: 60, // Afterglow percentage shadow: false, // Whether to render a shadow hwaccel: false, // Whether to use hardware acceleration className: 'spinner', // The CSS class to assign to the spinner zIndex: 2e9, // The z-index (defaults to 2000000000) top: 'auto', // Top position relative to parent in px left: 'auto' // Left position relative to parent in px }; var overlay; if (navigator.userAgent.match(/IEMobile\/10\.0/)) { var msViewportStyle = document.createElement("style") msViewportStyle.appendChild( document.createTextNode( "@-ms-viewport{width:auto!important}" ) ) document.getElementsByTagName("head")[0].appendChild(msViewportStyle) } $(function() { $.fn.clearForm = function() { return this.each(function() { var type = this.type, tag = this.tagName.toLowerCase(); if (tag == 'form') return $(':input',this).clearForm(); if (type == 'text' || type == 'password' || tag == 'textarea') this.value = ''; else if (type == 'checkbox' || type == 'radio') this.checked = false; else if (tag == 'select') this.selectedIndex = -1; }); }; }); $(document).ready(function() { jQuery('#jelszo').bind('keydown',function(e){ if (e.keyCode == 13) { a_login(); } }); $('a.jsmenu').on('click', function(event){ event.preventDefault(); $('html,body').animate({scrollTop:$(this.hash).offset().top-90}, 900); }); $('[data-toggle=offcanvas]').click(function() { $('.row-offcanvas').toggleClass('active'); }) }); var rootdir = ''; function footercontact_mail() { var nev = $("form[name=footermail] input[name=nev]").val(); var email = $("form[name=footermail] input[name=email]").val(); var tel = $("form[name=footermail] input[name=telefon]").val(); var megjegyzes = $("form[name=footermail] textarea[name=uzenet]").val(); var url = 'ajax/mail_ajax.php'; var pars = 'email='+email+'&nev='+nev+'&telefon='+tel+'&megjegyzes='+megjegyzes; if (nev.length > 3 && email.length > 3) { $.ajax({ type: "POST", url: url, data: pars, success: function(v) { notif({ type: "success", msg: "A levelet elküldtem, hamarosan felvesszük Önnel a kapcsolatot!", position: "center", width: 500, height: 60, timeout: 5600, autohide: true }); } }); return true; } else { bootbox.alert('Nem töltötte ki a mezõket!'); return false; } } function footercontact_mail_fooldal() { var nev = $("form[name=irjonnekunk] input[name=nev]").val(); var email = $("form[name=irjonnekunk] input[name=email]").val(); var tel = $("form[name=irjonnekunk] input[name=telefon]").val(); var megjegyzes = $("form[name=irjonnekunk] textarea[name=szoveg]").val(); var url = 'ajax/mail_ajax.php'; var pars = 'email='+email+'&nev='+nev+'&telefon='+tel+'&megjegyzes='+megjegyzes; if (nev.length > 3 && email.length > 3) { $.ajax({ type: "POST", url: url, data: pars, success: function(v) { notif({ type: "success", msg: "A levelet elküldtem, hamarosan felvesszük Önnel a kapcsolatot!", position: "center", width: 500, height: 60, timeout: 5600, autohide: true }); } }); return true; } else { bootbox.alert('Nem töltötte ki a mezõket!'); return false; } } function irjonnekunkform() { bootbox.dialog({ title: "Kapcsolatfelvétel", message: // '
' + '
' + '
' + '
' + '
' + ' ' + '
' + ' ' + '
' + '
' + '
' + '
' + '
' + ' ' + '
' + ' ' + '
' + '
' + '
' + '
' + '
' + ' ' + '
' + ' ' + '
' + '
' + '
' + '
' + '
' + ' ' + '
' + ' ' + '
' + '
' + '
' + '
', buttons: { default: { label: "Elküldés", className: "btn-elkuldes", callback: footercontact_mail } } } ); } var formurl = "";