');
//$('.placeholder-externals').append(includeCSS);
if(!(window.parent.location.href.toUpperCase().contains(cfDomain.toUpperCase() + '/MAKE-PAYMENT') ||
window.parent.location.href.toUpperCase().contains(cfDomain.toUpperCase()+ '/MAKE-PAYMENTBW') ||
window.parent.location.href.toUpperCase().contains(cfDomain.toUpperCase()+ '/BWDISPLAYPASSWORDHINT') ||
window.parent.location.href.toUpperCase().contains(cfDomain.toUpperCase()+ '/BWFORGOTUSERNAME') ||
window.parent.location.href.toUpperCase().contains(cfDomain.toUpperCase()+ '/WWFORGOTUSERNAME') ||
window.parent.location.href.toUpperCase().contains(cfDomain.toUpperCase()+ '/WWDISPLAYPASSWORDHINT')
))
{
//var element=$('.sx_tr_wrapper');
//Synthetix.hide(element);
//element.removeClass('syn_show');
// element.addClass('syn_hide');
$('.placeholder-externals').append(includeJS);
}
else {
$("#getsyn").remove();
}
}
$( document ).ready( function() {
/* Update Main Nav Link Active */
updateActiveNavLink();
/* END Update Main Nav Link Active */
/* Remove "My Profile" cookie on "Sign Out" clicked*/
$( 'a[title="Sign Out"]' ).each( function(e) {
var targetHref = $( this ).attr( 'href' );
$( this ).attr( 'data-href', targetHref ).attr( 'href', 'javascript:void(0)' ).attr( 'title', 'Sign out' ).html( 'Sign out' );
} );
$( 'body' ).on( 'click', 'a[title="Sign out"]', function() {
$.cookie( "FirstTimeLoginRedirect", "0", { domain: cfDomain, path: '/', secure: true } );
$.cookie( "FirstTimeLoginUpdate", "0", { domain: cfDomain, path: '/', secure: true } );
window.location.replace( $( this ).attr( 'data-href' ) );
} );
/* END Remove "My Profile" cookie on "Sign Out" clicked*/
/* Check JV Flag */
var counterFlag = 1;
var flagInterval = setInterval( function() {
var flagJV = $( 'input[type="hidden"][name="flagJV"]' );
if( $( flagJV ).length > 0 ) {
var valFlagJV = $( flagJV ).val();
if( valFlagJV.length > 0 && valFlagJV === '2' ) {
$( 'body' ).addClass( 'page-JV' );
}
counterFlag++;
}
if( counterFlag !== 1 ) {
$( '.layer-page' ).fadeIn( 'fast' );
$( 'body' ).addClass( 'showContent' );
clearInterval( flagInterval );
var isJV = ( valFlagJV === '2' ) ? true : false;
initAskLynn( isJV );
}
}, 1000 );
/* END Check JV Flag */
/* Check for Customer Reference Association */
var counterRefFlag = 1;
var refInterval = setInterval( function() {
var flagRef = $( 'input[type="hidden"][name="flagRef"]' );
if( $( flagRef ).length > 0 ) {
var valFlagRef = $( flagRef ).val();
if( valFlagRef.length > 0 && valFlagRef === 'true' ) {
$( 'body' ).addClass( 'cust-reffered' );
}
counterRefFlag++;
}
if( counterRefFlag !== 1 ) {
clearInterval( refInterval );
}
} );
/* END Check for Customer Reference Association */
/* Toggle Menu Button */
$( '.panel-menubutton a' ).on( 'click', function() {
toggleMobileMenu();
} );
$( window ).resize( function() {
$( 'body' ).removeClass( 'showMenu' );
} );
/* END Toggle Menu Button */
/* Update Custom Radio Check */
updateCustomRadioCheck();
$( '.form-check-label' ).on( 'click', function() {
updateCustomRadioCheck();
} );
/* END Update Custom Radio Check */
/* AJAX Call for all the iFrames */
var contentFrame = $( '.content-frame' );
if( $( contentFrame ).length ) {
var counterCF = 0;
$( 'body' ).addClass( 'showOverlay' );
$( contentFrame ).each( function() {
var element = $( this );
var loadURL = $( element ).attr( 'data-frameorigin' );
$.ajax( {
dataType : 'html',
url : loadURL,
error : function() {},
success : function( response ) {
$( element ).html( '' );
$( response ).appendTo( $( element ) );
counterCF++;
if( counterCF === $( contentFrame ).length ) {
$( '.content-frame .table' ).not( '.table-noDataTable' ).DataTable( {
'language' : {
'lengthMenu' : 'Show _MENU_ Entries', // Length of records text
'search' : '', // Search label text
'searchPlaceholder' : 'Search...', // Search input placeholder
'paginate' : {
previous: "",
next : ""
}
},
'lengthMenu' : [
[ 10, 25, 50, 75, 100, -1 ], // Items in length of records dropdown
[ 10, 25, 50, 75, 100, 'All' ] // Label for the options in length of records dropdown
],
'order' : [], // Disable sort on load
'paging' : true, // Enabling the pagination
'pageLength' : 10, // Number of rows to display on a single page
'pagingType' : 'simple', // Type of pagination - 'Previous' and 'Next' buttons only
'responsive' : true,
} );
$( 'body' ).removeClass( 'showOverlay' );
}
}
} );
} );
}
/* END AJAX Call for all the iFrames */
} );