16 Commits

Author SHA1 Message Date
Sean Bannister
da71ff48ad Fixing CSS coding standard inconsistencies in demos 2015-08-07 19:58:02 +10:00
Nicolas Garnier
db9b30a5b6 Simplify code. (Closes #884) 2015-07-08 17:17:42 +01:00
Nicolas Garnier
4d26caa48a Replace for loop by forEach 2015-07-08 17:17:42 +01:00
Nicolas Garnier
0e57355839 Generate CodePen buttons in templates instead of on page load. 2015-07-08 17:17:41 +01:00
Nicolas Garnier
a58afcd794 Adding an eventLabel to the codepen button tracking. 2015-07-06 21:44:44 +02:00
Nicolas Garnier
065239d62d Track codepen button clicks 2015-07-06 21:23:22 +02:00
Nicolas Garnier
cb730d1e8b Removing Test libs in Codepen.
Please hold on merging this until we fix #627 (Closes #654)
2015-07-03 19:44:01 +01:00
Nicolas Garnier
02c4a4afde Made tag extraction logic more generic Keep indentation Added styling to elements (Closes #662) 2015-07-03 15:59:04 +01:00
Nicolas Garnier
3bea5d14c8 Further codepen fixes: - Extract the <script> tags into the JS codepen tab - Add margin in between each components to avoid them looking squashed (for example the 2 progress bars) 2015-07-03 15:59:04 +01:00
alex
2a0b27b55c Hardcode HTTPS in codepen font as well (Closes #640) 2015-07-03 11:45:35 +01:00
Nicolas Garnier
329cebea38 Improve codepen implementation: - Open in new tab - Replaces relative image URLs - Processing only done when the button is clicked - Inserting body padding only for demos that are not full-width - Allow inserting custom codepen CSS for each snippet with
Switch to using .bind()

Fix comment (Closes #618)
2015-07-02 19:39:00 +01:00
Nicolas Garnier
16e745460d Make sure we show developers to include the MD Font after the MDL libs 2015-06-29 14:51:39 +02:00
Nicolas Garnier
735bbb1836 Different comments for MDL and MD icon font 2015-06-25 18:31:09 +01:00
Nicolas Garnier
57f19bc6a0 Extract <style> blocks from code and inject them into the CSS section of Codepen 2015-06-25 18:31:09 +01:00
Nicolas Garnier
05a672b63a Use templating for MDL libs included in copy-to-Codepen feature. 2015-06-25 18:31:09 +01:00
Nicolas Garnier
35b232fec0 Updated button readme.md so that demos look better. Added an option to disable the codeine button (.codepen-button-disabled on <pre>) 2015-06-25 18:31:09 +01:00