TagSpaces is an offline, open source, document manager with tagging support
adding initial getting started tour with the hopscotch library
uggrock40189e6dede7
diff --git a/data/about.html b/data/about.htmlindex f489661af..7b3ec1175 100644--- a/data/about.html+++ b/data/about.html@@ -95,6 +95,8 @@ Copyright (c) 2012-2015 The TagSpaces Authors. All rights reserved. Use of this<li><a href="https://github.com/selz/plyr" target="_system">plyr.io</a> used in the viewerAudioVideo - <a href="ext/viewerAudioVideo/plyr/license[mit].txt" target="_system">License[MIT]</a></li><li><a href="https://github.com/futurepress/epub.js/" target="_system">epub.js</a> used in the viewerEPUB - <a href="ext/viewerEPUB/epubjs/license.txt" target="_system">License</a></li><li><a href="https://bootswatch.com/paper/" target="_system">Bootswatch Paper Theme</a> used as a default bootstrap theme - <a href="https://github.com/thomaspark/bootswatch/blob/gh-pages/LICENSE" target="_system">License[MIT]</a></li>+ <li><a href="https://github.com/cburgmer/rasterizeHTML.js" target="_system">rasterizeHTML.js</a> used for the thumb generation from HTML files - <a href="https://github.com/cburgmer/rasterizeHTML.js#author" target="_system">License[MIT]</a></li>+ <li><a href="http://linkedin.github.io/hopscotch/" target="_system">Hopscotch</a> used in the welcome tour - <a href="https://github.com/linkedin/hopscotch/blob/master/LICENSE" target="_system">License[Apache]</a></li></ul></body></html>diff --git a/data/assets/general.css b/data/assets/general.cssindex c03b2c084..6e7578fe3 100644--- a/data/assets/general.css+++ b/data/assets/general.css@@ -601,3 +601,7 @@ input a.resetFilter {background-size: 300px 200px;}}++.uiEmphasizer {+ border: 3px dashed #1DD19F;+}\ No newline at end of filediff --git a/data/index.html b/data/index.htmlindex eaaef54d3..06df559f1 100644--- a/data/index.html+++ b/data/index.html@@ -18,7 +18,8 @@user-select: none; -webkit-user-select: none; -moz-user-select: none;}</style>- <link rel="stylesheet" type="text/css" href="assets/tagspaces.css">+ <link rel="stylesheet" type="text/css" href="assets/tagspaces.css" />+ <link rel="stylesheet" href="libs/hopscotch/css/hopscotch.css" /><link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/apple-touch-icon-144-precomposed.png"/><link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/apple-touch-icon-114-precomposed.png"/><link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/apple-touch-icon-72-precomposed.png"/>@@ -69,10 +70,8 @@</div><div class="btn-toolbar"><div class="btn-group flexLayout" id="locationSwitch">- <button type="button" class="btn btn-default" id="locationName" data-toggle="dropdown"- data-i18n="ns.common:chooseLocation"></button>- <button type="button" class="btn btn-default dropdown-toggle" id="selectLocation" data-toggle="dropdown"- data-placement="bottom;" data-original-title="Start using TagSpaces by connecting a new location!">+ <button type="button" class="btn btn-default" id="locationName" data-toggle="dropdown">Choose Location</button>+ <button type="button" class="btn btn-default dropdown-toggle" id="selectLocation" data-toggle="dropdown"><span class="caret"></span></button><ul class="dropdown-menu" id="locationsList"></ul>diff --git a/data/js/core.api.js b/data/js/core.api.jsindex edced794f..6a0a7be15 100644--- a/data/js/core.api.js+++ b/data/js/core.api.js@@ -36,8 +36,6 @@ define(function(require, exports, module) {var subfoldersDirBrowser;var directoryBrowser;- var slideout;-function initApp() {console.log('Init application');tsSettings.loadSettingsLocalStorage();@@ -87,8 +85,7 @@ define(function(require, exports, module) {}// Show welcome dialog by no locationsif (tsSettings.Settings.tagspacesList.length < 1) {- $('#selectLocation').tooltip('show');- tsCoreUI.showWelcomeDialog();+ tsCoreUI.startGettingStartedTour();}if (isNode || isChrome) {// Handle command line argument in node-webkit@@ -96,7 +93,6 @@ define(function(require, exports, module) {//tsIOApi.handleTray();}console.log('Docoument ready finished. Layout initialized');- //$( "#loading" ).hide(); moved to perspective managercheckForNewVersion();});}diff --git a/data/js/core.ui.js b/data/js/core.ui.jsindex 1880901eb..05027b0e3 100644--- a/data/js/core.ui.js+++ b/data/js/core.ui.js@@ -202,7 +202,8 @@ define(function(require, exports, module) {});};var showWelcomeDialog = function() {- require(['text!templates/WelcomeDialog.html'], function(uiTPL) {+ startGettingStartedTour();+ /*require(['text!templates/WelcomeDialog.html'], function(uiTPL) {if ($('#dialogWelcome').length < 1) {var uiTemplate = Handlebars.compile(uiTPL);$('body').append(uiTemplate());@@ -213,8 +214,14 @@ define(function(require, exports, module) {backdrop: 'static',show: true});- });+ });*/+ };++ var startGettingStartedTour = function() {+ var tsGettingStarted = require('tsgettingstarted');+ tsGettingStarted.startTour();};+var showMoveCopyFilesDialog = function() {require(['text!templates/MoveCopyFilesDialog.html'], function(uiTPL) {if ($('#dialogMoveCopyFiles').length < 1) {@@ -777,11 +784,13 @@ define(function(require, exports, module) {exports.showFileCreateDialog = showFileCreateDialog;exports.showFileDeleteDialog = showFileDeleteDialog;exports.showWelcomeDialog = showWelcomeDialog;+ exports.startGettingStartedTour = startGettingStartedTour;exports.showTagEditDialog = showTagEditDialog;exports.showOptionsDialog = showOptionsDialog;exports.showAboutDialog = showAboutDialog;exports.showLocationsPanel = showLocationsPanel;exports.showTagsPanel = showTagsPanel;+ exports.showContactUsPanel = showContactUsPanel;exports.showDirectoryBrowserDialog = showDirectoryBrowserDialog;exports.showMoveCopyFilesDialog = showMoveCopyFilesDialog;exports.hideAllDropDownMenus = hideAllDropDownMenus;diff --git a/data/js/gettingstarted.js b/data/js/gettingstarted.jsnew file mode 100644index 000000000..2b1124626--- /dev/null+++ b/data/js/gettingstarted.js@@ -0,0 +1,155 @@+/* Copyright (c) 2012-2015 The TagSpaces Authors. All rights reserved.+ * Use of this source code is governed by a AGPL3 license that+ * can be found in the LICENSE file. */++define(function(require, exports, module) {+ 'use strict';+ console.log('Loading directorybrowser.js ...');+ var hopscotch = require('hopscotch');+ var TSCORE = require('tscore');++ var nextI18N = $.i18n.t('ns.dialogs:titleWaiting'); // not working+ //console.log("nextI18N "+ nextI18N);++ var tour = {+ id: "gettingstarted",+ steps: [+ {+ title: "Welcome to TagSpaces!",+ content: "Start using TagSpaces by connecting a location from your device to TagSpaces.",+ target: "locationName",+ placement: "bottom",+ onNext: function() {+ $("#locationsList").css("display","block");+ }+ },+ {+ title: "Connecting location",+ content: "Connect ",+ target: "createNewLocation",+ placement: "bottom",+ onNext: function() {+ $("#locationsList").css("display","");+ $('#tagGroupsContent').hide();+ $('#contactUsContent').hide();+ $('#locationContent').show();+ $('#showTagGroups').removeClass('active');+ $('#contactUs').removeClass('active');+ $('#showLocations').addClass('active');+ $('.col1 .row2').addClass("uiEmphasizer");+ }+ },+ {+ title: "Your folder navigator",+ content: "...",+ target: "showLocations",+ placement: "top",+ onNext: function() {+ $('#locationContent').hide();+ $('#contactUsContent').hide();+ $('#tagGroupsContent').show();+ $('#showLocations').removeClass('active');+ $('#contactUs').removeClass('active');+ $('#showTagGroups').addClass('active');+ $('.col1 .row2').removeClass("uiEmphasizer");+ $('#tagGroupsContent').addClass("uiEmphasizer");+ },+ xOffset: -60,+ arrowOffset: 60,+ },+ {+ title: "Your tag library",+ content: "...",+ target: "showTagGroups",+ placement: "top",+ onNext: function() {+ $('#tagGroupsContent').removeClass("uiEmphasizer");+ $('#contactUsContent').addClass("uiEmphasizer");+ $('#locationContent').hide();+ $('#tagGroupsContent').hide();+ $('#contactUsContent').show();+ $('#showLocations').removeClass('active');+ $('#showTagGroups').removeClass('active');+ $('#contactUs').addClass('active');+ }+ },+ {+ title: "About the project",+ content: "Here you'll find useful information and links regarding the TagSpaces project",+ target: "contactUs",+ placement: "top",+ onNext: function() {+ $('#contactUsContent').removeClass("uiEmphasizer");+ },+ xOffset: -120,+ arrowOffset: 120,+ },+ {+ title: "Settings",+ content: "This button will open the settings dialog of the app, where you can change language of the user interface or manage the file associations.",+ target: "openOptions",+ placement: "top",+ onNext: function() {+ $('#closeLeftPanel').addClass("uiEmphasizer");+ },+ xOffset: -220,+ arrowOffset: 220,+ },+ {+ title: "Closing side panel",+ content: ".",+ target: "closeLeftPanel",+ placement: "bottom",+ onNext: function() {+ $('#closeLeftPanel').removeClass("uiEmphasizer");+ $('#closeLeftPanel').click();+ $('#viewContainers').addClass("uiEmphasizer");+ },+ xOffset: -220,+ arrowOffset: 220,+ },+ {+ title: "Main area",+ content: ".",+ target: "viewContainers",+ placement: "top",+ onNext: function() {+ $('#viewContainers').removeClass("uiEmphasizer");+ },+ yOffset: 220,+ xOffset: 'center',+ arrowOffset: 'center',+ },+ ],+ onEnd: function() {+ closeTour();+ },+ onClose: function() {+ closeTour();+ },+ showCloseButton: true,+ showNextButton: true,+ i18n: {+ nextBtn: nextI18N,+ }+ };++ function closeTour() {+ $('#openLeftPanel').click();+ $("#locationsList").css("display","");+ $('#tagGroupsContent').removeClass("uiEmphasizer");+ $('#contactUsContent').removeClass("uiEmphasizer");+ $('#closeLeftPanel').removeClass("uiEmphasizer");+ $('.col1 .row2').removeClass("uiEmphasizer");+ $('#viewContainers').removeClass("uiEmphasizer");+ }++ exports.closeTour = closeTour();++ exports.startTour = function() {+ // Start the tour!+ TSCORE.openLeftPanel();+ hopscotch.startTour(tour);+ };++});\ No newline at end of filediff --git a/data/libs/hopscotch/LICENSE[apache].txt b/data/libs/hopscotch/LICENSE[apache].txtnew file mode 100644index 000000000..f433b1a53--- /dev/null+++ b/data/libs/hopscotch/LICENSE[apache].txt@@ -0,0 +1,177 @@++ Apache License+ Version 2.0, January 2004+ http://www.apache.org/licenses/++ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION++ 1. Definitions.++ "License" shall mean the terms and conditions for use, reproduction,+ and distribution as defined by Sections 1 through 9 of this document.++ "Licensor" shall mean the copyright owner or entity authorized by+ the copyright owner that is granting the License.++ "Legal Entity" shall mean the union of the acting entity and all+ other entities that control, are controlled by, or are under common+ control with that entity. For the purposes of this definition,+ "control" means (i) the power, direct or indirect, to cause the+ direction or management of such entity, whether by contract or+ otherwise, or (ii) ownership of fifty percent (50%) or more of the+ outstanding shares, or (iii) beneficial ownership of such entity.++ "You" (or "Your") shall mean an individual or Legal Entity+ exercising permissions granted by this License.++ "Source" form shall mean the preferred form for making modifications,+ including but not limited to software source code, documentation+ source, and configuration files.++ "Object" form shall mean any form resulting from mechanical+ transformation or translation of a Source form, including but+ not limited to compiled object code, generated documentation,+ and conversions to other media types.++ "Work" shall mean the work of authorship, whether in Source or+ Object form, made available under the License, as indicated by a+ copyright notice that is included in or attached to the work+ (an example is provided in the Appendix below).++ "Derivative Works" shall mean any work, whether in Source or Object+ form, that is based on (or derived from) the Work and for which the+ editorial revisions, annotations, elaborations, or other modifications+ represent, as a whole, an original work of authorship. For the purposes+ of this License, Derivative Works shall not include works that remain+ separable from, or merely link (or bind by name) to the interfaces of,+ the Work and Derivative Works thereof.++ "Contribution" shall mean any work of authorship, including+ the original version of the Work and any modifications or additions+ to that Work or Derivative Works thereof, that is intentionally+ submitted to Licensor for inclusion in the Work by the copyright owner+ or by an individual or Legal Entity authorized to submit on behalf of+ the copyright owner. For the purposes of this definition, "submitted"+ means any form of electronic, verbal, or written communication sent+ to the Licensor or its representatives, including but not limited to+ communication on electronic mailing lists, source code control systems,+ and issue tracking systems that are managed by, or on behalf of, the+ Licensor for the purpose of discussing and improving the Work, but+ excluding communication that is conspicuously marked or otherwise+ designated in writing by the copyright owner as "Not a Contribution."++ "Contributor" shall mean Licensor and any individual or Legal Entity+ on behalf of whom a Contribution has been received by Licensor and+ subsequently incorporated within the Work.++ 2. Grant of Copyright License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ copyright license to reproduce, prepare Derivative Works of,+ publicly display, publicly perform, sublicense, and distribute the+ Work and such Derivative Works in Source or Object form.++ 3. Grant of Patent License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ (except as stated in this section) patent license to make, have made,+ use, offer to sell, sell, import, and otherwise transfer the Work,+ where such license applies only to those patent claims licensable+ by such Contributor that are necessarily infringed by their+ Contribution(s) alone or by combination of their Contribution(s)+ with the Work to which such Contribution(s) was submitted. If You+ institute patent litigation against any entity (including a+ cross-claim or counterclaim in a lawsuit) alleging that the Work+ or a Contribution incorporated within the Work constitutes direct+ or contributory patent infringement, then any patent licenses+ granted to You under this License for that Work shall terminate+ as of the date such litigation is filed.++ 4. Redistribution. You may reproduce and distribute copies of the+ Work or Derivative Works thereof in any medium, with or without+ modifications, and in Source or Object form, provided that You+ meet the following conditions:++ (a) You must give any other recipients of the Work or+ Derivative Works a copy of this License; and++ (b) You must cause any modified files to carry prominent notices+ stating that You changed the files; and++ (c) You must retain, in the Source form of any Derivative Works+ that You distribute, all copyright, patent, trademark, and+ attribution notices from the Source form of the Work,+ excluding those notices that do not pertain to any part of+ the Derivative Works; and++ (d) If the Work includes a "NOTICE" text file as part of its+ distribution, then any Derivative Works that You distribute must+ include a readable copy of the attribution notices contained+ within such NOTICE file, excluding those notices that do not+ pertain to any part of the Derivative Works, in at least one+ of the following places: within a NOTICE text file distributed+ as part of the Derivative Works; within the Source form or+ documentation, if provided along with the Derivative Works; or,+ within a display generated by the Derivative Works, if and+ wherever such third-party notices normally appear. The contents+ of the NOTICE file are for informational purposes only and+ do not modify the License. You may add Your own attribution+ notices within Derivative Works that You distribute, alongside+ or as an addendum to the NOTICE text from the Work, provided+ that such additional attribution notices cannot be construed+ as modifying the License.++ You may add Your own copyright statement to Your modifications and+ may provide additional or different license terms and conditions+ for use, reproduction, or distribution of Your modifications, or+ for any such Derivative Works as a whole, provided Your use,+ reproduction, and distribution of the Work otherwise complies with+ the conditions stated in this License.++ 5. Submission of Contributions. Unless You explicitly state otherwise,+ any Contribution intentionally submitted for inclusion in the Work+ by You to the Licensor shall be under the terms and conditions of+ this License, without any additional terms or conditions.+ Notwithstanding the above, nothing herein shall supersede or modify+ the terms of any separate license agreement you may have executed+ with Licensor regarding such Contributions.++ 6. Trademarks. This License does not grant permission to use the trade+ names, trademarks, service marks, or product names of the Licensor,+ except as required for reasonable and customary use in describing the+ origin of the Work and reproducing the content of the NOTICE file.++ 7. Disclaimer of Warranty. Unless required by applicable law or+ agreed to in writing, Licensor provides the Work (and each+ Contributor provides its Contributions) on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or+ implied, including, without limitation, any warranties or conditions+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A+ PARTICULAR PURPOSE. You are solely responsible for determining the+ appropriateness of using or redistributing the Work and assume any+ risks associated with Your exercise of permissions under this License.++ 8. Limitation of Liability. In no event and under no legal theory,+ whether in tort (including negligence), contract, or otherwise,+ unless required by applicable law (such as deliberate and grossly+ negligent acts) or agreed to in writing, shall any Contributor be+ liable to You for damages, including any direct, indirect, special,+ incidental, or consequential damages of any character arising as a+ result of this License or out of the use or inability to use the+ Work (including but not limited to damages for loss of goodwill,+ work stoppage, computer failure or malfunction, or any and all+ other commercial damages or losses), even if such Contributor+ has been advised of the possibility of such damages.++ 9. Accepting Warranty or Additional Liability. While redistributing+ the Work or Derivative Works thereof, You may choose to offer,+ and charge a fee for, acceptance of support, warranty, indemnity,+ or other liability obligations and/or rights consistent with this+ License. However, in accepting such obligations, You may act only+ on Your own behalf and on Your sole responsibility, not on behalf+ of any other Contributor, and only if You agree to indemnify,+ defend, and hold each Contributor harmless for any liability+ incurred by, or claims asserted against, such Contributor by reason+ of your accepting any such warranty or additional liability.++ END OF TERMS AND CONDITIONSdiff --git a/data/libs/hopscotch/css/hopscotch.css b/data/libs/hopscotch/css/hopscotch.cssnew file mode 100644index 000000000..bf8e6971c--- /dev/null+++ b/data/libs/hopscotch/css/hopscotch.css@@ -0,0 +1,519 @@+/**! hopscotch - v0.2.5+*+* Copyright 2015 LinkedIn Corp. All rights reserved.+*+* Licensed under the Apache License, Version 2.0 (the "License");+* you may not use this file except in compliance with the License.+* You may obtain a copy of the License at+*+* http://www.apache.org/licenses/LICENSE-2.0+*+* Unless required by applicable law or agreed to in writing, software+* distributed under the License is distributed on an "AS IS" BASIS,+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+* See the License for the specific language governing permissions and+* limitations under the License.+*/+/**+ * This fade animation is based on Dan Eden's animate.css (http://daneden.me/animate/), under the terms of the MIT license.+ *+ * Copyright 2013 Dan Eden.+ *+ * Permission is hereby granted, free of charge, to any person obtaining a copy+ * of this software and associated documentation files (the "Software"), to deal+ * in the Software without restriction, including without limitation the rights+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+ * copies of the Software, and to permit persons to whom the Software is+ * furnished to do so, subject to the following conditions:+ *+ * The above copyright notice and this permission notice shall be included in+ * all copies or substantial portions of the Software.+ *+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN+ * THE SOFTWARE.+ */+.animated {+ -webkit-animation-fill-mode: both;+ -moz-animation-fill-mode: both;+ -ms-animation-fill-mode: both;+ -o-animation-fill-mode: both;+ animation-fill-mode: both;+ -webkit-animation-duration: 1s;+ -moz-animation-duration: 1s;+ -ms-animation-duration: 1s;+ -o-animation-duration: 1s;+ animation-duration: 1s;+}+@-webkit-keyframes fadeInUp {+ 0% {+ opacity: 0;+ -webkit-transform: translateY(20px);+ }+ 100% {+ opacity: 1;+ -webkit-transform: translateY(0);+ }+}+@-moz-keyframes fadeInUp {+ 0% {+ opacity: 0;+ -moz-transform: translateY(20px);+ }+ 100% {+ opacity: 1;+ -moz-transform: translateY(0);+ }+}+@-o-keyframes fadeInUp {+ 0% {+ opacity: 0;+ -o-transform: translateY(20px);+ }+ 100% {+ opacity: 1;+ -o-transform: translateY(0);+ }+}+@keyframes fadeInUp {+ 0% {+ opacity: 0;+ transform: translateY(20px);+ }+ 100% {+ opacity: 1;+ transform: translateY(0);+ }+}+.fade-in-up {+ -webkit-animation-name: fadeInUp;+ -moz-animation-name: fadeInUp;+ -o-animation-name: fadeInUp;+ animation-name: fadeInUp;+}+@-webkit-keyframes fadeInDown {+ 0% {+ opacity: 0;+ -webkit-transform: translateY(-20px);+ }+ 100% {+ opacity: 1;+ -webkit-transform: translateY(0);+ }+}+@-moz-keyframes fadeInDown {+ 0% {+ opacity: 0;+ -moz-transform: translateY(-20px);+ }+ 100% {+ opacity: 1;+ -moz-transform: translateY(0);+ }+}+@-o-keyframes fadeInDown {+ 0% {+ opacity: 0;+ -ms-transform: translateY(-20px);+ }+ 100% {+ opacity: 1;+ -ms-transform: translateY(0);+ }+}+@keyframes fadeInDown {+ 0% {+ opacity: 0;+ transform: translateY(-20px);+ }+ 100% {+ opacity: 1;+ transform: translateY(0);+ }+}+.fade-in-down {+ -webkit-animation-name: fadeInDown;+ -moz-animation-name: fadeInDown;+ -o-animation-name: fadeInDown;+ animation-name: fadeInDown;+}+@-webkit-keyframes fadeInRight {+ 0% {+ opacity: 0;+ -webkit-transform: translateX(-20px);+ }+ 100% {+ opacity: 1;+ -webkit-transform: translateX(0);+ }+}+@-moz-keyframes fadeInRight {+ 0% {+ opacity: 0;+ -moz-transform: translateX(-20px);+ }+ 100% {+ opacity: 1;+ -moz-transform: translateX(0);+ }+}+@-o-keyframes fadeInRight {+ 0% {+ opacity: 0;+ -o-transform: translateX(-20px);+ }+ 100% {+ opacity: 1;+ -o-transform: translateX(0);+ }+}+@keyframes fadeInRight {+ 0% {+ opacity: 0;+ transform: translateX(-20px);+ }+ 100% {+ opacity: 1;+ transform: translateX(0);+ }+}+.fade-in-right {+ -webkit-animation-name: fadeInRight;+ -moz-animation-name: fadeInRight;+ -o-animation-name: fadeInRight;+ animation-name: fadeInRight;+}+@-webkit-keyframes fadeInLeft {+ 0% {+ opacity: 0;+ -webkit-transform: translateX(20px);+ }+ 100% {+ opacity: 1;+ -webkit-transform: translateX(0);+ }+}+@-moz-keyframes fadeInLeft {+ 0% {+ opacity: 0;+ -moz-transform: translateX(20px);+ }+ 100% {+ opacity: 1;+ -moz-transform: translateX(0);+ }+}+@-o-keyframes fadeInLeft {+ 0% {+ opacity: 0;+ -o-transform: translateX(20px);+ }+ 100% {+ opacity: 1;+ -o-transform: translateX(0);+ }+}+@keyframes fadeInLeft {+ 0% {+ opacity: 0;+ transform: translateX(20px);+ }+ 100% {+ opacity: 1;+ transform: translateX(0);+ }+}+.fade-in-left {+ -webkit-animation-name: fadeInLeft;+ -moz-animation-name: fadeInLeft;+ -o-animation-name: fadeInLeft;+ animation-name: fadeInLeft;+}+div.hopscotch-bubble .hopscotch-nav-button {+ /* borrowed from katy styles */+ font-weight: bold;+ border-width: 1px;+ border-style: solid;+ cursor: pointer;+ margin: 0;+ overflow: visible;+ text-decoration: none !important;+ width: auto;+ padding: 0 10px;+ height: 26px;+ line-height: 24px;+ font-size: 12px;+ *zoom: 1;+ white-space: nowrap;+ display: -moz-inline-stack;+ display: inline-block;+ *vertical-align: auto;+ zoom: 1;+ *display: inline;+ vertical-align: middle;+ -moz-border-radius: 3px;+ -ms-border-radius: 3px;+ -o-border-radius: 3px;+ -webkit-border-radius: 3px;+ border-radius: 3px;+ -webkit-box-sizing: border-box;+ -moz-box-sizing: border-box;+ box-sizing: border-box;+}+div.hopscotch-bubble .hopscotch-nav-button:hover {+ *zoom: 1;+ -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);+ -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);+}+div.hopscotch-bubble .hopscotch-nav-button:active {+ -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) inset;+ -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) inset;+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) inset;+}+div.hopscotch-bubble .hopscotch-nav-button.next {+ border-color: #1b5480;+ color: #fff;+ margin: 0 0 0 10px;+ /* HS specific*/+ text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);+ background-color: #287bbc;+ filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#287bbc', endColorstr='#23639a');+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #287bbc), color-stop(100%, #23639a));+ background-image: -webkit-linear-gradient(top, #287bbc 0%, #23639a 100%);+ background-image: -moz-linear-gradient(top, #287bbc 0%, #23639a 100%);+ background-image: -o-linear-gradient(top, #287bbc 0%, #23639a 100%);+ background-image: linear-gradient(top, #287bbc 0%, #23639a 100%);+}+div.hopscotch-bubble .hopscotch-nav-button.next:hover {+ background-color: #2672ae;+ filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#2672ae', endColorstr='#1e4f7e');+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #2672ae), color-stop(100%, #1e4f7e));+ background-image: -webkit-linear-gradient(top, #2672ae 0%, #1e4f7e 100%);+ background-image: -moz-linear-gradient(top, #2672ae 0%, #1e4f7e 100%);+ background-image: -o-linear-gradient(top, #2672ae 0%, #1e4f7e 100%);+ background-image: linear-gradient(top, #2672ae 0%, #1e4f7e 100%);+}+div.hopscotch-bubble .hopscotch-nav-button.prev {+ border-color: #a7a7a7;+ color: #444;+ text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);+ background-color: #f2f2f2;+ filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#f2f2f2', endColorstr='#e9e9e9');+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #f2f2f2), color-stop(100%, #e9e9e9));+ background-image: -webkit-linear-gradient(top, #f2f2f2 0%, #e9e9e9 100%);+ background-image: -moz-linear-gradient(top, #f2f2f2 0%, #e9e9e9 100%);+ background-image: -o-linear-gradient(top, #f2f2f2 0%, #e9e9e9 100%);+ background-image: linear-gradient(top, #f2f2f2 0%, #e9e9e9 100%);+}+div.hopscotch-bubble .hopscotch-nav-button.prev:hover {+ background-color: #e8e8e8;+ filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FFE8E8E8', endColorstr='#FFA9A9A9');+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e8e8e8), color-stop(13%, #e3e3e3), color-stop(32%, #d7d7d7), color-stop(71%, #b9b9b9), color-stop(100%, #a9a9a9));+ background-image: -webkit-linear-gradient(top, #e8e8e8 0%, #e3e3e3 13%, #d7d7d7 32%, #b9b9b9 71%, #a9a9a9 100%);+ background-image: -moz-linear-gradient(top, #e8e8e8 0%, #e3e3e3 13%, #d7d7d7 32%, #b9b9b9 71%, #a9a9a9 100%);+ background-image: -o-linear-gradient(top, #e8e8e8 0%, #e3e3e3 13%, #d7d7d7 32%, #b9b9b9 71%, #a9a9a9 100%);+ background-image: linear-gradient(top, #e8e8e8 0%, #e3e3e3 13%, #d7d7d7 32%, #b9b9b9 71%, #a9a9a9 100%);+}+div.hopscotch-bubble {+ background-color: #ffffff;+ border: 5px solid #000000;+ /* default */+ border: 5px solid rgba(0, 0, 0, 0.5);+ /* transparent, if supported */+ color: #333;+ font-family: Helvetica, Arial;+ font-size: 13px;+ position: absolute;+ z-index: 999999;+ -webkit-box-sizing: content-box;+ -moz-box-sizing: content-box;+ box-sizing: content-box;+ -moz-background-clip: padding;+ /* for Mozilla browsers*/+ -webkit-background-clip: padding;+ /* Webkit */+ background-clip: padding-box;+ /* browsers with full support */+}+div.hopscotch-bubble * {+ -webkit-box-sizing: content-box;+ -moz-box-sizing: content-box;+ box-sizing: content-box;+}+div.hopscotch-bubble.animate {+ -moz-transition-property: top, left;+ -moz-transition-duration: 1s;+ -moz-transition-timing-function: ease-in-out;+ -ms-transition-property: top, left;+ -ms-transition-duration: 1s;+ -ms-transition-timing-function: ease-in-out;+ -o-transition-property: top, left;+ -o-transition-duration: 1s;+ -o-transition-timing-function: ease-in-out;+ -webkit-transition-property: top, left;+ -webkit-transition-duration: 1s;+ -webkit-transition-timing-function: ease-in-out;+ transition-property: top, left;+ transition-duration: 1s;+ transition-timing-function: ease-in-out;+}+div.hopscotch-bubble.invisible {+ opacity: 0;+}+div.hopscotch-bubble.hide,+div.hopscotch-bubble .hide,+div.hopscotch-bubble .hide-all {+ display: none;+}+div.hopscotch-bubble h3 {+ color: #000;+ font-family: Helvetica, Arial;+ font-size: 16px;+ font-weight: bold;+ line-height: 19px;+ margin: -1px 15px 0 0;+ padding: 0;+}+div.hopscotch-bubble .hopscotch-bubble-container {+ padding: 15px;+ position: relative;+ text-align: left;+ -webkit-font-smoothing: antialiased;+ /* to fix text flickering */+}+div.hopscotch-bubble .hopscotch-content {+ font-family: Helvetica, Arial;+ font-weight: normal;+ line-height: 17px;+ margin: -5px 0 11px;+ padding-top: 8px;+}+div.hopscotch-bubble .hopscotch-bubble-content {+ margin: 0 0 0 40px;+}+div.hopscotch-bubble.no-number .hopscotch-bubble-content {+ margin: 0;+}+div.hopscotch-bubble .hopscotch-bubble-close {+ -webkit-appearance: none;+ -moz-appearance: none;+ appearance: none;+ border: 0;+ color: #000;+ background: transparent url(../img/sprite-green.png) -192px -92px no-repeat;+ display: block;+ padding: 8px;+ position: absolute;+ text-decoration: none;+ text-indent: -9999px;+ width: 8px;+ height: 8px;+ top: 0;+ right: 0;+}+div.hopscotch-bubble .hopscotch-bubble-close.hide,+div.hopscotch-bubble .hopscotch-bubble-close.hide-all {+ display: none;+}+div.hopscotch-bubble .hopscotch-bubble-number {+ background: transparent url(../img/sprite-green.png) 0 0 no-repeat;+ color: #fff;+ display: block;+ float: left;+ font-size: 17px;+ font-weight: bold;+ line-height: 31px;+ padding: 0 10px 0 0;+ text-align: center;+ width: 30px;+ height: 30px;+}+div.hopscotch-bubble .hopscotch-bubble-arrow-container {+ position: absolute;+ width: 34px;+ height: 34px;+}+div.hopscotch-bubble .hopscotch-bubble-arrow-container .hopscotch-bubble-arrow,+div.hopscotch-bubble .hopscotch-bubble-arrow-container .hopscotch-bubble-arrow-border {+ width: 0;+ height: 0;+}+div.hopscotch-bubble .hopscotch-bubble-arrow-container.up {+ top: -22px;+ left: 10px;+}+div.hopscotch-bubble .hopscotch-bubble-arrow-container.up .hopscotch-bubble-arrow {+ border-bottom: 17px solid #ffffff;+ border-left: 17px solid transparent;+ border-right: 17px solid transparent;+ position: relative;+ top: -10px;+}+div.hopscotch-bubble .hopscotch-bubble-arrow-container.up .hopscotch-bubble-arrow-border {+ border-bottom: 17px solid #000000;+ border-bottom: 17px solid rgba(0, 0, 0, 0.5);+ border-left: 17px solid transparent;+ border-right: 17px solid transparent;+}+div.hopscotch-bubble .hopscotch-bubble-arrow-container.down {+ bottom: -39px;+ left: 10px;+}+div.hopscotch-bubble .hopscotch-bubble-arrow-container.down .hopscotch-bubble-arrow {+ border-top: 17px solid #ffffff;+ border-left: 17px solid transparent;+ border-right: 17px solid transparent;+ position: relative;+ top: -24px;+}+div.hopscotch-bubble .hopscotch-bubble-arrow-container.down .hopscotch-bubble-arrow-border {+ border-top: 17px solid #000000;+ border-top: 17px solid rgba(0, 0, 0, 0.5);+ border-left: 17px solid transparent;+ border-right: 17px solid transparent;+}+div.hopscotch-bubble .hopscotch-bubble-arrow-container.left {+ top: 10px;+ left: -22px;+}+div.hopscotch-bubble .hopscotch-bubble-arrow-container.left .hopscotch-bubble-arrow {+ border-bottom: 17px solid transparent;+ border-right: 17px solid #ffffff;+ border-top: 17px solid transparent;+ position: relative;+ left: 7px;+ top: -34px;+}+div.hopscotch-bubble .hopscotch-bubble-arrow-container.left .hopscotch-bubble-arrow-border {+ border-right: 17px solid #000000;+ border-right: 17px solid rgba(0, 0, 0, 0.5);+ border-bottom: 17px solid transparent;+ border-top: 17px solid transparent;+}+div.hopscotch-bubble .hopscotch-bubble-arrow-container.right {+ top: 10px;+ right: -39px;+}+div.hopscotch-bubble .hopscotch-bubble-arrow-container.right .hopscotch-bubble-arrow {+ border-bottom: 17px solid transparent;+ border-left: 17px solid #ffffff;+ border-top: 17px solid transparent;+ position: relative;+ left: -7px;+ top: -34px;+}+div.hopscotch-bubble .hopscotch-bubble-arrow-container.right .hopscotch-bubble-arrow-border {+ border-left: 17px solid #000000;+ border-left: 17px solid rgba(0, 0, 0, 0.5);+ border-bottom: 17px solid transparent;+ border-top: 17px solid transparent;+}+div.hopscotch-bubble .hopscotch-actions {+ margin: 10px 0 0;+ text-align: right;+}diff --git a/data/libs/hopscotch/css/hopscotch.min.css b/data/libs/hopscotch/css/hopscotch.min.cssnew file mode 100644index 000000000..2494e0fcd--- /dev/null+++ b/data/libs/hopscotch/css/hopscotch.min.css@@ -0,0 +1,17 @@+/**! hopscotch - v0.2.5+*+* Copyright 2015 LinkedIn Corp. All rights reserved.+*+* Licensed under the Apache License, Version 2.0 (the "License");+* you may not use this file except in compliance with the License.+* You may obtain a copy of the License at+*+* http://www.apache.org/licenses/LICENSE-2.0+*+* Unless required by applicable law or agreed to in writing, software+* distributed under the License is distributed on an "AS IS" BASIS,+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+* See the License for the specific language governing permissions and+* limitations under the License.+*/+.animated{-webkit-animation-fill-mode:both;-moz-animation-fill-mode:both;-ms-animation-fill-mode:both;-o-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:1s;-moz-animation-duration:1s;-ms-animation-duration:1s;-o-animation-duration:1s;animation-duration:1s}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translateY(20px)}100%{opacity:1;-webkit-transform:translateY(0)}}@-moz-keyframes fadeInUp{0%{opacity:0;-moz-transform:translateY(20px)}100%{opacity:1;-moz-transform:translateY(0)}}@-o-keyframes fadeInUp{0%{opacity:0;-o-transform:translateY(20px)}100%{opacity:1;-o-transform:translateY(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}100%{opacity:1;transform:translateY(0)}}.fade-in-up{-webkit-animation-name:fadeInUp;-moz-animation-name:fadeInUp;-o-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translateY(-20px)}100%{opacity:1;-webkit-transform:translateY(0)}}@-moz-keyframes fadeInDown{0%{opacity:0;-moz-transform:translateY(-20px)}100%{opacity:1;-moz-transform:translateY(0)}}@-o-keyframes fadeInDown{0%{opacity:0;-ms-transform:translateY(-20px)}100%{opacity:1;-ms-transform:translateY(0)}}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-20px)}100%{opacity:1;transform:translateY(0)}}.fade-in-down{-webkit-animation-name:fadeInDown;-moz-animation-name:fadeInDown;-o-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translateX(-20px)}100%{opacity:1;-webkit-transform:translateX(0)}}@-moz-keyframes fadeInRight{0%{opacity:0;-moz-transform:translateX(-20px)}100%{opacity:1;-moz-transform:translateX(0)}}@-o-keyframes fadeInRight{0%{opacity:0;-o-transform:translateX(-20px)}100%{opacity:1;-o-transform:translateX(0)}}@keyframes fadeInRight{0%{opacity:0;transform:translateX(-20px)}100%{opacity:1;transform:translateX(0)}}.fade-in-right{-webkit-animation-name:fadeInRight;-moz-animation-name:fadeInRight;-o-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translateX(20px)}100%{opacity:1;-webkit-transform:translateX(0)}}@-moz-keyframes fadeInLeft{0%{opacity:0;-moz-transform:translateX(20px)}100%{opacity:1;-moz-transform:translateX(0)}}@-o-keyframes fadeInLeft{0%{opacity:0;-o-transform:translateX(20px)}100%{opacity:1;-o-transform:translateX(0)}}@keyframes fadeInLeft{0%{opacity:0;transform:translateX(20px)}100%{opacity:1;transform:translateX(0)}}.fade-in-left{-webkit-animation-name:fadeInLeft;-moz-animation-name:fadeInLeft;-o-animation-name:fadeInLeft;animation-name:fadeInLeft}div.hopscotch-bubble .hopscotch-nav-button{font-weight:700;border-width:1px;border-style:solid;cursor:pointer;margin:0;overflow:visible;text-decoration:none!important;width:auto;padding:0 10px;height:26px;line-height:24px;font-size:12px;*zoom:1;white-space:nowrap;display:-moz-inline-stack;display:inline-block;*vertical-align:auto;zoom:1;*display:inline;vertical-align:middle;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}div.hopscotch-bubble .hopscotch-nav-button:hover{*zoom:1;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.25);-moz-box-shadow:0 1px 3px rgba(0,0,0,.25);box-shadow:0 1px 3px rgba(0,0,0,.25)}div.hopscotch-bubble .hopscotch-nav-button:active{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.25) inset;-moz-box-shadow:0 1px 2px rgba(0,0,0,.25) inset;box-shadow:0 1px 2px rgba(0,0,0,.25) inset}div.hopscotch-bubble .hopscotch-nav-button.next{border-color:#1b5480;color:#fff;margin:0 0 0 10px;text-shadow:0 1px 1px rgba(0,0,0,.35);background-color:#287bbc;filter:progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#287bbc', endColorstr='#23639a');background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#287bbc),color-stop(100%,#23639a));background-image:-webkit-linear-gradient(top,#287bbc 0,#23639a 100%);background-image:-moz-linear-gradient(top,#287bbc 0,#23639a 100%);background-image:-o-linear-gradient(top,#287bbc 0,#23639a 100%);background-image:linear-gradient(top,#287bbc 0,#23639a 100%)}div.hopscotch-bubble .hopscotch-nav-button.next:hover{background-color:#2672ae;filter:progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#2672ae', endColorstr='#1e4f7e');background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#2672ae),color-stop(100%,#1e4f7e));background-image:-webkit-linear-gradient(top,#2672ae 0,#1e4f7e 100%);background-image:-moz-linear-gradient(top,#2672ae 0,#1e4f7e 100%);background-image:-o-linear-gradient(top,#2672ae 0,#1e4f7e 100%);background-image:linear-gradient(top,#2672ae 0,#1e4f7e 100%)}div.hopscotch-bubble .hopscotch-nav-button.prev{border-color:#a7a7a7;color:#444;text-shadow:0 1px 1px rgba(255,255,255,.75);background-color:#f2f2f2;filter:progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#f2f2f2', endColorstr='#e9e9e9');background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#f2f2f2),color-stop(100%,#e9e9e9));background-image:-webkit-linear-gradient(top,#f2f2f2 0,#e9e9e9 100%);background-image:-moz-linear-gradient(top,#f2f2f2 0,#e9e9e9 100%);background-image:-o-linear-gradient(top,#f2f2f2 0,#e9e9e9 100%);background-image:linear-gradient(top,#f2f2f2 0,#e9e9e9 100%)}div.hopscotch-bubble .hopscotch-nav-button.prev:hover{background-color:#e8e8e8;filter:progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FFE8E8E8', endColorstr='#FFA9A9A9');background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#e8e8e8),color-stop(13%,#e3e3e3),color-stop(32%,#d7d7d7),color-stop(71%,#b9b9b9),color-stop(100%,#a9a9a9));background-image:-webkit-linear-gradient(top,#e8e8e8 0,#e3e3e3 13%,#d7d7d7 32%,#b9b9b9 71%,#a9a9a9 100%);background-image:-moz-linear-gradient(top,#e8e8e8 0,#e3e3e3 13%,#d7d7d7 32%,#b9b9b9 71%,#a9a9a9 100%);background-image:-o-linear-gradient(top,#e8e8e8 0,#e3e3e3 13%,#d7d7d7 32%,#b9b9b9 71%,#a9a9a9 100%);background-image:linear-gradient(top,#e8e8e8 0,#e3e3e3 13%,#d7d7d7 32%,#b9b9b9 71%,#a9a9a9 100%)}div.hopscotch-bubble{background-color:#fff;border:5px solid #000;border:5px solid rgba(0,0,0,.5);color:#333;font-family:Helvetica,Arial;font-size:13px;position:absolute;z-index:999999;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box}div.hopscotch-bubble *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}div.hopscotch-bubble.animate{-moz-transition-property:top,left;-moz-transition-duration:1s;-moz-transition-timing-function:ease-in-out;-ms-transition-property:top,left;-ms-transition-duration:1s;-ms-transition-timing-function:ease-in-out;-o-transition-property:top,left;-o-transition-duration:1s;-o-transition-timing-function:ease-in-out;-webkit-transition-property:top,left;-webkit-transition-duration:1s;-webkit-transition-timing-function:ease-in-out;transition-property:top,left;transition-duration:1s;transition-timing-function:ease-in-out}div.hopscotch-bubble.invisible{opacity:0}div.hopscotch-bubble.hide,div.hopscotch-bubble .hide,div.hopscotch-bubble .hide-all{display:none}div.hopscotch-bubble h3{color:#000;font-family:Helvetica,Arial;font-size:16px;font-weight:700;line-height:19px;margin:-1px 15px 0 0;padding:0}div.hopscotch-bubble .hopscotch-bubble-container{padding:15px;position:relative;text-align:left;-webkit-font-smoothing:antialiased}div.hopscotch-bubble .hopscotch-content{font-family:Helvetica,Arial;font-weight:400;line-height:17px;margin:-5px 0 11px;padding-top:8px}div.hopscotch-bubble .hopscotch-bubble-content{margin:0 0 0 40px}div.hopscotch-bubble.no-number .hopscotch-bubble-content{margin:0}div.hopscotch-bubble .hopscotch-bubble-close{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;color:#000;background:transparent url(../img/sprite-green.png) -192px -92px no-repeat;display:block;padding:8px;position:absolute;text-decoration:none;text-indent:-9999px;width:8px;height:8px;top:0;right:0}div.hopscotch-bubble .hopscotch-bubble-close.hide,div.hopscotch-bubble .hopscotch-bubble-close.hide-all{display:none}div.hopscotch-bubble .hopscotch-bubble-number{background:transparent url(../img/sprite-green.png) 0 0 no-repeat;color:#fff;display:block;float:left;font-size:17px;font-weight:700;line-height:31px;padding:0 10px 0 0;text-align:center;width:30px;height:30px}div.hopscotch-bubble .hopscotch-bubble-arrow-container{position:absolute;width:34px;height:34px}div.hopscotch-bubble .hopscotch-bubble-arrow-container .hopscotch-bubble-arrow,div.hopscotch-bubble .hopscotch-bubble-arrow-container .hopscotch-bubble-arrow-border{width:0;height:0}div.hopscotch-bubble .hopscotch-bubble-arrow-container.up{top:-22px;left:10px}div.hopscotch-bubble .hopscotch-bubble-arrow-container.up .hopscotch-bubble-arrow{border-bottom:17px solid #fff;border-left:17px solid transparent;border-right:17px solid transparent;position:relative;top:-10px}div.hopscotch-bubble .hopscotch-bubble-arrow-container.up .hopscotch-bubble-arrow-border{border-bottom:17px solid #000;border-bottom:17px solid rgba(0,0,0,.5);border-left:17px solid transparent;border-right:17px solid transparent}div.hopscotch-bubble .hopscotch-bubble-arrow-container.down{bottom:-39px;left:10px}div.hopscotch-bubble .hopscotch-bubble-arrow-container.down .hopscotch-bubble-arrow{border-top:17px solid #fff;border-left:17px solid transparent;border-right:17px solid transparent;position:relative;top:-24px}div.hopscotch-bubble .hopscotch-bubble-arrow-container.down .hopscotch-bubble-arrow-border{border-top:17px solid #000;border-top:17px solid rgba(0,0,0,.5);border-left:17px solid transparent;border-right:17px solid transparent}div.hopscotch-bubble .hopscotch-bubble-arrow-container.left{top:10px;left:-22px}div.hopscotch-bubble .hopscotch-bubble-arrow-container.left .hopscotch-bubble-arrow{border-bottom:17px solid transparent;border-right:17px solid #fff;border-top:17px solid transparent;position:relative;left:7px;top:-34px}div.hopscotch-bubble .hopscotch-bubble-arrow-container.left .hopscotch-bubble-arrow-border{border-right:17px solid #000;border-right:17px solid rgba(0,0,0,.5);border-bottom:17px solid transparent;border-top:17px solid transparent}div.hopscotch-bubble .hopscotch-bubble-arrow-container.right{top:10px;right:-39px}div.hopscotch-bubble .hopscotch-bubble-arrow-container.right .hopscotch-bubble-arrow{border-bottom:17px solid transparent;border-left:17px solid #fff;border-top:17px solid transparent;position:relative;left:-7px;top:-34px}div.hopscotch-bubble .hopscotch-bubble-arrow-container.right .hopscotch-bubble-arrow-border{border-left:17px solid #000;border-left:17px solid rgba(0,0,0,.5);border-bottom:17px solid transparent;border-top:17px solid transparent}div.hopscotch-bubble .hopscotch-actions{margin:10px 0 0;text-align:right}\ No newline at end of filediff --git a/data/libs/hopscotch/img/sprite-green.png b/data/libs/hopscotch/img/sprite-green.pngnew file mode 100644index 000000000..89fc8f234Binary files /dev/null and b/data/libs/hopscotch/img/sprite-green.png differdiff --git a/data/libs/hopscotch/img/sprite-orange.png b/data/libs/hopscotch/img/sprite-orange.pngnew file mode 100644index 000000000..49cfa479dBinary files /dev/null and b/data/libs/hopscotch/img/sprite-orange.png differdiff --git a/data/libs/hopscotch/js/hopscotch.min.js b/data/libs/hopscotch/js/hopscotch.min.jsnew file mode 100644index 000000000..40cb26cff--- /dev/null+++ b/data/libs/hopscotch/js/hopscotch.min.js@@ -0,0 +1,17 @@+/**! hopscotch - v0.2.5+*+* Copyright 2015 LinkedIn Corp. All rights reserved.+*+* Licensed under the Apache License, Version 2.0 (the "License");+* you may not use this file except in compliance with the License.+* You may obtain a copy of the License at+*+* http://www.apache.org/licenses/LICENSE-2.0+*+* Unless required by applicable law or agreed to in writing, software+* distributed under the License is distributed on an "AS IS" BASIS,+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+* See the License for the specific language governing permissions and+* limitations under the License.+*/+!function(a,b){"use strict";if("function"==typeof define&&define.amd)define([],b);else if("object"==typeof exports)module.exports=b();else{var c="hopscotch";if(a[c])return;a[c]=b()}}(this,function(){var Hopscotch,HopscotchBubble,HopscotchCalloutManager,HopscotchI18N,customI18N,customRenderer,customEscape,utils,callbacks,helpers,winLoadHandler,defaultOpts,winHopscotch,templateToUse="bubble_default",Sizzle=window.Sizzle||null,undefinedStr="undefined",waitingToStart=!1,hasJquery=typeof jQuery!==undefinedStr,hasSessionStorage=!1,isStorageWritable=!1,document=window.document,validIdRegEx=/^[a-zA-Z]+[a-zA-Z0-9_-]*$/,rtlMatches={left:"right",right:"left"};try{typeof window.sessionStorage!==undefinedStr&&(hasSessionStorage=!0,sessionStorage.setItem("hopscotch.test.storage","ok"),sessionStorage.removeItem("hopscotch.test.storage"),isStorageWritable=!0)}catch(err){}return defaultOpts={smoothScroll:!0,scrollDuration:1e3,scrollTopMargin:200,showCloseButton:!0,showPrevButton:!1,showNextButton:!0,bubbleWidth:280,bubblePadding:15,arrowWidth:20,skipIfNoElement:!0,isRtl:!1,cookieName:"hopscotch.tour.state"},Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)}),winLoadHandler=function(){waitingToStart&&winHopscotch.startTour()},utils={addClass:function(a,b){var c,d,e,f;if(a.className){for(d=b.split(/\s+/),c=" "+a.className+" ",e=0,f=d.length;f>e;++e)c.indexOf(" "+d[e]+" ")<0&&(c+=d[e]+" ");a.className=c.replace(/^\s+|\s+$/g,"")}else a.className=b},removeClass:function(a,b){var c,d,e,f;for(d=b.split(/\s+/),c=" "+a.className+" ",e=0,f=d.length;f>e;++e)c=c.replace(" "+d[e]+" "," ");a.className=c.replace(/^\s+|\s+$/g,"")},hasClass:function(a,b){var c;return a.className?(c=" "+a.className+" ",-1!==c.indexOf(" "+b+" ")):!1},getPixelValue:function(a){var b=typeof a;return"number"===b?a:"string"===b?parseInt(a,10):0},valOrDefault:function(a,b){return typeof a!==undefinedStr?a:b},invokeCallbackArrayHelper:function(a){var b;return Array.isArray(a)&&(b=helpers[a[0]],"function"==typeof b)?b.apply(this,a.slice(1)):void 0},invokeCallbackArray:function(a){var b,c;if(Array.isArray(a)){if("string"==typeof a[0])return utils.invokeCallbackArrayHelper(a);for(b=0,c=a.length;c>b;++b)utils.invokeCallback(a[b])}},invokeCallback:function(a){return"function"==typeof a?a():"string"==typeof a&&helpers[a]?helpers[a]():utils.invokeCallbackArray(a)},invokeEventCallbacks:function(a,b){var c,d,e=callbacks[a];if(b)return this.invokeCallback(b);for(c=0,d=e.length;d>c;++c)this.invokeCallback(e[c].cb)},getScrollTop:function(){var a;return a=typeof window.pageYOffset!==undefinedStr?window.pageYOffset:document.documentElement.scrollTop},getScrollLeft:function(){var a;return a=typeof window.pageXOffset!==undefinedStr?window.pageXOffset:document.documentElement.scrollLeft},getWindowHeight:function(){return window.innerHeight||document.documentElement.clientHeight},addEvtListener:function(a,b,c){return a?a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent("on"+b,c):void 0},removeEvtListener:function(a,b,c){return a?a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent("on"+b,c):void 0},documentIsReady:function(){return"complete"===document.readyState},evtPreventDefault:function(a){a.preventDefault?a.preventDefault():event&&(event.returnValue=!1)},extend:function(a,b){var c;for(c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},getStepTargetHelper:function(a){var b=document.getElementById(a);if(b)return b;if(hasJquery)return b=jQuery(a),b.length?b[0]:null;if(Sizzle)return b=new Sizzle(a),b.length?b[0]:null;if(document.querySelector)try{return document.querySelector(a)}catch(c){}return/^#[a-zA-Z][\w-_:.]*$/.test(a)?document.getElementById(a.substring(1)):null},getStepTarget:function(a){var b;if(!a||!a.target)return null;if("string"==typeof a.target)return utils.getStepTargetHelper(a.target);if(Array.isArray(a.target)){var c,d;for(c=0,d=a.target.length;d>c;c++)if("string"==typeof a.target[c]&&(b=utils.getStepTargetHelper(a.target[c])))return b;return null}return a.target},getI18NString:function(a){return customI18N[a]||HopscotchI18N[a]},setState:function(a,b,c){var d,e="";if(hasSessionStorage&&isStorageWritable)try{sessionStorage.setItem(a,b)}catch(f){isStorageWritable=!1,this.setState(a,b,c)}else hasSessionStorage&&sessionStorage.removeItem(a),c&&(d=new Date,d.setTime(d.getTime()+24*c*60*60*1e3),e="; expires="+d.toGMTString()),document.cookie=a+"="+b+e+"; path=/"},getState:function(a){var b,c,d,e=a+"=",f=document.cookie.split(";");if(hasSessionStorage&&(d=sessionStorage.getItem(a)))return d;for(b=0;b<f.length;b++){for(c=f[b];" "===c.charAt(0);)c=c.substring(1,c.length);if(0===c.indexOf(e)){d=c.substring(e.length,c.length);break}}return d},clearState:function(a){hasSessionStorage?sessionStorage.removeItem(a):this.setState(a,"",-1)},normalizePlacement:function(a){!a.placement&&a.orientation&&(a.placement=a.orientation)},flipPlacement:function(a){if(a.isRtl&&!a._isFlipped){var b,c,d=["orientation","placement"];a.xOffset&&(a.xOffset=-1*this.getPixelValue(a.xOffset));for(c in d)b=d[c],a.hasOwnProperty(b)&&rtlMatches.hasOwnProperty(a[b])&&(a[b]=rtlMatches[a[b]]);a._isFlipped=!0}}},utils.addEvtListener(window,"load",winLoadHandler),callbacks={next:[],prev:[],start:[],end:[],show:[],error:[],close:[]},helpers={},HopscotchI18N={stepNums:null,nextBtn:"Next",prevBtn:"Back",doneBtn:"Done",skipBtn:"Skip",closeTooltip:"Close"},customI18N={},HopscotchBubble=function(a){this.init(a)},HopscotchBubble.prototype={isShowing:!1,currStep:void 0,setPosition:function(a){var b,c,d,e,f,g,h,i=utils.getStepTarget(a),j=this.element,k=this.arrowEl,l=a.isRtl?"right":"left";if(utils.flipPlacement(a),utils.normalizePlacement(a),c=j.offsetWidth,b=j.offsetHeight,utils.removeClass(j,"fade-in-down fade-in-up fade-in-left fade-in-right"),d=i.getBoundingClientRect(),h=a.isRtl?d.right-c:d.left,"top"===a.placement)e=d.top-b-this.opt.arrowWidth,f=h;else if("bottom"===a.placement)e=d.bottom+this.opt.arrowWidth,f=h;else if("left"===a.placement)e=d.top,f=d.left-c-this.opt.arrowWidth;else{if("right"!==a.placement)throw new Error("Bubble placement failed because step.placement is invalid or undefined!");e=d.top,f=d.right+this.opt.arrowWidth}g="center"!==a.arrowOffset?utils.getPixelValue(a.arrowOffset):a.arrowOffset,g?"top"===a.placement||"bottom"===a.placement?(k.style.top="","center"===g?k.style[l]=Math.floor(c/2-k.offsetWidth/2)+"px":k.style[l]=g+"px"):("left"===a.placement||"right"===a.placement)&&(k.style[l]="","center"===g?k.style.top=Math.floor(b/2-k.offsetHeight/2)+"px":k.style.top=g+"px"):(k.style.top="",k.style[l]=""),"center"===a.xOffset?f=d.left+i.offsetWidth/2-c/2:f+=utils.getPixelValue(a.xOffset),"center"===a.yOffset?e=d.top+i.offsetHeight/2-b/2:e+=utils.getPixelValue(a.yOffset),a.fixedElement||(e+=utils.getScrollTop(),f+=utils.getScrollLeft()),j.style.position=a.fixedElement?"fixed":"absolute",j.style.top=e+"px",j.style.left=f+"px"},render:function(a,b,c){var d,e,f,g,h,j,k,l,m,n=this.element;if(a?this.currStep=a:this.currStep&&(a=this.currStep),this.opt.isTourBubble?(g=winHopscotch.getCurrTour(),g&&(e=g.customData,d=g.customRenderer,a.isRtl=a.hasOwnProperty("isRtl")?a.isRtl:g.hasOwnProperty("isRtl")?g.isRtl:this.opt.isRtl,f=g.unsafe,Array.isArray(g.steps)&&(h=g.steps.length,j=this._getStepI18nNum(this._getStepNum(h-1)),l=this._getStepNum(b)===this._getStepNum(h-1)))):(e=a.customData,d=a.customRenderer,f=a.unsafe,a.isRtl=a.hasOwnProperty("isRtl")?a.isRtl:this.opt.isRtl),k=utils.getI18NString(l?"doneBtn":a.showSkip?"skipBtn":"nextBtn"),utils.flipPlacement(a),utils.normalizePlacement(a),this.placement=a.placement,m={i18n:{prevBtn:utils.getI18NString("prevBtn"),nextBtn:k,closeTooltip:utils.getI18NString("closeTooltip"),stepNum:this._getStepI18nNum(this._getStepNum(b)),numSteps:j},buttons:{showPrev:utils.valOrDefault(a.showPrevButton,this.opt.showPrevButton)&&this._getStepNum(b)>0,showNext:utils.valOrDefault(a.showNextButton,this.opt.showNextButton),showCTA:utils.valOrDefault(a.showCTAButton&&a.ctaLabel,!1),ctaLabel:a.ctaLabel,showClose:utils.valOrDefault(this.opt.showCloseButton,!0)},step:{num:b,isLast:utils.valOrDefault(l,!1),title:a.title||"",content:a.content||"",isRtl:a.isRtl,placement:a.placement,padding:utils.valOrDefault(a.padding,this.opt.bubblePadding),width:utils.getPixelValue(a.width)||this.opt.bubbleWidth,customData:a.customData||{}},tour:{isTour:this.opt.isTourBubble,numSteps:h,unsafe:utils.valOrDefault(f,!1),customData:e||{}}},"function"==typeof d)n.innerHTML=d(m);else if("string"==typeof d){if(!winHopscotch.templates||"function"!=typeof winHopscotch.templates[d])throw new Error('Bubble rendering failed - template "'+d+'" is not a function.');n.innerHTML=winHopscotch.templates[d](m)}else if(customRenderer)n.innerHTML=customRenderer(m);else{if(!winHopscotch.templates||"function"!=typeof winHopscotch.templates[templateToUse])throw new Error('Bubble rendering failed - template "'+templateToUse+'" is not a function.');n.innerHTML=winHopscotch.templates[templateToUse](m)}for(children=n.children,numChildren=children.length,i=0;i<numChildren;i++)node=children[i],utils.hasClass(node,"hopscotch-arrow")&&(this.arrowEl=node);return n.style.zIndex="number"==typeof a.zindex?a.zindex:"",this._setArrow(a.placement),this.hide(!1),this.setPosition(a),c&&c(!a.fixedElement),this},_getStepNum:function(a){var b,c,d=0,e=winHopscotch.getSkippedStepsIndexes(),f=e.length;for(c=0;f>c;c++)b=e[c],a>b&&d++;return a-d},_getStepI18nNum:function(a){var b=utils.getI18NString("stepNums");return b&&a<b.length?a=b[a]:a+=1,a},_setArrow:function(a){utils.removeClass(this.arrowEl,"down up right left"),"top"===a?utils.addClass(this.arrowEl,"down"):"bottom"===a?utils.addClass(this.arrowEl,"up"):"left"===a?utils.addClass(this.arrowEl,"right"):"right"===a&&utils.addClass(this.arrowEl,"left")},_getArrowDirection:function(){return"top"===this.placement?"down":"bottom"===this.placement?"up":"left"===this.placement?"right":"right"===this.placement?"left":void 0},show:function(){var a=this,b="fade-in-"+this._getArrowDirection(),c=1e3;return utils.removeClass(this.element,"hide"),utils.addClass(this.element,b),setTimeout(function(){utils.removeClass(a.element,"invisible")},50),setTimeout(function(){utils.removeClass(a.element,b)},c),this.isShowing=!0,this},hide:function(a){var b=this.element;return a=utils.valOrDefault(a,!0),b.style.top="",b.style.left="",a?(utils.addClass(b,"hide"),utils.removeClass(b,"invisible")):(utils.removeClass(b,"hide"),utils.addClass(b,"invisible")),utils.removeClass(b,"animate fade-in-up fade-in-down fade-in-right fade-in-left"),this.isShowing=!1,this},destroy:function(){var a=this.element;a&&a.parentNode.removeChild(a),utils.removeEvtListener(a,"click",this.clickCb)},_handleBubbleClick:function(a){function b(c){return c===a.currentTarget?null:utils.hasClass(c,"hopscotch-cta")?"cta":utils.hasClass(c,"hopscotch-next")?"next":utils.hasClass(c,"hopscotch-prev")?"prev":utils.hasClass(c,"hopscotch-close")?"close":b(c.parentElement)}var c;a=a||window.event;var d=a.target||a.srcElement;if(c=b(d),"cta"===c)this.opt.isTourBubble||winHopscotch.getCalloutManager().removeCallout(this.currStep.id),this.currStep.onCTA&&utils.invokeCallback(this.currStep.onCTA);else if("next"===c)winHopscotch.nextStep(!0);else if("prev"===c)winHopscotch.prevStep(!0);else if("close"===c){if(this.opt.isTourBubble){var e=winHopscotch.getCurrStepNum(),f=winHopscotch.getCurrTour(),g=e===f.steps.length-1;utils.invokeEventCallbacks("close"),winHopscotch.endTour(!0,g)}else this.opt.onClose&&utils.invokeCallback(this.opt.onClose),this.opt.id&&!this.opt.isTourBubble?winHopscotch.getCalloutManager().removeCallout(this.opt.id):this.destroy();utils.evtPreventDefault(a)}},init:function(a){var b,c,d,e,f=document.createElement("div"),g=this,h=!1;this.element=f,e={showPrevButton:defaultOpts.showPrevButton,showNextButton:defaultOpts.showNextButton,bubbleWidth:defaultOpts.bubbleWidth,bubblePadding:defaultOpts.bubblePadding,arrowWidth:defaultOpts.arrowWidth,isRtl:defaultOpts.isRtl,showNumber:!0,isTourBubble:!0},a=typeof a===undefinedStr?{}:a,utils.extend(e,a),this.opt=e,f.className="hopscotch-bubble animated",e.isTourBubble?(d=winHopscotch.getCurrTour(),d&&utils.addClass(f,"tour-"+d.id)):utils.addClass(f,"hopscotch-callout no-number"),b=function(){!h&&g.isShowing&&(h=!0,setTimeout(function(){g.setPosition(g.currStep),h=!1},100))},utils.addEvtListener(window,"resize",b),this.clickCb=function(a){g._handleBubbleClick(a)},utils.addEvtListener(f,"click",this.clickCb),this.hide(),utils.documentIsReady()?document.body.appendChild(f):(document.addEventListener?(c=function(){document.removeEventListener("DOMContentLoaded",c),window.removeEventListener("load",c),document.body.appendChild(f)},document.addEventListener("DOMContentLoaded",c,!1)):(c=function(){"complete"===document.readyState&&(document.detachEvent("onreadystatechange",c),window.detachEvent("onload",c),document.body.appendChild(f))},document.attachEvent("onreadystatechange",c)),utils.addEvtListener(window,"load",c))}},HopscotchCalloutManager=function(){var a={},b={};this.createCallout=function(c){var d;if(!c.id)throw new Error("Must specify a callout id.");if(!validIdRegEx.test(c.id))throw new Error("Callout ID is using an invalid format. Use alphanumeric, underscores, and/or hyphens only. First character must be a letter.");if(a[c.id])throw new Error("Callout by that id already exists. Please choose a unique id.");if(!utils.getStepTarget(c))throw new Error("Must specify existing target element via 'target' option.");return c.showNextButton=c.showPrevButton=!1,c.isTourBubble=!1,d=new HopscotchBubble(c),a[c.id]=d,b[c.id]=c,d.render(c,null,function(){d.show(),c.onShow&&utils.invokeCallback(c.onShow)}),d},this.getCallout=function(b){return a[b]},this.removeAllCallouts=function(){var b;for(b in a)a.hasOwnProperty(b)&&this.removeCallout(b)},this.removeCallout=function(c){var d=a[c];a[c]=null,b[c]=null,d&&d.destroy()},this.refreshCalloutPositions=function(){var c,d,e;for(c in a)a.hasOwnProperty(c)&&b.hasOwnProperty(c)&&(d=a[c],e=b[c],d&&e&&d.setPosition(e))}},Hopscotch=function(a){var b,c,d,e,f,g,h,i,j=this,k={},l=[],m=function(a){return b&&b.element&&b.element.parentNode||(b=new HopscotchBubble(d)),a&&utils.extend(b.opt,{bubblePadding:o("bubblePadding"),bubbleWidth:o("bubbleWidth"),showNextButton:o("showNextButton"),showPrevButton:o("showPrevButton"),showCloseButton:o("showCloseButton"),arrowWidth:o("arrowWidth"),isRtl:o("isRtl")}),b},n=function(){b&&(b.destroy(),b=null)},o=function(a){return"undefined"==typeof d?defaultOpts[a]:utils.valOrDefault(d[a],defaultOpts[a])},p=function(){var a;return a=!e||0>f||f>=e.steps.length?null:e.steps[f]},q=function(){j.nextStep()},r=function(a){var b,c,d,e,f,g,h=m(),i=h.element,j=utils.getPixelValue(i.style.top),k=j+utils.getPixelValue(i.offsetHeight),l=utils.getStepTarget(p()),n=l.getBoundingClientRect(),q=n.top+utils.getScrollTop(),r=n.bottom+utils.getScrollTop(),s=q>j?j:q,t=k>r?k:r,u=utils.getScrollTop(),v=u+utils.getWindowHeight(),w=s-o("scrollTopMargin");s>=u&&(s<=u+o("scrollTopMargin")||v>=t)?a&&a():o("smoothScroll")?typeof YAHOO!==undefinedStr&&typeof YAHOO.env!==undefinedStr&&typeof YAHOO.env.ua!==undefinedStr&&typeof YAHOO.util!==undefinedStr&&typeof YAHOO.util.Scroll!==undefinedStr?(b=YAHOO.env.ua.webkit?document.body:document.documentElement,d=YAHOO.util.Easing?YAHOO.util.Easing.easeOut:void 0,c=new YAHOO.util.Scroll(b,{scroll:{to:[0,w]}},o("scrollDuration")/1e3,d),c.onComplete.subscribe(a),c.animate()):hasJquery?jQuery("body, html").animate({scrollTop:w},o("scrollDuration"),a):(0>w&&(w=0),e=u>s?-1:1,f=Math.abs(u-w)/(o("scrollDuration")/10),(g=function(){var b=utils.getScrollTop(),c=b+e*f;return e>0&&c>=w||0>e&&w>=c?(c=w,a&&a(),void window.scrollTo(0,c)):(window.scrollTo(0,c),utils.getScrollTop()===b?void(a&&a()):void setTimeout(g,10))})()):(window.scrollTo(0,w),a&&a())},s=function(a,b){var c,d,g;f+a>=0&&f+a<e.steps.length?(f+=a,d=p(),g=function(){c=utils.getStepTarget(d),c?(k[f]&&delete k[f],b(f)):(k[f]=!0,utils.invokeEventCallbacks("error"),s(a,b))},d.delay?setTimeout(g,d.delay):g()):b(-1)},t=function(a,b){var c,d,g,h,i=m(),j=this;if(i.hide(),a=utils.valOrDefault(a,!0),c=p(),c.nextOnTargetClick&&utils.removeEvtListener(utils.getStepTarget(c),"click",q),d=c,g=b>0?d.multipage:f>0&&e.steps[f-1].multipage,h=function(c){var e;if(-1===c)return this.endTour(!0);if(a&&(e=b>0?utils.invokeEventCallbacks("next",d.onNext):utils.invokeEventCallbacks("prev",d.onPrev)),c===f){if(g)return void x();e=utils.valOrDefault(e,!0),e?this.showStep(c):this.endTour(!1)}},!g&&o("skipIfNoElement"))s(b,function(a){h.call(j,a)});else if(f+b>=0&&f+b<e.steps.length){if(f+=b,c=p(),!utils.getStepTarget(c)&&!g)return utils.invokeEventCallbacks("error"),this.endTour(!0,!1);h.call(this,f)}else if(f+b===e.steps.length)return this.endTour();return this},u=function(a){var b,c,d,e={};for(b in a)a.hasOwnProperty(b)&&"id"!==b&&"steps"!==b&&(e[b]=a[b]);return i.call(this,e,!0),c=utils.getState(o("cookieName")),c&&(d=c.split(":"),g=d[0],h=d[1],d.length>2&&(l=d[2].split(",")),h=parseInt(h,10)),this},v=function(a,b,c){var d,e;if(f=a||0,k=b||{},d=p(),e=utils.getStepTarget(d))return void c(f);if(!e){if(utils.invokeEventCallbacks("error"),k[f]=!0,o("skipIfNoElement"))return void s(1,c);f=-1,c(f)}},w=function(a){function b(){d.show(),utils.invokeEventCallbacks("show",c.onShow)}var c=e.steps[a],d=m(),g=utils.getStepTarget(c);f!==a&&p().nextOnTargetClick&&utils.removeEvtListener(utils.getStepTarget(p()),"click",q),f=a,d.hide(!1),d.render(c,a,function(a){a?r(b):b(),c.nextOnTargetClick&&utils.addEvtListener(g,"click",q)}),x()},x=function(){var a=e.id+":"+f,b=winHopscotch.getSkippedStepsIndexes();b&&b.length>0&&(a+=":"+b.join(",")),utils.setState(o("cookieName"),a,1)},y=function(a){a&&this.configure(a)};this.getCalloutManager=function(){return typeof c===undefinedStr&&(c=new HopscotchCalloutManager),c},this.startTour=function(a,b){var c,d,f={},i=this;if(!e){if(!a)throw new Error("Tour data is required for startTour.");if(!a.id||!validIdRegEx.test(a.id))throw new Error("Tour ID is using an invalid format. Use alphanumeric, underscores, and/or hyphens only. First character must be a letter.");e=a,u.call(this,a)}if(typeof b!==undefinedStr){if(b>=e.steps.length)throw new Error("Specified step number out of bounds.");d=b}if(!utils.documentIsReady())return waitingToStart=!0,this;if("undefined"==typeof d&&e.id===g&&typeof h!==undefinedStr){if(d=h,l.length>0)for(var j=0,k=l.length;k>j;j++)f[l[j]]=!0}else d||(d=0);return v(d,f,function(a){var b=-1!==a&&utils.getStepTarget(e.steps[a]);return b?(utils.invokeEventCallbacks("start"),c=m(),c.hide(!1),i.isActive=!0,void(utils.getStepTarget(p())?i.showStep(a):(utils.invokeEventCallbacks("error"),o("skipIfNoElement")&&i.nextStep(!1)))):void i.endTour(!1,!1)}),this},this.showStep=function(a){var b=e.steps[a];if(utils.getStepTarget(b))return b.delay?setTimeout(function(){w(a)},b.delay):w(a),this},this.prevStep=function(a){return t.call(this,a,-1),this},this.nextStep=function(a){return t.call(this,a,1),this},this.endTour=function(a,b){var c,d=m();return a=utils.valOrDefault(a,!0),b=utils.valOrDefault(b,!0),e&&(c=p(),c&&c.nextOnTargetClick&&utils.removeEvtListener(utils.getStepTarget(c),"click",q)),f=0,h=void 0,d.hide(),a&&utils.clearState(o("cookieName")),this.isActive&&(this.isActive=!1,e&&b&&utils.invokeEventCallbacks("end")),this.removeCallbacks(null,!0),this.resetDefaultOptions(),n(),e=null,this},this.getCurrTour=function(){return e},this.getCurrTarget=function(){return utils.getStepTarget(p())},this.getCurrStepNum=function(){return f},this.getSkippedStepsIndexes=function(){var a,b=[];for(a in k)b.push(a);return b},this.refreshBubblePosition=function(){var a=p();return a&&m().setPosition(a),this.getCalloutManager().refreshCalloutPositions(),this},this.listen=function(a,b,c){return a&&callbacks[a].push({cb:b,fromTour:c}),this},this.unlisten=function(a,b){var c,d,e=callbacks[a];for(c=0,d=e.length;d>c;++c)e[c]===b&&e.splice(c,1);return this},this.removeCallbacks=function(a,b){var c,d,e,f;for(f in callbacks)if(!a||a===f)if(b)for(c=callbacks[f],d=0,e=c.length;e>d;++d)c[d].fromTour&&(c.splice(d--,1),--e);else callbacks[f]=[];return this},this.registerHelper=function(a,b){"string"==typeof a&&"function"==typeof b&&(helpers[a]=b)},this.unregisterHelper=function(a){helpers[a]=null},this.invokeHelper=function(a){var b,c,d=[];for(b=1,c=arguments.length;c>b;++b)d.push(arguments[b]);helpers[a]&&helpers[a].call(null,d)},this.setCookieName=function(a){return d.cookieName=a,this},this.resetDefaultOptions=function(){return d={},this},this.resetDefaultI18N=function(){return customI18N={},this},this.getState=function(){return utils.getState(o("cookieName"))},i=function(a,b){var c,e,f,g,h=["next","prev","start","end","show","error","close"];for(d||this.resetDefaultOptions(),utils.extend(d,a),a&&utils.extend(customI18N,a.i18n),f=0,g=h.length;g>f;++f)e="on"+h[f].charAt(0).toUpperCase()+h[f].substring(1),a[e]&&this.listen(h[f],a[e],b);return c=m(!0),this},this.configure=function(a){return i.call(this,a,!1)},this.setRenderer=function(a){var b=typeof a;return"string"===b?(templateToUse=a,customRenderer=void 0):"function"===b&&(customRenderer=a),this},this.setEscaper=function(a){return"function"==typeof a&&(customEscape=a),this},y.call(this,a)},winHopscotch=new Hopscotch,function(){var _={};_.escape=function(a){return customEscape?customEscape(a):null==a?"":(""+a).replace(new RegExp("[&<>\"']","g"),function(a){return"&"==a?"&":"<"==a?"<":">"==a?">":'"'==a?""":"'"==a?"'":void 0})},this.templates=this.templates||{},this.templates.bubble_default=function(obj){function optEscape(a,b){return b?_.escape(a):a}obj||(obj={});var __t,__p="";_.escape,Array.prototype.join;with(obj)__p+='\n<div class="hopscotch-bubble-container" style="width: '+(null==(__t=step.width)?"":__t)+"px; padding: "+(null==(__t=step.padding)?"":__t)+'px;">\n ',tour.isTour&&(__p+='<span class="hopscotch-bubble-number">'+(null==(__t=i18n.stepNum)?"":__t)+"</span>"),__p+='\n <div class="hopscotch-bubble-content">\n ',""!==step.title&&(__p+='<h3 class="hopscotch-title">'+(null==(__t=optEscape(step.title,tour.unsafe))?"":__t)+"</h3>"),__p+="\n ",""!==step.content&&(__p+='<div class="hopscotch-content">'+(null==(__t=optEscape(step.content,tour.unsafe))?"":__t)+"</div>"),__p+='\n </div>\n <div class="hopscotch-actions">\n ',buttons.showPrev&&(__p+='<button class="hopscotch-nav-button prev hopscotch-prev">'+(null==(__t=i18n.prevBtn)?"":__t)+"</button>"),__p+="\n ",buttons.showCTA&&(__p+='<button class="hopscotch-nav-button next hopscotch-cta">'+(null==(__t=buttons.ctaLabel)?"":__t)+"</button>"),__p+="\n ",buttons.showNext&&(__p+='<button class="hopscotch-nav-button next hopscotch-next">'+(null==(__t=i18n.nextBtn)?"":__t)+"</button>"),__p+="\n </div>\n ",buttons.showClose&&(__p+='<button class="hopscotch-bubble-close hopscotch-close">'+(null==(__t=i18n.closeTooltip)?"":__t)+"</button>"),__p+='\n</div>\n<div class="hopscotch-bubble-arrow-container hopscotch-arrow">\n <div class="hopscotch-bubble-arrow-border"></div>\n <div class="hopscotch-bubble-arrow"></div>\n</div>';return __p}}.call(winHopscotch),winHopscotch});\ No newline at end of filediff --git a/data/loader.js b/data/loader.jsindex 515079364..54fdf4eff 100644--- a/data/loader.js+++ b/data/loader.js@@ -95,6 +95,7 @@ requirejs.config({jszip: 'libs/jszip/jszip.min',slideout: 'libs/slideoutjs/slideout.min',rasterizehtml: 'libs/rasterizeHTML/rasterizeHTML.allinone',+ hopscotch: 'libs/hopscotch/js/hopscotch.min',tscore: 'js/core.api',tssetting: 'js/settings.api',@@ -111,6 +112,7 @@ requirejs.config({tsdirectorybrowser: 'js/directorybrowser',tsutils: 'js/utils',tsmeta: 'js/meta',+ tsgettingstarted: 'js/gettingstarted',tsioapi: IO_JS,tspro: PRO_JS},