standardise ids for tour anchors
To make it harder to accidentally mess up the tour when making changes to pages, this commit adds ids with 'tour' prefixes to (nearly) all elements used by the guided tour as anchor points. The exception is where an element already had an id that is being used by something else in Bookwyrm. Some minor changes also made to clean up the wording of the tour.
This commit is contained in:
parent
a8940b8e12
commit
3f67bc3b61
23 changed files with 75 additions and 75 deletions
|
@ -4,8 +4,8 @@
|
|||
|
||||
let localResult = document.querySelector(".local-book-search-result");
|
||||
let remoteResult = document.querySelector(".remote-book-search-result");
|
||||
let otherCatalogues = document.querySelector("#load-from-other-catalogues");
|
||||
let manuallyAdd = document.querySelector("#manually-add-book");
|
||||
let otherCatalogues = document.querySelector("#tour-load-from-other-catalogues");
|
||||
let manuallyAdd = document.querySelector("#tour-manually-add-book");
|
||||
const tour = new Shepherd.Tour({
|
||||
exitOnEsc: true,
|
||||
});
|
||||
|
@ -21,7 +21,7 @@
|
|||
</code>.",
|
||||
title: "{% trans 'Searching' %}",
|
||||
attachTo: {
|
||||
element: ".remote-book-search-result",
|
||||
element: "#tour-remote-search-result",
|
||||
on: "top",
|
||||
},
|
||||
buttons: [
|
||||
|
@ -48,7 +48,7 @@
|
|||
text: "{% trans 'If the book you are looking for is already on this server, you can click on the title to go to the book\'s page.' %}",
|
||||
title: "{% trans 'Searching' %}",
|
||||
attachTo: {
|
||||
element: ".local-book-search-result",
|
||||
element: "#tour-local-book-search-result",
|
||||
on: "top",
|
||||
},
|
||||
buttons: [
|
||||
|
@ -76,7 +76,7 @@
|
|||
text: "{% trans 'If the book you are looking for is not listed, try loading more records from other sources like Open Library or Inventaire.' %}",
|
||||
title: "{% trans 'Load more records' %}",
|
||||
attachTo: {
|
||||
element: "#load-from-other-catalogues",
|
||||
element: "#tour-load-from-other-catalogues",
|
||||
on: "right",
|
||||
},
|
||||
buttons: [
|
||||
|
@ -103,7 +103,7 @@
|
|||
text: "{% trans 'If your book is not in the results, try adjusting your search terms.' %}",
|
||||
title: "{% trans 'Search again' %}",
|
||||
attachTo: {
|
||||
element: '#search-page-input',
|
||||
element: '#tour-search-page-input',
|
||||
on: "right",
|
||||
},
|
||||
buttons: [
|
||||
|
@ -126,7 +126,7 @@
|
|||
text: "{% trans 'If you still can\'t find your book, you can add a record manually.' %}",
|
||||
title: "{% trans 'Add a record manally' %}",
|
||||
attachTo: {
|
||||
element: "#manually-add-book",
|
||||
element: "#tour-manually-add-book",
|
||||
on: "right",
|
||||
},
|
||||
buttons: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue