Add-ons › Widgets › Fun and Games
The Love Calculator
Description
The Love Calculator!
Find out if things will work, or wont.
Screenshots

Comments (20 on the original page, latest shown)
Download
Works with Opera 9 to Opera 12.
About this widget
| Downloads | 166,352 |
|---|---|
| Category | Fun and Games |
| Version | 1.7 |
| Size | 162KB |
| Last update | June 28, 2006 |
| Devices | desktop, tv |
| Original page | Internet Archive |
I have not tried this widget under other operating systems, but under Mac OS X 10.4.7, the text entry is very strange: you need to click the far right sides of the text fields, after which the parser appears to the right of the corresponding field and the text is right-aligned. The right-alignment might be as designed, but the positioning looks accidental (the "Timestamp Converter" widget also has text box issues under Mac OS X). If you are using a Mac, perhaps your text issues are the same as mine, "Fred100".
Here's the calculation function. No magic. And nobody will get 100%. function calculatePercentage(string1, string2) { var val1 = hashIt(string1.toLowerCase()); var val2 = hashIt(string2.toLowerCase()); var percentage = ( (val1 + val2) % 100); if (percentage == 100) percentage--; // Nobody's perfect ;-) return percentage; } function hashIt(string) { var val = 0; for (i = 0; i < string.length; i++) { val = 37 * val + string.charCodeAt(i); } return val; } The Opera guy who wrote this should know that (val1 + val2) % 100 is a number between 0 and 99, so the comparison with 100 is useless.
The reason it's not possible to enter text on the left side of the text input fields is the overlaying graphics (His/her name, Your name). Style beats function here.
I entered my name and my ex-husband's name and came up with 0% - so it was spot on.
GeeZus...I think if you enter your first and last names your get a higher ranking. We were at 4%with just our first name.....80% with first and last (not married) ratface35
2 is 50 1 is 49 d means zero if you add a d before any name there will be no difference dSmith=Smith 2 and 1 loves eachother much!
This is very accurate Tony Blair & George Bush scored 88%
Need better understanding of how it works. Does it change if you put the same persons name in every day? Is it like a mood ring, where the percentage for the same names changes each day? It's cute but wish it have more sparks.
the long the name the higher the score
Hehehehehe. I put in "Jennifer and Brad" which got 90%. Then I did "Angelina and Brad" which got 8%. Not feeling so bad about my 32% now.
Billy + Mandy = 13% Starfire + Robin = 86% Beastboy + Raven = 9% Milk + Cookies = 82% Cheese + Chocolate = 99% (Hm...)
Opera + Firefox = 66%
George Bush + Osama bin Laden = 8% Microsoft + Internet Users = 96%
Ha! Dima + Olga = 18% Dmitriy + Olga = 81% I like it, but Dima = Dmitriy in russian.
i cant belive it i went on a love calculator and i got 99.9% with someone i dont even like
If Adam + Eve= 75%, I don't feel bad with my wife and I at 61%!
It is interesting
gg + 2s = ^-* % (hehe, i like it)
How about a "Hate Calculator" ?
fun ,we r in love