Skip to content

Instantly share code, notes, and snippets.

@parweb
Created April 27, 2020 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parweb/53e6a82bd93d64ef955f5c7012e28357 to your computer and use it in GitHub Desktop.
Save parweb/53e6a82bd93d64ef955f5c7012e28357 to your computer and use it in GitHub Desktop.
zegzeg
jQuery(window).on('load', function() {
jQuery('fieldset#give-ffm-section').toggle();
});
// You can change the selecto to trigger the function on a different gateway
jQuery('.give-gateway-radio-list input').change(e => {
console.log('hello');
});
@parweb
Copy link
Author

parweb commented Apr 27, 2020

jQuery('#zegzeg').change(e => {
  if (e.target.value === 'wesh') {
    jQuery('#zegzeg').hide();
    jQuery('#zegzeg').hide();
  }
});

@parweb
Copy link
Author

parweb commented Apr 28, 2020

const currentPseudo = window.location.search.split('pseudo=')[1]
jQuery('#ffm-pseudos').val(currentPseudo)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment