~yacinechaouche/+junk/BZR

« back to all changes in this revision

Viewing changes to PROG/NEWSR00M-POC/js/creator.js

  • Committer: yacinechaouche at yahoo
  • Date: 2015-01-14 22:23:03 UTC
  • Revision ID: yacinechaouche@yahoo.com-20150114222303-6gbtqqxii717vyka
Ajout de CODE et PROD. Il faudra ensuite ajouter ce qu'il y avait dan TMP

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
index = 0;
 
2
function create_rss (url) {
 
3
    var id = "ticker"+index
 
4
    html = "<ul class='ticker' id='"+id+"'></ul>";
 
5
    $(document.body).append($(html))
 
6
    id = "#"+id;
 
7
    populate(id,url);
 
8
    tick(id);
 
9
    index +=1;
 
10
}
 
11
 
 
12
function populate(id,url){
 
13
    $(id).FeedEk({ 
 
14
        FeedUrl: url,
 
15
        MaxCount: 20,
 
16
        ShowDesc:false,
 
17
        ShowPubDate:false,
 
18
    });
 
19
}
 
20
 
 
21
function tick(id){
 
22
      $(function(){
 
23
      $(id).totemticker({
 
24
      row_height        :       '3.2em',
 
25
      next              :       '#ticker-next',
 
26
      previous          :       '#ticker-previous',
 
27
      stop              :       '#stop',
 
28
      start             :       '#start',
 
29
      mousestop         :       true,
 
30
      });
 
31
      });
 
32
}
 
 
b'\\ No newline at end of file'