INNER CODE UNIT · JavaScript

SimpleJekyllSearch

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

            function SimpleJekyllSearch() {
                function initWithJSON() {
                    store.put(opt.dataSource), registerInput()
                }

                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];

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…