App inventor 2 en español
Cómo programar los teléfonos móviles con Android.
Curso de App inventor 2 en español - Juan Antonio Villalpando
-- Tutorial de iniciación de App Inventor 2 en español --
Volver al índice del tutorial
___________________________
169N.- Twitter con JavaScript.
p169N_javascript_twitter.aia
- Vamos a arrancar distintas ventanas del Twitter mediante App Inventor.
- Para ellos nos vamos a basar en los tutoriales de la web oficial de Twitter.
https://dev.twitter.com/web/tweet-button
_________________
- Diseño.
- Subimos el archivo twitter.htm
_________________
- Bloques.
_________________
- Archivo twitter.htm
twitter.htm |
<!DOCTYPE html>
<html>
<head><meta charset="utf-8"></head><body>
<script>window.twttr = (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0],
t = window.twttr || {};
if (d.getElementById(id)) return t;
js = d.createElement(s);
js.id = id;
js.src = "https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
t._e = [];
t.ready = function(f) {
t._e.push(f);
};
return t;
}(document, "script", "twitter-wjs"));</script>
<a class="twitter-share-button"
href="https://twitter.com/intent/tweet">
Tweet</a>
<a class="twitter-share-button"
href="https://twitter.com/intent/tweet?text=Hello%20world">
Tweet</a>
<a class="twitter-share-button"
href="https://twitter.com/intent/tweet?text=Hello%20world"
data-size="large">
Tweet</a>
<!-- Juan A. Villalpando - KIO4.COM -->
</body></html>
|
_________________
- Comentarios.
- Al pulsar el botón saldrán 3 botones del Twitter.
_________________
__________________________________
|