Sha256: 4c2e8c5119c9171121e41ba37758e591925e787cbb97c79464fdf6736fbf9c1a

Contents?: true

Size: 1.41 KB

Versions: 10

Compression:

Stored size: 1.41 KB

Contents

$(document).ready(function(){

  if ($(window).width() >= 768 && $('.js-settings').attr('data-tour-taken') == 'N') {

    // Define the tour!
    var tour = {
      id: "hello-hopscotch",
      onEnd: function(){
        $.ajax({
            type: "post",
            url: $('.js-settings').attr('data-site-url') + 'setup/tour_complete',
            dataType: "html"
          }); 
      },
      steps: [
        {
          title: "Content",
          content: "Everything that you need to manage Articles, Pages, Tags and Categories in one place",
          target: "dashboardContent",
          placement: "right"
        },
        {
          title: "Menus",
          content: "Create and manage your applications menus from here",
          target: "dashboardMenus",
          placement: "right"
        },
        {
          title: "Comments",
          content: "If you have system comments switched on, any comments against articles will be stored here for you to manage",
          target: "dashboardComments",
          placement: "right"
        },
        {
          title: "Settings",
          content: "The application has a number of settings which you are able to manage from here <br /><br /> And that's it, away you go!",
          target: "dashboardSettings",
          placement: "right"
        }
      ]
    };
    // Start the tour!
    hopscotch.startTour(tour);

  }

});

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
roroacms-0.0.6.7 app/assets/javascripts/roroacms/admin/roroacms-tour.js
roroacms-0.0.6.6 app/assets/javascripts/roroacms/admin/roroacms-tour.js
roroacms-0.0.6.5 app/assets/javascripts/roroacms/admin/roroacms-tour.js
roroacms-0.0.6.4 app/assets/javascripts/roroacms/admin/roroacms-tour.js
roroacms-0.0.6.2 app/assets/javascripts/roroacms/admin/roroacms-tour.js
roroacms-0.0.6.1 app/assets/javascripts/roroacms/admin/roroacms-tour.js
roroacms-0.0.6 app/assets/javascripts/roroacms/admin/roroacms-tour.js
roroacms-0.0.5 app/assets/javascripts/roroacms/admin/roroacms-tour.js
roroacms-0.0.4 app/assets/javascripts/roroacms/admin/roroacms-tour.js
roroacms-0.0.3 app/assets/javascripts/roroacms/admin/roroacms-tour.js