Last active
December 31, 2015 12:29
-
-
Save commuterjoy/7986819 to your computer and use it in GitHub Desktop.
How to make a request for a commercial component on theguardian.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
require(['modules/commercial/loader'], function (CommercialComponent) { | |
var slot = document.querySelector('[class="js-sticky-upper"]'); | |
var c = new CommercialComponent({config: guardian, oastoken: '%%C%%?'}).travel(slot); | |
}) | |
</script> |
kenlim
commented
Dec 20, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment