Interstitial, Insider JavaScript

IMV_Ints.InterstitialInit = function(){ var aan=$('#aan'); var nam=$('#insname'); if(nam){ var rgx = /^[aeiou]/i; if(aan && rgx.test(nam.text()) ){ aan.text('an'); } } }; IMV_Ints.InterstitialEnd = function () { if (IMV_MOBILE && IMV_MOBILE.blnIsMobileDevice){ var lnk = $('#dvYes').attr('href'); $('#dvYes').attr('href',lnk.replace('sec=opt','sec=opt')); } $('#dvNo').click(function () { var id = this.getAttribute('data-id'); $.ajax({ url : 'imvapi/display/insideropt/' + id + '?OptOut=true', type : 'GET', dataType : 'text', contentType : 'application/x-www-form-urlencoded; charset=UTF-8', cache : false, success : function (result, textStatus, jqXHR) { //alert('success!' + textStatus); } }).done(function (data) { //alert('done!') }); IMV_Ints.InterstitialClose(); }); };
Page 1 of 131
Next Page