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

Code snippets of examples are not not visible on this plugin's own website #331

Open
Jamilbilal47 opened this issue Sep 22, 2021 · 5 comments

Comments

@Jamilbilal47
Copy link

No description provided.

@GusBeare
Copy link

It's not a good sign is it?

@Fr0udy
Copy link

Fr0udy commented Mar 10, 2022

Not the best code but gets the job done to reveal the code snippets on Examples

if you can open up Developer Tools in your browser,

Chrome, use the keyboard shortcut Ctrl Shift J (on Windows) or Ctrl Option J (on Mac)

and copy and paste the code below and hit return/enter.

var summary = $("section details").children("summary"); for (x=0; x < summary.length; x++) { summary[x].setAttribute('aria-expanded','true'); } var details = $("section").children("details"); for (x=0; x < details.length; x++) { details[x].setAttribute('open',''); } var example_code = $("details").children("div.code"); for (x=0; x < example_code.length; x++) { example_code[x].removeAttribute('style'); }

@carloswm85
Copy link

Not the best code but gets the job done to reveal the code snippets on Examples

if you can open up Developer Tools in your browser,

Chrome, use the keyboard shortcut Ctrl Shift J (on Windows) or Ctrl Option J (on Mac)

and copy and paste the code below and hit return/enter.

var summary = $("section details").children("summary"); for (x=0; x < summary.length; x++) { summary[x].setAttribute('aria-expanded','true'); } var details = $("section").children("details"); for (x=0; x < details.length; x++) { details[x].setAttribute('open',''); } var example_code = $("details").children("div.code"); for (x=0; x < example_code.length; x++) { example_code[x].removeAttribute('style'); }

Useful code. Thanks!

@r3hab-media
Copy link

Not the best code but gets the job done to reveal the code snippets on Examples

if you can open up Developer Tools in your browser,

Chrome, use the keyboard shortcut Ctrl Shift J (on Windows) or Ctrl Option J (on Mac)

and copy and paste the code below and hit return/enter.

var summary = $("section details").children("summary"); for (x=0; x < summary.length; x++) { summary[x].setAttribute('aria-expanded','true'); } var details = $("section").children("details"); for (x=0; x < details.length; x++) { details[x].setAttribute('open',''); } var example_code = $("details").children("div.code"); for (x=0; x < example_code.length; x++) { example_code[x].removeAttribute('style'); }

Thank you very much.

@douglas-88
Copy link

var summary = $("section details").children("summary"); for (x=0; x &lt; summary.length; x++) { summary[x].setAttribute('aria-expanded','true'); } var details = $("section").children("details"); for (x=0; x < details.length; x++) { details[x].setAttribute('open',''); } var example_code = $("details").children("div.code"); for (x=0; x < example_code.length; x++) { example_code[x].removeAttribute('style'); }

Thank You

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

6 participants