diff --git a/FAIRshakeHub/static/scripts/tour.js b/FAIRshakeHub/static/scripts/tour.js new file mode 100644 index 0000000..3a36755 --- /dev/null +++ b/FAIRshakeHub/static/scripts/tour.js @@ -0,0 +1,47 @@ +var tour = new Tour({ + name: "FAIRshake Tour", + debug: true, + backdrop: true, + steps: [ + { + path: '/', + element: "#search", + title: "Searching FAIRshake", + content: "FAIRshake lets you search everything from the home page, let's try searching for flybase!", + onNext: function() { + document.location.href = '/?q=flybase'; + return (new $.Deferred()).promise(); + }, + }, + { + // path: '/?q=flybase', + element: ".panel:first", + title: "Search results", + content: "FAIRshake presents the results as cards for each element in the database", + }, + { + // path: '/?q=flybase', + element: ".panel:first .image-link img", + title: "Image", + content: "The image is registered by users for quickly identifying objects", + }, + { + // path: '/?q=flybase', + element: ".panel:first .caption", + title: "Description", + content: "A short title and description is provided to further identify the object.", + }, + { + // path: '/?q=flybase', + element: ".panel:first .label", + title: "Object Type", + content: "The type of Digital Object is identified.", + }, + { + // path: '/?q=flybase', + element: ".panel:first .insignia", + title: "Insignia", + content: "The FAIRshake Insignia is displayed illustrating how FAIR the object is, red boxes indicate metrics which could not be asserted, while blue boxes indicate those which could.", + }, + ], +}); \ No newline at end of file diff --git a/FAIRshakeHub/static/style/base.css b/FAIRshakeHub/static/style/base.css index 28b73cb..5c5a2a7 100644 --- a/FAIRshakeHub/static/style/base.css +++ b/FAIRshakeHub/static/style/base.css @@ -173,3 +173,6 @@ h1 { color: dimgray; } +.tour-backdrop { + opacity: .2; +} diff --git a/FAIRshakeHub/templates/fairshake/base.html b/FAIRshakeHub/templates/fairshake/base.html index 12939f7..86a91ce 100644 --- a/FAIRshakeHub/templates/fairshake/base.html +++ b/FAIRshakeHub/templates/fairshake/base.html @@ -6,6 +6,7 @@ {% block head %} + {% block title %}{% endblock %} @@ -136,6 +137,8 @@ {% block script %} + +