diff --git a/rpg-docs/Routes/Routes.js b/rpg-docs/Routes/Routes.js index 6600093c..31b11fda 100644 --- a/rpg-docs/Routes/Routes.js +++ b/rpg-docs/Routes/Routes.js @@ -57,6 +57,12 @@ Router.map(function() { document.title = name; } }, + //analytics + trackPageView: false, + onRun: function() { + window.ga && window.ga("send", "pageview", "/character"); + this.next(); + }, }); this.route("loading", { diff --git a/rpg-docs/client/globalHelpers/GlobalUI.js b/rpg-docs/client/globalHelpers/GlobalUI.js index aa4dc2b2..ad50010a 100644 --- a/rpg-docs/client/globalHelpers/GlobalUI.js +++ b/rpg-docs/client/globalHelpers/GlobalUI.js @@ -77,10 +77,10 @@ this.GlobalUI = (function() { var throttleBack = _.throttle(function() { history.back(); - }, 800, {trailing: false}); + }, 100, {trailing: false}); GlobalUI.closeDetail = function() { - if (!!(window.history && window.history.pushState)) { + if (window.history && history.pushState && history.state.detail === "opened") { throttleBack(); } else { Session.set("global.ui.detailShow", false); diff --git a/rpg-docs/client/views/home/intro/intro.html b/rpg-docs/client/views/home/intro/intro.html index 10166e47..89b762a5 100644 --- a/rpg-docs/client/views/home/intro/intro.html +++ b/rpg-docs/client/views/home/intro/intro.html @@ -45,6 +45,15 @@
Lawful Good Human
+ +
+
+ Starter Set Wizard +
+
+
Chaotic Good High Elf
+
diff --git a/rpg-docs/client/views/home/intro/intro.js b/rpg-docs/client/views/home/intro/intro.js index 75d5e01f..ecc22fa8 100644 --- a/rpg-docs/client/views/home/intro/intro.js +++ b/rpg-docs/client/views/home/intro/intro.js @@ -8,6 +8,9 @@ Template.intro.events({ "tap .ssArcher": function() { Router.go("/character/yBWwt5XQTTHZiRQxq"); }, + "tap .ssWizard": function() { + Router.go("/character/KxHKskm22fS2Xogah"); + }, "tap .guideButton": function() { Router.go("/guide"); }, diff --git a/rpg-docs/client/views/loading/loading.html b/rpg-docs/client/views/loading/loading.html index 2f75e1f7..cd3f21a2 100644 --- a/rpg-docs/client/views/loading/loading.html +++ b/rpg-docs/client/views/loading/loading.html @@ -4,6 +4,9 @@
-
{{randomHint}}
+
{{randomHint}}
diff --git a/rpg-docs/client/views/notFound/notFound.html b/rpg-docs/client/views/notFound/notFound.html index 7a996f34..17bc3d1e 100644 --- a/rpg-docs/client/views/notFound/notFound.html +++ b/rpg-docs/client/views/notFound/notFound.html @@ -1,10 +1,14 @@