Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 684c42f

Browse files
authored
Merge pull request #1068 from appirio-tech/dev
Listings - minor updates
2 parents db2eefd + a9d156d commit 684c42f

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

Diff for: app/index.jade

-11
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,6 @@ html
1717
h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='https://use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s)
1818
})(document);
1919

20-
script.
21-
(function() {
22-
var s = document.createElement("script");
23-
s.type = "text/javascript";
24-
s.async = true;
25-
s.src = '//api.usersnap.com/load/'+
26-
'3e7c8f0c-6cf6-41b6-9f2c-e8e4e60dfc59.js';
27-
var x = document.getElementsByTagName('script')[0];
28-
x.parentNode.insertBefore(s, x);
29-
})();
30-
3120
include ../assets/scripts/google.analytics.jade
3221
include ../assets/scripts/zendesk-widget.jade
3322
include ../assets/scripts/raven-js.jade

Diff for: app/listings/listings.controller.js

+12
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ import { loadUser } from '../services/userv3.service.js'
2424
activate()
2525

2626
function activate() {
27+
28+
// add usersnap widget to /listings/ route
29+
(function() {
30+
var s = document.createElement('script')
31+
s.type = 'text/javascript'
32+
s.async = true
33+
s.src = '//api.usersnap.com/load/'+
34+
'3e7c8f0c-6cf6-41b6-9f2c-e8e4e60dfc59.js'
35+
var x = document.getElementsByTagName('script')[0]
36+
x.parentNode.insertBefore(s, x)
37+
})()
38+
2739
$scope.myChallenges = []
2840
$scope.reactProps = {
2941
config: CONSTANTS,

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"appirio-styles": "0.x.x",
5858
"appirio-tech-ng-iso-constants": "^1.0.6",
5959
"appirio-tech-ng-ui-components": "^2.1.2",
60-
"appirio-tech-react-components": "appirio-tech/react-components.git#cl-misc-fixes-3",
60+
"appirio-tech-react-components": "appirio-tech/react-components.git#challenge-listings",
6161
"auth0-angular": "^4.1.0",
6262
"auth0-js": "^6.8.0",
6363
"d3": "^3.5.14",

0 commit comments

Comments
 (0)