Skip to content

Commit 684c42f

Browse files
authored
Merge pull request topcoder-archive#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

app/index.jade

Lines changed: 0 additions & 11 deletions
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

app/listings/listings.controller.js

Lines changed: 12 additions & 0 deletions
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,

package.json

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy