var isTouch = window.DocumentTouch && document instanceof DocumentTouch;

function dimBackground() {
    var zvalue = $(document).scrollTop();
    console.log(zvalue);
    if ( zvalue > 800 )
        $("#sb-site").addClass("scrolled");
    else
        $("#sb-site").removeClass("scrolled");
}

jQuery(document).ready(function($){

    // ON SCROLL EVENTS
    if (!isTouch){
        $(document).scroll(function() {
            dimBackground();
        });
    };

    // TOUCH SCROLL
    $(document).on({
        'touchmove': function(e) {
            dimBackground(); // Replace this with your code.
        }
    });
});



@@ -140,33 +140,8 @@
 ();%0A
-    console.log(zvalue);%0A
     
@@ -540,40 +540,8 @@
 d();
- // Replace this with your code.
 %0A   

remove log