PageSourceSearch

https://www.enbrel.com/-/media/Base-Themes/NG-Amgen-Google-Tag-Manager/Scripts/GTMinlineScriptCL.js

js enbrel.com collected 2026-09-24 19:50:23 UTC 5,426 bytes, 193 lines download raw bytes

1$(document).ready(function(){
2     /* ---- EnbrelPro---- */
3	/*Top Navigation - GTM */
4	$('.gtm-topNavCl').click(function(){
5		if(typeof(trackGTM_topNav) !== 'undefined'){
6			if ($.isFunction(trackGTM_topNav))
7			{		
8				var topNavName = $(this).attr('menu-name');
9				var menuType = $(this).attr('menu-type');
10				trackGTM_topNav(topNavName,menuType);	
11			}
12		}		
13	}); 
14	  
15	/*Header Navigation - GTM */
16	$('.gtm-header').click(function(){
17		if(typeof(trackGTM_headerNav) !== 'undefined'){
18			if ($.isFunction(trackGTM_headerNav))
19				{		
20					var headNavName = $(this).attr('menu-name');
21					var menuType = $(this).attr('menu-type');
22					var clickType=$(this).attr('click-type');
23					if(clickType!=undefined)
24					{
25						trackGTM_headerNav(headNavName,menuType,clickType);
26					}
27					else
28					{	
29						trackGTM_headerNav(headNavName,menuType);
30					}
31				}
32		}		
33	}); 
34	
35	
36	/*Accordion - GTM */
37	$('.quantum-accordion__item-header').click(function(){
38		if(typeof(trackGTM_inPageNav) !== 'undefined'){
39			if ($.isFunction(trackGTM_inPageNav) ) 
40			{
41				if( $(this).closest('.quantum-accordion__item--open').length) {	
42					var clickAction = $('.gtm-acc-open').attr('click-action');
43					var contentName = $(this).closest('.quantum-accordion__item--open').find('.gtm-acc-open').attr('content-name');
44					var contentPosition = $('.gtm-acc-open').attr('content-position');
45					var toolName = $('.gtm-acc-open').attr('tool-name');
46					trackGTM_inPageNav(clickAction,contentName,contentPosition,toolName);				
47				}
48				else{				
49					var clickAction = $('.gtm-acc-close').attr('click-action');
50					var contentName = $(this).closest('.quantum-accordion__item').find('.gtm-acc-close').attr('content-name');
51					var contentPosition = $('.gtm-acc-close').attr('content-position');
52					var toolName = $('.gtm-acc-close').attr('tool-name');				
53					trackGTM_inPageNav(clickAction,contentName,contentPosition,toolName);
54				}
55			}
56		}
57	}); 
58	
59	/*InPageNav - GTM*/
60	$('.gtm-inPageNavCl').click(function(){
61		if(typeof(trackGTM_inPageNav) !== 'undefined'){
62			if ($.isFunction(trackGTM_inPageNav))
63			{
64				var clickAction = $(this).attr('click-action');
65				var contentName = $(this).attr('content-name');
66				var contentPosition = $(this).attr('content-position');
67				var toolName = $(this).attr('tool-name');
68				trackGTM_inPageNav(clickAction,contentName,contentPosition,toolName);
69			}
70		}		
71	}); 
72	
73	
74	/*Caurousel - GTM*/
75	$('.gtm-caurousel').click(function(){
76		if(typeof(trackGTM_carousel) !== 'undefined'){
77			if ($.isFunction(trackGTM_carousel))
78			{
79				var clickAction = $(this).attr('clickaction');
80				var contentName = $(this).attr("contentName");
81				var contentPosition = $(this).attr("contentposition");
82				
83				trackGTM_carousel(clickAction,contentName,contentPosition);
84			}
85		}		
86	}); 
87	
88	/*Tabs - GTM*/
89	$('.quantum-tabs__label-text').click(function(){
90		if(typeof(trackGTM_tabs) !== 'undefined'){
91			if ($.isFunction(trackGTM_tabs))
92			{
93			var topicName=	window.location.href.split('?')[0].split('/').slice(-1)[0]
94				var contentName = $(this).attr('data-click-text');
95				
96				
97				trackGTM_tabs(contentName,topicName);
98			}
99		}		
100	}); 
101	
102		
103	/*ModalPopupOpen - GTM*/
104	$('.model-pop-up-open').click(function(){
105		if(typeof(trackGTM_modalPopupOpen) !== 'undefined'){
106			if ($.isFunction(trackGTM_modalPopupOpen))
107			{
108				if($('.quantum-modal--visible .vd-title').length>0){
109					
110				var title=$('.quantum-modal--visible .vd-title').html()
111						
112				
113				trackGTM_modalPopupOpen(title);
114				}
115			}
116		}		
117	}); 
118	
119	
120	
121	/*Footer Navigation - GTM*/
122	$('.gtm-footerCl').click(function(){
123		if(typeof(trackGTM_footerNav) !== 'undefined'){
124			if ($.isFunction(trackGTM_footerNav))
125			{
126				var footerNavName = $(this).attr('menu-name');
127				var menuType = $(this).attr('menu-type');
128				trackGTM_footerNav(footerNavName,menuType);
129			}
130		}		
131	}); 
132	
133	/*Quick Links Navigation - GTM*/
134	$('.gtm-QuickLinksCl').click(function(){
135		if(typeof(trackGTM_qlNav) !== 'undefined'){
136			if ($.isFunction(trackGTM_qlNav))
137			{
138				var footerNavName = $(this).attr('menu-name');
139				var menuType = $(this).attr('menu-type');
140				trackGTM_qlNav(footerNavName,menuType);
141			}
142		}		
143	});
144	
145	/*Error-Page - GTM*/
146	if($('body.page-error').length)
147	{
148		if(typeof(trackGTM_errorPage) !== 'undefined'){
149			if ($.isFunction(trackGTM_errorPage))
150			{
151				var errorCode = $('.page-error').attr('http-code');		
152				trackGTM_errorPage(errorCode);			
153			}
154		}			
155	}
156	
157	/*PhoneNumber - GTM*/
158	$('.gtm-phoneNumber').click(function(){
159		if(typeof(trackGTM_phoneNumber) !== 'undefined'){
160			if ($.isFunction(trackGTM_phoneNumber))
161			{
162				trackGTM_phoneNumber();
163			}
164		}		
165	}); 
166	
167	/* HomePage Dropdown - GTM */
168	$('.gtm-dropDown').change(function(){
169		if(typeof(trackGTM_dropDown) !== 'undefined'){
170			if ($.isFunction(trackGTM_dropDown))
171			{
172				
173				var cancerType = $('option:selected', this).attr('cancer-type');		
174				trackGTM_dropDown(cancerType);
175			}
176		}		
177	}); 
178	
179	
180	/* Form Start - GTM */
181	
182	$('#signupForm').one('click', function() {
183		var formid = $(this).attr('id');
184		
185		if(typeof(trackGTM_formStart) !== 'undefined'){
186			if ($.isFunction(trackGTM_formStart))
187			{								
188				trackGTM_formStart(formid);
189			}
190		}
191	});
192		
193})	

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.