EDI Optcenter
// ------------------------------
// Begin: under maintenance window functions
// ------------------------------
// validate form
var validator = $("#LogIn").validate({
rules: {
user: {
required: true
},
pass: {
required: true
}
},
messages: {
user: "Please enter a your username",
pass: "Please enter a password"
}
});
// clear errors when form is reset
$("#ResetBtn").click(function () {
validator.resetForm();
});
// ------------------------------
// Begin: ad functions
// ------------------------------
// Choose which ads should display
var AdCount = 2; // Number of ads available
var VisibleAdLimit = 2; // Max number of ads to display
var VisibleAdIndexes = [];
while (VisibleAdIndexes.length < VisibleAdLimit) {
var index = Math.round(Math.random() * (AdCount - 1)) + 1;
if (VisibleAdIndexes.indexOf(index) === -1) {
VisibleAdIndexes.push(index);
$('ul.ads li:nth-child(' + index + ')').addClass('visible');
}
}
The EDI OptCenter is available to all customers and partners of EDI Options.
Simply email us at [javascript protected email address] to request credentials and get started today.