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

Dynamically changing visit website button #11

Open
Alique opened this issue Jan 2, 2017 · 0 comments
Open

Dynamically changing visit website button #11

Alique opened this issue Jan 2, 2017 · 0 comments

Comments

@Alique
Copy link

Alique commented Jan 2, 2017

Hello your plug in is quite nice! I am using it in a project and I would like to make the visit website button appear only when there is an actual link on the href attribute. I have been trying but so far I can only make go away everything else but the "visit website button"

`
if(eldata.href == "#"){
//HERE IS WHERE THERE IS NO LINK AND WHERE I CANT REMOVE DE BUTTON
console.log("sin definir link");
this.$title.html( eldata.title );
this.$description.html( eldata.description );
this.$href.attr( 'href', eldata.href );
}else if(eldata.href != "#"){
console.log("LINK");
this.$title.html( eldata.title );
this.$description.html( eldata.description );
this.$href.attr( 'href', eldata.href );
}


Thanks before hand !

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

No branches or pull requests

1 participant