Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twig method to get onclick event #8

Open
lindseydiloreto opened this issue Feb 4, 2020 · 1 comment
Open

Twig method to get onclick event #8

lindseydiloreto opened this issue Feb 4, 2020 · 1 comment
Labels
feature request New feature or request

Comments

@lindseydiloreto
Copy link
Contributor

Easily generate the onclick event for an ad, for use elsewhere...

{% set onclick = ad.getOnclick() %}

... would set the value to...

adWizard.click(99, 'http:https://example.com/')

That is the JavaScript function which will log a user's click event. This is useful if some nearby HTML also needs to react to the same onclick event. Or if, for some reason, the click event needs to be removed from the img and placed elsewhere.

@lindseydiloreto lindseydiloreto added the feature request New feature or request label Feb 4, 2020
@lindseydiloreto
Copy link
Contributor Author

This would theoretically make #7 unnecessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant