src/util/WWUtil.js
function () {
                var scripts = document.getElementsByTagName("script"),
                    libraryName = "/worldwind.";

                for (var i = 0; i < scripts.length; i++) {
                    var index = scripts[i].src.indexOf(libraryName);
                    if (index >= 0) {
                        return scripts[i].src.substring(0, index) + "/";
                    }
                }

                return null;
            }
function () {
                var scripts = document.getElementsByTagName("script"),
                    libraryName = "/worldwind.";

                for (var i = 0; i < scripts.length; i++) {
                    var index = scripts[i].src.indexOf(libraryName);
                    if (index >= 0) {
                        return scripts[i].src.substring(0, index) + "/";
                    }
                }

                return null;
            }
function ( ) { var scripts = document . getElementsByTagName ( "script" ) , libraryName = "/worldwind." ; for ( var i = 0 ; i < scripts . length ; i ++ ) { var index = scripts [ i ] . src . indexOf ( libraryName ) ; if ( index >= 0 ) { return scripts [ i ] . src . substring ( 0 , index ) + "/" ; } } return null ; }
Returns the URL of the directory containing the WorldWind library.
@returns {String} The URL of the directory containing the WorldWind library, or null if that directory
cannot be determined.
Returns the URL of the directory containing the WorldWind library .