INNER CODE UNIT · JavaScript

initWithURL

microsoft/azuredevopslabs · js/jekyll-search.js:156

                function initWithURL(url) {
                    jsonLoader.load(url, function(err, json) {
                        err ? throwError("failed to get JSON (" + url + ")") : (store.put(json), registerInput())
                    })
                }

                function throwError(message) {
                    throw new Error("SimpleJekyllSearch --- " + message)
                }

                function validateOptions(_opt) {
                    for (var i = 0; i < requiredOptions.length; i++) {
                        var req = requiredOptions[i];
                        _opt[req] || throwError("You must specify a " + req)
                    }
                }

                function assignOptions(_opt) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…