From: dsc Date: Tue, 2 Nov 2010 12:35:57 +0000 (-0700) Subject: Adds FPS sparkline. X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=470a5f3821f8b1e4393b46cfe65c9c17aeff5470;p=tanks.git Adds FPS sparkline. --- diff --git a/bin/deploy.sh b/bin/deploy.sh new file mode 100755 index 0000000..4a6a94f --- /dev/null +++ b/bin/deploy.sh @@ -0,0 +1,34 @@ +#! /bin/bash + +function halp () { + cat >&2 <<-HALP +The Littlest Deployer of Battletanks + +Usage: $( basename $0 ) [options] + +Deploys Simoon files. + +Options: + -h Displays this help. +HALP +} + +SHIFT=0 +function incshift () { SHIFT=$(( $SHIFT + ${1:-1} )); } +function join () { seps="$IFS"; IFS="$1"; shift; echo "$*"; IFS="$seps"; } +function fail () { echo "PREDICTABLE FAILURE. $1" >&2; exit 1; } + +for opt in $*; do + egrep -xq -e '--?h(e(lp?)?)?' && { halp; exit 0; } +done +# while getopts "b:" opt; do +# case $opt in +# b ) B=$OPTARG; incshift 2 ;; +# esac +# done +# shift $SHIFT + +rsync -Cavz --delete --exclude=tmp ./* less.ly:lessly/hacking/tanks/ + + + diff --git a/css/lttl.css b/css/lttl.css index 1d2321e..0bd2596 100644 --- a/css/lttl.css +++ b/css/lttl.css @@ -12,7 +12,8 @@ ul, ol, li { list-style: none ! important; margin:0; padding:0; } #howto { position:fixed; top:3em; right:1em; color:#BFBFBF; } #info { position:fixed; bottom:10px; right:10px; padding:0.5em; background-color:rgba(0,0,0, 0.1); color:#787878; } + #info #state { font-weight:bold; } #info label { display:block; float:left; width:3em; margin-right:0.5em; color:#787878; } #info input { border:0; background-color:transparent; min-width:5em; width:5em; color:#5c5c5c; } #info .sep { opacity:0.1; background-color:#999; margin:5px 0; height:1px; } - + #info .fps-sparkline { width:100%; height:1.5em; margin-top:0.5em; } diff --git a/index.php b/index.php index 04f9df7..e2b5d7a 100644 --- a/index.php +++ b/index.php @@ -14,6 +14,7 @@