Skip to content

Commit 49ff6a7

Browse files
authored
Merge pull request #3415 from topcoder-platform/survey_tc
Push a quick survey to challenges page
2 parents d5b21ee + f3f52ce commit 49ff6a7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.circleci/config.yml

+2
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ workflows:
176176
only:
177177
- develop
178178
- hot-fix
179+
- survey_tc
179180
# This is alternate dev env for parallel testing
180181
- "build-test":
181182
context : org-global
@@ -190,6 +191,7 @@ workflows:
190191
branches:
191192
only:
192193
- develop
194+
- survey_tc
193195
# Production builds are exectuted only on tagged commits to the
194196
# master branch.
195197
- "build-prod":

src/shared/containers/challenge-listing/Listing/index.jsx

+3
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ export class ListingContainer extends React.Component {
6969
logger.error('Attempt to mount multiple instances of ChallengeListingPageContainer at the same time!');
7070
} else mounted = true;
7171

72+
const script = document.createElement('script');
73+
script.innerHTML = "(function(t,e,s,o){var n,c,l;t.SMCX=t.SMCX||[],e.getElementById(o)||(n=e.getElementsByTagName(s),c=n[n.length-1],l=e.createElement(s),l.type='text/javascript',l.async=!0,l.id=o,l.src=['https:'===location.protocol?'https://':'http://','widget.surveymonkey.com/collect/website/js/tRaiETqnLgj758hTBazgd6PjYIXGGOw0KVk2yWQQRPhEwpPgmCCgOC_2BvAyG1MDsy.js'].join(''),c.parentNode.insertBefore(l,c))})(window,document,'script','smcx-sdk');";
74+
document.body.appendChild(script);
7275
this.loadChallenges();
7376
}
7477

0 commit comments

Comments
 (0)