We call you

Contact us

jQuery(document).ready(function( $ ) {

setTimeout(function(){
// custom code

if(typeof Marionette !== ‘undefined’) {
var mySubmitController = Marionette.Object.extend( {
initialize: function() {
// init listener
this.listenTo( Backbone.Radio.channel( ‘forms’ ), ‘view:show’, this.initAction);
// field change listener
this.listenTo( Backbone.Radio.channel( ‘fields’ ), ‘change:modelValue’, this.valueChanged);
// submit listener
this.listenTo( Backbone.Radio.channel( ‘forms’ ), ‘submit:response’, this.actionSubmit );
},

// init action
initAction: function() {
console.log(“init”);
},

// input update action
valueChanged: function(model) {
console.log(“update”);

var cadena = $(“#nf-field-44”).val().toLowerCase();

if (cadena.indexOf(“@gmail”) > -1 || cadena.indexOf(“@yahoo”) > -1 || cadena.indexOf(“@hotmail”) > -1 )
{
$(“#nf-field-44-wrap”).removeClass(“nf-pass”);
$(“#nf-field-44-wrap”).addClass(“nf-fail”);
$(“#nf-field-44-wrap”).addClass(“nf-error”);
$(“#nf-error-44 .nf-error-msg”).remove();
$(“#nf-error-44”).append(“

Enter a Corporate email address..

“);
$(“#nf-field-50-wrap”).addClass(“dsb-btn”);
}
else
{
$(“#nf-field-44-wrap”).removeClass(“nf-fail”);
$(“#nf-field-44-wrap”).removeClass(“nf-error”);
$(“#nf-error-44 .corporate”).remove();
if ($(“#nf-field-45”).val() > 600000000 && $(“#nf-field-45”).val() 600000000 && $(“#nf-field-45”).val() -1 || cadena.indexOf(“@yahoo”) > -1 || cadena.indexOf(“@hotmail”) > -1 )
{
$(“#nf-field-50-wrap”).addClass(“dsb-btn”);
}
}
else{
if(!$(“#nf-field-45”).val() == “”)
{
$(“#nf-field-50-wrap”).addClass(“dsb-btn”);
$(“#nf-field-45-wrap”).removeClass(“nf-pass”);
$(“#nf-field-45-wrap”).addClass(“nf-fail”);
$(“#nf-field-45-wrap”).addClass(“nf-error”);
$(“#nf-error-45 .nf-error-msg”).remove();
$(“#nf-error-45”).append(“

The number is not correct.

“);
}
}

},

// submit action
actionSubmit: function( response ) {
// handled via php

console.log(“submit”);
},
});

// initialise listening controller for ninja form
new mySubmitController();
}

}, 3000);

if(typeof Marionette !== ‘undefined’) {
var mySubmitController = Marionette.Object.extend( {
initialize: function() {
// init listener
this.listenTo( Backbone.Radio.channel( ‘forms’ ), ‘view:show’, this.initAction);
// field change listener
this.listenTo( Backbone.Radio.channel( ‘fields’ ), ‘change:modelValue’, this.valueChanged);
// submit listener
this.listenTo( Backbone.Radio.channel( ‘forms’ ), ‘submit:response’, this.actionSubmit );
},

// init action
initAction: function() {
console.log(“init”);
},

// input update action
valueChanged: function(model) {
console.log(“update”);

var cadena = $(“#nf-field-44”).val().toLowerCase();

if (cadena.indexOf(“@gmail”) > -1 || cadena.indexOf(“@yahoo”) > -1 || cadena.indexOf(“@hotmail”) > -1 )
{
$(“#nf-field-44-wrap”).removeClass(“nf-pass”);
$(“#nf-field-44-wrap”).addClass(“nf-fail”);
$(“#nf-field-44-wrap”).addClass(“nf-error”);
$(“#nf-error-44 .nf-error-msg”).remove();
$(“#nf-error-44”).append(“

Enter a Corporate email address..

“);
$(“#nf-field-50-wrap”).addClass(“dsb-btn”);
}
else
{
$(“#nf-field-44-wrap”).removeClass(“nf-fail”);
$(“#nf-field-44-wrap”).removeClass(“nf-error”);
$(“#nf-error-44 .corporate”).remove();
if ($(“#nf-field-45”).val() > 600000000 && $(“#nf-field-45”).val() 600000000 && $(“#nf-field-45”).val() -1 || cadena.indexOf(“@yahoo”) > -1 || cadena.indexOf(“@hotmail”) > -1 )
{
$(“#nf-field-50-wrap”).addClass(“dsb-btn”);
}
}
else{
if(!$(“#nf-field-45”).val() == “”)
{
$(“#nf-field-50-wrap”).addClass(“dsb-btn”);
$(“#nf-field-45-wrap”).removeClass(“nf-pass”);
$(“#nf-field-45-wrap”).addClass(“nf-fail”);
$(“#nf-field-45-wrap”).addClass(“nf-error”);
$(“#nf-error-45 .nf-error-msg”).remove();
$(“#nf-error-45”).append(“

The number is not correct.

“);
}
}

},

// submit action
actionSubmit: function( response ) {
// handled via php

console.log(“submit”);
},
});

// initialise listening controller for ninja form
new mySubmitController();
}

}, 3000);

////
//

});

////

// Cache selectors
var topMenu = jQuery(“#nav-menu-container”),
topMenuHeight = topMenu.outerHeight()+25,
// All list items
menuItems = topMenu.find(“a”),
// Anchors corresponding to menu items
scrollItems = menuItems.map(function(){
var item = jQuery(jQuery(this).attr(“href”));
if (item.length) { return item; }
});

// Bind to scroll
jQuery(window).scroll(function(){
// Get container scroll position
var fromTop = jQuery(this).scrollTop()+topMenuHeight;

// Get id of current scroll item
var cur = scrollItems.map(function(){
if (jQuery(this).offset().top < fromTop)
return this;
});
// Get the id of the current element
cur = cur[cur.length-1];
var id = cur && cur.length ? cur[0].id : "";
// Set/remove active class
menuItems.parent().removeClass("menu-active").end().filter("[href='#"+id+"']").parent().addClass("menu-active");
});

Our offices

AAA

Madrid

Avenida de la Albufera, 321
28031 – Madrid – España
Tel. +34 91 385 48 89
Fax.+34 91 332 46 23
madrid@quodem.com