document.getElementById("check").onclick = function() {
checkboxes = document.getElementsByTagName('input'),
is_checked = false;
for (var i = 0, n = checkboxes.length, checkbox; i < n; ++i) {
checkbox = checkboxes;
if (checkbox.checked) {
is_checked = true;
break;
}
}
if (is_checked == true){
var quotes = [
{
text1: "32% Mid Alpha<br>28% Mid Beta",
text2: "The Alpha Woman Meets Her Match",
text3: "You are a hybrid of Mid Alpha and Mid Beta. You are easygoing, and with your good relationship skills, you can create an equal, compatible relationship with someone like yourself (Lime Green). Since both of you tend to shy away from confrontation, this safe, secure partnership would have only a low degree of conflict. However, because you are a hybrid, you have several more challenging options (Red, Yellow, Green). With any of these matches, you would be the nurturer and your partner would be the leader. You might have to develop a little more Alpha so that you can occasionally push back."
},
{
text1: "2% Low Alpha<br>18% Low Beta",
text2: "The Alpha Woman Meets Her Match",
text3: "You are unsure of yourself and too conforming. Passive, anxious, and excessively self-critical, you are sometimes afraid of your own shadow and worry way too much about what people think. You tend to misjudge others’ motives and intentions. Before you get into a relationship, take stock and think about how to develop more self-confidence. Otherwise, you will be taken advantage of and possibly even mistreated. Be careful—you are vulnerable!"
},
{
text1: "54% High Alpha<br>72% High Beta",
text2: "The Alpha Woman Meets Her Match",
text3: "You are a «true» hybrid: high in Alpha and Beta. You are very self-confident and ambitious, and you will lead as well as compromise in a relationship. This is an unusual profile since most of us are not high in both qualities. You will match with many people, but be careful about a partner who is in the {Pale Beige} box; that relationship will be codependent since you will do all the work. Your ideal match is with someone like yourself or someone adjacent to you (Green, Blue, Yellow, Lime Green)."
},
{
text1: "64% High Alpha<br>38% Mid Beta",
text2: "The Alpha Woman Meets Her Match",
text3: "You are High Alpha and Mid Beta, which means that you are dominant in most relationships but have the capacity to collaborate and compromise. However, you have to guard against imposing your strong will and overpowering people. You will match up well with a partner who has a strong Mid to High Beta profile and will allow your Alpha to lead. Your best match is with someone more laid-back than you, who will help you take the edge off when necessary (Blue or Pink)."
},
{
text1: "32% Mid Alpha<br>36% Mid Beta",
text2: "",
text3: "You are a hybrid of Mid Alpha and Mid Beta. You are easygoing, and with your good relationship skills, you can create an equal, compatible relationship with someone like yourself (Lime Green). Since both of you tend to shy away from confrontation, this safe, secure partnership would have only a low degree of conflict. However, because you are a hybrid, you have several more challenging options (Red, Yellow, Green). With any of these matches, you would be the nurturer and your partner would be the leader. You might have to develop a little more Alpha so that you can occasionally push back."
},
{
text1: "56% High Alpha<br>54% High Beta",
text2: "",
text3: "You are a «true» hybrid: high in Alpha and Beta. You are very self-confident and ambitious, and you will lead as well as compromise in a relationship. This is an unusual profile since most of us are not high in both qualities. You will match with many people, but be careful about a partner who is in the {Pale Beige} box; that relationship will be codependent since you will do all the work. Your ideal match is with someone like yourself or someone adjacent to you."
},
{
text1: "24% Low Alpha<br>40% Mid Beta",
text2: "",
text3: "As an emotional person you value your relationships a lot, but you lack self-confidence and find it difficult to sound your own horn. Although you have strong opinions, you are uncomfortable fighting for what you believe in. You might be drawn to partners with High Alpha (Yellow or Red), which puts you at risk of being bullied. Because you do not like confrontations and seek compatibility, you need to learn not to back away from challenges. You would do best with a partner similar to you (Purple or Pink) or a Mid Alpha (Blue or Lime Green)."
},
{
text1: "32% Mid Alpha<br>28% Mid Beta",
text2: "The Alpha Woman Meets Her Match",
text3: "You are a hybrid of Mid Alpha and Mid Beta. You are easygoing, and with your good relationship skills, you can create an equal, compatible relationship with someone like yourself (Lime Green). Since both of you tend to shy away from confrontation, this safe, secure partnership would have only a low degree of conflict. However, because you are a hybrid, you have several more challenging options (Red, Yellow, Green). With any of these matches, you would be the nurturer and your partner would be the leader. You might have to develop a little more Alpha so that you can occasionally push back."
},
{
text1: "54% High Alpha<br>72% High Beta",
text2: "The Alpha Woman Meets Her Match",
text3: "You are a «true» hybrid: high in Alpha and Beta. You are very self-confident and ambitious, and you will lead as well as compromise in a relationship. This is an unusual profile since most of us are not high in both qualities. You will match with many people, but be careful about a partner who is in the {Pale Beige} box; that relationship will be codependent since you will do all the work. Your ideal match is with someone like yourself or someone adjacent to you (Green, Blue, Yellow, Lime Green)."
},
{
text1: "64% High Alpha<br>38% Mid Beta",
text2: "The Alpha Woman Meets Her Match",
text3: "You are High Alpha and Mid Beta, which means that you are dominant in most relationships but have the capacity to collaborate and compromise. However, you have to guard against imposing your strong will and overpowering people. You will match up well with a partner who has a strong Mid to High Beta profile and will allow your Alpha to lead. Your best match is with someone more laid-back than you, who will help you take the edge off when necessary (Blue or Pink)."
}
];
var quote = quotes[Math.floor(Math.random() * quotes.length)];
document.getElementById("test-result").innerHTML =
'<div class="quiz-result">' +
'<div class="quiz-title"><strong>Your result:</strong></div>' +
'<p><strong>' + quote.text1 + '</strong></p>' +
'<p>' + quote.text2 + '</p>' +
'<p>' + quote.text3 + '</p>' +
'</div>';
}
else {
alert("Please select your answers");
};
}