window.addEventListener("DOMContentLoaded", function () {

    // Initiate the app with a config. This will instantiate the api and invoke all
    // module registrations
    app({
        path: location.hash ? location.hash.slice(2) : "home",
        root: document.querySelector("body"),
        searchinput: document.querySelector("#topnav-input"),
        debug: true
    });

});

window.addEventListener("DOMContentLoaded", function () {

    var searchinput = document.querySelector("#topnav-input");

    // Initiate the app with a config. This will instantiate the api and invoke all
    // module registrations
    app({
        path: location.hash ? location.hash.slice(2) : "home",
        root: document.querySelector("body"),
        searchinput: searchinput,
        debug: true
    });

    // Set focus on the searchinput
    searchinput.focus();

});

Put focus in searchinput on page load
Put focus in searchinput on page load

Signed-off-by: Kaustav Das Modak <ba1ce5b1e09413a89404909d8d270942c5dadd14@yahoo.co.in>
