Widget:Comments: Różnice pomiędzy wersjami
m |
|||
Linia 4: | Linia 4: | ||
var vanilla_forum_url = 'http://www.gadia.pl/'; // The full http url & path to your vanilla | var vanilla_forum_url = 'http://www.gadia.pl/'; // The full http url & path to your vanilla | ||
forum | forum | ||
− | var vanilla_identifier = '{ | + | var vanilla_identifier = '<!--{$uniqid|escape:'quotes'}-->'; // Your unique identifier for the content being |
commented on | commented on | ||
Linia 13: | Linia 13: | ||
/*** DON'T EDIT BELOW THIS LINE ***/ | /*** DON'T EDIT BELOW THIS LINE ***/ | ||
(function() { | (function() { | ||
− | var vanilla = document.createElement('script'); | + | var vanilla = document.createElement('script'); vanilla.type = 'text/javascript'; var timestamp = new Date().getTime(); |
− | |||
− | |||
vanilla.src = vanilla_forum_url + '/js/embed.js'; | vanilla.src = vanilla_forum_url + '/js/embed.js'; | ||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(vanilla); | (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(vanilla); |