PageSourceSearch

https://bootstraptour.com/assets/js/bootstrap-tour.docs.js?2016-08-06T07%3A17%3A00%2B01%3A00

js bootstraptour.com collected 2026-10-02 03:33:16 UTC 3,493 bytes, 94 lines download raw bytes

1(function() {
2  $(function() {
3    var $demo, duration, remaining, tour;
4    $demo = $("#demo");
5    duration = 5000;
6    remaining = duration;
7    tour = new Tour({
8      onStart: function() {
9        return $demo.addClass("disabled", true);
10      },
11      onEnd: function() {
12        return $demo.removeClass("disabled", true);
13      },
14      debug: true,
15      steps: [
16        {
17          path: "/",
18          element: "#demo",
19          placement: "bottom",
20          title: "Welcome to Bootstrap Tour!",
21          content: "Introduce new users to your product by walking them through it step by step."
22        }, {
23          path: "/",
24          element: "#usage",
25          placement: "top",
26          title: "A super simple setup",
27          content: "Easy is better, right? The tour is up and running with just a few options and steps."
28        }, {
29          path: "/",
30          element: "#license",
31          placement: "top",
32          title: "Best of all, it's free!",
33          content: "Yeah! Free as in beer... or speech. Use and abuse, but don't forget to contribute!"
34        }, {
35          path: "/api",
36          element: "#options",
37          placement: "top",
38          title: "Flexibilty and expressiveness",
39          content: "There are more options for those who want to get on the dark side.<br>\nPower to the people!",
40          reflex: true
41        }, {
42          path: "/api",
43          element: "#duration",
44          placement: "top",
45          title: "Automagically expiring step",
46          content: "A new addition: make your tour (or step) completely automatic. You set the duration, Bootstrap\nTour does the rest. For instance, this step will disappear in <em>5</em> seconds.",
47          duration: 5000
48        }, {
49          path: "/api",
50          element: "#methods table",
51          placement: "top",
52          title: "A new shiny Backdrop option",
53          content: "If you need to highlight the current step's element, activate the backdrop and you won't lose\nthe focus anymore!",
54          backdrop: true,
55          backdropPadding: 5
56        }, {
57          path: "/api",
58          element: "#reflex",
59          placement: "bottom",
60          title: "Reflex mode",
61          content: "Reflex mode is enabled, click on the text in the cell to continue!",
62          reflex: true
63        }, {
64          path: "/api",
65          title: "And support for orphan steps",
66          content: "If you activate the orphan property, the step(s) are shown centered in the page, and you can\nforget to specify element and placement!",
67          orphan: true,
68          onHidden: function() {
69            return window.location.assign("/");
70          }
71        }
72      ]
73    }).init();
74    if (tour.ended()) {
75      $('<div class="alert alert-info alert-dismissable"><button class="close" data-dismiss="alert" aria-hidden="true">&times;</button>You ended the demo tour. <a href="#" data-demo>Restart the demo tour.</a></div>').prependTo(".content").alert();
76    }
77    $(document).on("click", "[data-demo]", function(e) {
78      e.preventDefault();
79      if ($(this).hasClass("disabled")) {
80        return;
81      }
82      tour.restart();
83      return $(".alert").alert("close");
84    });
85    $("html").smoothScroll();
86    return $(".gravatar").each(function() {
87      var $this, email;
88      $this = $(this);
89      email = md5($this.data("email"));
90      return $(this).attr("src", "http://www.gravatar.com/avatar/" + email + "?s=60");
91    });
92  });
93
94}).call(this);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.