nkronlage/JavaScripture

Add way to hide all examples, just show functions

Closed this issue · 5 comments

Request from feedback:

It would be great to have a button to hide all examples, so that only the API functions are visible.

The examples are great, but once you know how a function works, you usually just need to look up the exact arguments.

Via an order list at the top corresponding to the example.... But this feature would take up room.

It won't take long for a visitor to figure how the site work.

This sound like a nice feature, butI believe this feature is not needed.

I change my outlook on this, and understand what the feedback is saying. To hide all example so one can simple view the methods. This would be a nice feature, And a simple click and hide. Having it automatically hidden to get an over look of all methods.

<style>

</style>
<script>
function(){

    var sct;
    sctGroup = querySelectorAll("section");
    sct.forEach(function(sct){
        sct.addEventListener("click", function(){
            /*style logic*/    
        })
    });
}
</script>
<section id="hide">
/*each example, or we can just use the div*/
</section>

Thanks for getting it started! I checked in an initial implementation with change 0e7c68f

If your going to do it Manually I'll help, that was just an attempt to hit all of them without so. You could put all of it in a string and hit it with RegExp.... Or xslt.

E-S4L
N-S4L

On Aug 25, 2014, at 4:08 PM, "nkronlage" notifications@github.com wrote:

Thanks for getting it started! I checked in an initial implementation with change 0e7c68f


Reply to this email directly or view it on GitHub.