Logo – blue

Kontakt

Kontaktirajte nas

'; $('button#sendContactForm').on('click', function(e) { e.preventDefault(); $('div.formRSP').html(''); var NAME = $('input[name=NAME]').val(); var EMAIL = $('input[name=EMAIL]').val(); var COMPANY = $('input[name=COMPANY]').val(); var FUNCTION = $('input[name=FUNCTION]').val(); var SUBJECT = $('input[name=SUBJECT]').val(); var MSG = $('textarea[name=MSG]').val(); if (!NAME || 0 === NAME.length) { $('input[name=NAME]').removeClass('regular'); $('input[name=NAME]').addClass('required'); } else { $('input[name=NAME]').removeClass('required'); $('input[name=NAME]').addClass('regular'); } var emailRegex = new RegExp(/^([\w\.\-]+)@([\w\-]+)((\.(\w){2,3})+)$/i); var valid = emailRegex.test(EMAIL); if (!valid) { $('input[name=EMAIL]').removeClass('regular'); $('input[name=EMAIL]').addClass('required'); } else { $('input[name=EMAIL]').removeClass('required'); $('input[name=EMAIL]').addClass('regular'); } if (!MSG || 0 === MSG.length) { $('textarea[name=MSG]').removeClass('regular'); $('textarea[name=MSG]').addClass('required'); } else { $('textarea[name=MSG]').removeClass('required'); $('textarea[name=MSG]').addClass('regular'); } if ((!valid) || (!NAME || 0 === NAME.length) || (!MSG || 0 === MSG.length)) { e.preventDefault(); } else { if (reCaptchaCode != '') { grecaptcha.ready(function () { grecaptcha.execute(reCaptchaCode, { action: 'submit' }).then(function (token) { var recaptchaResponse = document.getElementById('recaptchaResponse'); recaptchaResponse.value = token; $.ajax({ url: '/kontakt-ob/', type: 'POST', data: { NAME: NAME, EMAIL: EMAIL, COMPANY: COMPANY, FUNCTION: FUNCTION, SUBJECT: SUBJECT, MSG: MSG, token: token }, success: function (rsp) { console.log(rsp); if (rsp == 'ok') { var htmlMSG = '
Vaša poruka je uspešno poslata. Hvala
'; } else { var htmlMSG = '
Došlo je do greške, molimo Vas da pokušate ponovo. Hvala
'; } $('div.formRSP').html(htmlMSG); } }); }); }); } else { $.ajax({ url: '/kontakt-ob/', type: 'POST', data: { NAME: NAME, EMAIL: EMAIL, COMPANY: COMPANY, FUNCTION: FUNCTION, SUBJECT: SUBJECT, MSG: MSG }, success: function (rsp) { console.log(rsp); if (rsp == 'ok') { var htmlMSG = '
Vaša poruka je uspešno poslata. Hvala
'; } else { var htmlMSG = '
Došlo je do greške, molimo Vas da pokušate ponovo. Hvala
'; } $('div.formRSP').html(htmlMSG); } }); } } }); });
http://armyequipment.com/wp-content/uploads/2021/05/header_img_contact.png'; if (headIMG == '') { appendDarkTheme(); } //title position headerTitleOffset(); $( window ).resize(function() { headerTitleOffset(); }); new WOW().init(); });