PageSourceSearch

https://gxbank.my/js/popup.js

js gxbank.my collected 2026-10-02 14:56:01 UTC 7,786 bytes, 194 lines download raw bytes

1$('.moomoo-popup-link').click(function(){
2    $('#moomoo-popup').show();
3});
4
5$('#moomoo-popup-stay').click(function(){
6    $('#moomoo-popup').hide();
7});
8
9
10// car insurance popup
11$('.car-insurance-popup-box-link').click(function(e){
12    e.preventDefault();
13    $('#car-insurance-popup-box').data('active-button', {
14        id: $(this).attr('id'),
15    });
16
17    $('#car-insurance-popup-box').show();
18});
19
20$('#car-insurance-popup-stay').click(function(){
21    $('#car-insurance-popup-box').hide();
22});
23
24$('#car-insurance-popup-active').click(function(){
25    const activeButton = $('#car-insurance-popup-box').data('active-button');
26
27    if (activeButton && activeButton.id) {
28        if(activeButton.id == 'car-insurance-pds-popup-box-link'){
29            window.open('https://www.zurich.com.my/-/media/project/zwp/malaysia/docs/insurance-products/product-disclosure-sheets/zgimb-z-driver-pds_eng.pdf?rev=a1a893ce30a047f5b97c46fed79bda8c&hash=47C8D83E1C87F7782A0CE574D10D0277', '_blank');
30        }else if(activeButton.id == 'car-insurance-policy-wording-popup-box-link'){
31            window.open('https://www.zurich.com.my/-/media/project/zwp/malaysia/docs/insurance-products/policy-wordings/zgimb-z-driver-cw_eng.pdf?rev=2deaff4549874d68a901a73d64166f6c&hash=C89C943CC99F161BAAF0EF44A889B47F ', '_blank');
32        }
33    }
34
35    $('#car-insurance-popup-box').hide();
36});
37
38// travel insurance popup
39$('.travel-insurance-popup-box-link').click(function(e){
40    e.preventDefault();
41    $('#travel-insurance-popup-box').data('active-button', {
42        id: $(this).attr('id'),
43    });
44
45    $('#travel-insurance-popup-box').show();
46});
47
48$('#travel-insurance-popup-stay').click(function(){
49    $('#travel-insurance-popup-box').hide();
50});
51
52// Travel Guard Go policy wording, in the language of the page being viewed.
53// BM pages live under /bm/, so the path is what decides. Single definition so
54// the EN/BM check cannot drift between the links that use it.
55function travelPolicyWordingUrl(){
56    return window.location.pathname.includes('/bm/')
57        ? 'https://www.zurich.com.my/-/media/project/zurich-headless/malaysia/docs/insurance-products/policy-wordings/travel-guard-go-policy-wording-bm.pdf'
58        : 'https://www.zurich.com.my/-/media/project/zurich-headless/malaysia/docs/insurance-products/policy-wordings/travel-guard-go-policy-wording-en.pdf';
59}
60
61$('#travel-insurance-popup-active').click(function(){
62    const activeButton = $('#travel-insurance-popup-box').data('active-button');
63
64    if (activeButton && activeButton.id) {
65        if(activeButton.id == 'domestic-plan'){
66            window.open(travelPolicyWordingUrl(), '_blank');
67        }else if(activeButton.id == 'international-basic-plan'){
68            window.open(travelPolicyWordingUrl(), '_blank');
69        }else if(activeButton.id == 'international-standard-plan'){
70            // TODO: replace with the Standard-tier policy wording PDF once available; currently reuses the shared Travel Guard Go document.
71            window.open(travelPolicyWordingUrl(), '_blank');
72        }else if(activeButton.id == 'international-premium-plan'){
73            // TODO: replace with the Premium-tier policy wording PDF once available; currently reuses the shared Travel Guard Go document.
74            window.open(travelPolicyWordingUrl(), '_blank');
75        }else if(activeButton.id == 'domestic-pds'){
76            window.open('https://www.zurich.com.my/-/media/project/zurich-headless/malaysia/docs/insurance-products/product-disclosure-sheets/travel-guard-go-product-disclosure-sheet.pdf', '_blank');
77        }else if(activeButton.id == 'international-pds'){
78            window.open('https://www.zurich.com.my/-/media/project/zurich-headless/malaysia/docs/insurance-products/product-disclosure-sheets/travel-guard-go-product-disclosure-sheet.pdf', '_blank');
79        }else if(activeButton.id == 'travel-pds'){
80            window.open('https://www.zurich.com.my/-/media/project/zurich-headless/malaysia/docs/insurance-products/product-disclosure-sheets/travel-guard-go-product-disclosure-sheet.pdf', '_blank');
81        }else if(activeButton.id == 'international-pw'){
82            window.open(travelPolicyWordingUrl(), '_blank');
83        }else if(activeButton.id == 'domestic-policy'){
84            window.open(travelPolicyWordingUrl(), '_blank');
85        }else if(activeButton.id == 'international-policy'){
86            window.open(travelPolicyWordingUrl(), '_blank');
87        }else if(activeButton.id == 'zurich-portal'){
88            window.open('https://mya.zurich.com.my/Myclaims?_gl=1*nvmoeu*_gcl_aw*R0NMLjE3NDk3MTYwMTIuQ2p3S0NBanc5YW5DQmhBV0Vpd0FxQkotYzFJMHg3Rk5qTVdvQVFZVWNmUkZ1cXhkWE5hMnFFY1NvOW9Ca3NzMV95VlR4a2pzOGRkVk5Sb0N6dThRQXZEX0J3RQ..*_gcl_au*MTg4MjYzNDExNy4xNzQ1NDg1MDcw*_ga*MTUyODA2MDI3MS4xNzM3MzU0NTIz*_ga_77VDJX9TL8*czE3NTAwNzIwNzkkbzYxJGcxJHQxNzUwMDczMTg3JGo2MCRsMCRoMA..', '_blank');
89        }else if(activeButton.id == 'pidm'){
90            window.open('http://www.pidm.gov.my', '_blank');
91        }else if(activeButton.id == 'quote-plan'){
92            window.open('https://web.edge.zurich.com.my/partner/gxbank/travel/quote', '_blank');
93        }
94    }
95
96    $('#travel-insurance-popup-box').hide();
97});
98
99// jaguhniaga popup
100$('.jaguhniaga-popup-box-link').click(function(e){
101    e.preventDefault();
102    $('#jaguhniaga-popup-box').data('active-button', {
103        id: $(this).attr('id'),
104    });
105
106    $('#jaguhniaga-popup-box').show();
107});
108
109$('#jaguhniaga-popup-stay').click(function(){
110    $('#jaguhniaga-popup-box').hide();
111});
112
113$('#jaguhniaga-popup-active').click(function(){
114    const activeButton = $('#jaguhniaga-popup-box').data('active-button');
115
116    if (activeButton && activeButton.id) {
117        if(activeButton.id == 'jaguhniaga-pds-popup-box-link'){
118            window.open('https://merchant.grab.com/en-my/blog/unlock-exclusive-grab-rewards-with-gx-business-banking?ref=blog-our-articles-and-business-tips', '_blank');
119        }else if(activeButton.id == 'jaguhniaga-duit-popup-box-link'){
120            window.open('https://du-it.my/#contact', '_blank');
121        }else if(activeButton.id == 'jaguhniaga-swipey-popup-box-link'){
122            window.open('https://outlook.office.com/book/[email protected]/?ismsaljsauthenabled=true', '_blank');
123        }else if(activeButton.id == 'jaguhniaga-pulselink-popup-box-link'){
124            window.open('https://thepulselink.io/contact/', '_blank');
125        }
126    }
127
128    $('#jaguhniaga-popup-box').hide();
129});
130
131
132
133
134// Prevent accordion from closing when clicking on content area
135
136
137$('.tnc-popup-box-link').click(function(e){
138    e.preventDefault();
139    $('#tnc-popup-box').data('active-button', {
140        id: $(this).attr('id'),
141    });
142
143    $('#tnc-popup-box').show();
144});
145
146$('#tnc-popup-stay').click(function(){
147    $('#tnc-popup-box').hide();
148});
149
150$('#tnc-popup-active').click(function(){
151    const activeButton = $('#tnc-popup-box').data('active-button');
152
153    if (activeButton && activeButton.id) {
154        if(activeButton.id == 'tnc-popup-box-link'){
155            window.open('https://bnm.gov.my/contact-us/BNMLINK', '_blank');
156        }
157    }
158
159    $('#tnc-popup-box').hide();
160});
161
162// notices popup
163$('.notices-popup-box-link').click(function(e){
164    e.preventDefault();
165    $('#notices-popup-box').data('active-button', {
166        id: $(this).attr('id'),
167    });
168
169    $('#notices-popup-box').show();
170});
171
172$('#notices-popup-stay').click(function(){
173    $('#notices-popup-box').hide();
174});
175
176$('#notices-popup-active').click(function(){
177    const activeButton = $('#notices-popup-box').data('active-button');
178
179    if (activeButton && activeButton.id) {
180        if(activeButton.id == 'notices-popup-box-link'){
181            window.open('https://bnm.gov.my/contact-us/BNMLINK', '_blank');
182        }
183    }
184
185    $('#notices-popup-box').hide();
186});
187
188
189
190
191
192
193
194

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.