Skip to content

Instantly share code, notes, and snippets.

@underthecurve
Created February 8, 2016 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save underthecurve/f8620404835f9b06ff2f to your computer and use it in GitHub Desktop.
Save underthecurve/f8620404835f9b06ff2f to your computer and use it in GitHub Desktop.
Chinese New Year Horoscopes 2016
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<script type="text/javascript">
// Get sign based on date
function getSign(date) {
date = new Date(date);
firstDate = new Date('02/05/1924');
for (var i = 0; i < dates.length; i++) {
var begDate = new Date(dates[i].beginDate),
endDate = new Date(dates[i].endDate);
if (date >= begDate && date <= endDate) {
return dates[i].sign;
} else if (date < firstDate) {
// in case picked to early
document.getElementById('error_msg').innerHTML="Please pick another date";
}
}
}
// finds sign based on date
function checkDate() {
var month = document.getElementById('month_select').value,
day = document.getElementById('day_select').value,
year = document.getElementById('year_select').value,
date = month + '/' + day + '/' + year;
// check that all items are filled out
if (month.length > 0 && day.length > 0 && year.length > 0) {
var sign = getSign(date);
document.getElementById('display_sign').innerHTML = sign;
for (var i = 0; i < descriptions.length; i++) {
if (descriptions[i].sign.toLowerCase() === sign) {
document.getElementById('sign_description').innerHTML = descriptions[i].description;
document.getElementById('sign_horoscope').innerHTML = descriptions[i].horoscope;
}
}
}
}
</script>
<style type="text/css">
#month_select, #day_select, #year_select {
min-width: 0;
}
#month_select {
width: 130px;
margin: 0 5px 0 0;
}
#day_select {
width: 70px;
margin: 0 5px 0 0;
}
#year_select {
width: 80px;
margin: 0 5px 0 0;
}
#display_sign {
text-transform: capitalize;
}
</style>
</head>
<body>
<h1>When is your birthday?</h1>
<form class="standalone-dropdown">
<fieldset>
<select id="month_select" onchange="checkDate(this)">
<option value="" selected="">Month</option>
<option value="01">January</option>
<option value="02">February</option>
<option value="03">March</option>
<option value="04">April</option>
<option value="05">May</option>
<option value="06">June</option>
<option value="07">July</option>
<option value="08">August</option>
<option value="09">September</option>
<option value="10">October</option>
<option value="11">November</option>
<option value="12">December</option>
</select>
<select id="day_select" onchange="checkDate(this)">
<option value="" selected="">Day</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<select id="year_select" onchange="checkDate(this)">
<option value="" selected="">Year</option>
<option value="1993">1993</option>
<option value="1992">1992</option>
<option value="1991">1991</option>
<option value="1990">1990</option>
<option value="1989">1989</option>
<option value="1988">1988</option>
<option value="1987">1987</option>
<option value="1986">1986</option>
<option value="1985">1985</option>
<option value="1984">1984</option>
<option value="1983">1983</option>
<option value="1982">1982</option>
<option value="1981">1981</option>
<option value="1980">1980</option>
<option value="1979">1979</option>
<option value="1978">1978</option>
<option value="1977">1977</option>
<option value="1976">1976</option>
<option value="1975">1975</option>
<option value="1974">1974</option>
<option value="1973">1973</option>
<option value="1972">1972</option>
<option value="1971">1971</option>
<option value="1970">1970</option>
<option value="1969">1969</option>
<option value="1968">1968</option>
<option value="1967">1967</option>
<option value="1966">1966</option>
<option value="1965">1965</option>
<option value="1964">1964</option>
<option value="1963">1963</option>
<option value="1962">1962</option>
<option value="1961">1961</option>
<option value="1960">1960</option>
<option value="1959">1959</option>
<option value="1958">1958</option>
<option value="1957">1957</option>
<option value="1956">1956</option>
<option value="1955">1955</option>
<option value="1954">1954</option>
<option value="1953">1953</option>
<option value="1952">1952</option>
<option value="1951">1951</option>
<option value="1950">1950</option>
<option value="1949">1949</option>
<option value="1948">1948</option>
<option value="1947">1947</option>
</select>
<span id="error_msg"></span>
</fieldset>
</form>
<script type="text/javascript">
var dates = [{"sign":"rat","beginDate":"02/05/1924","endDate":"01/23/1925"},{"sign":"ox","beginDate":"01/24/1925","endDate":"02/12/1926"},{"sign":"tiger","beginDate":"02/13/1926","endDate":"02/01/1927"},{"sign":"rabbit","beginDate":"02/02/1927","endDate":"01/22/1928"},{"sign":"dragon","beginDate":"01/23/1928","endDate":"02/09/1929"},{"sign":"snake","beginDate":"02/10/1929","endDate":"01/29/1930"},{"sign":"horse","beginDate":"01/30/1930","endDate":"02/16/1931"},{"sign":"goat","beginDate":"02/17/1931","endDate":"02/05/1932"},{"sign":"monkey","beginDate":"02/06/1932","endDate":"01/25/1933"},{"sign":"rooster","beginDate":"01/26/1933","endDate":"02/13/1934"},{"sign":"dog","beginDate":"02/14/1934","endDate":"02/03/1935"},{"sign":"pig","beginDate":"02/04/1935","endDate":"01/23/1936"},{"sign":"rat","beginDate":"01/24/1936","endDate":"02/10/1937"},{"sign":"ox","beginDate":"02/11/1937","endDate":"01/30/1938"},{"sign":"tiger","beginDate":"01/31/1938","endDate":"02/18/1939"},{"sign":"rabbit","beginDate":"02/19/1939","endDate":"02/07/1940"},{"sign":"dragon","beginDate":"02/08/1940","endDate":"01/26/1941"},{"sign":"snake","beginDate":"01/27/1941","endDate":"02/14/1942"},{"sign":"horse","beginDate":"02/15/1942","endDate":"02/04/1943"},{"sign":"goat","beginDate":"02/05/1943","endDate":"01/24/1944"},{"sign":"monkey","beginDate":"01/25/1944","endDate":"02/12/1945"},{"sign":"rooster","beginDate":"02/13/1945","endDate":"02/01/1946"},{"sign":"dog","beginDate":"02/02/1946","endDate":"01/21/1947"},{"sign":"pig","beginDate":"01/22/1947","endDate":"02/09/1948"},{"sign":"rat","beginDate":"02/10/1948","endDate":"01/28/1949"},{"sign":"ox","beginDate":"01/29/1949","endDate":"02/16/1950"},{"sign":"tiger","beginDate":"02/17/1950","endDate":"02/05/1951"},{"sign":"rabbit","beginDate":"02/06/1951","endDate":"01/26/1952"},{"sign":"dragon","beginDate":"01/27/1952","endDate":"02/13/1953"},{"sign":"snake","beginDate":"02/14/1953","endDate":"02/02/1954"},{"sign":"horse","beginDate":"02/03/1954","endDate":"01/23/1955"},{"sign":"goat","beginDate":"01/24/1955","endDate":"02/11/1956"},{"sign":"monkey","beginDate":"02/12/1956","endDate":"01/30/1957"},{"sign":"rooster","beginDate":"01/31/1957","endDate":"02/17/1958"},{"sign":"dog","beginDate":"02/18/1958","endDate":"02/07/1959"},{"sign":"pig","beginDate":"02/08/1959","endDate":"01/27/1960"},{"sign":"rat","beginDate":"01/28/1960","endDate":"02/14/1961"},{"sign":"ox","beginDate":"02/15/1961","endDate":"02/04/1962"},{"sign":"tiger","beginDate":"02/05/1962","endDate":"01/24/1963"},{"sign":"rabbit","beginDate":"01/25/1963","endDate":"02/12/1964"},{"sign":"dragon","beginDate":"02/13/1964","endDate":"02/01/1965"},{"sign":"snake","beginDate":"02/02/1965","endDate":"01/20/1966"},{"sign":"horse","beginDate":"01/21/1966","endDate":"02/08/1967"},{"sign":"goat","beginDate":"02/09/1967","endDate":"01/29/1968"},{"sign":"monkey","beginDate":"01/30/1968","endDate":"02/16/1969"},{"sign":"rooster","beginDate":"02/17/1969","endDate":"02/05/1970"},{"sign":"dog","beginDate":"02/06/1970","endDate":"01/26/1971"},{"sign":"pig","beginDate":"01/27/1971","endDate":"02/14/1972"},{"sign":"rat","beginDate":"02/15/1972","endDate":"02/02/1973"},{"sign":"ox","beginDate":"02/03/1973","endDate":"01/22/1974"},{"sign":"tiger","beginDate":"01/23/1974","endDate":"02/10/1975"},{"sign":"rabbit","beginDate":"02/11/1975","endDate":"01/30/1976"},{"sign":"dragon","beginDate":"01/31/1976","endDate":"02/17/1977"},{"sign":"snake","beginDate":"02/18/1977","endDate":"02/06/1978"},{"sign":"horse","beginDate":"02/07/1978","endDate":"01/27/1979"},{"sign":"goat","beginDate":"01/28/1979","endDate":"02/15/1980"},{"sign":"monkey","beginDate":"02/16/1980","endDate":"02/04/1981"},{"sign":"rooster","beginDate":"02/05/1981","endDate":"01/24/1982"},{"sign":"dog","beginDate":"01/25/1982","endDate":"02/12/1983"},{"sign":"pig","beginDate":"02/13/1983","endDate":"02/01/1984"},{"sign":"rat","beginDate":"02/02/1984","endDate":"02/19/1985"},{"sign":"ox","beginDate":"02/20/1985","endDate":"02/08/1986"},{"sign":"tiger","beginDate":"02/09/1986","endDate":"01/28/1987"},{"sign":"rabbit","beginDate":"01/29/1987","endDate":"02/16/1988"},{"sign":"dragon","beginDate":"02/17/1988","endDate":"02/05/1989"},{"sign":"snake","beginDate":"02/06/1989","endDate":"01/26/1990"},{"sign":"horse","beginDate":"01/27/1990","endDate":"02/14/1991"},{"sign":"goat","beginDate":"02/15/1991","endDate":"02/03/1992"},{"sign":"monkey","beginDate":"02/04/1992","endDate":"01/22/1993"},{"sign":"rooster","beginDate":"01/23/1993","endDate":"02/09/1994"},{"sign":"dog","beginDate":"02/10/1994","endDate":"01/30/1995"},{"sign":"pig","beginDate":"01/31/1995","endDate":"02/18/1996"},{"sign":"rat","beginDate":"02/19/1996","endDate":"02/06/1997"},{"sign":"ox","beginDate":"02/07/1997","endDate":"01/27/1998"},{"sign":"tiger","beginDate":"01/28/1998","endDate":"02/15/1999"},{"sign":"rabbit","beginDate":"02/16/1999","endDate":"02/04/2000"},{"sign":"dragon","beginDate":"02/05/2000","endDate":"01/23/2001"},{"sign":"snake","beginDate":"01/24/2001","endDate":"02/11/2002"},{"sign":"horse","beginDate":"02/12/2002","endDate":"01/31/2003"},{"sign":"goat","beginDate":"02/01/2003","endDate":"01/21/2004"},{"sign":"monkey","beginDate":"01/22/2004","endDate":"02/08/2005"},{"sign":"rooster","beginDate":"02/09/2005","endDate":"01/28/2006"},{"sign":"dog","beginDate":"01/29/2006","endDate":"02/17/2007"},{"sign":"pig","beginDate":"02/18/2007","endDate":"02/06/2008"},{"sign":"rat","beginDate":"02/07/2008","endDate":"01/25/2009"},{"sign":"ox","beginDate":"01/26/2009","endDate":"02/13/2010"},{"sign":"tiger","beginDate":"02/14/2010","endDate":"02/02/2011"},{"sign":"rabbit","beginDate":"02/03/2011","endDate":"01/22/2012"},{"sign":"dragon","beginDate":"01/23/2012","endDate":"02/09/2013"},{"sign":"snake","beginDate":"02/10/2013","endDate":"01/30/2014"},{"sign":"horse","beginDate":"01/31/2014","endDate":"02/18/2015"},{"sign":"goat","beginDate":"02/19/2015","endDate":"02/07/2016"},{"sign":"monkey","beginDate":"02/08/2016","endDate":"01/27/2017"},{"sign":"rooster","beginDate":"01/28/2017","endDate":"02/15/2018"},{"sign":"dog","beginDate":"02/16/2018","endDate":"02/04/2019"},{"sign":"pig","beginDate":"02/05/2019","endDate":"01/24/2020"},{"sign":"rat","beginDate":"01/25/2020","endDate":"02/11/2021"},{"sign":"ox","beginDate":"02/12/2021","endDate":"01/31/2022"},{"sign":"tiger","beginDate":"02/01/2022","endDate":"01/21/2023"},{"sign":"rabbit","beginDate":"01/22/2023","endDate":"02/09/2024"},{"sign":"dragon","beginDate":"02/10/2024","endDate":"01/28/2025"},{"sign":"snake","beginDate":"01/29/2025","endDate":"02/16/2026"},{"sign":"horse","beginDate":"02/17/2026","endDate":"02/05/2027"},{"sign":"goat","beginDate":"02/06/2027","endDate":"01/25/2028"},{"sign":"monkey","beginDate":"01/26/2028","endDate":"02/12/2029"},{"sign":"rooster","beginDate":"02/13/2029","endDate":"02/02/2030"},{"sign":"dog","beginDate":"02/03/2030","endDate":"01/22/2031"},{"sign":"pig","beginDate":"01/23/2031","endDate":"02/10/2032"},{"sign":"rat","beginDate":"02/11/2032","endDate":"01/30/2033"},{"sign":"ox","beginDate":"01/31/2033","endDate":"02/18/2034"},{"sign":"tiger","beginDate":"02/19/2034","endDate":"02/07/2035"},{"sign":"rabbit","beginDate":"02/08/2035","endDate":"01/27/2036"},{"sign":"dragon","beginDate":"01/28/2036","endDate":"02/14/2037"},{"sign":"snake","beginDate":"02/15/2037","endDate":"02/03/2038"},{"sign":"horse","beginDate":"02/04/2038","endDate":"01/23/2039"},{"sign":"goat","beginDate":"01/24/2039","endDate":"02/11/2040"},{"sign":"monkey","beginDate":"02/12/2040","endDate":"01/31/2041"},{"sign":"rooster","beginDate":"02/01/2041","endDate":"01/21/2042"},{"sign":"dog","beginDate":"01/22/2042","endDate":"02/09/2043"},{"sign":"pig","beginDate":"02/10/2043","endDate":"01/29/2044"}];
var descriptions = [
{
"sign": "Rat",
"description": "Ranking the first in the Chinese zodiac, rat represents wisdom. Personality traits for the people born in the year of the Rat are intelligent, charming, quick-witted, practical, ambitious, and good at economizing as well as social activities. The weaknesses are that the Rats are likely to be timid, stubborn, wordy, greedy, devious, too eager for power and love to gossip.",
"horoscope": "2016 (year of the Monkey) turns to be a good year for the people under the Rat zodiac sign. According to the Chinese zodiac compatibility astrology, the Rat and Monkey are the most compatible animals. So, in the monkey year, you Rat people could go smoothly and be lucky in most aspects. You'll do fairly well in work and are expected to be promoted. There will be many social activities and parties waiting you to participate which will make you have a merry mood at the same time some sumptuous feast. What you should remember in 2016 is not to advance hastily and try to make good relations with others. <a href = http://www.yourchineseastrology.com/zodiac/rat.htm > Read more here </a>"
},
{
"sign": "Ox",
"description": "Ranking the second in the Chinese zodiac, Ox is the symbol of diligence in Chinese culture. People under the sign of the Ox are usually hard working, honest, creative, ambitious, cautious, patient and handle things steadily. On the negative side, Ox people might be stubborn, narrow-minded, indifferent, prejudiced, slow and not good at communication.",
"horoscope": "The Ox 2016 (Year of the Monkey) astrology predictions foretell that you Ox people could enjoy a good fortune during the year. You will find that you could come into your own in work and are expected to rise directly to a high position. However, to avoid being envied by others, you should always keep a low profile. Relationship with your partner will also be good that enables you to spend a happy year. So long as you can adjust your state of mind, find out who you are and be that, you could have a year with a lot of progress. <a href = http://www.yourchineseastrology.com/zodiac/ox.htm > Read more here </a>"
},
{
"sign": "Tiger",
"description": "Ranking as the third animal in the Chinese zodiac, Tigers are the symbol of brave. People born in the year of the Tiger are friendly, brave, competitive, charming and endowed with good luck and authority. With indomitable fortitude and great confidence, the tiger people can be competent leaders. On the other side, they are likely to be impetuous, irritable, overindulged and love to boast to others.",
"horoscope": "2016 (Year of the Monkey) will be a very challenging, changeable and hard year for the people born under the Chinese zodiac sign of the Tiger. This is because the Tiger and Monkey couldn't get along well with each other based on Chinese zodiac compatibility astrology. So, the Tiger people in the monkey year will fluctuate in terms of fortune and have to work hard to overcome many challenges. You Tigers may encounter changes in work, family and other aspects. For example, house moving or purchase, job changing...Some may turn to be good and some bad. In all, during the year, don't set your goals too high, always be modest and especially pay special attention to your health. <a href = http://www.yourchineseastrology.com/zodiac/tiger.htm > Read more here </a>"
},
{
"sign": "Rabbit",
"description": "Rabbit represents longevity, discretion and good luck. It has the fourth position in the Chinese Zodiac. People born under the sign of the Rabbit are kind-hearted, friendly, intelligent, cautious, skillful, gentle, quick and live long. They dislike fighting and like to find solutions through compromise and negotiation. On the negative side, Rabbit people might be they have the potential to be superficial, stubborn, melancholy and overly-discreet.",
"horoscope": "The fortune for you Rabbit in 2016 (Year of the Monkey) will be smooth upward. During the year, you could display your talent fully and are lucky enough to get help from a savior. Together with great effort, your career would be brought to a new milestone. In wealth, you should be prudent in financial management. There will be small twists and turns if you go out this year. E.g. weather changes, flight delays or loss of luggage. So, you are suggested to by travel insurance in case of any accident. Besides, it's a year during which you should keep your tongue in your jaw and your tow in your pump. All in all, it will be a year full of joyous occasions. No matter what reversal you have, you could manage to land on feet finally. <a href = http://www.yourchineseastrology.com/zodiac/rabbit.htm > Read more here </a>"
},
{
"sign": "Dragon",
"description": "As the symbol of Chinese nation, dragon represents authority and good fortune. It has the fifth position among the Chinese zodiac animals. People born in the year of the Dragon are powerful, kind-hearted, successful, innovative, brave, healthy courageous and enterprising. However, they tend to be conceited, scrutinizing, tactless, quick-tempered and over-confident.",
"horoscope": "2016 (year of the Monkey) will be a smooth year in general for the people with the Chinese zodiac sign of Dragon. If you could grasp good chances, you are able to accomplish much. During the year, you usually could get recognition in work and are expected to get promotion with salary increase. If you do jobs like firemen, policemen, customs officials and those in management hierarchy, the year will favor you much. You could make a splendid result with your subordinates. However, you are destined to encounter many difficulties in 2016. So, you should also be prepared for the challenge. Besides, pay much attention about personal relationship and avoid contacting with those ill-tempered and unreasonable women are very important. Believe that you can head off all the danger if you could stay calm in face of disasters during the year. <a href = http://www.yourchineseastrology.com/zodiac/dragon.htm > Read more here </a>"
},
{
"sign": "Snake",
"description": "Among the Chinese Zodiac animals, Snake has the sixth position. Snake is regarded to be pliable. Some of the positive characteristics of the people born in the year of the Snake are wise, discreet, agile, attractive and full of sympathy. On the other hand, there is a tendency for them to be lazy, greedy, arrogant and indulging in self-admiration.",
"horoscope": "2016 (year of the Monkey) will not be a good year for the people under the Snake sign. You will fight against Tai Sui who is the legendary God in charge of people's fortune. It will mainly affect your health during the year. Love and personal relationship will also obsess you. As for wealth and career fortune, you would not worry too much. In all, you should be prepared for lots of challenges, ups and downs and changes during 2016. As long as you could adjust your state of mind, to be patient and keep a low profile, you could go forward smoothly this year. <a href = http://www.yourchineseastrology.com/zodiac/snake.htm > Read more here </a>"
},
{
"sign": "Horse",
"description": "Horse has an indomitable spirit and is always moving toward a goal. It ranks the seventh in the Chinese Zodiac. People born under the sign of the Horse are clever, active, energetic, quick-witted, fashionable, agile, popular among others and have the ability to persuade others. On the other side, they might be some selfish, arrogant and over-confident.",
"horoscope": "Fortune for the Horse people will be smooth and steady in 2016 which is year of the Monkey. The year especially favors those Horses who usually go outing. So, if you have chances to go out for business or stay abroad for work, try your best to grasp the opportunity. During the year, your status and rights are expected to rise. Thus you would have more time spending on social activities. In love relationship, you may start a long-distance relationship. The singles are suggested to keep your eyes on the people around when traveling or go outing. If you can participate in more festive events, your fortune would be much better. Besides, you should also prepare for a busy 2016 and many challenges are waiting you. <a href = http://www.yourchineseastrology.com/zodiac/horse.htm > Read more here </a>"
},
{
"sign": "Goat",
"description": "Ranking the eighth position of all the animals in Chinese zodiac, Sheep (also Goat or Ram) represents solidarity, harmony and calmness. People born in the year of the Sheep are polite, mild mannered, shy, imaginative, determined and have good taste. On the negative side, they are sometimes pessimistic, unrealistic, short-sighted and slow in behavior.",
"horoscope": "Fortune for the people born in the year of Sheep will be good for the first half of 2016. While, later this year will be many obstacles and you are always fail on the verge of success. <a href = http://www.yourchineseastrology.com/zodiac/sheep.htm > Read more here </a>"
},
{
"sign": "Monkey",
"description": "Monkey ranks ninth position in the Chinese Zodiac. They are cheerful and energetic by nature and usually represent flexibility. People under the sign of the Monkey are wise, intelligent, confident, charismatic, loyal, inventive and have leadership. The weaknesses of the Monkeys are being egotistical, arrogant, crafty, restless and snobbish.",
"horoscope": "2016 is the year of Monkey. Therefore it’s the zodiac year of birth (Benming Nian) for the people under the Monkey sign. People in Benming Nian are easy to offend Tai Sui who is the legendary God in charge of people's fortune. So, fortune will fluctuate during this year for you Monkeys. What you should greatly care is the health of your family and yourself as well as the home safety. Career will go quite smoothly. Many opportunities will favor you. Therefore, your career may reach the peak if you could take the chance. <a href = http://www.yourchineseastrology.com/zodiac/monkey.htm > Read more here </a>"
},
{
"sign": "Rooster",
"description": "Rooster ranks the tenth among the Chinese zodiac animals. In Chinese culture, Rooster represents fidelity and punctuality, for it wakes people up on time. People born in the year of the Rooster are beautiful, kind-hearted, hard-working, courageous, independent, humorous and honest. They like to keep home neat and organized. On the other side, they might be arrogant, self-aggrandizing, persuasive to others and wild as well as admire things or persons blindly.",
"horoscope": "2016 which is year of the Monkey is a pretty good year for the people under the Rooster sign. You would be lucky to get help from savior in work and may get a power enhancement. Your love life will flourish and would get married this year if you are in love. However, you are not so smooth in personal relationship. You are easy to offend others because of your improper words. So, others will not be pleased with you. What you should do is to learn to hold your tongue and avoid having too many irons in the fire. All in all, you will have plenty of room for improvement in 2016. As long as you could be deliberate in speech and action and confide to others when meeting troubles instead of splitting hairs alone, you can enjoy a nice 2016. <a href = http://www.yourchineseastrology.com/zodiac/rooster.htm > Read more here </a>"
},
{
"sign": "Dog",
"description": "Ranking as the eleventh animal in Chinese zodiac, Dog is the symbol of loyalty and honesty. People born in the Year of the Dog possess the best traits of human nature. They are honest, friendly, faithful, loyal, smart, straightforward, venerable and have a strong sense of responsibility. On the negative side, they are likely to be self-righteous, cold, terribly stubborn, slippery, critical of others and not good at social activities.",
"horoscope": "The Dog people should be prepared for a hard year in 2016 which is year of the monkey. You should not expect too much on career and wealth. Although there is only slight progress in work this year, you still have a broad developing space. What you should pay great attention is the health condition of the elders in your family. To do some merciful deeds and often help others would be a great help to eliminate misfortunes. Also, you are suggested to buy house, moving, decorate house, or buy new furniture to make your family have a stable year. If you have time, go out for travel could enable you to get a personal fortune improvement. <a href = http://www.yourchineseastrology.com/zodiac/dog.htm > Read more here </a>"
},
{
"sign": "Pig",
"description": "Occupying the last position in 12 Chinese Zodiac animals, Pig is mild and a lucky animal representing carefree fun, good fortune and wealth. Personality traits of the people born under the sign of the Pig are happy, easygoing, honest, trusting, educated, sincere and brave. The possible dark sides the Pig people are stubbornness, naive, over-reliant, self-indulgent, easy to anger and materialistic. They are sometimes regarded as being lazy.",
"horoscope": "On average, the people of Chinese zodiac sign of the Pig will face many challenges in life which require you to march forward courageously in 2016 (year of the Monkey). Compared with the fortune during 2015 (year of the Sheep), you will be luckier. You can get support from some powerful social contacts and be recognized with ample rewards in work. Many fortunes would also find their way to you. However, in 2016, the Pig will harm Taisui who is the legendary God in charge of people's fortune. So, you will clash and be incompatible with Taisui thus unavoidably having some changes and bad luck in some aspects. This can be especially reflected in personal relationships. <a http://www.yourchineseastrology.com/zodiac/pig.htm > Read more here </a>"
}
]
var compatibility = [{"sign":"Rat","Rat":"x","Ox":"1","Tiger":"x","Rabbit":"x","Dragon":"1","Snake":"x","Horse":"2","Goat":"2","Monkey":"1","Rooster":"2","Dog":"x","Pig":"x"},{"sign":"Ox","Rat":"1","Ox":"x","Tiger":"x","Rabbit":"2","Dragon":"2","Snake":"1","Horse":"2","Goat":"2","Monkey":"x","Rooster":"1","Dog":"2","Pig":"x"},{"sign":"Tiger","Rat":"x","Ox":"x","Tiger":"x","Rabbit":"x","Dragon":"x","Snake":"2","Horse":"1","Goat":"x","Monkey":"2","Rooster":"x","Dog":"1","Pig":"x"},{"sign":"Rabbit","Rat":"x","Ox":"2","Tiger":"x","Rabbit":"x","Dragon":"2","Snake":"x","Horse":"2","Goat":"1","Monkey":"x","Rooster":"2","Dog":"1","Pig":"1"},{"sign":"Dragon","Rat":"1","Ox":"2","Tiger":"x","Rabbit":"2","Dragon":"X","Snake":"x","Horse":"x","Goat":"x","Monkey":"1","Rooster":"1","Dog":"2","Pig":"x"},{"sign":"Snake","Rat":"x","Ox":"1","Tiger":"2","Rabbit":"x","Dragon":"x","Snake":"x","Horse":"x","Goat":"x","Monkey":"2","Rooster":"1","Dog":"x","Pig":"2"},{"sign":"Horse","Rat":"2","Ox":"2","Tiger":"1","Rabbit":"2","Dragon":"x","Snake":"x","Horse":"X","Goat":"1","Monkey":"x","Rooster":"x","Dog":"1","Pig":"x"},{"sign":"Goat","Rat":"2","Ox":"2","Tiger":"x","Rabbit":"1","Dragon":"x","Snake":"x","Horse":"1","Goat":"x","Monkey":"x","Rooster":"x","Dog":"2","Pig":"1"},{"sign":"Monkey","Rat":"1","Ox":"x","Tiger":"2","Rabbit":"x","Dragon":"1","Snake":"2","Horse":"x","Goat":"x","Monkey":"x","Rooster":"x","Dog":"x","Pig":"2"},{"sign":"Rooster","Rat":"2","Ox":"1","Tiger":"x","Rabbit":"2","Dragon":"1","Snake":"1","Horse":"x","Goat":"x","Monkey":"x","Rooster":"X","Dog":"2","Pig":"x"},{"sign":"Dog","Rat":"x","Ox":"2","Tiger":"1","Rabbit":"1","Dragon":"2","Snake":"x","Horse":"1","Goat":"2","Monkey":"x","Rooster":"2","Dog":"x","Pig":"x"},{"sign":"Pig","Rat":"x","Ox":"x","Tiger":"x","Rabbit":"1","Dragon":"x","Snake":"2","Horse":"x","Goat":"1","Monkey":"2","Rooster":"x","Dog":"x","Pig":"X"}];
</script>
<h2 id="result"></h2>
<div class="row left">
<div class="span12 spanleft">
<h2 id="display_sign"></h2>
<p id="sign_description"></p>
<p id="sign_horoscope"></p>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment