Skip to content

Instantly share code, notes, and snippets.

View eikhunter's full-sized avatar

Eik Hunter eikhunter

  • London
View GitHub Profile
const DATA_POINTS_ON_SCREEN = 6;
const WIDTH = Math.round((DATA.length / DATA_POINTS_ON_SCREEN) * Dimensions.get('window').width);
calculateXPosition = (index: number): number => {
const linearScale = scaleLinear()
.domain([0, DATA.length])
.range([0, WIDTH]);
return linearScale(index);
}
diff --git a/onespacemedia/apps/sections/templates/sections/types/images/constrained.html b/onespacemedia/apps/sections/templates/sections/types/images/constrained.html
index ff85707..26d011c 100644
--- a/onespacemedia/apps/sections/templates/sections/types/images/constrained.html
+++ b/onespacemedia/apps/sections/templates/sections/types/images/constrained.html
@@ -13,7 +13,7 @@
</div>
{% if section.title %}
- <div class="sec-ImageConstrained_Overlay js-Parallax" data-parallax-y-by="18">
+ <div class="sec-ImageConstrained_Overlay js-Parallax" data-jarallax data-parallax-y-by="2.5">
main:1 Error parsing header X-XSS-Protection: 1; mode=block, 1; mode=block: expected semicolon at character position 14. The default protections will be applied.
p.typekit.net/p.gif?s=1&k=rcd5mwi&ht=tk&h=projects.invisionapp.com&f=10294.10296.10302&a=3932814&js=1.18.23&app=typekit&e=js&_=1501835552689 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
7610134.js Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
hotjar-170538.js Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
api.segment.io/v1/p Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
api.segment.io/v1/i Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
2api.segment.io/v1/t Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
api.segment.io/v1/p Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
main.js:36 Our embeddable contains third-party, open source software and/or libraries. To view them and their license terms, go to http://goto.zendesk.com/embeddable-legal-notices
stats.pusher.com/timeline/v2/jsonp/1?session=Njc3ODc4NTMw&bundle=MQ%