InputChild_sendesk backup

by mtenschert

CSS

@charset "UTF-8";
/***** Base *****/
* {
  box-sizing: border-box;
}
html {
    overflow-x: hidden;
    overflow-y: scroll;
}
html {
    -webkit-tap-highlight-color: transparent;
    font-size: 14px;
}
body {
    color:#333; /* mtenschert: color: $text_color;*/
  font-family: $text_font;
  font-size: 14px;
    line-height: 1.42857;
  -webkit-font-smoothing: antialiased;
      background: #fff;
    font-family: arial,sans-serif;
}
@media only screen and (min-width: 1200px) {
    body {
        background: url(https://www.alpinresorts.com/assets/images/background-new.jpg) top center no-repeat;
        -ms-background-position: 20px;
        background-size: auto;
    }
}

@media (min-width: 1024px) {
  body > main {
    min-height: 65vh;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: $heading_font;
  font-weight: 400;
  margin-top: 0;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
}
h4 {
  font-size: 13px; /* mtenschert */
}

a {
  color: $link_color;
  text-decoration: none;
}

a:hover, a:active, a:focus {
  text-decoration: underline;
}

input,
textarea {
  color: #545454; /* mtenschert */
  font-size: 14px;
}

input {
  font-weight: 300;
  max-width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border .12s ease-in-out;
}

input:focus {
  border: 1px solid $brand_color;
}

input[disabled] {
  background-color: #ddd;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url($assets-dropdown-arrow-svg) no-repeat #fff;
  background-position: right 10px center;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 30px 8px 10px;
  outline: none;
  color: #555;
  width: 100%;
}

select:focus {
  border: 1px solid $brand_color;
}

select::-ms-expand {
  display: none;
}

textarea {
     border: 1px solid #ababab;
  border-radius: 0px;
  resize: vertical;
  width: 100%;
  outline: none;
  padding: 10px;
}

textarea:focus {
  border: 1px solid...

JavaScript

$(".request_custom_fields_360000199937").change(function() {

  $("#request_custom_fields_360000199977").attr({
    "value": "1",
  });
  $("#request_custom_fields_360000217518").attr({
    "value": "0",
  });

});

  $("#request_custom_fields_360000507598").attr({
    "value": "e.g. 2110699",
  });
  $("#request_custom_fields_360000217618").attr({
    "value": "e.g. first name, last name",
  });
  $("#request_custom_fields_360000214617").attr({
    "value": "e.g. Meribel, Sölden, Val Thorens, ...",
  });



$("#request_custom_fields_360000507598").focus(function() {
  $(this).attr("value", "");
});
//$("#searchbar").blur(function() {
//	$(this).attr("value", text);
//});

$("#request_custom_fields_360000217618").focus(function() {
  $(this).attr("value", "");
});
$("#request_custom_fields_360000214617").focus(function() {
  $(this).attr("value", "");
});
$("#request_custom_fields_360000199977").focus(function() {
  $(this).attr("value", "1");
});
$("#request_custom_fields_360000217518").focus(function() {
  $(this).attr("value", "0");
});






$("div.request_custom_fields_360000199997").mouseup(function() {
	setTimeout(function(){
  	$("div.request_custom_fields_360000199997 input").focus();
  	$("div.request_custom_fields_360000199997 input").trigger('mousedown');
  }, 100);
});
$("div.request_custom_fields_360000217558").mouseup(function() {
	setTimeout(function(){
  	$("div.request_custom_fields_360000217558 input").focus();
  	$("div.request_custom_fields_360000217558 input").trigger('mousedown');
  }, 100);
});