Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Splitting on several lines
Message
From
02/06/2013 03:22:07
 
 
To
01/06/2013 13:12:16
General information
Forum:
Javascript
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01575403
Message ID:
01575418
Views:
43
>Anyone would have the proper syntax to split that line into several lines:
>
>
>return typeof loWindow.pageYOffset != 'undefined' ? loWindow.pageYOffset: document.documentElement.scrollTop?
> document.documentElement.scrollTop: document.body.scrollTop? document.body.scrollTop:0
>
    if (typeof loWindow.pageYOffset != 'undefined') {
        return loWindow.pageYOffset;
    }
    if (document.documentElement.scrollTop) {
        return document.documentElement.scrollTop;
    } 
    return 0;
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform