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

Use collapse plugin for spoiler #1594

Closed
Tracked by #1602
Quy opened this issue Apr 16, 2016 · 1 comment
Closed
Tracked by #1602

Use collapse plugin for spoiler #1594

Quy opened this issue Apr 16, 2016 · 1 comment

Comments

@Quy
Copy link
Contributor

Quy commented Apr 16, 2016

I have not tested this idea, however, how about using the BS collapse plugin for spoiler instead of the following code?

onclick="var e,d,c=this.parentNode,a=c.getElementsByTagName('div')[1],b=this.getElementsByTagName('span')[0];if(a.style.display!=''){while(c.parentNode&&(!d||!e||d==e)){e=d;d=(window.getComputedStyle?getComputedStyle(c, null):c.currentStyle)['backgroundColor'];if(d=='transparent'||d=='rgba(0, 0, 0, 0)')d=e;c=c.parentNode;}a.style.display='';a.style.backgroundColor=d;b.innerHTML='▲';}else{a.style.display='none';b.innerHTML='▼';}"
@Studio384 Studio384 added this to the Luna 2.0 Emerald milestone Apr 25, 2016
@Studio384 Studio384 self-assigned this Apr 25, 2016
@Studio384 Studio384 modified the milestones: Luna 2.1 Fallow, Luna 2.0 Emerald Apr 25, 2016
@Studio384
Copy link
Member

This is something that will be done in 2.1.

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

No branches or pull requests

2 participants