Last active
August 29, 2015 14:05
-
-
Save cpsubrian/5fd15df70ccc94759238 to your computer and use it in GitHub Desktop.
Test Card
This file contains 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
variables.first = makeFirst(variables.first); | |
function makeFirst (first) { | |
return first + '(made)'; | |
} |
This file contains 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
{ | |
"title": "Test Card", | |
"description": "Testing various card features.", | |
"sizes": { | |
"twitter": { | |
"width": 800, | |
"height": 400, | |
"default": true | |
} | |
}, | |
"wait": true, | |
"styles": [ | |
"./styles.css" | |
], | |
"scripts": [ | |
"./main.js" | |
], | |
"variables": { | |
"first": "Your", | |
"last": "Name", | |
"city": "Your City", | |
"state": "State", | |
"state_full": "State", | |
"avatar": "./images/avatar.png" | |
} | |
} |
This file contains 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
setTimeout(function () { | |
window.top.postMessage('loaded', '*'); | |
}, 250); |
This file contains 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
body { | |
background: blue; | |
color: yellow; | |
font-size: 40px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment