DIR : /home/kozerus/public_html/wz/wz_divs.py

/home/kozerus/public_html/wz

# wz.sh		20240215_2000

progid="wz0"
divids="kd_jenna kd_skwii kd_jkwii kd_usa kd_snowday kd_fans kd_players kd_stables kd_horses kd_cards kd_dice kd_trackline kd_tracoval kd_bugs".split(" ")

gifs_psv="""
/imgs/gif/orbs/balls3.gif
/imgs/gif/orbs/balls4.gif
/imgs/gif/orbs/ballsrainbow.gif
/imgs/gif/orbs/cub1.gif
/imgs/gif/orbs/dia3.gif
/imgs/gif/orbs/diam1.gif
/imgs/gif/orbs/godots.gif
/imgs/gif/orbs/godotss.gif
/imgs/gif/orbs/goripple.gif
/imgs/gif/orbs/helix1.gif
/imgs/gif/orbs/jellyfish.gif
/imgs/gif/orbs/kali11.gif
/imgs/gif/orbs/kali15.gif
/imgs/gif/orbs/kali20.gif
/imgs/gif/orbs/laki21.gif
/imgs/gif/orbs/orb1.gif
/imgs/gif/orbs/orb10.gif
/imgs/gif/orbs/orb11.gif
/imgs/gif/orbs/orb3.gif
/imgs/gif/orbs/orb43.gif
/imgs/gif/orbs/orb6.gif
/imgs/gif/orbs/orb8.gif
/imgs/gif/orbs/orbcryst_alpulse.gif
/imgs/gif/orbs/orbdrip.gif
/imgs/gif/orbs/orbrainbow.gif
/imgs/gif/orbs/orbring.gif
/imgs/gif/orbs/orbspiral.gif
/imgs/gif/orbs/ringcube.gif
/imgs/gif/orbs/rings.gif
/imgs/gif/orbs/rings2.gif
/imgs/gif/orbs/ringworm.gif
/imgs/gif/orbs/rubix.gif
/imgs/gif/orbs/soccorball.gif
/imgs/gif/orbs/sprayfountain.gif
/imgs/gif/orbs/sssfg.gif
/imgs/gif/spacers/giphy_handkither.gif
/imgs/gif/spacers/giphy_jkwii_head.gif
/imgs/gif/spacers/giphy_jkwii_head2.gif
/imgs/gif/spacers/giphy_spacer_01.gif
/imgs/gif/spacers/giphy_spacer_02.gif
/imgs/gif/spacers/giphy_spacer_03.gif
/imgs/gif/spacers/giphy_spacer_04.gif
/imgs/gif/spacers/giphy_spacer_05.gif
/imgs/gif/spacers/giphy_spacer_07.gif
/imgs/gif/spacers/giphy_spacer_08.gif
/imgs/gif/spacers/giphy_spacer_09.gif
/imgs/gif/spacers/giphy_spacer_10.gif
/imgs/gif/spacers/giphy_spacer_11.gif
/imgs/gif/spacers/giphy_spacer_12.gif
/imgs/gif/spacers/giphy_spacer_13.gif
/imgs/gif/spacers/giphy_spacer_15.gif
/imgs/gif/spacers/giphy_spacer_17.gif
/imgs/gif/spacers/giphy_spacer_19.gif
/imgs/gif/spacers/giphy_spacer_20.gif
/imgs/gif/spacers/giphy_spacer_21.gif
/imgs/gif/spacers/giphy_spacer_22.gif
/imgs/gif/spacers/tn/tn_giphy_handkither.gif
/imgs/gif/spacers/tn/tn_giphy_jkwii_head.gif
/imgs/gif/spacers/tn/tn_giphy_jkwii_head2.gif
/imgs/gif/spacers/tn/tn_giphy_spacer_01.gif
/imgs/gif/spacers/tn/tn_giphy_spacer_02.gif
/imgs/gif/spacers/tn/tn_giphy_spacer_03.gif
/imgs/gif/spacers/tn/tn_giphy_spacer_04.gif
/imgs/gif/spacers/tn/tn_giphy_spacer_05.gif
/imgs/gif/spacers/tn/tn_giphy_spacer_07.gif
/imgs/gif/spacers/tn/tn_giphy_spacer_08.gif
/imgs/gif/spacers/tn/tn_giphy_spacer_09.gif
/imgs/gif/spacers/tn/tn_giphy_spacer_10.gif
/imgs/gif/spacers/tn/tn_giphy_spacer_11.gif
/imgs/gif/spacers/tn/tn_giphy_spacer_12.gif
/imgs/gif/spacers/tn/tn_giphy_spacer_13.gif
/imgs/gif/spacers/tn/tn_giphy_spacer_15.gif
/imgs/gif/spacers/tn/tn_giphy_spacer_17.gif
/imgs/gif/spacers/tn/tn_giphy_spacer_19.gif
/imgs/gif/spacers/tn/tn_giphy_spacer_20.gif
/imgs/gif/spacers/tn/tn_giphy_spacer_21.gif
/imgs/gif/spacers/tn/tn_giphy_spacer_22.gif
"""
gifs=gifs_psv.split("\n")

htmout=""; j=0; k=0; d=0;
dttm="20240217_0000"
# htmout+= "BUGS_101 gif=$gif\n";
# syscmd_find_gifs="find ../../imgs/gif/orbs -name \"*.gif\""
# out="_OUT_"
# (err,out)=kosys(syscmd_find_gifs,'brief')


divid="DIVID"; h=100; w=200; src="kd.html"
# if( gifs[j] ): src=gifs[j]


htmout+="<html>\n"
htmout+="<head>\n"
htmout+="<title>wz_dirs.html {}</title>\n".format(dttm)
htmout+="	</head>\n"
htmout+="<script id=script_startup>\n"
htmout+="	function startup(args) {\n"
htmout+="		alert( \"BUGS_100 startup args=\"+args );\n"
htmout+="		return(args);\n"
htmout+="		}\n"
htmout+="\n"
htmout+="<body bgcolor=wheat onload=\"startup(''); return false;\">\n"
htmout+= "<script id=script_wz src=/js/wz/wz_dragdrop.js ></script>\n" 
htmout+="<div id=div_wz_dirs>\n"
htmout+="	<h1>div_wz_dirs</h1>\n"
htmout+="	<hr color=white>\n"

for divid in divids:
	d=d+1 
	left=600; top=600; width=1100; height=800
	x=left; y=top; w=width; h=height
	dx=10*d; dy=1000*d;
	x=x+dx; y=y+dy;
#	src="/imgs/btn/koeye.png"
#	src=`cat gifs.txt | awk -v d="$d" 'NR == d {  htmout+= $1 }'`; 
	src=gifs[d]



	htmout+= "\n" 
	htmout+= "\n" 
	htmout+= "<!-- {}  {} ================= HEAD ===================== {} END -->\n".format(divid,d,divid)
	htmout+= "       <style id=\"style_div_{}\" > \n".format(divid)
#	htmout+= "                #div_{} {} \n" .format(divid,'{')
	htmout+= "                        position:absolute; \n" .format(divid)
	htmout+= "                        left:{}px; top:{}px; width:{}px; height={}px; \n".format(x,y,w,h)
	htmout+= "                        border:1px solid #000099; \n" 
	htmout+= "                        background:#eeeeee; \n" 
	htmout+= "                        layer-background-color:#eeeeee; \n" 
	htmout+= "                        overflow:hidden; \n" 
	htmout+= "//                      visibility:hidden; \n" 
	htmout+= "                        } \n" 
	htmout+= "                </style id=\"style_div_$divid""_end\" > \n" .format(divid)

	htmout+= "\n" 

	htmout+= "		\n" 	
	htmout+= "		\n" 	
#	htmout+= "	<div id=\"layer_{}\" >\n".format(divid) 
#	htmout+= "		<h1>layer_{}</h1>\n".format(divid)
	htmout+= "		<div id=\"div_{}\" >\n".format(divid) 
	htmout+= "			<h2>div_{}</h2>\n".format(divid) 
	htmout+= "			<div id=\"div_{}_body\" >\n".format(divid) 


#	htmout+= "<img src=/gm/kd/imgs/koeye.png title=\"          {}\" height={}px width={}px border=0>{}\n".format(divid,h,w,divid) 
	h=400; w=400; src=gifs[d]
	htmout+= "<hr color=black>\n" 
	htmout+= "<hr color=white>\n" 
	htmout+= "<img src={} title=\"          {} {}\" onclick=\"{}('""{}""'); return false;\" height={}px width={}px border=0>{}\n".format(src,divid,d,divid,divid,h,w,divid)
	htmout+= "<hr color=white>\n" 
	htmout+= "<hr color=black>\n" 
	htmout+= "\n" 
	htmout+= "				<h3>div_{}</h3>\n".format(divid) 
	htmout+= "<img id=img_{} src={} title=\"          {}\" onclick=\"('""{}""'); return false;\" height={}px width={}px border=0>\n".format(divid,src,divid,divid,divid,h,w)
	htmout+= "				</div id=\"div_{}_body_end\" >\n".format(divid)
	htmout+= "			</div id=\"div_{}_end\" >\n".format(divid) 
#	htmout+= "		</div id=\"layer_ko_{}""_end\" >\n".format(divid)
	htmout+= "\n" 
	htmout+= "<script id=script_{}>\n".format(divid) 
	htmout+= "	function {}(args) {}\n".format(divid,'{')
	htmout+= "		alert( \"BUGS_{} {} args=\"+args )\n".format(d,divid); 
	htmout+= "		return(args); \n" 
	htmout+= "		}\n" 
	htmout+= "	</script id=script_{}_end>\n".format(divid); 
	htmout+= "<!-- {}  {} ----------------- TAIL --------------------- {} END -->\n" .format(divid,d,divid)
	htmout+= "\n" 
	htmout+= "\n" 

	htmout+= "\n" 
htmout+="	</div id=div_wz_dirs_end>\n"
htmout+= "<script id=script_set_dhtml>\n" 
htmout+= "SET_DHTML(\n" 
for divid in divids:
	htmout+= "\"div_{}\"+RESIZABLE+TRANSPARENT,\n".format(divid);
htmout+= "\"div_kludge\"+RESIZABLE+TRANSPARENT\n" 
htmout+= "	);\n" 
htmout+= "	</script id=script_set_dhtml_end>\n" 

htmout+= "	</body>\n"
htmout+="	</html>\n" 

ofile="wz_dirs.html";
ifile="bs4.html"
fp=open(ofile,"w")
fp.write(htmout)
fp.close

# data=open(ifile,"r").readlines
# print( "BUGS_101 ifile={} data={}".format(ifile,data) )
print( "BUGS_102 ofile={} htmout={}".format(ofile,htmout) )
# return(htmout)		
					
//


koh5_pano



Your browser does not support the HTML5 canvas element.


Drag mouse to navigate.

Navigation





17.Aug.2010, Martin Wengenmayer