LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

  

Age?

Which movie would you watch?

We Recommend...

CSS
body{
  font-family: 'Lato', sans-serif;
  text-align:center;
  background-color: #eee;
}
select {
    -webkit-appearance: button;
    -moz-appearance: button;
    -webkit-user-select: none;
    -moz-user-select: none;
    -webkit-padding-end: 20px;
    -moz-padding-end: 20px;
    -webkit-padding-start: 2px;
    -moz-padding-start: 2px;
    background-position: center right;
    background-repeat: no-repeat;
    border: 1px solid #AAA;
    border-radius: 2px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
    color: #555;
    background-color: #ccc;
    font-size: inherit;
    margin: 10px;
    overflow: hidden;
    padding-top: 2px;
    padding-bottom: 2px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dropdowns{
  display: flex;
  align-items: center;
  justify-content: center 
}
img{
  margin:20px;
}
.images{
    display: flex;
    align-items: center;
    justify-content: center
}
JS
var age = 0;
function ageChange() {
  age = document.getElementById("age").value;
}
function movieChange() {
  var movie = document.getElementById("movie").value;
  if (movie == "5" && age == 1) {
    alert("We Recommend Madea's Tough Love!");
  } else if (movie == "5" && age == 2) {
    alert("We Recommend Madea Goes To Jail!");
  } else if (movie == "5" && age == 3) {
    alert("We Recommend Madea's Witness Protection!");
  } else if (movie == "6" && age == 1) {
    alert("We Recomend Free Birds!");
  } else if (movie == "6" && age == 2) {
    alert("We Recommend Rio!");
  } else if (movie == "6" && age == 3) {
    alert("We Recommend Rio 2!");
  } else if (movie == "7" && age == 1) {
    alert("We Recommend Despicable Me!");
  } else if (movie == "7" && age == 2) {
    alert("We Recommend Despicable Me 2!");
  } else {
    alert("We Recommend Despicable Me 3!");
  }
}
Term
Wed, 12/27/2017 - 07:03

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv