Get rid of a redundant directory level.
1
projects/dsktp/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
bak/
|
||||
14
projects/dsktp/ci.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
header("Content-type: text/javascript");
|
||||
$f=fopen("script.js","r");
|
||||
$c=fread($f,filesize("script.js"));
|
||||
fclose($f);
|
||||
$ci=explode("\n",$c);
|
||||
for ($i=0;$i<sizeof($ci);$i++) {
|
||||
$tl=$ci[$i];
|
||||
$tle=substr($tl,strlen($tl)-2,1);
|
||||
if ($tle=="{" || strlen($tl)==1) $end="";
|
||||
else $end=";";
|
||||
echo substr($tl,0,strlen($tl)-1).$end."\n";
|
||||
}
|
||||
?>
|
||||
BIN
projects/dsktp/icons/qmark.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
projects/dsktp/img/close.png
Normal file
|
After Width: | Height: | Size: 1007 B |
BIN
projects/dsktp/img/closec.png
Normal file
|
After Width: | Height: | Size: 1007 B |
BIN
projects/dsktp/img/closeh.png
Normal file
|
After Width: | Height: | Size: 1007 B |
BIN
projects/dsktp/img/deficon.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
projects/dsktp/img/desktop.png
Normal file
|
After Width: | Height: | Size: 839 B |
BIN
projects/dsktp/img/desktopc.png
Normal file
|
After Width: | Height: | Size: 819 B |
BIN
projects/dsktp/img/desktoph.png
Normal file
|
After Width: | Height: | Size: 833 B |
BIN
projects/dsktp/img/entry.png
Normal file
|
After Width: | Height: | Size: 933 B |
BIN
projects/dsktp/img/entryc.png
Normal file
|
After Width: | Height: | Size: 932 B |
BIN
projects/dsktp/img/entryh.png
Normal file
|
After Width: | Height: | Size: 932 B |
BIN
projects/dsktp/img/entrysel.png
Normal file
|
After Width: | Height: | Size: 932 B |
BIN
projects/dsktp/img/entryselc.png
Normal file
|
After Width: | Height: | Size: 932 B |
BIN
projects/dsktp/img/entryselh.png
Normal file
|
After Width: | Height: | Size: 941 B |
BIN
projects/dsktp/img/launch.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
projects/dsktp/img/launchc.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
projects/dsktp/img/launchh.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
projects/dsktp/img/ll.png
Normal file
|
After Width: | Height: | Size: 1016 B |
BIN
projects/dsktp/img/lle.png
Normal file
|
After Width: | Height: | Size: 949 B |
BIN
projects/dsktp/img/lleh.png
Normal file
|
After Width: | Height: | Size: 947 B |
BIN
projects/dsktp/img/llt.png
Normal file
|
After Width: | Height: | Size: 528 B |
BIN
projects/dsktp/img/logo.jpg
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
projects/dsktp/img/menubar.png
Normal file
|
After Width: | Height: | Size: 996 B |
BIN
projects/dsktp/img/minimize.png
Normal file
|
After Width: | Height: | Size: 993 B |
BIN
projects/dsktp/img/minimizec.png
Normal file
|
After Width: | Height: | Size: 993 B |
BIN
projects/dsktp/img/minimizeh.png
Normal file
|
After Width: | Height: | Size: 993 B |
BIN
projects/dsktp/img/scrolldown.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
projects/dsktp/img/scrolldownc.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
projects/dsktp/img/scrollup.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
projects/dsktp/img/scrollupc.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
projects/dsktp/img/top.png
Normal file
|
After Width: | Height: | Size: 183 B |
BIN
projects/dsktp/img/topselected.png
Normal file
|
After Width: | Height: | Size: 245 B |
2
projects/dsktp/index.htm
Normal file
@@ -0,0 +1,2 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3c.org/1999/xhtml"><head>
|
||||
<title>dsktp</title><script type='text/javascript' src='script.js'></script></head><body></body></html>
|
||||
589
projects/dsktp/script.js
Normal file
@@ -0,0 +1,589 @@
|
||||
/*
|
||||
This program is free software. It comes without any warranty, to
|
||||
the extent permitted by applicable law. You can redistribute it
|
||||
and/or modify it under the terms of the Do What The Fuck You Want
|
||||
To Public License, Version 2, as published by Sam Hocevar. See
|
||||
http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||
*/
|
||||
|
||||
/*
|
||||
This code is MESSY! It is UNCOMMENTED! It is JAVASCRIPT!
|
||||
In short: It's not perfect. WTF.
|
||||
*/
|
||||
|
||||
lw=true
|
||||
selected=false
|
||||
x=0
|
||||
y=0
|
||||
index=0
|
||||
opts=true
|
||||
ccl=null
|
||||
cmi=null
|
||||
cemd=null
|
||||
menuh=30
|
||||
lsp=0
|
||||
ll=false
|
||||
nom=0
|
||||
dpc=0
|
||||
mst=0
|
||||
|
||||
function mdown(num) {
|
||||
c=0
|
||||
for (i=0;i<windows.childNodes.length;i++) {
|
||||
node=windows.childNodes[i]
|
||||
if (node.nodeName=="DIV") {
|
||||
if (c==num) {
|
||||
node.id="select"
|
||||
node.style.zIndex=index
|
||||
if (node.lang=="g") {
|
||||
node.lang=""
|
||||
nom-=1
|
||||
node.style.display="block"
|
||||
}
|
||||
}
|
||||
else {
|
||||
node.id=""
|
||||
if (bnz[c]>bnz[num]) {
|
||||
bnz[c]-=1
|
||||
node.style.zIndex=bnz[c]
|
||||
}
|
||||
}
|
||||
c+=1
|
||||
}
|
||||
}
|
||||
bnz[num]=index
|
||||
|
||||
document.getElementById("select").id="selected"
|
||||
|
||||
offl=document.getElementById("selected").offsetLeft
|
||||
offt=document.getElementById("selected").offsetTop
|
||||
xcoor=x-offl
|
||||
ycoor=y-offt
|
||||
xm=xcoor
|
||||
ym=ycoor
|
||||
|
||||
c=0
|
||||
for (i=0;i<menuc.childNodes.length;i++) {
|
||||
node=menuc.childNodes[i]
|
||||
if (node.className=="entry") {
|
||||
if (c==num) node.id="es"
|
||||
else node.id=""
|
||||
c+=1
|
||||
}
|
||||
}
|
||||
document.getElementById("es").id="ese"
|
||||
|
||||
selected=true
|
||||
}
|
||||
|
||||
function mup() {
|
||||
selected=false
|
||||
}
|
||||
|
||||
function movewindow(e) {
|
||||
try {
|
||||
x=e.pageX
|
||||
y=e.pageY
|
||||
}
|
||||
catch(err) {
|
||||
x=event.clientX+document.documentElement.scrollLeft
|
||||
y=event.clientY+document.documentElement.scrollTop
|
||||
}
|
||||
|
||||
if (document.getElementById("selected")) {
|
||||
sd=document.getElementById("selected")
|
||||
offl=sd.offsetLeft
|
||||
offt=sd.offsetTop
|
||||
|
||||
xcoor=x-offl
|
||||
ycoor=y-offt
|
||||
}
|
||||
getwh()
|
||||
h-=menuh
|
||||
|
||||
if (selected && y>0 && x>0 && y<h && x<w) {
|
||||
sd.style.left=x-xm+"px"
|
||||
sd.style.top=y-ym+"px"
|
||||
}
|
||||
}
|
||||
|
||||
function getwh() {
|
||||
if (self.innerHeight) {
|
||||
w=self.innerWidth
|
||||
h=self.innerHeight
|
||||
}
|
||||
else if (document.documentElement && document.documentElement.clientHeight) {
|
||||
w=document.documentElement.clientWidth
|
||||
h=document.documentElement.clientHeight
|
||||
}
|
||||
else if (document.body) {
|
||||
w=document.body.clientWidth
|
||||
h=document.body.clientHeight
|
||||
}
|
||||
}
|
||||
|
||||
function ccn() {
|
||||
ccl=null
|
||||
cmi=null
|
||||
c=0
|
||||
for (i=0;i<windows.childNodes.length;i++) {
|
||||
node=windows.childNodes[i]
|
||||
if (node.nodeName=="DIV") {
|
||||
for (ii=0;ii<node.childNodes.length;ii++) {
|
||||
nodeb=node.childNodes[ii]
|
||||
if (nodeb.className=="closesh") nodeb.className="close"
|
||||
else if (nodeb.className=="minimizesh") nodeb.className="minimize"
|
||||
}
|
||||
c+=1
|
||||
}
|
||||
}
|
||||
|
||||
for (i=0;i<menuc.childNodes.length;i++) {
|
||||
node=menuc.childNodes[i]
|
||||
if (node.className=="entryb") node.className="entry"
|
||||
}
|
||||
if (document.getElementById("eseb")) document.getElementById("eseb").id="ese"
|
||||
}
|
||||
|
||||
function isnumeric(num) {
|
||||
num=num*1+1
|
||||
if (!num) return false
|
||||
else return true
|
||||
}
|
||||
|
||||
function closewindow(num) {
|
||||
c=0
|
||||
for (i=0;i<windows.childNodes.length;i++) {
|
||||
node=windows.childNodes[i]
|
||||
if (node.nodeName=="DIV") {
|
||||
if (c==num) {
|
||||
bnz.splice(c,1)
|
||||
node.style.display="none"
|
||||
node.className="remove"
|
||||
}
|
||||
else if (c>num) {
|
||||
for (ii=0;ii<node.childNodes.length;ii++) {
|
||||
nodeb=node.childNodes[ii]
|
||||
if (nodeb.nodeName=="P") {
|
||||
for (iii=0;iii<nodeb.childNodes.length;iii++) {
|
||||
nodec=nodeb.childNodes[iii]
|
||||
if (nodec.nodeName=="DIV") nodec.className=c-1
|
||||
}
|
||||
}
|
||||
else if (nodeb.nodeName=="DIV" && isnumeric(nodeb.className)) nodeb.className=c-1
|
||||
else if (nodeb.className=="close" || nodeb.className=="minimize") nodeb.lang=c-1
|
||||
}
|
||||
}
|
||||
c+=1
|
||||
}
|
||||
}
|
||||
index-=1
|
||||
for (i=0;i<bnz.length;i++) {
|
||||
if (bnz[i]==index-nom) bnh=i
|
||||
}
|
||||
for (i=0;i<windows.childNodes.length;i++) {
|
||||
node=windows.childNodes[i]
|
||||
if (node.className=="remove") windows.removeChild(node)
|
||||
}
|
||||
|
||||
c=0
|
||||
for (i=0;i<menuc.childNodes.length;i++) {
|
||||
node=menuc.childNodes[i]
|
||||
if (node.className=="entry") {
|
||||
if (c==num) {
|
||||
node.style.display="none"
|
||||
node.id="eremove"
|
||||
}
|
||||
else if (c>num) {
|
||||
node.lang=c-1
|
||||
}
|
||||
c+=1
|
||||
}
|
||||
}
|
||||
menuc.removeChild(document.getElementById("eremove"))
|
||||
|
||||
if (index>nom) {
|
||||
mdown(bnh)
|
||||
mup()
|
||||
}
|
||||
checkscroll()
|
||||
}
|
||||
|
||||
function istop(num) {
|
||||
num=num*1
|
||||
for (i=0;i<bnz.length;i++) {
|
||||
if (bnz[i]==index-nom) bnh=i
|
||||
}
|
||||
if (num==bnh) return true
|
||||
else return false
|
||||
}
|
||||
|
||||
function openwindow(wheader,wcontent,wwidth,wheight,maxornot) {
|
||||
if (opts) {
|
||||
index+=1
|
||||
entry=document.createElement("div")
|
||||
entry.className="entry"
|
||||
entry.innerHTML=wheader
|
||||
entry.lang=index-1
|
||||
entry.onmousedown=function(){if (this.id!="ese") {cemd=this.lang;this.className="entryc"} else {this.id="esec"}}
|
||||
entry.onmouseup=function(){if (this.id!="esec") {cemd=null;this.className="entry"} else {this.id="ese"}}
|
||||
entry.onmouseout=function(){if (this.id=="esec") {this.id="eseb"} else if (this.className=="entryc") this.className="entryb"}
|
||||
entry.onclick=function(){if (this.id!="ese" && this.id!="eseb") {mdown(this.lang);mup()} else {minimizewindow(this.lang)}}
|
||||
menuc.appendChild(entry)
|
||||
|
||||
nwdiv=document.createElement("div")
|
||||
nwp=document.createElement("p")
|
||||
nwpd=document.createElement("div")
|
||||
nwpca=document.createElement("div")
|
||||
nwpmina=document.createElement("div")
|
||||
nwd=document.createElement("div")
|
||||
nwd.className=index-1
|
||||
|
||||
nwd.onmousedown=function(){if (!istop(this.className)) {mdown(this.className);mup()}}
|
||||
|
||||
nwpd.className=index-1
|
||||
nwpd.onmousedown=function(){mdown(this.className)}
|
||||
nwpd.onmouseup=function(){mup()}
|
||||
|
||||
nwpca.className="close"
|
||||
nwpca.lang=index-1
|
||||
nwpmina.className="minimize"
|
||||
nwpmina.lang=index-1
|
||||
nwpca.onmousedown=function(){ccl=this.lang;mdown(this.lang);mup();this.className="closec"}
|
||||
nwpca.onmouseup=function(){if (this.lang==ccl) {ccl=null;closewindow(this.lang)}}
|
||||
nwpmina.onmousedown=function(){cmi=this.lang;mdown(this.lang);mup();this.className="minimizec"}
|
||||
nwpmina.onmouseup=function(){if (this.lang==cmi) {cmi=null;minimizewindow(this.lang)}}
|
||||
nwpca.onmouseout=function(){if (this.lang==ccl) this.className="closesh"; else this.className="close"}
|
||||
nwpmina.onmouseout=function(){if (this.lang==cmi) this.className="minimizesh"; else this.className="minimize"}
|
||||
|
||||
nwdiv.appendChild(nwpca)
|
||||
nwdiv.appendChild(nwpmina)
|
||||
|
||||
nwp.innerHTML=wheader
|
||||
nwp.appendChild(nwpd)
|
||||
|
||||
nwd.innerHTML=wcontent
|
||||
nwdiv.appendChild(nwp)
|
||||
nwdiv.appendChild(nwd)
|
||||
|
||||
qwidth=wwidth
|
||||
qheight=wheight
|
||||
mon=maxornot
|
||||
nwdiv.style.width=qwidth+"px"
|
||||
if (mon) nwdiv.style.height=qheight-22+"px"
|
||||
|
||||
nwdiv.style.zIndex=index
|
||||
windows.appendChild(nwdiv)
|
||||
bnz[index-1]=index
|
||||
mdown(index-1)
|
||||
mup()
|
||||
opts=false
|
||||
setTimeout("openwindow()",1)
|
||||
}
|
||||
else if (nwdiv.scrollWidth==0 || nwdiv.scrollHeight==0) {
|
||||
setTimeout("openwindow()",1)
|
||||
}
|
||||
else {
|
||||
nwh=nwdiv.scrollHeight
|
||||
if (nwdiv.scrollHeight>qheight || mon) {
|
||||
if (mon) nwdiv.style.height=qheight+"px"
|
||||
|
||||
for (i=0;i<nwdiv.childNodes.length;i++) {
|
||||
node=nwdiv.childNodes[i]
|
||||
if (node.nodeName=="DIV" && isnumeric(node.className)) {
|
||||
node.style.height=qheight-22+"px"
|
||||
}
|
||||
}
|
||||
|
||||
nwh=qheight
|
||||
}
|
||||
opts=true
|
||||
getwh()
|
||||
h-=menuh
|
||||
nwdiv.style.top=(h-nwh)/2+"px"
|
||||
nwdiv.style.left=(w-nwdiv.scrollWidth)/2+"px"
|
||||
nwdiv.className="show"
|
||||
|
||||
checkscroll()
|
||||
}
|
||||
}
|
||||
|
||||
function minimizewindow(num) {
|
||||
nom+=1
|
||||
c=0
|
||||
for (i=0;i<windows.childNodes.length;i++) {
|
||||
node=windows.childNodes[i]
|
||||
if (node.nodeName=="DIV") {
|
||||
if (c==num) {
|
||||
node.style.display="none"
|
||||
bnz[c]=1
|
||||
node.style.zIndex=1
|
||||
node.lang="g"
|
||||
}
|
||||
else {
|
||||
bnz[c]+=1
|
||||
node.style.zIndex=bnz[c]
|
||||
}
|
||||
c+=1
|
||||
}
|
||||
}
|
||||
|
||||
c=0
|
||||
for (i=0;i<menuc.childNodes.length;i++) {
|
||||
node=menuc.childNodes[i]
|
||||
if (node.className=="entry") {
|
||||
if (c==num) {
|
||||
node.id=""
|
||||
}
|
||||
c+=1
|
||||
}
|
||||
}
|
||||
|
||||
for (i=0;i<bnz.length;i++) {
|
||||
if (bnz[i]==index) tnt=i
|
||||
}
|
||||
if (index>nom) {
|
||||
mdown(tnt)
|
||||
mup()
|
||||
}
|
||||
}
|
||||
|
||||
function godesktop() {
|
||||
if (index>0) {
|
||||
mdown(dpc)
|
||||
mup()
|
||||
minimizewindow(dpc)
|
||||
dpc+=1
|
||||
if (dpc<index) {
|
||||
setTimeout("godesktop()",1)
|
||||
}
|
||||
else dpc=0
|
||||
}
|
||||
}
|
||||
|
||||
function cnellh() {
|
||||
if (ll) {
|
||||
listslided()
|
||||
}
|
||||
}
|
||||
|
||||
function listslided() {
|
||||
if (lsp>0) {
|
||||
lsp-=10
|
||||
launchlist.style.height=lsp+"%"
|
||||
llto=setTimeout("listslided()",1)
|
||||
}
|
||||
else {
|
||||
launch.className=""
|
||||
ll=false
|
||||
}
|
||||
}
|
||||
|
||||
function listslideu() {
|
||||
if (lsp<80) {
|
||||
lsp+=10
|
||||
launchlist.style.height=lsp+"%"
|
||||
llto=setTimeout("listslideu()",1)
|
||||
}
|
||||
else {
|
||||
ll=true
|
||||
}
|
||||
}
|
||||
|
||||
function launchtlist() {
|
||||
if (!ll) {
|
||||
launch.className="click"
|
||||
listslideu()
|
||||
}
|
||||
}
|
||||
|
||||
function checkscroll() {
|
||||
msh=menuc.scrollHeight
|
||||
if (msh>26) {
|
||||
scrollmenu.className="v"
|
||||
menuc.scrollTop=mst
|
||||
}
|
||||
else {
|
||||
menuc.scrollTop=0
|
||||
//mst=menuc.scrollTop
|
||||
scrollmenu.className=""
|
||||
}
|
||||
}
|
||||
|
||||
function scrolltmenu(ud) {
|
||||
msh=menuc.scrollHeight
|
||||
if (ud) {
|
||||
menuc.scrollTop+=26
|
||||
}
|
||||
else {
|
||||
menuc.scrollTop-=26
|
||||
}
|
||||
mst=menuc.scrollTop
|
||||
}
|
||||
|
||||
function load() {
|
||||
if (lw) {
|
||||
stylesheet=document.createElement("link")
|
||||
stylesheet.rel="stylesheet"
|
||||
stylesheet.type="text/css"
|
||||
stylesheet.href="style.css"
|
||||
head=document.getElementsByTagName("head")[0]
|
||||
head.appendChild(stylesheet)
|
||||
windows=document.createElement("div")
|
||||
windows.id="windows"
|
||||
windows.onmousedown=function(){cnellh()}
|
||||
menu=document.createElement("div")
|
||||
menuc=document.createElement("div")
|
||||
menuc.id="menuc"
|
||||
menu.id="menu"
|
||||
menu.onmousedown=function(){cnellh()}
|
||||
menu.appendChild(menuc)
|
||||
launch=document.createElement("div")
|
||||
launch.id="launch"
|
||||
launch.onmousedown=function(){launchtlist()}
|
||||
desktop=document.createElement("div")
|
||||
desktop.id="desktop"
|
||||
desktop.onmousedown=function(){this.className="click"}
|
||||
desktop.onmouseup=function(){this.className=""}
|
||||
desktop.onclick=function(){godesktop()}
|
||||
scrollmenu=document.createElement("div")
|
||||
scrollmenu.id="scrollmenu"
|
||||
scrollup=document.createElement("div")
|
||||
scrollup.id="scrollup"
|
||||
scrollup.onmousedown=function(){this.className="click"}
|
||||
scrollup.onmouseout=function(){this.className=""}
|
||||
scrollup.onclick=function(){this.className="";scrolltmenu(false)}
|
||||
scrolldown=document.createElement("div")
|
||||
scrolldown.id="scrolldown"
|
||||
scrolldown.onmousedown=function(){this.className="click"}
|
||||
scrolldown.onmouseout=function(){this.className=""}
|
||||
scrolldown.onclick=function(){this.className="";scrolltmenu(true)}
|
||||
scrollmenu.appendChild(scrollup)
|
||||
scrollmenu.appendChild(scrolldown)
|
||||
menu.appendChild(launch)
|
||||
menu.appendChild(desktop)
|
||||
menu.appendChild(scrollmenu)
|
||||
launchlist=document.createElement("div")
|
||||
launchlistc=document.createElement("div")
|
||||
launchlistcc=document.createElement("div")
|
||||
launchlist.id="launchlist"
|
||||
launchlistc.id="launchlistc"
|
||||
launchlistcc.id="launchlistcc"
|
||||
|
||||
ghjkl="sdgtsdgh sh sdf sfdh sdf hdfh dfdfx hgf gfj gfj gfj gfj gfj gfj gfgfj gf gfj gf jg gf j g gfj dj jyfrdj uy dju ydjy jgf jfryj drj d fhjf5d 4df5j 1651j gf6j15dr6j156 1ty5j 6dfy1j 6df1j 56dy1j 56dy1j56 1d6j1 d5f6j1 df56j1 xhfx hf hfd hdf hxdf hdf sfgj fghjftr sjsfjfgjfgjfgj sdgsgsdfg sadfg asdg as gsd sdfag sadfg sagra ergrh adf"
|
||||
welctxt="Welcome to dsktp! Browse through all the cool stuff in the \"Launch\" menu. If you're using Firefox or IE7, you shouldn't have any problems viewing this site. Safari hasn't been tested properly, but there seem to be no problems. Opera appears to have some issues with the \"Launch\" menu where the items aren't showing. Explore!"
|
||||
|
||||
programs=new Array()
|
||||
program=new Array()
|
||||
programimg=new Array()
|
||||
programs[0]=new Array()
|
||||
programs[0][0]="Program 1"
|
||||
programs[0][1]="1st program"
|
||||
programs[0][2]="Random content...<br />asga dhgs 8fd4 9 s fhas dhszf gzss sdg 5s s 5 dg5dfh adfh!"+ghjkl
|
||||
programs[0][3]=200
|
||||
programs[0][4]=150
|
||||
programs[0][5]=false
|
||||
programs[0][6]=null
|
||||
programs[1]=new Array()
|
||||
programs[1][0]="Program 2"
|
||||
programs[1][1]="2nd program"
|
||||
programs[1][2]="Random content...<br />asga dhgsdfdf 8df458 df dfh fhass gsd8 49 s489 dhdfh adfh!"
|
||||
programs[1][3]=200
|
||||
programs[1][4]=150
|
||||
programs[1][5]=true
|
||||
programs[1][6]=null
|
||||
programs[2]=new Array()
|
||||
programs[2][0]="Program 3"
|
||||
programs[2][1]="3rd program"
|
||||
programs[2][2]="Random content...<br />asdf hxdf hxdf dh dth th ga dhgsfgj dfhhas dh 5g4dfh adfh!"
|
||||
programs[2][3]=100
|
||||
programs[2][4]=300
|
||||
programs[2][5]=false
|
||||
programs[2][6]="qmark"
|
||||
|
||||
nop=programs.length
|
||||
for (i=0;i<nop;i++) {
|
||||
program[i]=document.createElement("div")
|
||||
programimg[i]=document.createElement("div")
|
||||
if (programs[i][6]) programimg[i].style.backgroundImage="url(icons/"+programs[i][6]+".png)"
|
||||
program[i].innerHTML=programs[i][0]
|
||||
program[i].lang=i
|
||||
program[i].onclick=function(){listslided();openwindow(programs[this.lang][1],programs[this.lang][2],programs[this.lang][3],programs[this.lang][4],programs[this.lang][5])}
|
||||
program[i].appendChild(programimg[i])
|
||||
launchlistcc.appendChild(program[i])
|
||||
}
|
||||
launchlistc.appendChild(launchlistcc)
|
||||
launchlist.appendChild(launchlistc)
|
||||
document.body.appendChild(windows)
|
||||
document.body.appendChild(menu)
|
||||
|
||||
bnz=new Array()
|
||||
|
||||
img=new Array()
|
||||
img[0]=new Image()
|
||||
img[0].src="img/closec.png"
|
||||
img[1]=new Image()
|
||||
img[1].src="img/closeh.png"
|
||||
img[2]=new Image()
|
||||
img[2].src="img/desktopc.png"
|
||||
img[3]=new Image()
|
||||
img[3].src="img/desktoph.png"
|
||||
img[4]=new Image()
|
||||
img[4].src="img/entryc.png"
|
||||
img[5]=new Image()
|
||||
img[5].src="img/entryh.png"
|
||||
img[6]=new Image()
|
||||
img[6].src="img/entrysel.png"
|
||||
img[7]=new Image()
|
||||
img[7].src="img/entryselc.png"
|
||||
img[8]=new Image()
|
||||
img[8].src="img/entryselh.png"
|
||||
img[9]=new Image()
|
||||
img[9].src="img/launchc.png"
|
||||
img[10]=new Image()
|
||||
img[10].src="img/launchh.png"
|
||||
img[11]=new Image()
|
||||
img[11].src="img/lleh.png"
|
||||
img[12]=new Image()
|
||||
img[12].src="img/minmizec.png"
|
||||
img[13]=new Image()
|
||||
img[13].src="img/minimizeh.png"
|
||||
img[14]=new Image()
|
||||
img[14].src="img/scrolldownc.png"
|
||||
img[15]=new Image()
|
||||
img[15].src="img/scrollupc.png"
|
||||
img[16]=new Image()
|
||||
img[16].src="img/top.png"
|
||||
|
||||
lw=false
|
||||
setTimeout("load()",100)
|
||||
}
|
||||
else {
|
||||
document.body.appendChild(launchlist)
|
||||
openwindow("Welcome",welctxt,200,200)
|
||||
rgh()
|
||||
}
|
||||
}
|
||||
|
||||
werty=0
|
||||
sdfg=0
|
||||
tnhjy=0
|
||||
function rgh() {
|
||||
if (tnhjy>0) {
|
||||
if (sdfg==0) {
|
||||
sdfg=1
|
||||
if (werty<tnhjy) setTimeout("rgh()",50)
|
||||
}
|
||||
else {
|
||||
openwindow("Hmm ..."+werty,"asdG SDHdfhDFAGH swahWRHAYU!",170)
|
||||
werty+=1
|
||||
sdfg=0
|
||||
setTimeout("rgh()",50)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
window.onload=load
|
||||
window.onresize=checkscroll
|
||||
document.onmousemove=movewindow
|
||||
document.onmouseup=ccn
|
||||
434
projects/dsktp/style.css
Normal file
@@ -0,0 +1,434 @@
|
||||
* {
|
||||
margin:0;
|
||||
padding:0;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color:#000;
|
||||
width:100%;
|
||||
height:100%;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
#windows {
|
||||
position:absolute;
|
||||
top:0;
|
||||
right:0;
|
||||
bottom:30px;
|
||||
left:0;
|
||||
height:100%;
|
||||
overflow:hidden;
|
||||
background:#c4ff2f url(img/logo.jpg) no-repeat center center;
|
||||
}
|
||||
|
||||
#menu {
|
||||
position:absolute;
|
||||
right:0;
|
||||
bottom:0;
|
||||
left:0;
|
||||
height:30px;
|
||||
background:#365c7b url(img/menubar.png) repeat-x;
|
||||
z-index:2;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
#menuc {
|
||||
position:absolute;
|
||||
top:0;
|
||||
right:140px;
|
||||
bottom:0;
|
||||
left:20px;
|
||||
height:26px;
|
||||
overflow:hidden;
|
||||
background:none;
|
||||
}
|
||||
|
||||
#scrollmenu {
|
||||
position:absolute;
|
||||
top:0;
|
||||
bottom:0;
|
||||
left:0;
|
||||
height:30px;
|
||||
width:15px;
|
||||
background:#ccc;
|
||||
display:none;
|
||||
}
|
||||
|
||||
#scrollmenu.v {
|
||||
display:block;
|
||||
}
|
||||
|
||||
#scrollup {
|
||||
height:15px;
|
||||
width:15px;
|
||||
background:url(img/scrollup.png) no-repeat;
|
||||
}
|
||||
|
||||
#scrollup.click {
|
||||
background:url(img/scrollupc.png) no-repeat;
|
||||
}
|
||||
|
||||
#scrolldown {
|
||||
height:15px;
|
||||
width:15px;
|
||||
background:url(img/scrolldown.png) no-repeat;
|
||||
}
|
||||
|
||||
#scrolldown.click {
|
||||
background:url(img/scrolldownc.png) no-repeat;
|
||||
}
|
||||
|
||||
.entry {
|
||||
float:right;
|
||||
margin:4px 3px 0 0;
|
||||
width:100px;
|
||||
height:16px;
|
||||
background:#307265 url(img/entry.png) repeat-x;
|
||||
border:1px solid #fff;
|
||||
color:#fff;
|
||||
padding:2px 3px 2px 3px;
|
||||
font:14px arial;
|
||||
cursor:default;
|
||||
}
|
||||
|
||||
.entryc {
|
||||
float:right;
|
||||
margin:4px 3px 0 0;
|
||||
width:100px;
|
||||
height:16px;
|
||||
background:#307265 url(img/entryc.png) repeat-x;
|
||||
border:1px solid #fff;
|
||||
color:#fff;
|
||||
padding:2px 3px 2px 3px;
|
||||
font:14px arial;
|
||||
cursor:default;
|
||||
}
|
||||
|
||||
.entryb {
|
||||
float:right;
|
||||
margin:4px 3px 0 0;
|
||||
width:100px;
|
||||
height:16px;
|
||||
background:#307265 url(img/entry.png) repeat-x;
|
||||
border:1px solid #fff;
|
||||
color:#fff;
|
||||
padding:2px 3px 2px 3px;
|
||||
font:14px arial;
|
||||
cursor:default;
|
||||
}
|
||||
|
||||
.entrycc {
|
||||
float:right;
|
||||
margin:4px 3px 0 0;
|
||||
width:100px;
|
||||
height:16px;
|
||||
background:#307265 url(img/entryc.png) repeat-x;
|
||||
border:1px solid #fff;
|
||||
color:#fff;
|
||||
padding:2px 3px 2px 3px;
|
||||
font:14px arial;
|
||||
cursor:default;
|
||||
}
|
||||
|
||||
#ese {
|
||||
background:#307265 url(img/entrysel.png) repeat-x;
|
||||
border-color:#000;
|
||||
}
|
||||
|
||||
#ese:hover {
|
||||
background:#307265 url(img/entryselh.png) repeat-x;
|
||||
border-color:#000;
|
||||
}
|
||||
|
||||
#eseb {
|
||||
background:#307265 url(img/entrysel.png) repeat-x;
|
||||
border-color:#000;
|
||||
}
|
||||
|
||||
#esec, #eseb:hover {
|
||||
background:#307265 url(img/entryselc.png) repeat-x;
|
||||
border-color:#000;
|
||||
}
|
||||
|
||||
.entry:hover {
|
||||
background:#307265 url(img/entryh.png) repeat-x;
|
||||
}
|
||||
|
||||
.entryb:hover {
|
||||
background:#307265 url(img/entryc.png) repeat-x;
|
||||
}
|
||||
|
||||
#launch {
|
||||
position:absolute;
|
||||
right:0;
|
||||
top:0;
|
||||
height:30px;
|
||||
width:90px;
|
||||
background:url(img/launch.png) no-repeat;
|
||||
}
|
||||
|
||||
#launch.click, #launch.click:hover {
|
||||
background:url(img/launchc.png) no-repeat;
|
||||
}
|
||||
|
||||
#launch:hover {
|
||||
background:url(img/launchh.png) no-repeat;
|
||||
}
|
||||
|
||||
#desktop {
|
||||
position:absolute;
|
||||
right:90px;
|
||||
top:0;
|
||||
height:30px;
|
||||
width:42px;
|
||||
background:url(img/desktop.png) no-repeat;
|
||||
}
|
||||
|
||||
#desktop:hover {
|
||||
background:url(img/desktoph.png) no-repeat;
|
||||
}
|
||||
|
||||
#desktop.click, #desktop.click:hover {
|
||||
background:url(img/desktopc.png) no-repeat;
|
||||
}
|
||||
|
||||
#launchlist {
|
||||
position:absolute;
|
||||
bottom:0;
|
||||
right:0;
|
||||
width:200px;
|
||||
height:0%;
|
||||
background:url(img/llt.png) no-repeat;
|
||||
background-position:top left;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
#launchlistc {
|
||||
position:absolute;
|
||||
top:13px;
|
||||
left:0;
|
||||
width:200px;
|
||||
height:100%;
|
||||
background:#2745ff url(img/ll.png) repeat-y;
|
||||
}
|
||||
|
||||
#launchlistcc {
|
||||
position:absolute;
|
||||
bottom:43px;
|
||||
top:-8px;
|
||||
left:0;
|
||||
width:200px;
|
||||
overflow-y:auto;
|
||||
overflow-x:hidden;
|
||||
}
|
||||
|
||||
#launchlistcc div {
|
||||
position:relative;
|
||||
margin:5px 0 5px 10px;
|
||||
padding:6px 5px 0 32px;
|
||||
width:133px;
|
||||
height:24px;
|
||||
background:#182c9e url(img/lle.png) repeat-y;
|
||||
font:14px tahoma;
|
||||
color:#fff;
|
||||
cursor:default;
|
||||
}
|
||||
|
||||
#launchlistcc div div {
|
||||
position:absolute;
|
||||
top:2px;
|
||||
left:2px;
|
||||
margin:0;
|
||||
padding:0;
|
||||
width:26px;
|
||||
height:26px;
|
||||
background-image:url(img/deficon.png);
|
||||
background-color:transparent;
|
||||
background-repeat:no-repeat;
|
||||
}
|
||||
|
||||
#launchlistcc div:hover {
|
||||
background:#778bfe url(img/lleh.png) repeat-y;
|
||||
}
|
||||
|
||||
#launchlistcc div div:hover {
|
||||
background-image:url(img/deficon.png);
|
||||
background-color:transparent;
|
||||
background-repeat:no-repeat;
|
||||
}
|
||||
|
||||
#launchlistc #endchild {
|
||||
height:20px;
|
||||
width:180px;
|
||||
background:none;
|
||||
}
|
||||
|
||||
#windows div {
|
||||
position:absolute;
|
||||
background:#000 url('img/top.png') repeat-x;
|
||||
visibility:hidden;
|
||||
overflow-x:hidden;
|
||||
overflow-y:hidden;
|
||||
}
|
||||
|
||||
#windows #selected {
|
||||
background:#000 url('img/topselected.png') repeat-x;
|
||||
visibility:hidden;
|
||||
}
|
||||
|
||||
#windows div.show, #windows div.show p, #windows div.show div, #windows #selected.show, #windows #selected.show p, #windows #selected.show div {
|
||||
visibility:visible;
|
||||
}
|
||||
|
||||
#windows div p {
|
||||
color:#444;
|
||||
font:12px tahoma;
|
||||
padding:0 2px 0 2px;
|
||||
height:15px;
|
||||
cursor:default;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
#windows div p div {
|
||||
position:absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
height:100%;
|
||||
width:100%;
|
||||
background:#000;
|
||||
opacity:.0;
|
||||
filter:alpha(opacity=0);
|
||||
-moz-opacity:.0;
|
||||
border:0;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
#windows div.close {
|
||||
padding:0;
|
||||
position:absolute;
|
||||
right:1px;
|
||||
top:1px;
|
||||
width:13px;
|
||||
height:13px;
|
||||
background:url(img/close.png) no-repeat;
|
||||
border:0;
|
||||
z-index:999;
|
||||
}
|
||||
|
||||
#windows div.closesh {
|
||||
padding:0;
|
||||
position:absolute;
|
||||
right:1px;
|
||||
top:1px;
|
||||
width:13px;
|
||||
height:13px;
|
||||
background:url(img/close.png) no-repeat;
|
||||
border:0;
|
||||
z-index:999;
|
||||
}
|
||||
|
||||
#windows div.closesh:hover {
|
||||
padding:0;
|
||||
position:absolute;
|
||||
right:1px;
|
||||
top:1px;
|
||||
width:13px;
|
||||
height:13px;
|
||||
background:url(img/closec.png) no-repeat;
|
||||
border:0;
|
||||
z-index:999;
|
||||
}
|
||||
|
||||
#windows div.close:hover {
|
||||
background:url(img/closeh.png) no-repeat;
|
||||
}
|
||||
|
||||
#windows div.closec {
|
||||
padding:0;
|
||||
position:absolute;
|
||||
right:1px;
|
||||
top:1px;
|
||||
width:13px;
|
||||
height:13px;
|
||||
background:#000 url(img/closec.png) no-repeat;
|
||||
border:0;
|
||||
z-index:999;
|
||||
}
|
||||
|
||||
#windows div.minimize {
|
||||
padding:0;
|
||||
position:absolute;
|
||||
right:15px;
|
||||
top:1px;
|
||||
width:13px;
|
||||
height:13px;
|
||||
background:url(img/minimize.png) no-repeat;
|
||||
border:0;
|
||||
z-index:999;
|
||||
}
|
||||
|
||||
#windows div.minimizesh {
|
||||
padding:0;
|
||||
position:absolute;
|
||||
right:15px;
|
||||
top:1px;
|
||||
width:13px;
|
||||
height:13px;
|
||||
background:url(img/minimize.png) no-repeat;
|
||||
border:0;
|
||||
z-index:999;
|
||||
}
|
||||
|
||||
#windows div.minimizesh:hover {
|
||||
padding:0;
|
||||
position:absolute;
|
||||
right:15px;
|
||||
top:1px;
|
||||
width:13px;
|
||||
height:13px;
|
||||
background:url(img/minimizec.png) no-repeat;
|
||||
border:0;
|
||||
z-index:999;
|
||||
}
|
||||
|
||||
#windows div.minimize:hover {
|
||||
background:url(img/minimizeh.png) no-repeat;
|
||||
}
|
||||
|
||||
#windows div.minimizec {
|
||||
padding:0;
|
||||
position:absolute;
|
||||
right:15px;
|
||||
top:1px;
|
||||
width:13px;
|
||||
height:13px;
|
||||
background:#000 url(img/minimizec.png) no-repeat;
|
||||
border:0;
|
||||
z-index:999;
|
||||
}
|
||||
|
||||
#windows #selected p {
|
||||
color:#000;
|
||||
}
|
||||
|
||||
#windows div div {
|
||||
margin:0;
|
||||
font:12px tahoma;
|
||||
position:relative;
|
||||
right:0;
|
||||
top:0;
|
||||
background:#000;
|
||||
border-width:0 1px 1px 1px;
|
||||
border-style:solid;
|
||||
border-color:#b3b3b3;
|
||||
padding:3px;
|
||||
color:#555;
|
||||
overflow-y:auto;
|
||||
overflow-x:hidden;
|
||||
}
|
||||
|
||||
#windows #selected div {
|
||||
color:#fff;
|
||||
border-color:#7a7a7a;
|
||||
}
|
||||