PATH:
home
/
lab2454c
/
sothebankuab.com
/
wp-content
/
plugins
/
bdthemes-element-pack-lite
/
assets
/
js
/
widgets
( function( $, elementor ) { 'use strict'; var widgetSimpleContactForm = function( $scope, $ ) { var $contactForm = $scope.find('.bdt-contact-form .without-recaptcha'); if ( ! $contactForm.length ) { return; } $contactForm.submit(function(){ sendContactForm($contactForm); return false; }); return false; }; function sendContactForm($contactForm) { var langStr = window.ElementPackConfig.contact_form; $.ajax({ url:$contactForm.attr('action'), type:'POST', data:$contactForm.serialize(), beforeSend:function(){ bdtUIkit.notification({message: '<div bdt-spinner></div> ' + langStr.sending_msg, timeout: false, status: 'primary'}); }, success:function(data){ bdtUIkit.notification.closeAll(); bdtUIkit.notification({message: data}); //$contactForm[0].reset(); } }); return false; } // google invisible captcha function elementPackGIC() { console.log('from epGIC'); var langStr = window.ElementPackConfig.contact_form; return new Promise(function(resolve, reject) { if (grecaptcha === undefined) { bdtUIkit.notification({message: '<div bdt-spinner></div> ' + langStr.captcha_nd, timeout: false, status: 'warning'}); reject(); } var response = grecaptcha.getResponse(); if (!response) { bdtUIkit.notification({message: '<div bdt-spinner></div> ' + langStr.captcha_nr, timeout: false, status: 'warning'}); reject(); } var $contactForm = $('textarea.g-recaptcha-response').filter(function () { return $(this).val() === response; }).closest('form.bdt-contact-form-form'); var contactFormAction = $contactForm.attr('action'); if(contactFormAction && contactFormAction !== ''){ sendContactForm($contactForm); } else { console.log($contactForm); } grecaptcha.reset(); }); //end promise } //Contact form recaptcha callback, if needed window.elementPackGICCB = elementPackGIC; jQuery(window).on('elementor/frontend/init', function() { elementorFrontend.hooks.addAction( 'frontend/element_ready/bdt-contact-form.default', widgetSimpleContactForm ); }); }( jQuery, window.elementorFrontend ) );
[-] ep-step-flow.js
[edit]
[-] ep-tutor-lms.min.js
[edit]
[-] ep-business-hours.js
[edit]
[-] ep-step-flow.min.js
[edit]
[-] ep-logo-grid.js
[edit]
[-] ep-accordion.min.js
[edit]
[-] ep-contact-form.min.js
[edit]
[-] ep-scroll-button.min.js
[edit]
[-] ep-image-accordion.js
[edit]
[+]
..
[-] ep-toggle.min.js
[edit]
[-] ep-image-compare.js
[edit]
[-] ep-contact-form.js
[edit]
[-] ep-image-accordion.min.js
[edit]
[-] ep-image-magnifier.min.js
[edit]
[-] ep-cookie-consent.min.js
[edit]
[-] ep-progress-pie.js
[edit]
[-] ep-logo-grid.min.js
[edit]
[-] ep-accordion.js
[edit]
[-] ep-toggle.js
[edit]
[-] ep-image-compare.min.js
[edit]
[-] ep-tutor-lms.js
[edit]
[-] ep-progress-pie.min.js
[edit]
[-] ep-slider.min.js
[edit]
[-] ep-image-magnifier.js
[edit]
[-] ep-cookie-consent.js
[edit]
[-] ep-panel-slider.js
[edit]
[-] ep-scroll-button.js
[edit]
[-] ep-slider.js
[edit]
[-] ep-panel-slider.min.js
[edit]
[-] ep-business-hours.min.js
[edit]