-
Notifications
You must be signed in to change notification settings - Fork 0
/
javadate_results.html
132 lines (109 loc) · 5.12 KB
/
javadate_results.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="jdstyles.css" />
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<title>Java Date</title>
</head>
<body>
<div id="jdcontainer" class="ctr">
<div id="javatitle" class="ctr"><H1>Java Date</H1></div>
<div id="javacontain" class="ctr">
<canvas id="javaface" width="300" height="300"></canvas>
</div>
</div>
<div id="analysis" class="ctr">
<div><H2>Your Love Bot<br/>Personality Analysis</H2>
<p>All adjectives and personalities for which they provide description are henceforth property of Java Date© and are neither transferrable nor redeemable for cash and prizes.</p>
<p>Thank you for consulting Love Bot™.</p>
</div>
</div>
<br/>
<div id="homelink"><a href="javadate.html" title="Do it again">Let's do this again some time...</a></div>
<script>
var c = document.getElementById("javaface");
var ctx = c.getContext("2d");
ctx.rect(90,80,120,95);
</script>
<script>
var adjectives = ["Zonked", "Zoic", "Zippy", "Zany", "Yappy", "Yummy", "Xenophilic", "Xenail", "Wakeful", "Wiggly", "Wrathful", "Wretched", "Woozy", "Wiry", "Warlike", "Vivacious", "Vengeful", "Versed", "Vulgar", "Victorious", "Venomous", "Unwieldy", "Utopian", "Testy", "Taboo", "Tawdry", "Tedious", "Tangy", "Tightfisted", "Sassy", "Scintillating", "Scandalous", "Savory", "Shrill", "Smoggy", "Squalid", "Spiffy", "Swanky", "Sweltering", "Shaggy", "Sordid", "Sedate", "Rampant", "Ritzy", "Rambunctious", "Raspy", "Rhetorical", "Rabbid", "Questionable", "Quaint", "Quarrelsome", "Quizzical", "Probable", "Profuse", "Psychedelic", "Prickly", "Perpetual", "Parched", "Optimal", "Onerous", "Obeisant", "Oafish", "Noxious", "Numberless", "Nonchalant", "Merciful", "Momentous", "Miscreant", "Maniacal", "Maddening", "Luxuriant", "Laminated", "Lamentable", "Lackadaisical", "Knotty", "Jumbled", "Jittery", "Jazzy", "Insidious", "Immenent", "Infamous", "Invincible", "Illustrious", "Hissing", "Holistic", "Highfalutin", "Hysterical", "Hypnotic", "Harmonious", "Hapless", "Hallowed", "Guttural", "Grotesque", "Guiltless", "Gaudy", "Grandiose", "Glistening", "Gamy", "Flagrant", "Furtive", "Fretful", "Fabulous", "Enchanted", "Elastic", "Elfin", "Ethereal", "Earsplitting", "Draconian", "Devilish", "Demonic", "Deadpan", "Daffy", "Cooing", "Chivalrous", "Ceaseless", "Bustling", "Billowy", "Berserk", "Belligerent", "Axiomatic", "Aquatic", "Ablaze", "Waggly", "Wistful", "Waggish", "Voracious", "Vivacious", "Verdant", "Ubiquitous", "Truculent", "Torpid", "Tenuous", "Tacit", "Succinct", "Recondite", "Plucky", "Quixotic", "Picayune", "Penitent", "Parsimonious", "Ossified", "Obsequious", "Nebulous", "Loutish", "Languid", "Incandescent", "Exultant", "Divergent", "Direful", "Didactic", "Debonair", "Capricious", "Cloistered", "Dapper", "Cagey", "Bawdy", "Abaft", "Thirsty", "Zesty", "Mysterious", "Gorgeous", "Bilious", "Garrulous", "Purple", "Lachrymose", "Limpid", "Sagacious", "Turgid", "Munificent", "Platudinous", "Quiescent", "Redolent", "Rhadamanthine", "Meretricious", "Jocular", "Jejune", "Histrionic", "Gustatory", "Intransigent", "Effulgent", "Bellicose", "Cerulean", "Antic", "Amatory", "Adroit"];
var small_list = [];
var first = getrandom();
small_list.push(adjectives[first]);
for(var count = 0; count < 5; count++){
var go = true;
var random = getrandom();
while(go)
{
var unique = checkUnique(random);
if(unique){go = false;}
else{random = getrandom();}
}
small_list.push(adjectives[random]);
}
var jf = document.getElementById("reportpic");
var jfctx = c.getContext("2d");
drawDots();
drawAxes();
function drawAxes(){
jfctx.beginPath();
jfctx.moveTo( 30, 30);
jfctx.lineTo( 30, 280);
jfctx.moveTo(30, 280);
jfctx.lineTo( 280, 280);
jfctx.stroke();
jfctx.fillStyle = "black";
jfctx.textAlign = "center";
jfctx.font = "12pt courier";
jfctx.textBaseline = "bottom";
jfctx.fillText("LESS", 30, 300);
jfctx.fillText("MORE", 30, 27);
}
function drawDots(){
var x_coord = 55;
var y_coord = 35 + Math.floor(Math.random()*(175));
var used_points = [];
used_points.push([y_coord,x_coord]);
for(var count = 0; count < 6; count++)
{
jfctx.beginPath();
//jfctx.arc(x_coord,y_coord,4,0,2*Math.PI);
jfctx.rect(x_coord,y_coord,7, 300 - (y_coord + 20));
jfctx.stroke();
jfctx.fillStyle = "pink";
jfctx.fill();
x_coord = x_coord + 38;
y_coord = 45 + Math.floor(Math.random()*(200));
var differ = Math.abs(y_coord - used_points[count][0]);
if(differ < 15){ y_coord = y_coord + 35; }
used_points.push([y_coord,x_coord]);
}
for(var count = 0; count < 6; count++)
{
var x = used_points[count][1];
var y = used_points[count][0];
jfctx.fillStyle = "purple";
jfctx.textAlign = "center";
jfctx.font = "12pt courier";
jfctx.textBaseline = "bottom";
jfctx.fillText(small_list[count], x, y - 5);
}
}
function checkUnique(random){
for(var i = 0; i < small_list.length; i++)
{
if(small_list[i] == adjectives[random])
{
return false;
}
}
return true;
}
function getrandom(){
var randomnum = Math.floor(Math.random()*(adjectives.length));
return randomnum;
}
</script>
</body>
</html>