From ad97722b1b35aff50d0adf13a19715f7b8373c07 Mon Sep 17 00:00:00 2001 From: Richard Sassine Date: Tue, 4 May 2021 18:00:38 +0300 Subject: initial commit --- theme_zap/static/src/js/tour.js | 48 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 theme_zap/static/src/js/tour.js (limited to 'theme_zap/static/src/js') diff --git a/theme_zap/static/src/js/tour.js b/theme_zap/static/src/js/tour.js new file mode 100644 index 0000000..df5a3e6 --- /dev/null +++ b/theme_zap/static/src/js/tour.js @@ -0,0 +1,48 @@ +odoo.define("theme_zap.tour.zap", function (require) { +"use strict"; + +const wTourUtils = require("website.tour_utils"); +var tour = require("web_tour.tour"); + +const snippets = [ + { + id: 's_banner', + name: 'Banner', + }, + { + id: 's_numbers', + name: 'Numbers', + }, + { + id: 's_color_blocks_2', + name: 'Big Boxes', + }, + { + id: 's_features', + name: 'Features', + }, + { + id: 's_masonry_block', + name: 'Masonry', + }, + { + id: 's_references', + name: 'References', + }, +]; + +wTourUtils.registerThemeHomepageTour("zap_tour", [ + wTourUtils.dragNDrop(snippets[0]), + wTourUtils.clickOnText(snippets[0], 'h1', 'top'), + wTourUtils.goBackToBlocks(), + wTourUtils.dragNDrop(snippets[1]), + wTourUtils.dragNDrop(snippets[2]), + wTourUtils.dragNDrop(snippets[3]), + wTourUtils.dragNDrop(snippets[4]), + wTourUtils.dragNDrop(snippets[5]), + wTourUtils.clickOnSnippet(snippets[5], 'top'), + wTourUtils.changeBackgroundColor(), + wTourUtils.selectColorPalette(), + wTourUtils.clickOnSave(), +]); +}); -- cgit v1.2.3