Demo entry 4722470

test function

   

Submitted by anonymous on May 10, 2016 at 11:08
Language: JavaScript. Code size: 501 Bytes.

    function test_func(variant, body_width) {
        if (body_width >= 960) {
            if (variant == 'load') {
                $('body').css('font-size', '12px');
            } else {
                $('body').animate({'font-size': '12px'}, 500);
            }
        } else {
            if (variant == 'load') {
                $('body').css('font-size', '20px');
            } else {
                $('body').animate({'font-size': '20px'}, 500);
            }
        }
    }

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).