From 65c1a9731530e3c2ec94ed4e317a9f659855ed5b Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Sat, 16 Feb 2008 13:16:13 +0000 Subject: [PATCH] preload list piu' leggibile --- bin/preload.sh | 10 +-- web/preload_img.js | 150 +++++++++++++++++++++++++++------------------ 2 files changed, 95 insertions(+), 65 deletions(-) diff --git a/bin/preload.sh b/bin/preload.sh index 57c95ed..395d332 100755 --- a/bin/preload.sh +++ b/bin/preload.sh @@ -40,10 +40,9 @@ ltri="`echo "$IMGPATH" | wc -c`" for i in `find $IMGPATH -type f -name '*.jpg' -o -name '*.png' -o -name '*.gif' | grep -v '/src_' | sort`; do if [ $first -ne 1 ]; then echo -n ", " - if [ $ct -eq 3 ]; then + if [ $((ct % 2)) -eq 0 ]; then echo echo -n "$spa" - ct=0 fi else echo -n "$spa" @@ -53,7 +52,7 @@ for i in `find $IMGPATH -type f -name '*.jpg' -o -name '*.png' -o -name '*.gif' ct=$((ct + 1)) first=0 done - +echo "CT: $ct" >&2 echo ");" ) >> $OUTFILE @@ -71,10 +70,9 @@ done for i in `find $IMGPATH -type f -name '*.jpg' -o -name '*.png' -o -name '*.gif' | grep -v '/src_' | sort`; do if [ $first -ne 1 ]; then echo -n ", " - if [ $ct -eq 8 ]; then + if [ $((ct % 8)) -eq 0 ]; then echo echo -n "$spa" - ct=0 fi else echo -n "$spa" @@ -87,6 +85,8 @@ for i in `find $IMGPATH -type f -name '*.jpg' -o -name '*.png' -o -name '*.gif' first=0 done +echo "CT2: $ct" >&2 + echo ");" ) >> $OUTFILE diff --git a/web/preload_img.js b/web/preload_img.js index 170b38a..0356efd 100644 --- a/web/preload_img.js +++ b/web/preload_img.js @@ -1,64 +1,94 @@ var g_preload_img_arr = new Array( - "briskin5/img/00_ea.png", "briskin5/img/00.png", "briskin5/img/00_we.png", - "briskin5/img/01_ea.png", "briskin5/img/01.png", "briskin5/img/01_we.png", - "briskin5/img/02_ea.png", "briskin5/img/02.png", "briskin5/img/02_we.png", - "briskin5/img/03_ea.png", "briskin5/img/03.png", "briskin5/img/03_we.png", - "briskin5/img/04_ea.png", "briskin5/img/04.png", "briskin5/img/04_we.png", - "briskin5/img/05_ea.png", "briskin5/img/05.png", "briskin5/img/05_we.png", - "briskin5/img/06_ea.png", "briskin5/img/06.png", "briskin5/img/06_we.png", - "briskin5/img/07_ea.png", "briskin5/img/07.png", "briskin5/img/07_we.png", - "briskin5/img/08_ea.png", "briskin5/img/08.png", "briskin5/img/08_we.png", - "briskin5/img/09_ea.png", "briskin5/img/09.png", "briskin5/img/09_we.png", - "briskin5/img/10_ea.png", "briskin5/img/10.png", "briskin5/img/10_we.png", - "briskin5/img/11_ea.png", "briskin5/img/11.png", "briskin5/img/11_we.png", - "briskin5/img/12_ea.png", "briskin5/img/12.png", "briskin5/img/12_we.png", - "briskin5/img/13_ea.png", "briskin5/img/13.png", "briskin5/img/13_we.png", - "briskin5/img/14_ea.png", "briskin5/img/14.png", "briskin5/img/14_we.png", - "briskin5/img/15_ea.png", "briskin5/img/15.png", "briskin5/img/15_we.png", - "briskin5/img/16_ea.png", "briskin5/img/16.png", "briskin5/img/16_we.png", - "briskin5/img/17_ea.png", "briskin5/img/17.png", "briskin5/img/17_we.png", - "briskin5/img/18_ea.png", "briskin5/img/18.png", "briskin5/img/18_we.png", - "briskin5/img/19_ea.png", "briskin5/img/19.png", "briskin5/img/19_we.png", - "briskin5/img/20_ea.png", "briskin5/img/20.png", "briskin5/img/20_we.png", - "briskin5/img/21_ea.png", "briskin5/img/21.png", "briskin5/img/21_we.png", - "briskin5/img/22_ea.png", "briskin5/img/22.png", "briskin5/img/22_we.png", - "briskin5/img/23_ea.png", "briskin5/img/23.png", "briskin5/img/23_we.png", - "briskin5/img/24_ea.png", "briskin5/img/24.png", "briskin5/img/24_we.png", - "briskin5/img/25_ea.png", "briskin5/img/25.png", "briskin5/img/25_we.png", - "briskin5/img/26_ea.png", "briskin5/img/26.png", "briskin5/img/26_we.png", - "briskin5/img/27_ea.png", "briskin5/img/27.png", "briskin5/img/27_we.png", - "briskin5/img/28_ea.png", "briskin5/img/28.png", "briskin5/img/28_we.png", - "briskin5/img/29_ea.png", "briskin5/img/29.png", "briskin5/img/29_we.png", - "briskin5/img/30_ea.png", "briskin5/img/30.png", "briskin5/img/30_we.png", - "briskin5/img/31_ea.png", "briskin5/img/31.png", "briskin5/img/31_we.png", - "briskin5/img/32_ea.png", "briskin5/img/32.png", "briskin5/img/32_we.png", - "briskin5/img/33_ea.png", "briskin5/img/33.png", "briskin5/img/33_we.png", - "briskin5/img/34_ea.png", "briskin5/img/34.png", "briskin5/img/34_we.png", - "briskin5/img/35_ea.png", "briskin5/img/35.png", "briskin5/img/35_we.png", - "briskin5/img/36_ea.png", "briskin5/img/36.png", "briskin5/img/36_we.png", - "briskin5/img/37_ea.png", "briskin5/img/37.png", "briskin5/img/37_we.png", - "briskin5/img/38_ea.png", "briskin5/img/38.png", "briskin5/img/38_we.png", - "briskin5/img/39_ea.png", "briskin5/img/39.png", "briskin5/img/39_we.png", - "briskin5/img/asta0.png", "briskin5/img/asta0_ro.png", "briskin5/img/asta1.png", - "briskin5/img/asta1_ro.png", "briskin5/img/asta2.png", "briskin5/img/asta2_ro.png", - "briskin5/img/asta3.png", "briskin5/img/asta3_ro.png", "briskin5/img/asta4.png", - "briskin5/img/asta4_ro.png", "briskin5/img/asta5.png", "briskin5/img/asta5_ro.png", - "briskin5/img/asta6.png", "briskin5/img/asta6_ro.png", "briskin5/img/asta7.png", - "briskin5/img/asta7_ro.png", "briskin5/img/asta8.png", "briskin5/img/asta8_ro.png", - "briskin5/img/asta9.png", "briskin5/img/asta9_ro.png", "briskin5/img/astalascio.png", - "briskin5/img/astalascio_ro.png", "briskin5/img/astapashalf.png", "briskin5/img/astapashalf_ro.png", - "briskin5/img/astapasso.png", "briskin5/img/astapasso_ro.png", "briskin5/img/astaptsub.png", - "briskin5/img/astaptsub_ro.png", "briskin5/img/brisk_caller_sand0.png", "briskin5/img/brisk_caller_sand1.png", - "briskin5/img/brisk_caller_sand2.png", "briskin5/img/brisk_caller_sand3.png", "briskin5/img/brisk_caller_sand4.png", - "briskin5/img/brisk_table_sand0.jpg", "briskin5/img/brisk_table_sand1.jpg", "briskin5/img/brisk_table_sand2.jpg", - "briskin5/img/brisk_table_sand3.jpg", "briskin5/img/brisk_table_sand4.jpg", "briskin5/img/cover_ea.png", - "briskin5/img/cover.png", "briskin5/img/cover_we.png", "briskin5/img/exitlock0n.png", - "briskin5/img/exitlock0y.png", "briskin5/img/exitlock1n.png", "briskin5/img/exitlock1y.png", - "briskin5/img/exitlock2n.png", "briskin5/img/exitlock2y.png", "briskin5/img/exitlock3n.png", - "briskin5/img/exitlock3y.png", "img/altout80x15.png", "img/bg_capodanno.jpg", - "img/brichi.png", "img/brisk_donate.gif", "img/brisk_ico.png", - "img/brisk_logo64.png", "img/brisk_start.png", "img/download_now_flash.gif", - "img/dynamica.png", "img/noimg.png", "img/virtualsky80x15a.gif"); + "briskin5/img/00_ea.png", "briskin5/img/00.png", + "briskin5/img/00_we.png", "briskin5/img/01_ea.png", + "briskin5/img/01.png", "briskin5/img/01_we.png", + "briskin5/img/02_ea.png", "briskin5/img/02.png", + "briskin5/img/02_we.png", "briskin5/img/03_ea.png", + "briskin5/img/03.png", "briskin5/img/03_we.png", + "briskin5/img/04_ea.png", "briskin5/img/04.png", + "briskin5/img/04_we.png", "briskin5/img/05_ea.png", + "briskin5/img/05.png", "briskin5/img/05_we.png", + "briskin5/img/06_ea.png", "briskin5/img/06.png", + "briskin5/img/06_we.png", "briskin5/img/07_ea.png", + "briskin5/img/07.png", "briskin5/img/07_we.png", + "briskin5/img/08_ea.png", "briskin5/img/08.png", + "briskin5/img/08_we.png", "briskin5/img/09_ea.png", + "briskin5/img/09.png", "briskin5/img/09_we.png", + "briskin5/img/10_ea.png", "briskin5/img/10.png", + "briskin5/img/10_we.png", "briskin5/img/11_ea.png", + "briskin5/img/11.png", "briskin5/img/11_we.png", + "briskin5/img/12_ea.png", "briskin5/img/12.png", + "briskin5/img/12_we.png", "briskin5/img/13_ea.png", + "briskin5/img/13.png", "briskin5/img/13_we.png", + "briskin5/img/14_ea.png", "briskin5/img/14.png", + "briskin5/img/14_we.png", "briskin5/img/15_ea.png", + "briskin5/img/15.png", "briskin5/img/15_we.png", + "briskin5/img/16_ea.png", "briskin5/img/16.png", + "briskin5/img/16_we.png", "briskin5/img/17_ea.png", + "briskin5/img/17.png", "briskin5/img/17_we.png", + "briskin5/img/18_ea.png", "briskin5/img/18.png", + "briskin5/img/18_we.png", "briskin5/img/19_ea.png", + "briskin5/img/19.png", "briskin5/img/19_we.png", + "briskin5/img/20_ea.png", "briskin5/img/20.png", + "briskin5/img/20_we.png", "briskin5/img/21_ea.png", + "briskin5/img/21.png", "briskin5/img/21_we.png", + "briskin5/img/22_ea.png", "briskin5/img/22.png", + "briskin5/img/22_we.png", "briskin5/img/23_ea.png", + "briskin5/img/23.png", "briskin5/img/23_we.png", + "briskin5/img/24_ea.png", "briskin5/img/24.png", + "briskin5/img/24_we.png", "briskin5/img/25_ea.png", + "briskin5/img/25.png", "briskin5/img/25_we.png", + "briskin5/img/26_ea.png", "briskin5/img/26.png", + "briskin5/img/26_we.png", "briskin5/img/27_ea.png", + "briskin5/img/27.png", "briskin5/img/27_we.png", + "briskin5/img/28_ea.png", "briskin5/img/28.png", + "briskin5/img/28_we.png", "briskin5/img/29_ea.png", + "briskin5/img/29.png", "briskin5/img/29_we.png", + "briskin5/img/30_ea.png", "briskin5/img/30.png", + "briskin5/img/30_we.png", "briskin5/img/31_ea.png", + "briskin5/img/31.png", "briskin5/img/31_we.png", + "briskin5/img/32_ea.png", "briskin5/img/32.png", + "briskin5/img/32_we.png", "briskin5/img/33_ea.png", + "briskin5/img/33.png", "briskin5/img/33_we.png", + "briskin5/img/34_ea.png", "briskin5/img/34.png", + "briskin5/img/34_we.png", "briskin5/img/35_ea.png", + "briskin5/img/35.png", "briskin5/img/35_we.png", + "briskin5/img/36_ea.png", "briskin5/img/36.png", + "briskin5/img/36_we.png", "briskin5/img/37_ea.png", + "briskin5/img/37.png", "briskin5/img/37_we.png", + "briskin5/img/38_ea.png", "briskin5/img/38.png", + "briskin5/img/38_we.png", "briskin5/img/39_ea.png", + "briskin5/img/39.png", "briskin5/img/39_we.png", + "briskin5/img/asta0.png", "briskin5/img/asta0_ro.png", + "briskin5/img/asta1.png", "briskin5/img/asta1_ro.png", + "briskin5/img/asta2.png", "briskin5/img/asta2_ro.png", + "briskin5/img/asta3.png", "briskin5/img/asta3_ro.png", + "briskin5/img/asta4.png", "briskin5/img/asta4_ro.png", + "briskin5/img/asta5.png", "briskin5/img/asta5_ro.png", + "briskin5/img/asta6.png", "briskin5/img/asta6_ro.png", + "briskin5/img/asta7.png", "briskin5/img/asta7_ro.png", + "briskin5/img/asta8.png", "briskin5/img/asta8_ro.png", + "briskin5/img/asta9.png", "briskin5/img/asta9_ro.png", + "briskin5/img/astalascio.png", "briskin5/img/astalascio_ro.png", + "briskin5/img/astapashalf.png", "briskin5/img/astapashalf_ro.png", + "briskin5/img/astapasso.png", "briskin5/img/astapasso_ro.png", + "briskin5/img/astaptsub.png", "briskin5/img/astaptsub_ro.png", + "briskin5/img/brisk_caller_sand0.png", "briskin5/img/brisk_caller_sand1.png", + "briskin5/img/brisk_caller_sand2.png", "briskin5/img/brisk_caller_sand3.png", + "briskin5/img/brisk_caller_sand4.png", "briskin5/img/brisk_table_sand0.jpg", + "briskin5/img/brisk_table_sand1.jpg", "briskin5/img/brisk_table_sand2.jpg", + "briskin5/img/brisk_table_sand3.jpg", "briskin5/img/brisk_table_sand4.jpg", + "briskin5/img/cover_ea.png", "briskin5/img/cover.png", + "briskin5/img/cover_we.png", "briskin5/img/exitlock0n.png", + "briskin5/img/exitlock0y.png", "briskin5/img/exitlock1n.png", + "briskin5/img/exitlock1y.png", "briskin5/img/exitlock2n.png", + "briskin5/img/exitlock2y.png", "briskin5/img/exitlock3n.png", + "briskin5/img/exitlock3y.png", "img/altout80x15.png", + "img/bg_capodanno.jpg", "img/brichi.png", + "img/brisk_donate.gif", "img/brisk_ico.png", + "img/brisk_logo64.png", "img/brisk_start.png", + "img/download_now_flash.gif", "img/dynamica.png", + "img/noimg.png", "img/virtualsky80x15a.gif"); var g_preload_imgsz_arr = new Array( ".4", ".9", "1.3", "1.7", "2.1", "2.5", "3.0", "3.5", "3.9", "4.4", "4.9", "5.4", "5.9", "6.3", "6.7", "7.1", -- 2.17.1