]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Tweak ad js to have default topic
authorKevin Ball <kmball11@gmail.com>
Wed, 28 Jun 2017 21:10:43 +0000 (14:10 -0700)
committerKevin Ball <kmball11@gmail.com>
Wed, 28 Jun 2017 21:11:44 +0000 (14:11 -0700)
docs/assets/js/docs.ad.js

index e1529cacdd6cb86795f5cbc684ac646c2db48bf2..80492cfcf7a2afd43ab510694716817357be13a1 100644 (file)
@@ -2,6 +2,7 @@ $(function() {
 
   // TODO: Add alternate between advanced and intro
   var topic = $('h1.docs-page-title').text();
+  if(topic.length < 1) { topic = 'Foundation'; }
   var header = 'Master ' + 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';