|
|
|
@ -81,8 +81,54 @@
|
|
|
|
|
$("#btnMusicPlay").show();
|
|
|
|
|
$("#audio_control").get(0).pause();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function changeCSS(theClass, element, value) {
|
|
|
|
|
var cssRules;
|
|
|
|
|
for (var S = 0; S < document.styleSheets.length; S++) {
|
|
|
|
|
try {
|
|
|
|
|
document.styleSheets[S].insertRule(theClass + ' { ' + element + ': ' + value + '; }', document.styleSheets[S][cssRules].length);
|
|
|
|
|
} catch (err) {
|
|
|
|
|
try {
|
|
|
|
|
document.styleSheets[S].addRule(theClass, element + ': ' + value + ';');
|
|
|
|
|
|
|
|
|
|
} catch (err) {
|
|
|
|
|
try {
|
|
|
|
|
if (document.styleSheets[S]['rules']) {
|
|
|
|
|
cssRules = 'rules';
|
|
|
|
|
} else if (document.styleSheets[S]['cssRules']) {
|
|
|
|
|
cssRules = 'cssRules';
|
|
|
|
|
} else {
|
|
|
|
|
//no rules found... browser unknown
|
|
|
|
|
}
|
|
|
|
|
for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) {
|
|
|
|
|
if (document.styleSheets[S][cssRules][R].selectorText == theClass) {
|
|
|
|
|
if (document.styleSheets[S][cssRules][R].style[element]) {
|
|
|
|
|
document.styleSheets[S][cssRules][R].style[element] = value;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} catch (err) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
$("#btnMusicPause").hide();
|
|
|
|
|
var backgroundColor = '${model['rm']['color']!}';
|
|
|
|
|
changeCSS('.nutrition_header_child_top .proimg img','border', '2px solid ${model['rm']['color']!}');
|
|
|
|
|
changeCSS('.nutrition_kinds_btn a', 'background','${model['rm']['color']!}');
|
|
|
|
|
changeCSS('.take_time .bg_full', 'background','${model['rm']['color']!}');
|
|
|
|
|
changeCSS('.take_time .time_tit', 'background','${model['rm']['color']!}');
|
|
|
|
|
changeCSS('.take_time .bg_border', 'border','2px solid ${model['rm']['color']!}');
|
|
|
|
|
changeCSS('.border_b_input input','border-bottom','2px solid ${model['rm']['color']!}');
|
|
|
|
|
changeCSS('.w_div', 'border','1px solid ${model['rm']['color']!}');
|
|
|
|
|
changeCSS('.nutrition_camera .img_preview img', 'background','${model['rm']['color']!}');
|
|
|
|
|
changeCSS('.iyu_nav ul .nav_list03 .icon','background','${model['rm']['color']!} url(../img/main/iyu_nav_ico03.png) no-repeat center/44% auto' );
|
|
|
|
|
changeCSS('.type_tab li.current', 'background-color', '${model['rm']['color']!}');
|
|
|
|
|
changeCSS('.type_tab', 'border','2px solid ${model['rm']['color']!}');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|