Commit d3a60f0878822d572fa4de5e488a5d787f5561be

Authored by Edmar Moretti
1 parent 1bd1fd49

Incluida lista de endereços rss

ferramentas/nuvemtags/index.htm
1 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 2 <html xmlns="http://www.w3.org/1999/xhtml">
3 3 <head>
  4 + <link rel="stylesheet" type="text/css" href="../../css/i3geo.css">
4 5 <link rel="stylesheet" type="text/css" href="../../css/i3geo_ferramentas.css">
5 6 <style type="text/css">
6 7 .yuibutton button{padding-left:2em;background:url(../../imagens/tic.png) 5% 50% no-repeat;}
  8 +
  9 + /* custom styles for multiple stacked instances */
  10 + #textoautocomplete
  11 + {
  12 + width:18em; /* set width here */
  13 + padding-bottom:2em;
  14 + left:5px;
  15 + top:10px;
  16 + }
  17 + #textoautocomplete
  18 + {
  19 + z-index:9000; /* z-index needed on top instance for ie & sf absolute inside relative issue */
  20 + }
  21 + #texto
  22 + {
  23 + _position:relative; /* abs pos needed for ie quirks */
  24 + }
7 25 </style>
8 26 <title></title>
9 27 </head>
10   - <body class="yui-skin-sam;" style="overflow:auto;">
11   - <div style="width:95%;top:5px;left:0px">
  28 + <body class="yui-skin-sam" style="overflow:auto;">
  29 + <div style="width:95%;top:5px;left:5px">
12 30 Voc&ecirc; pode cruzar a nuvem de tags com um RSS de notícias. Digite abaixo o endere&ccedil;o do RSS:
13   - <table class=lista >
14   - <tr>
15   - <td>
16   - <input size=45 class=digitar type=text value="" id=texto />
17   - </td>
18   - <td>
19   - <div onclick='buscarss()' style='text-align:left;left:0px'><input id=botao1 size=18 class=executar type='buttom' value='Cruzar' /></div>
20   - </td>
21   - </tr>
22   - </table>
23   - </div>
24   - <br><div style="top:2px;left:5px;display:block;width:90%" id="resultado" >Aguarde...</div>
  31 + </div>
  32 + <div id="textoautocomplete">
  33 + <input id="texto" style="text-align:left" type="text">
  34 + <div id="textocontainer" style="top:1.4em;left:-10px"></div>
  35 + </div>
  36 + <div style="width:10px;position:relative;top:-15px;left:225px">
  37 + <input title="número de notícias" type=text class=digitar id=nrss value="20" size=2 />
  38 + </div>
  39 + <div onclick='buscarss()' style='width:10px;position:relative;text-align:left;left:250px;top:-35px'>
  40 + <input id=botao1 size=18 class=executar type='buttom' value='Cruzar' />
  41 + </div>
  42 + <div style="top:-20px;left:5px;display:block;width:90%;text-align:justify" id="resultado" >Aguarde...</div>
25 43 <script src="../i3geo_tudo_compacto.js.php" type="text/javascript"></script>
26 44 <script language="JavaScript" type="text/javascript" src="index.js"></script>
  45 +<script>
  46 +YAHOO.example.linksRSS = [
  47 + "http://www.mma.gov.br/webservice/noticias/rss_noticias.php",
  48 + "http://www.estadao.com.br/rss/ultimas.xml",
  49 + "http://www.estadao.com.br/rss/vidae.xml",
  50 + "http://feeds.folha.uol.com.br/folha/emcimadahora/rss091.xml"
  51 + ];
  52 +
  53 + YAHOO.example.ACJSArray = new function() {
  54 + // Instantiate first JS Array DataSource
  55 + this.oACDS = new YAHOO.widget.DS_JSArray(YAHOO.example.linksRSS);
  56 +
  57 + // Instantiate first AutoComplete
  58 + this.oAutoComp = new YAHOO.widget.AutoComplete('texto','textocontainer', this.oACDS);
  59 + this.oAutoComp.prehighlightClassName = "yui-ac-prehighlight";
  60 + this.oAutoComp.typeAhead = true;
  61 + this.oAutoComp.useShadow = true;
  62 + this.oAutoComp.minQueryLength = 0;
  63 + this.oAutoComp.textboxFocusEvent.subscribe(function(){
  64 + var sInputValue = YAHOO.util.Dom.get('texto').value;
  65 + if(sInputValue.length === 0) {
  66 + var oSelf = this;
  67 + setTimeout(function(){oSelf.sendQuery(sInputValue);},0);
  68 + }
  69 + });
  70 +};
  71 +
  72 +
  73 +</script>
27 74 </body>
28 75 </html>
29 76 \ No newline at end of file
... ...
ferramentas/nuvemtags/index.js
... ... @@ -71,7 +71,7 @@ $i(&quot;resultado&quot;).innerHTML = &quot;Aguarde...&quot;;
71 71 var cp = new cpaint();
72 72 cp.set_response_type("JSON");
73 73 //cp.set_debug(2)
74   -var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=listaTags&rss=&g_sid="+g_sid;
  74 +var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=listaTags&rss=&nrss=&g_sid="+g_sid;
75 75 cp.call(p,"listaTags",montaNuvem);
76 76  
77 77 function procurar(texto)
... ... @@ -92,6 +92,6 @@ function buscarss()
92 92 var cp = new cpaint();
93 93 cp.set_response_type("JSON");
94 94 //cp.set_debug(2)
95   - var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=listaTags&g_sid="+g_sid+"&rss="+rss;
  95 + var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=listaTags&g_sid="+g_sid+"&rss="+rss+"&nrss="+$i("nrss").value;
96 96 cp.call(p,"listaTags",montaNuvem);
97 97 }
98 98 \ No newline at end of file
... ...