Skip to content

Added a custom trigger on document element#152

Open
lucascampelo wants to merge 1 commit intowebtechnick:masterfrom
lucascampelo:patch-1
Open

Added a custom trigger on document element#152
lucascampelo wants to merge 1 commit intowebtechnick:masterfrom
lucascampelo:patch-1

Conversation

@lucascampelo
Copy link
Contributor

This code create and call a custom event called "fbready" on document element. Very useful for custom javascript code on specific pages. Example:

document.addEventListener('fbready', function(event){
// Do Something
});
// or
jQuery(document).on('fbready',function(event){
// Do Something
});

This code create and call a custom event called "fbready" on document element. Very useful for custom javascript code on specific pages. Example:

document.addEventListener('fbready', function(event){
    // Do Something
});
// or
jQuery(document).on('fbready',function(event){
    // Do Something
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant