Wed Nov 20 2019
Copied to clipboard! Copy reply
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
<style>
  	.tntJoinNow {
  		background: #00457c;
  		color: #FFFFFF !important;
  		text-align: center;
  	}
  	#superfish-3 .tntJoinNowLI {
  		margin-top: 5px !important;
  		width: 95px;
  	}
  </style>
  
  <script>
  	window.console && console.log("HYPO-10 Join Now Dest Test");
  
  	var init = function(){
  		jQuery("#superfish-2").children("li").last()
  			.after('<li><a class="tntJoinNow" href="https://login.asco.org/register?target=https%3A//join.asco.org/user/login&cmpid=aw_mem_join_ascoweb_button_all_11-04-19_jointest" target="_blank">Join Now</a></li>');
  
  		jQuery("#superfish-3").children("li").last().css("width","55px")
  			.after('<li class="tntJoinNowLI"><a class="tntJoinNow" href="https://login.asco.org/register?target=https%3A//join.asco.org/user/login&cmpid=aw_mem_join_ascoweb_button_all_11-04-19_jointest" target="_blank">Join Now</a></li>');
  			
  		jQuery(document).on("click",".tntJoinNow, #superfish-1 a[href*='join.asco.org']",function(){
  			if(jQuery(this).hasClass("tntJoinNow")){
  			_satellite.setVar("testValue","JoinNowLogin");
  			_satellite.track("testMetric");}
  			adobe.target.trackEvent({
  				"mbox": "mboxClickTrack",
  				"params": {
  					"clicked": "joinNow"
  				}
  			});
  		});
  	}
  
  	var jqWaitAttempts = 0;
  	var awaitJQ = function(){
  		if(typeof jQuery !== "function"){
  			if(++jqWaitAttempts < 50){
  				setTimeout(awaitJQ,100);
  			}else{
  				window.console && console.log("jQuery not available");
  			}
  		}else{
  			init();
  		}
  	}
  	awaitJQ();
  </script>