MediaWiki:Common.js: Rozdiel medzi revíziami
Z MBI
Riadok 8: | Riadok 8: | ||
+ ' <div class="fb-page" data-href="https://www.facebook.com/Computational-Biology-at-Comenius-University-in-Bratislava-1186005448094730/" data-tabs="timeline"' | + ' <div class="fb-page" data-href="https://www.facebook.com/Computational-Biology-at-Comenius-University-in-Bratislava-1186005448094730/" data-tabs="timeline"' | ||
+ ' data-height="600" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="false"></div>' | + ' data-height="600" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="false"></div>' | ||
− | + ' </div> Hello2'; | + | + ' </div> Hello2' + pokus(" Hello3"); |
}()); | }()); | ||
Riadok 17: | Riadok 17: | ||
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5"; | js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5"; | ||
fjs.parentNode.insertBefore(js, fjs); | fjs.parentNode.insertBefore(js, fjs); | ||
+ | } | ||
+ | function pokus(text) { | ||
+ | return text + "!"; | ||
} | } |
Verzia zo dňa a času 10:58, 23. september 2016
/* Tu uvedený JavaScript sa nahrá všetkým používateľom pri každom nahraní stránky. */ (function () { var myElement = document.getElementById('mwFacebookWindow'); myElement.innerHTML = 'Hello' + '<div id="fb-root"></div>' + '<script>facebook(document, "script", "facebook-jssdk"));</script>' + ' <div style="width:30%; max-width: 350px; min-width: 250px; padding:30px; float:right;">' + ' <div class="fb-page" data-href="https://www.facebook.com/Computational-Biology-at-Comenius-University-in-Bratislava-1186005448094730/" data-tabs="timeline"' + ' data-height="600" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="false"></div>' + ' </div> Hello2' + pokus(" Hello3"); }()); function facebook(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5"; fjs.parentNode.insertBefore(js, fjs); } function pokus(text) { return text + "!"; }