Elementolab/Social Media

From Icbwiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 23:58, 10 April 2012
Ole2001 (Talk | contribs)

← Previous diff
Revision as of 23:58, 10 April 2012
Ole2001 (Talk | contribs)

Next diff →
Line 40: Line 40:
<a href="https://twitter.com/ElementoLab" class="twitter-follow-button" data-show-count="false">Follow @ElementoLab</a> <a href="https://twitter.com/ElementoLab" class="twitter-follow-button" data-show-count="false">Follow @ElementoLab</a>
-<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//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];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

Revision as of 23:58, 10 April 2012

For example, to live stream #AACR, you can use

<script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
 version: 2,
 type: 'search',
 search: '#AACR',
 interval: 30000,
 title: 'Live AACR tweet feed',
 subject: ,
 width: 'auto',
 height: 600,
 theme: {
   shell: {
     background: '#990000',
     color: '#ffffff'
   },
   tweets: {
     background: '#FFE2B9',
     color: '#000000',
     links: '#0000ff'
   }
 },
 features: {
   scrollbar: false,
   loop: true,
   live: true,
   behavior: 'default'
 }
}).render().start();
</script>
  • Add a follow button
<a href="https://twitter.com/ElementoLab" class="twitter-follow-button" data-show-count="false">Follow @ElementoLab</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";  fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
Personal tools