JSFiddle - React, Tailwind, and code Playground

JavaScript

var tour = new Tour({
    autoscroll: true,
    onStart: function (tour) {
        if ($("#navbar-collapse").hasClass("collapse") && $("#navbar-collapse").hasClass("in")) {
            $(".navbar-toggle").trigger("click");

        } else {

        }

    },
    onEnd: function (tour) {
        return $("#tour_start").removeClass("disabled", true);
    }
});

if (screen.width < 768) {
    tour.addSteps([
        {
            element: ".content-header",
            placement: "auto",
            title: "Welcome to Jeviz.com",
            content: "In short <b>jeviz.com</b> is Amazon Search <b>on Steroids!</b> Jeviz.com provides features which are either impossible to do with Amazon user interface or hidden in deep links of Amazon which are not easy to find. This tour introduce you our features in just 20 seconds!",
            path: "/",
            onShown: function (tour) {
                $("#tour_start").addClass("disabled", true);
            }
        },
        {
            element: "#id_min_discount_group",
            placement: "auto",
            title: "Easy Minimum Discount Slider",
            content: "Amazon shows you discount options in buckets like 25% or more, 50% or more, %75 or more. In jeviz.com you are not restricted by buckets. We have an easy minimum discount slider that you can choose exact minimum discount percentage as you want."
        },
        {
            element: "#id_show_only_amazon_warehouse_dealsx",
            placement: "auto",
            title: "Amazon Warehouse Deals",
            orphan: true,
            content: "When you choose department it is easy to find deals by clicking Show Only Items with Coupons or Show Only Amazon Warehouse Deals options.",
            onNext: function (tour) {
                search_category("US-2858778011");

            }
        },
        {
            element: "#id_sort_group",
            placement: "auto",
            title: "More Sort Options",
            orphan: true,
        ...