summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/constants.pm2
-rw-r--r--lib/headers.pm19
2 files changed, 11 insertions, 10 deletions
diff --git a/lib/constants.pm b/lib/constants.pm
index 36f12b9..ae42b31 100644
--- a/lib/constants.pm
+++ b/lib/constants.pm
@@ -74,7 +74,7 @@ our $ZIP_PATH = "/usr/bin/zip";
our $BUCKY_WELCOME_SUBJECT = "WELCOME TO BUCKY";
our $BUCKY_WELCOME_BODY = <<WORDUP;
-<b>bucky</b> is a bulletin board where you can post comments and upload files (music, video, pics, software, etc). you can share these links with your friends. to start your own post, you can use the "post" link at the top of the screen, or the quickstart form on the <a href="$BUCKY/index/">home page</a>. you can ftp files too if you have to send something large.
+<b>bucky</b> is a bulletin board where you can post comments and upload files (music, video, pics, software, etc). to start your own post, you can use the "post" link at the top of the screen, or on the <a href="$BUCKY/index/">home page</a>.
hope you find this board useful!!
diff --git a/lib/headers.pm b/lib/headers.pm
index dffc84c..6da5bb6 100644
--- a/lib/headers.pm
+++ b/lib/headers.pm
@@ -37,6 +37,7 @@ ERRORHEADER
print <<head;
<html>
<head>
+ <meta charset="UTF-8">
<title>$BUCKY_NAME [$buhtitle]</title>
<link rel="stylesheet" href="/css/bogart.css" type="text/css">
<link rel="shortcut icon" href="/favicon.ico">
@@ -56,7 +57,7 @@ head
{
print qq! </head>\n\n<body>\n!;
}
- if ($BUCKY_CONFIG->{SNOWBALL_MACHINE} eq "on" && $0 =~ /index/) # && (time % 13) < 7)
+ if ($BUCKY_CONFIG->{SNOWBALL_MACHINE} eq "on" && $0 =~ /index/ && (time % 13) < 7)
{
do_snowfall();
$title = "ACTIVATE SNOWBALL MACHINE !!!";
@@ -294,13 +295,13 @@ function initsnow() {
}
var snowsizerange=snowmaxsize-snowminsize
for (i=0;i<=snowmax;i++) {
- crds[i] = 0;
+ crds[i] = 0;
lftrght[i] = Math.random()*15;
x_mv[i] = 0.03 + Math.random()/10;
snow[i]=document.getElementById("s"+i)
snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)]
snow[i].size=randommaker(snowsizerange)+snowminsize
- snow[i].style.fontSize=snow[i].size
+ snow[i].style.fontSize=snow[i].size + "px"
snow[i].style.color=snowcolor[randommaker(snowcolor.length)]
snow[i].sink=sinkspeed*snow[i].size/5
if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}
@@ -308,8 +309,8 @@ function initsnow() {
if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}
if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}
snow[i].posy=randommaker(6*marginbottom-marginbottom-6*snow[i].size)
- snow[i].style.left=snow[i].posx
- snow[i].style.top=snow[i].posy
+ snow[i].style.left=snow[i].posx + "px"
+ snow[i].style.top=snow[i].posy + "px"
}
movesnow()
}
@@ -318,8 +319,8 @@ function movesnow() {
for (i=0;i<=snowmax;i++) {
crds[i] += x_mv[i];
snow[i].posy+=snow[i].sink
- snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i]);
- snow[i].style.top=snow[i].posy
+ snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i]) + "px";
+ snow[i].style.top=snow[i].posy + "px"
if (snow[i].posy>=marginbottom-6*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){
if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}
@@ -329,14 +330,14 @@ function movesnow() {
snow[i].posy=0
}
}
- var timer=setTimeout("movesnow()",50)
+ var timer=setTimeout(movesnow,50)
}
for (i=0;i<=snowmax;i++) {
document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowletter+"</span>")
}
if (browserok) {
- window.onload=initsnow
+ window.addEventListener("DOMContentLoaded", initsnow)
}
</script>