$(document).ready(function(){
/*
*
* /admin/pages
*
*/
if(window.location.pathname == "/admin/pages"){
guiders.createGuider({
attachTo: "undefined",
description: "Thank you for choosing LocomotiveCMS!,
\
This guide will help you get up and running.\
We will walk you through some common tasks of LocomotiveCMS.\
This guide can be reached at any time by clicking the \"Help\" link
\
Lets start by editing a page.",
buttons: [{name: "Quit", onclick: guiders.hideAll},
{name: "Next"}],
id: "welcome",
next: "pagewelcome",
overlay: true,
title: "Welcome to Locomotive CMS"
});
guiders.createGuider({
attachTo: "#help_ele",
buttons: [],
description: "Click 'help' in the future to start these guides",
id: "welcome",
next: "pagewelcome",
position: 6,
width: 260,
height: 100,
title: ""
});
guiders.createGuider({
attachTo: "ul.folder:first li",
buttons: [],
description: "These are pages. You can click on the page name to edit it.",
id: "pagepointer",
next: "editpagewelcome",
width: 200,
position: 9,
title: ""
});
guiders.createGuider({
attachTo: "undefined",
description: "A page is a collection of content on your site that can be reached at a web address
For this example we will edit the 'About Us' page. To do that you would click on the page name.",
buttons: [{name: "Quit", onclick: guiders.hideAll},
{name: "Next", onclick: function(){
window.location = $('ul.folder:first li a').attr('href') + "#guider=editpagewelcome"
}
}],
id: "pagewelcome",
next: "editpagewelcome",
overlay: true,
title: "What is a page?",
onShow: function(){
guiders.show('pagepointer')
}
});
}
/*
*
* /admin/pages/edit
*
*/
if(window.location.pathname.indexOf('edit') !== -1){
guiders.createGuider({
attachTo: "undefined",
description: "You are now editing the '"+$('a.editable:first').text()+"' page. Lets start by changing the title of this page.",
buttons: [{name: "Quit", onclick: guiders.hideAll},
{name: "Next"}],
id: "editpagewelcome",
next: "editpagetitle",
overlay: true,
title: "Editing A Page"
});
guiders.createGuider({
attachTo: "a.editable:first",
buttons: [],
description: "",
id: "editpagetitle",
next: "help",
position: 6,
width: 250,
height: 100,
title: "Click here to edit the page title"
});
guiders.createGuider({
description: "A page is a collection of content on your site that can be reached by an address",
buttons: [{name: "Quit", onclick: guiders.hideAll},
{name: "Next"}],
id: "pagetitle",
next: "editpagecontent",
title: "How to Change a Page Title"
});
}
guiders.createGuider({
attachTo: "#help_ele",
buttons: [{name: "Quit", onclick: guiders.hideAll}],
description: "How To: