$(document).ready(function() {
$("#point-1, #point-2").hover(function () {
$("#list-1, #list-2").css("text-decoration", "underline");
});
$("#point-1, #point-2").mouseleave(function () {
$("#list-1, #list-2").css("text-decoration", "none");
});
$("#list-1, #list-2").hover(function () {
$("#point-1, #point-2").css("opacity", "1");
});
$("#list-1, #list-2").mouseleave(function () {
$("#point-1, #point-2").css("opacity", "0.7");
});
});
DT.Game.prototype.updateTimer = function (dtime) {
var sec, min;
this.timer += dtime;
sec = Math.floor(this.timer);
if (sec > Math.floor(this.timer - dtime) ) {
min = Math.floor(sec / 60);
sec = sec % 60;
sec = sec < 10 ? '0' + sec.toString() : sec;
DT.$title.html(min + ':' + sec + ' in digital trip');
}
};
$(window).scroll(function () {
var ControlDivTop = $('#cs_controlDivFix');
$(window).scroll(function () {
if ($(this).scrollTop() > 50) {
ControlDivTop.stop().animate({ 'top': ($(this).scrollTop() - 62) + "px" }, 600);
} else {
ControlDivTop.stop().animate({ 'top': ($(this).scrollTop()) + "px" },600);
}
});
});
content: url("../img/main-header__title-img.png");
left: 12px;
position: absolute;
top: 1px;
$( ".class" ).append( "<div>New div</div>" );
$('div.class').each(function() {
$(this).before('<div class="addClass">');
$(this).next().after('</div>');
});
$('.class1, class2').wrapAll('<div class="q1" />');
$(".class1").each(function(){
$(this).nextUntil("div.class2").andSelf().wrapAll("<div class='q1'></div>");
});