#!/usr/bin/env zsh STYLING=0 # make it work to browse results on file:// baseurl="file://`pwd`/test/" # includejs+=(jquery.min.js jquery.sidr.js) # includecss+=(jquery.sidr.dark.css) { test "$STYLING" = "1" } || { render_test_footer() { return 0 }; return 0 } # Font size selector font-size_select() { cat < EOF c=.5 while [[ $c -le 8 ]]; do cat <${c%.} em EOF c=$(( $c + .5 )) done cat < EOF } # font family selector font-family_select() { cat < EOF for f in $fonts; do cat <$f EOF done print "" } render_test_footer() { cat <

Design test

EOF print "

H1 font size

" font-size_select h1size print "

H2 font size

" font-size_select h2size cat <Brand font family EOF font-family_select brand-font-family cat <Header font family EOF font-family_select header-font-family cat <Body font family EOF font-family_select body-font-family cat <Navigation Font family EOF font-family_select nav-font-family cat < EOF }