kol.js 0.0.2 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -6
- package/src/Cache.ts +33 -0
- package/src/Client.test.ts +206 -0
- package/src/Client.ts +506 -0
- package/src/Player.test.ts +101 -0
- package/src/Player.ts +209 -0
- package/src/__fixtures__/backoffice_prices_alien_meat.html +46 -0
- package/src/__fixtures__/backoffice_prices_lov_elephant.html +30 -0
- package/src/__fixtures__/backoffice_prices_magical_mystery_juice.html +30 -0
- package/src/__fixtures__/backoffice_prices_tofurkey_leg.html +48 -0
- package/src/__fixtures__/backoffice_prices_turtle_wax_greaves.html +42 -0
- package/src/__fixtures__/backoffice_prices_turtle_wax_helmet.html +42 -0
- package/src/__fixtures__/backoffice_prices_turtle_wax_shield.html +47 -0
- package/src/__fixtures__/desc_effect_pasta_oneness.html +31 -0
- package/src/__fixtures__/desc_effect_the_visible_adventurer.html +31 -0
- package/src/__fixtures__/desc_item_alien_meat.html +38 -0
- package/src/__fixtures__/desc_item_hypodermic_needle.html +39 -0
- package/src/__fixtures__/desc_item_lov_elephant.html +39 -0
- package/src/__fixtures__/desc_item_magical_mystery_juice.html +39 -0
- package/src/__fixtures__/desc_item_mosquito_larva.html +39 -0
- package/src/__fixtures__/desc_item_tofurkey_leg.html +38 -0
- package/src/__fixtures__/desc_item_turtle_wax_shield.html +79 -0
- package/src/__fixtures__/desc_skill_impetuous_sauciness.html +32 -0
- package/src/__fixtures__/desc_skill_overload_discarded_refridgerator.html +32 -0
- package/src/__fixtures__/familiar_in_standard_run.html +184 -0
- package/src/__fixtures__/searchplayer_mad_carew.html +53 -0
- package/src/__fixtures__/showplayer_dependence_day.html +47 -0
- package/src/__fixtures__/showplayer_golden_gun.html +28 -0
- package/src/__fixtures__/showplayer_regular.html +56 -0
- package/{dist/index.d.ts → src/index.ts} +1 -0
- package/src/testUtils.ts +13 -0
- package/src/utils/avatar.ts +90 -0
- package/src/utils/kmail.ts +48 -0
- package/src/utils/leaderboard.ts +84 -0
- package/src/utils/utils.ts +33 -0
- package/dist/Cache.d.ts +0 -11
- package/dist/Cache.js +0 -26
- package/dist/Client.d.ts +0 -84
- package/dist/Client.js +0 -343
- package/dist/Client.test.d.ts +0 -1
- package/dist/Client.test.js +0 -162
- package/dist/Player.d.ts +0 -28
- package/dist/Player.js +0 -136
- package/dist/Player.test.d.ts +0 -1
- package/dist/Player.test.js +0 -48
- package/dist/index.js +0 -3
- package/dist/testUtils.d.ts +0 -2
- package/dist/testUtils.js +0 -10
- package/dist/utils/avatar.d.ts +0 -1
- package/dist/utils/avatar.js +0 -70
- package/dist/utils/kmail.d.ts +0 -32
- package/dist/utils/kmail.js +0 -1
- package/dist/utils/leaderboard.d.ts +0 -16
- package/dist/utils/leaderboard.js +0 -56
- package/dist/utils/utils.d.ts +0 -4
- package/dist/utils/utils.js +0 -27
- package/dist/utils/visit.d.ts +0 -3
- package/dist/utils/visit.js +0 -10
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/html4/loose.dtd">
|
|
3
|
+
<html><head>
|
|
4
|
+
<title>Item Description</title>
|
|
5
|
+
<link rel="stylesheet" type="text/css" href="/images/styles.20230117d.css">
|
|
6
|
+
<style>
|
|
7
|
+
a.hand {
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
10
|
+
</style>
|
|
11
|
+
<script language=Javascript src="/images/scripts/keybinds.min.2.js"></script>
|
|
12
|
+
<script language=Javascript src="/images/scripts/window.20111231.js"></script>
|
|
13
|
+
<script language=Javascript src="/images/scripts/jquery-1.3.1.min.js"></script>
|
|
14
|
+
<script language="javascript" src="/tcrs.js"></script><link rel="stylesheet" href="/tcrs.css" /><script language="Javascript" src="/basics.js"></script><link rel="stylesheet" href="/basics.1.css" /></head>
|
|
15
|
+
<body>
|
|
16
|
+
|
|
17
|
+
<div id="description" class=small><center><img src="/images/itemimages/pl_elephant.gif" height=30 width=30 alt="pl_elephant"><br><u><a class="hand" style="cursor: pointer;" onclick='window.open("http://kol.coldfront.net/thekolwiki/index.php/LOV_Elephant", "_blank");window.close();'><b>LOV Elephant</b></u></a></center><p><blockquote>This cute plush elephant is the L.O.V.'s unofficial mascot. They picked an elephant because it is nigh-impossible to put an elephant in space, and that's the kind of sharp near-irony that nerds crave.<!-- itemid: 9327 --><br><br>Type: <b>off-hand item (shield)</b><br>Damage Reduction: <b>6</b><br>Muscle Required: <b>25</b><br>Selling Price: <b>5 Meat.</b><br><b>Gift Item</b><p><center><b><font color=blue><p><center><b><font color="blue">Damage Reduction: 10</font></b></center></font></b></center></blockquote><script type="text/javascript">
|
|
18
|
+
<!--
|
|
19
|
+
var resizetries = 0;
|
|
20
|
+
var fsckinresize;
|
|
21
|
+
setTimeout(fsckinresize = function () {
|
|
22
|
+
var desch = document.getElementById('description').offsetHeight;
|
|
23
|
+
if (desch < 100 && resizetries < 5) {
|
|
24
|
+
setTimeout(fsckinresize, 100);
|
|
25
|
+
resizetries++;
|
|
26
|
+
}
|
|
27
|
+
if (desch < 100) desch = 200;
|
|
28
|
+
//alert('resizing on try #' + resizetries);
|
|
29
|
+
if (self.resizeTo && window.outerHeight) {
|
|
30
|
+
self.resizeTo(400, desch + (window.outerHeight - window.innerHeight) + 50);
|
|
31
|
+
}
|
|
32
|
+
else if (self.resizeTo ) { self.resizeTo(400, desch+130); }
|
|
33
|
+
else { window.innerHeight = newh; }
|
|
34
|
+
}, 100);
|
|
35
|
+
//-->
|
|
36
|
+
</script>
|
|
37
|
+
</div>
|
|
38
|
+
</body>
|
|
39
|
+
<script src="/onfocus.1.js"></script></html>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/html4/loose.dtd">
|
|
3
|
+
<html><head>
|
|
4
|
+
<title>Item Description</title>
|
|
5
|
+
<link rel="stylesheet" type="text/css" href="/images/styles.20230117d.css">
|
|
6
|
+
<style>
|
|
7
|
+
a.hand {
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
10
|
+
</style>
|
|
11
|
+
<script language=Javascript src="/images/scripts/keybinds.min.2.js"></script>
|
|
12
|
+
<script language=Javascript src="/images/scripts/window.20111231.js"></script>
|
|
13
|
+
<script language=Javascript src="/images/scripts/jquery-1.3.1.min.js"></script>
|
|
14
|
+
<script language="javascript" src="/tcrs.js"></script><link rel="stylesheet" href="/tcrs.css" /><script language="Javascript" src="/basics.js"></script><link rel="stylesheet" href="/basics.1.css" /></head>
|
|
15
|
+
<body>
|
|
16
|
+
|
|
17
|
+
<div id="description" class=small><center><img data-tcrs="somersault" src="/images/itemimages/potion4.gif" height=30 width=30 alt="potion4"><br><u><a class="hand" style="cursor: pointer;" onclick='window.open("http://kol.coldfront.net/thekolwiki/index.php/magical_mystery_juice", "_blank");window.close();'><b>tumbling mystery juice</b></u></a></center><p><blockquote>This is a potion that's positively bubbling with Magicalness. Roll up! (your sleeves, and drink it.)<!-- itemid: 518 --><br><br>Type: <b>usable (also usable in combat)</b><br>Selling Price: <b>50 Meat.</b><br>Cannot be traded<p><center><b><font color=blue>Restores an amount of MP that increases as you level up</font></b></center></blockquote><script type="text/javascript">
|
|
18
|
+
<!--
|
|
19
|
+
var resizetries = 0;
|
|
20
|
+
var fsckinresize;
|
|
21
|
+
setTimeout(fsckinresize = function () {
|
|
22
|
+
var desch = document.getElementById('description').offsetHeight;
|
|
23
|
+
if (desch < 100 && resizetries < 5) {
|
|
24
|
+
setTimeout(fsckinresize, 100);
|
|
25
|
+
resizetries++;
|
|
26
|
+
}
|
|
27
|
+
if (desch < 100) desch = 200;
|
|
28
|
+
//alert('resizing on try #' + resizetries);
|
|
29
|
+
if (self.resizeTo && window.outerHeight) {
|
|
30
|
+
self.resizeTo(400, desch + (window.outerHeight - window.innerHeight) + 50);
|
|
31
|
+
}
|
|
32
|
+
else if (self.resizeTo ) { self.resizeTo(400, desch+130); }
|
|
33
|
+
else { window.innerHeight = newh; }
|
|
34
|
+
}, 100);
|
|
35
|
+
//-->
|
|
36
|
+
</script>
|
|
37
|
+
</div>
|
|
38
|
+
</body>
|
|
39
|
+
<script src="/onfocus.1.js"></script></html>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/html4/loose.dtd">
|
|
3
|
+
<html><head>
|
|
4
|
+
<title>Item Description</title>
|
|
5
|
+
<link rel="stylesheet" type="text/css" href="/images/styles.20230117d.css">
|
|
6
|
+
<style>
|
|
7
|
+
a.hand {
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
10
|
+
</style>
|
|
11
|
+
<script language=Javascript src="/images/scripts/keybinds.min.2.js"></script>
|
|
12
|
+
<script language=Javascript src="/images/scripts/window.20111231.js"></script>
|
|
13
|
+
<script language=Javascript src="/images/scripts/jquery-1.3.1.min.js"></script>
|
|
14
|
+
<script language="javascript" src="/tcrs.js"></script><link rel="stylesheet" href="/tcrs.css" /><script language="Javascript" src="/basics.js"></script><link rel="stylesheet" href="/basics.1.css" /></head>
|
|
15
|
+
<body>
|
|
16
|
+
|
|
17
|
+
<div id="description" class=small><center><img src="/images/itemimages/larva.gif" height=30 width=30 alt="larva"><br><u><a class="hand" style="cursor: pointer;" onclick='window.open("http://kol.coldfront.net/thekolwiki/index.php/mosquito_larva", "_blank");window.close();'><b>mosquito larva</b></u></a></center><p><blockquote>This is the larva of a mosquito. It's very tiny, but with some tender loving care (and perhaps a terrarium,) it could develop into a full-fledged mosquito.<!-- itemid: 275 --><p><center><b>Hatches into:</b><br><table cellpadding=5 style='border: 1px solid black;'><tr><td align=center><a class=nounder href=desc_familiar.php?which=1><img onClick='fam(1)' src="/images/itemimages/familiar1.gif" width=30 height=30 border=0><br><b>Mosquito</b></td></tr></table></center><br><br>Type: <b>familiar</b><Br>Cannot be traded or discarded<br><b>Quest Item</b></blockquote><script type="text/javascript">
|
|
18
|
+
<!--
|
|
19
|
+
var resizetries = 0;
|
|
20
|
+
var fsckinresize;
|
|
21
|
+
setTimeout(fsckinresize = function () {
|
|
22
|
+
var desch = document.getElementById('description').offsetHeight;
|
|
23
|
+
if (desch < 100 && resizetries < 5) {
|
|
24
|
+
setTimeout(fsckinresize, 100);
|
|
25
|
+
resizetries++;
|
|
26
|
+
}
|
|
27
|
+
if (desch < 100) desch = 200;
|
|
28
|
+
//alert('resizing on try #' + resizetries);
|
|
29
|
+
if (self.resizeTo && window.outerHeight) {
|
|
30
|
+
self.resizeTo(400, desch + (window.outerHeight - window.innerHeight) + 50);
|
|
31
|
+
}
|
|
32
|
+
else if (self.resizeTo ) { self.resizeTo(400, desch+130); }
|
|
33
|
+
else { window.innerHeight = newh; }
|
|
34
|
+
}, 100);
|
|
35
|
+
//-->
|
|
36
|
+
</script>
|
|
37
|
+
</div>
|
|
38
|
+
</body>
|
|
39
|
+
<script src="/onfocus.1.js"></script></html>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/html4/loose.dtd">
|
|
3
|
+
<html><head>
|
|
4
|
+
<title>Item Description</title>
|
|
5
|
+
<link rel="stylesheet" type="text/css" href="/images/styles.20230117d.css">
|
|
6
|
+
<style>
|
|
7
|
+
a.hand {
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
10
|
+
</style>
|
|
11
|
+
<script language=Javascript src="/images/scripts/keybinds.min.2.js"></script>
|
|
12
|
+
<script language=Javascript src="/images/scripts/window.20111231.js"></script>
|
|
13
|
+
<script language="Javascript" src="/basics.js"></script><link rel="stylesheet" href="/basics.1.css" /></head>
|
|
14
|
+
<body>
|
|
15
|
+
|
|
16
|
+
<div id="description" class=small><center><img src="/images/itemimages/turkeyleg.gif" height=30 width=30 alt="turkeyleg"><br><u><a class="hand" style="cursor: pointer;" onclick='window.open("http://kol.coldfront.net/thekolwiki/index.php/tofurkey_leg", "_blank");window.close();'><b>tofurkey leg</b></u></a></center><p><blockquote>This is the leg of a bizarre beast made entirely of bean curd and artificial flavoring. It's definitely more fun to say than to try and eat.<!-- itemid: 1365 --><br><br>Type: <b>food <font color=blue>(awesome)</font></b><br>Size: <b>3</b><br>Level required: <b>5</b><br>Selling Price: <b>50 Meat.</b></blockquote><script type="text/javascript">
|
|
17
|
+
<!--
|
|
18
|
+
var resizetries = 0;
|
|
19
|
+
var fsckinresize;
|
|
20
|
+
setTimeout(fsckinresize = function () {
|
|
21
|
+
var desch = document.getElementById('description').offsetHeight;
|
|
22
|
+
if (desch < 100 && resizetries < 5) {
|
|
23
|
+
setTimeout(fsckinresize, 100);
|
|
24
|
+
resizetries++;
|
|
25
|
+
}
|
|
26
|
+
if (desch < 100) desch = 200;
|
|
27
|
+
//alert('resizing on try #' + resizetries);
|
|
28
|
+
if (self.resizeTo && window.outerHeight) {
|
|
29
|
+
self.resizeTo(400, desch + (window.outerHeight - window.innerHeight) + 50);
|
|
30
|
+
}
|
|
31
|
+
else if (self.resizeTo ) { self.resizeTo(400, desch+130); }
|
|
32
|
+
else { window.innerHeight = newh; }
|
|
33
|
+
}, 100);
|
|
34
|
+
//-->
|
|
35
|
+
</script>
|
|
36
|
+
</div>
|
|
37
|
+
</body>
|
|
38
|
+
<script src="/onfocus.1.js"></script></html>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>Item Description</title>
|
|
5
|
+
<link
|
|
6
|
+
rel="stylesheet"
|
|
7
|
+
type="text/css"
|
|
8
|
+
href="https://d2uyhvukfffg5a.cloudfront.net/styles.20230117d.css"
|
|
9
|
+
/>
|
|
10
|
+
<style>
|
|
11
|
+
a.hand {
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
}
|
|
14
|
+
</style>
|
|
15
|
+
<script
|
|
16
|
+
language="Javascript"
|
|
17
|
+
src="https://d2uyhvukfffg5a.cloudfront.net/scripts/keybinds.min.2.js"
|
|
18
|
+
></script>
|
|
19
|
+
<script
|
|
20
|
+
language="Javascript"
|
|
21
|
+
src="https://d2uyhvukfffg5a.cloudfront.net/scripts/window.20111231.js"
|
|
22
|
+
></script>
|
|
23
|
+
</head>
|
|
24
|
+
<body>
|
|
25
|
+
<div id="description" class="small">
|
|
26
|
+
<center>
|
|
27
|
+
<img
|
|
28
|
+
src="https://d2uyhvukfffg5a.cloudfront.net/itemimages/waxshield.gif"
|
|
29
|
+
height="30"
|
|
30
|
+
width="30"
|
|
31
|
+
alt="waxshield"
|
|
32
|
+
/><br /><b>turtle wax shield</b>
|
|
33
|
+
</center>
|
|
34
|
+
<p></p>
|
|
35
|
+
<blockquote>
|
|
36
|
+
This is a shield made out of sturdy yet squishy turtle wax. I don't know
|
|
37
|
+
if it took the whole ball of wax to make it, but that's none of my
|
|
38
|
+
beeswax. Anyway, in a pinch you can use it as a surfboard!<!-- itemid: 3915 --><br /><br />Type:
|
|
39
|
+
<b>off-hand item (shield)</b><br />Damage Reduction: <b>2</b
|
|
40
|
+
><br />Muscle Required: <b>5</b><br />Selling Price: <b>7 Meat.</b>
|
|
41
|
+
<p>
|
|
42
|
+
<center>
|
|
43
|
+
<b
|
|
44
|
+
><font color="blue">Maximum HP +10<br /></font
|
|
45
|
+
></b>
|
|
46
|
+
</center>
|
|
47
|
+
</p>
|
|
48
|
+
</blockquote>
|
|
49
|
+
<script type="text/javascript">
|
|
50
|
+
<!--
|
|
51
|
+
var resizetries = 0;
|
|
52
|
+
var fsckinresize;
|
|
53
|
+
setTimeout(
|
|
54
|
+
(fsckinresize = function () {
|
|
55
|
+
var desch = document.getElementById("description").offsetHeight;
|
|
56
|
+
if (desch < 100 && resizetries < 5) {
|
|
57
|
+
setTimeout(fsckinresize, 100);
|
|
58
|
+
resizetries++;
|
|
59
|
+
}
|
|
60
|
+
if (desch < 100) desch = 200;
|
|
61
|
+
//alert('resizing on try #' + resizetries);
|
|
62
|
+
if (self.resizeTo && window.outerHeight) {
|
|
63
|
+
self.resizeTo(
|
|
64
|
+
400,
|
|
65
|
+
desch + (window.outerHeight - window.innerHeight) + 50,
|
|
66
|
+
);
|
|
67
|
+
} else if (self.resizeTo) {
|
|
68
|
+
self.resizeTo(400, desch + 130);
|
|
69
|
+
} else {
|
|
70
|
+
window.innerHeight = newh;
|
|
71
|
+
}
|
|
72
|
+
}),
|
|
73
|
+
100,
|
|
74
|
+
);
|
|
75
|
+
//-->
|
|
76
|
+
</script>
|
|
77
|
+
</div>
|
|
78
|
+
</body>
|
|
79
|
+
</html>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<html><head>
|
|
2
|
+
<title>Skill Description</title>
|
|
3
|
+
<link rel="stylesheet" type="text/css" href="/images/styles.20230117d.css">
|
|
4
|
+
<script language="Javascript" src="/basics.js"></script><link rel="stylesheet" href="/basics.1.css" /></head>
|
|
5
|
+
<script src="/images/scripts/window.js"></script>
|
|
6
|
+
<body bgcolor=white text=black link=black alink=black vlink=black>
|
|
7
|
+
<div id="description">
|
|
8
|
+
|
|
9
|
+
<center><img src="/images/itemimages/5alarm.gif" width=30 height=30><br><font face="Arial,Helvetica"><u><a class="hand" style="cursor: pointer;" onclick='window.open("http://kol.coldfront.net/thekolwiki/index.php/Impetuous_Sauciness", "_blank");window.close();'><b>Impetuous Sauciness</b></u></a><p><div id="smallbits" class=small><b>Type:</b> Passive<br><b>MP Cost:</b> N/A</div><p></center><blockquote class=small>You're as saucy as saucy can be. When you drink potions crafted with Scrumptious Reagents, their effects will last 5 Adventures longer for you than they do for less impetuous people.<p><center><font color=blue size=2><b>Makes Sauce Potions last longer</b></font></center></blockquote></font></font>
|
|
10
|
+
<script type="text/javascript">
|
|
11
|
+
<!--
|
|
12
|
+
var resizetries = 0;
|
|
13
|
+
var fsckinresize;
|
|
14
|
+
setTimeout(fsckinresize = function () {
|
|
15
|
+
var desch = document.getElementById('description').offsetHeight;
|
|
16
|
+
if (desch < 100 && resizetries < 5) {
|
|
17
|
+
setTimeout(fsckinresize, 100);
|
|
18
|
+
resizetries++;
|
|
19
|
+
}
|
|
20
|
+
if (desch < 100) desch = 200;
|
|
21
|
+
//alert('resizing on try #' + resizetries);
|
|
22
|
+
if (self.resizeTo && window.outerHeight) {
|
|
23
|
+
self.resizeTo(400, desch + (window.outerHeight - window.innerHeight) + 50);
|
|
24
|
+
}
|
|
25
|
+
else if (self.resizeTo ) { self.resizeTo(400, desch+130); }
|
|
26
|
+
else { window.innerHeight = newh; }
|
|
27
|
+
}, 100);
|
|
28
|
+
//-->
|
|
29
|
+
</script>
|
|
30
|
+
</div>
|
|
31
|
+
</body>
|
|
32
|
+
<script src="/onfocus.1.js"></script></html>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<html><head>
|
|
2
|
+
<title>Skill Description</title>
|
|
3
|
+
<link rel="stylesheet" type="text/css" href="/images/styles.20230117d.css">
|
|
4
|
+
<script language="Javascript" src="/basics.js"></script><link rel="stylesheet" href="/basics.1.css" /></head>
|
|
5
|
+
<script src="/images/scripts/window.js"></script>
|
|
6
|
+
<body bgcolor=white text=black link=black alink=black vlink=black>
|
|
7
|
+
<div id="description">
|
|
8
|
+
|
|
9
|
+
<center><img src="/images/itemimages/littlefridge.gif" width=30 height=30><br><font face="Arial,Helvetica"><u><a class="hand" style="cursor: pointer;" onclick='window.open("http://kol.coldfront.net/thekolwiki/index.php/Overload_Discarded_Refrigerator", "_blank");window.close();'><b>Overload Discarded Refrigerator</b></u></a><p><div id="smallbits" class=small><b>Type:</b> Combat<br><b>MP Cost:</b> 100</div><p></center><blockquote class=small></blockquote></font></font>
|
|
10
|
+
<script type="text/javascript">
|
|
11
|
+
<!--
|
|
12
|
+
var resizetries = 0;
|
|
13
|
+
var fsckinresize;
|
|
14
|
+
setTimeout(fsckinresize = function () {
|
|
15
|
+
var desch = document.getElementById('description').offsetHeight;
|
|
16
|
+
if (desch < 100 && resizetries < 5) {
|
|
17
|
+
setTimeout(fsckinresize, 100);
|
|
18
|
+
resizetries++;
|
|
19
|
+
}
|
|
20
|
+
if (desch < 100) desch = 200;
|
|
21
|
+
//alert('resizing on try #' + resizetries);
|
|
22
|
+
if (self.resizeTo && window.outerHeight) {
|
|
23
|
+
self.resizeTo(400, desch + (window.outerHeight - window.innerHeight) + 50);
|
|
24
|
+
}
|
|
25
|
+
else if (self.resizeTo ) { self.resizeTo(400, desch+130); }
|
|
26
|
+
else { window.innerHeight = newh; }
|
|
27
|
+
}, 100);
|
|
28
|
+
//-->
|
|
29
|
+
</script>
|
|
30
|
+
</div>
|
|
31
|
+
</body>
|
|
32
|
+
<script src="/onfocus.1.js"></script></html>
|