Last active
August 29, 2015 14:05
-
-
Save Opus1no2/66f445501a11da3d1f26 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
#foot {padding-bottom:20px;} | |
.two_column #customer_service_links { | |
height: inherit; | |
} | |
.tooltip{ | |
display: inline; | |
position: relative; | |
} | |
.tooltip:hover:after{ | |
background: #333; | |
background: rgba(0,0,0,.8); | |
border-radius: 5px; | |
bottom: 26px; | |
color: #fff; | |
content: attr(title); | |
left: 5%; | |
padding: 5px 15px; | |
position: absolute; | |
z-index: 98; | |
} | |
.tooltip:hover:before{ | |
border: solid; | |
border-color: #333 transparent; | |
border-width: 6px 6px 0 6px; | |
bottom: 20px; | |
content: ""; | |
left: 50%; | |
position: absolute; | |
z-index: 99; | |
} | |
textarea:focus { | |
border: 3px solid #0b91ff !important; | |
} | |
#overall { | |
border: 1px solid rgba(0, 0, 0, 0); | |
} | |
#cdu_content .nps { | |
border: 1px solid rgba(0, 0, 0, 0) !important; | |
} | |
.tooltip { | |
border: 1px solid rgba(0, 0, 0, 0); | |
} | |
fieldset.nps>div { | |
height: 47px; | |
} | |
.q_container { | |
border: 1px solid rgba(0, 0, 0, 0); | |
} | |
#comments .placeholder { color:black } | |
fieldset.nps>div>label {color:black} | |
span.req_question{font-size:20px;color: #B50012} | |
button.button.disabled span{color:black} | |
#comment_limit{color:black} | |
</style> | |
<script> | |
var map = ['Very Dissatisfied', 'Dissatisfied', 'Neutral', 'Satisfied', 'Very Satisfied']; | |
function addTT(divs) { | |
var divRay = document.querySelectorAll(divs); | |
for (i=0; i < divRay.length; i++) { | |
divRay[i].className = 'tooltip'; | |
divRay[i].setAttribute('title', map[i]); | |
} | |
} | |
setTimeout(function () { | |
addTT('#rater_buttons div'); | |
addTT('#cdu_content div'); | |
addTT('#cdu_design div'); | |
addTT('#cdu_usability div'); | |
var tpselect = document.getElementById('topic_selector'); | |
tpselect.removeAttribute('role'); | |
tpselect.removeAttribute('class'); | |
tpselect.removeAttribute('aria-required'); | |
}, 1000); | |
window.__olab_custom = function(){ | |
setTimeout(function() { | |
$("#overall"). removeAttr('role'); | |
$("#foot_text a").attr("title", "Privacy Policy - opens new window"); | |
$("#submit_button").on("click", function () { | |
setTimeout(function () { | |
if ($(".section.error").length > 0) { | |
$(".error").css({"background":"transparent"}); | |
var txt = $(".section.error").find("legend").text(); | |
var overall = /^(.*?)\*/.exec(txt)[1]; | |
$("#form_errors").html("There were problems with your comment card.<br>Please select an "+overall+" rating"); | |
} | |
}, 0); | |
}); | |
$('body').keydown(function(e) { | |
var code = e.keyCode || e.which; | |
if (code == '9' && e.target.id == 'submit_button') { | |
$("#overall").focus(); | |
} | |
}); | |
},0); | |
} | |
</script> | |
<style> #banner a {margin:0px;} | |
div#banner {background: -webkit-linear-gradient(top, #595C64, #1B1B1C);} | |
#cdu_content>legend, #cdu_usability>legend, #cdu_design>legend, #rater_legend>fieldset {color: #000;} </style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment