jquery-steps icon indicating copy to clipboard operation
jquery-steps copied to clipboard

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

Open Jamilbilal47 opened this issue 3 years ago • 5 comments

Jamilbilal47 avatar Sep 22 '21 09:09 Jamilbilal47

It's not a good sign is it?

GusBeare avatar Oct 20 '21 22:10 GusBeare

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'); }

Fr0udy avatar Mar 10 '22 12:03 Fr0udy

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!

carloswm85 avatar May 23 '22 17:05 carloswm85

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.

r3hab-media avatar Oct 13 '22 16:10 r3hab-media

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

douglas-88 avatar Nov 07 '22 20:11 douglas-88