From caecca9189503c96348da32ea9045eaf2f035bcb Mon Sep 17 00:00:00 2001 From: Kevin Ball Date: Fri, 29 Jul 2016 11:25:30 -0700 Subject: [PATCH] Beginnings of ad unit for courses --- docs/assets/js/docs.ad.js | 15 +++++++++++++++ docs/partials/toc-template.hbs | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 docs/assets/js/docs.ad.js create mode 100644 docs/partials/toc-template.hbs diff --git a/docs/assets/js/docs.ad.js b/docs/assets/js/docs.ad.js new file mode 100644 index 000000000..098d8afb2 --- /dev/null +++ b/docs/assets/js/docs.ad.js @@ -0,0 +1,15 @@ +$(function() { + // TODO: Add alternate between advanced and intro + var topic = $('h1.docs-page-title').text(); + var header = 'Struggling with ' + topic + '?'; + var body = 'Get up to speed FAST, learn straight from the experts who built Foundation.'; + var link = 'http://zurb.com/university/foundation-intro?utm_source=Foundation%20Docs&utm_medium=Docs&utm_content=Struggling&utm_campaign=Docs%20To%20Intro'; + var cta = 'Learn More'; + + var html = '
' + header + '
' + + '

' + body + '

' + + '

' + + cta + '

'; + $('#TOCAdUnit').html(html); + +}); diff --git a/docs/partials/toc-template.hbs b/docs/partials/toc-template.hbs new file mode 100644 index 000000000..6731b4f36 --- /dev/null +++ b/docs/partials/toc-template.hbs @@ -0,0 +1,3 @@ +

{{ad_header}}

+

{{ad_body}}

+

{{ad_cta}}

-- 2.47.2