Skip to content

Commit aec3792

Browse files
committed
Add seed and dew JS
1 parent a25c29e commit aec3792

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

source/_seed_and_dew.html.erb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<script>
2+
var SeedAndDewConfig = {};
3+
(function() {
4+
SeedAndDewConfig['adClass'] = "snd-ad";
5+
/* * * DON'T EDIT BELOW THIS LINE * * */
6+
SeedAndDewConfig['projectId'] = 'ef35b4ec-231e-4950-bd93-4c06fe3b2543';
7+
SeedAndDewConfig['loadStartTime'] = performance.now();
8+
SeedAndDewConfig['apiVersion'] = '2018-05-28'
9+
SeedAndDewConfig['sessionId'] = Math.random().toString(36).substring(2, 15);
10+
var snd = document.createElement('script');
11+
snd.type = 'text/javascript';
12+
snd.async = true;
13+
snd.src = 'https://www.seedanddew.com/static/embed.min.js';
14+
(document.getElementsByTagName('head')[0] ||
15+
document.getElementsByTagName('body')[0]).appendChild(snd);
16+
})();
17+
</script>

source/layouts/layout.slim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,4 @@ html.no-js lang="en"
5757
li = link_to 'Contributing', '/contributing'
5858
= yield
5959
= partial 'google_analytics'
60+
= partial 'seed_and_dew'

0 commit comments

Comments
 (0)