JSFiddle - React, Tailwind, and code Playground

by vaibhav saxena

JavaScript

"use strict";

var infoEdge = infoEdge || {};


infoEdge.contactUs = function() {

    var $ = jQuery.noConflict(),
        oSectionConfiguration = {
            nameErrorMsg: '< placeholder > is not a valid name. please enter a valid name',
            emailErrorMsg: '< placeholder > is not a valid email id. please enter a valid email Id.',
            phoneErrorMsg: '< placeholder > is not a valid phone number. please enter a valid phone number with 10 digits.',
            nameErrorEmptyMsg: 'Please enter your name',
            emailErrorEmptyMsg: 'Please enter your email',
            phoneErrorEmptyMsg: 'Please enter valid phone number with 10 digits',
            formSubmissionErrMsg: 'Please fill all required fields',
            formSubmissionSuccessMsg: 'Form submitted successfully'
        },
        showSelectedPage = function() {


            var childContainer = $('.childContainer'),
                parentFacets = $(".parentFacets");

            $(".parentFacets").on('click', 'li', function(event) {

                if (!!event.bubbles) {
                    event.stopPropagation();
                    if (!$(this).hasClass('active')) {
                        $(this).parents().eq(0).find('.active').removeClass('active').addClass('inActive');
                        $(this).addClass('active').removeClass('inActive');
                        $("#reportName").html($(this).html());
                        var activeContainer = $(this).attr('class').replace('active', '').replace('unLoaded', '').replace('loaded', '').trim();

                        if ($(this).hasClass('unLoaded')) {
                            switch (activeContainer) {
                                case "assetTransfer":
                                    console.log('asset and transfer loaded');
                                    $(this).removeClass('unLoaded');
                                    break;
                            }
                        }
                   ...