×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: bejoy balan
Added: Mar 23, 2021 4:30 AM
Views: 4679
Tags: no tags
  1. <script>
  2.   var myVar;
  3.   function displayFrontline(){
  4.   var m = document.getElementById("idmeVerify-wrapper");
  5.   var img = "<img style='position:relative; bottom:-15px;padding-left:5px;' src='https://images.superatv.com/frontline5.png' alt='Military, First Responders and Nurses get 5% discount on all orders'/>";
  6.  
  7.   var header = "<span style='font-family:Roboto; font-weight:medium; font-size:18pt; color:#444444;'>SIGNUP FOR THE"+img+" DISCOUNT</span>";
  8. //alert(m);
  9.   if(m.innerHTML.indexOf('frontline5.png') == -1)
  10.   {
  11.   m.insertAdjacentHTML('afterbegin', header);
  12.   }
  13.   }
  14.    myVar = setTimeout(displayFrontline, 1000);
  15. </script>