View Full Version : Examples

19 May 2010, 7:39 AM
I know the examples index.html is probably under construction.

For me to browser though examples quickly, I created a shell script to put them on screen.
in examples directory

for i in `find . | grep index.html`; do
name=`echo $i | awk -F\/ '{print $2}'`
echo "<a href='$i'>$name</a><br />">>index.html

<a href='./ajax/index.html'>ajax</a><br />
<a href='./carousel/index.html'>carousel</a><br />
<a href='./dragdrop/index.html'>dragdrop</a><br />
<a href='./forms/index.html'>forms</a><br />
<a href='./guide/index.html'>guide</a><br />
<a href='./icons/index.html'>icons</a><br />
<a href='./kitchensink/index.html'>kitchensink</a><br />
<a href='./map/index.html'>map</a><br />
<a href='./nestedlist/index.html'>nestedlist</a><br />
<a href='./overlays/index.html'>overlays</a><br />
<a href='./sortable/index.html'>sortable</a><br />
<a href='./tabs/index.html'>tabs</a><br />
<a href='./tabs2/index.html'>tabs2</a><br />
<a href='./toolbars/index.html'>toolbars</a><br />
<a href='./twitter/index.html'>twitter</a><br />
<a href='./video/index.html'>video</a><br />

Nothing special, but beats typing in the url every time.

19 May 2010, 11:36 AM
I made something similar got tried of typing them in. :)

19 May 2010, 6:32 PM
or you could just turn on the directory index for the /examples directory :)

in nginx it's as simple as

autoindex on;

in apache you need to fiddle with the mod_autoindex module.