$(document).ready(function() { $('#popup_rewards').on('shown.bs.modal', function(){ $('.rewards_tabs li:eq(0)').remove(); // $('#reward-content').removeClass('active'); // $('#reward-content').removeClass('show'); // $('.status_item').remove(); $('#wallet-tab').click(); // $('.reward-body-container h5').text('Rewards'); }); $('#popup_upload_receipt').on('shown.bs.modal', function(){ $('.challenge_item_description').text('Upload receipt to gain chance to spin and win sure-win prizes'); // $('#popup_upload_receipt-upload-btn-text').text('Upload Receipt'); $('#cropper-editor h5').text('Crop Your image to its Edges'); $('#cropper-preview h5').text('Click Confirm to Submit Image'); $('.status_item h5').text('Click Confirm to Submit Image'); }); // $('label[for="signup-name-input"]').text('Name'); // $('label[for="signup-mobile-input"]').text('Mobile Number'); // $('label[for="signup-email-input"]').text('Email'); // $('label[for="signup-dob-input"]').text('Date of Birth'); // $('#btn-signup').text('Get Started'); // $('p.text-center.mt-5').contents().filter(function() { // return this.nodeType === 3 && this.nodeValue.includes('Sudah mempunyai akaun?'); // }).each(function() { // this.nodeValue = this.nodeValue.replace('Sudah mempunyai akaun?', 'Already have an account?'); // }); // $('p.text-center.mt-5 a').text('Login here'); // $('.text-bold.text-center').contents().filter(function () { // return this.nodeType === 3 && this.nodeValue.includes('penyertaan cabutan bertuah'); // }).each(function () { // this.nodeValue = this.nodeValue.replace('penyertaan cabutan bertuah', 'Spin chance'); // }); // $('span[name="reward_point"]').closest('div').remove(); // $('.main-game-component-cta button').text('Spin'); $('.user_name').parent().css('color', 'white'); // const ua = navigator.userAgent || navigator.vendor || window.opera; // $('#btn-signup').text(ua); // console.log($('#btn-signup').text(isMessengerBrowser())); // function isMessengerBrowser() { // const ua = navigator.userAgent || navigator.vendor || window.opera; // return /Messenger|FBAN|FBAV/i.test(ua); // } });