Team:UNIK Copenhagen/tweet bar
From 2013.igem.org
(Difference between revisions)
(29 intermediate revisions not shown) | |||
Line 3: | Line 3: | ||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> | <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> | ||
+ | <div id="fb-root"></div> | ||
+ | <script>(function(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_GB/all.js#xfbml=1"; | ||
+ | fjs.parentNode.insertBefore(js, fjs); | ||
+ | }(document, 'script', 'facebook-jssdk'));</script> | ||
- | <style type="text/css> | + | <style type="text/css"> |
+ | .fb-like-box{ | ||
+ | border-bottom: 1px solid #E0E0E0; | ||
+ | margin-bottom: 20px; | ||
+ | } | ||
.sidebar{ | .sidebar{ | ||
- | width: | + | border-left: 1px solid #E0E0E0; |
- | margin: | + | float: right; |
+ | width: 270px; | ||
+ | margin: 0px -25px 0px 0px; | ||
+ | padding: 0px 0px 0px 10px; | ||
z-index:5; | z-index:5; | ||
- | |||
display:block; | display:block; | ||
position: relative; | position: relative; | ||
- | |||
- | |||
} | } | ||
</style> | </style> | ||
+ | <body> | ||
<div class="sidebar"> | <div class="sidebar"> | ||
- | |||
- | |||
+ | <div class="fb-like-box" data-href="https://www.facebook.com/pages/IGEM-Copenhagen-2013/1393917120824679?fref=ts" data-width="250" data-show-faces="true" data-header="true" data-stream="true" data-show-border="false"></div> | ||
+ | <a class="twitter-timeline" href="https://twitter.com/iGEMCopenhagen" width="250" data-widget-id="366894070498484225" data-tweet-limit="3">Tweets af @iGEMCopenhagen</a> | ||
+ | |||
+ | </div> | ||
+ | </body> | ||
</html> | </html> |
Latest revision as of 20:38, 27 August 2013