Skip to content

Commit

Permalink
Merge pull request #1068 from appirio-tech/dev
Browse files Browse the repository at this point in the history
Listings - minor updates
  • Loading branch information
ajefts authored Mar 3, 2017
2 parents db2eefd + a9d156d commit 684c42f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
11 changes: 0 additions & 11 deletions app/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,6 @@ html
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)
})(document);

script.
(function() {
var s = document.createElement("script");
s.type = "text/javascript";
s.async = true;
s.src = '//api.usersnap.com/load/'+
'3e7c8f0c-6cf6-41b6-9f2c-e8e4e60dfc59.js';
var x = document.getElementsByTagName('script')[0];
x.parentNode.insertBefore(s, x);
})();

include ../assets/scripts/google.analytics.jade
include ../assets/scripts/zendesk-widget.jade
include ../assets/scripts/raven-js.jade
Expand Down
12 changes: 12 additions & 0 deletions app/listings/listings.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ import { loadUser } from '../services/userv3.service.js'
activate()

function activate() {

// add usersnap widget to /listings/ route
(function() {
var s = document.createElement('script')
s.type = 'text/javascript'
s.async = true
s.src = '//api.usersnap.com/load/'+
'3e7c8f0c-6cf6-41b6-9f2c-e8e4e60dfc59.js'
var x = document.getElementsByTagName('script')[0]
x.parentNode.insertBefore(s, x)
})()

$scope.myChallenges = []
$scope.reactProps = {
config: CONSTANTS,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"appirio-styles": "0.x.x",
"appirio-tech-ng-iso-constants": "^1.0.6",
"appirio-tech-ng-ui-components": "^2.1.2",
"appirio-tech-react-components": "appirio-tech/react-components.git#cl-misc-fixes-3",
"appirio-tech-react-components": "appirio-tech/react-components.git#challenge-listings",
"auth0-angular": "^4.1.0",
"auth0-js": "^6.8.0",
"d3": "^3.5.14",
Expand Down

0 comments on commit 684c42f

Please sign in to comment.