From 0ced5ce73762054d8ae76deb7cbea3b5235f2f61 Mon Sep 17 00:00:00 2001 From: Nik Nyby Date: Tue, 4 Apr 2017 15:22:40 -0400 Subject: [PATCH] Add social support map activity skeleton - PMT #110583 Still needs images --- worthapp/index.html | 185 +++++++++++++++++++++++++++++++++- worthapp/js/social-support.js | 16 +++ 2 files changed, 200 insertions(+), 1 deletion(-) create mode 100644 worthapp/js/social-support.js diff --git a/worthapp/index.html b/worthapp/index.html index 686c389..26ff90a 100644 --- a/worthapp/index.html +++ b/worthapp/index.html @@ -16,6 +16,7 @@ + @@ -332,7 +333,189 @@

Review of goals

- Negotiation +

Negotiation

+
+
+ +
+
+

Barriers to condom use

+
+
+ +
+
+

Practicing negotiation

+
+
+ +
+
+

Social support map intro

+
+ +
+
+
+ +
+
diff --git a/worthapp/js/social-support.js b/worthapp/js/social-support.js new file mode 100644 index 0000000..210994d --- /dev/null +++ b/worthapp/js/social-support.js @@ -0,0 +1,16 @@ +/* eslint-env es6 */ +/* global $, advanceToPanel */ + +(function() { + $(document).ready(function() { + var $container = $('.container.social-support'); + var total = 6; + + for (let i = 0; i < total; i++) { + $container.find('button.s' + i).click(function(e) { + e.preventDefault(); + advanceToPanel($container, i + 1, total); + }); + } + }); +})();