Permalink
Browse files

Merge pull request #2 from antoniovazquezblanco/master

Autoset download link.
  • Loading branch information...
2 parents cb358c8 + 99c1283 commit 09c5866b97ad2d6c7a696c37ac88703f90282708 @pulimento pulimento committed Jun 20, 2012
Showing with 17 additions and 7 deletions.
  1. +7 −2 index.html
  2. +8 −3 index_mobile.html
  3. +1 −1 lang/language-es.json
  4. +1 −1 lang/language-gl.json
View
@@ -33,9 +33,14 @@
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
- /* Localize the web */
$(function(){
+ /* Localize the web */
$("[rel*=localize]").localize("language", { pathPrefix: "lang" });
+ /* Set the download link */
+ $.getJSON("https://api.github.com/repos/pulWifi/pulWifi/downloads?callback=?", function(data){
+ $("#download_link").attr("href", data.data[0].html_url);
+ $("#download_link").html(data.data[0].description);
+ });
});
</script>
</head>
@@ -51,7 +56,7 @@
<div id="div_content">
<noscript>You must have Javascript enabled to see this page properly // Es necesario tener activado Javascript para visualizar esta página correctamente</noscript>
<p rel="localize[description_text]" id="description_text">pulWifi for Android. Shows default passwords for wireless networks of some routers.</p>
- <p rel="localize[download_text]" id="download_text">You can freely download the last release (2.0.0) from <a href="https://github.com/downloads/pulwifi/pulwifi/pulwifi_2.0.0_signed.apk">here</a></p>
+ <p rel="localize[download_text]" id="download_text">You can freely download the last release:</p><a id="download_link"></a>
<p rel="localize[repository_text]" id="repository_text">To see the source code, you can point to <a href="https://github.com/pulWifi/pulWifi">Github project repository</a></p>
<p rel="localize[old_releases_text]" id="old_releases_text"><a href="https://github.com/pulWifi/pulWifi/downloads">Older releases</a></p>
<p rel="localize[license_text]" id="license_text">Published under <a href="http://www.gnu.org/copyleft/gpl.html">GNU GPLv3</a> license</p>
View
@@ -29,9 +29,14 @@
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
- /* Localize the web */
- $(function(){
+ $(function() {
+ /* Localize the web */
$("[rel*=localize]").localize("language", { pathPrefix: "lang" });
+ /* Set the download link */
+ $.getJSON("https://api.github.com/repos/pulWifi/pulWifi/downloads?callback=?", function(data){
+ $("#download_link").attr("href", data.data[0].html_url);
+ $("#download_link").html(data.data[0].description);
+ });
});
</script>
</head>
@@ -47,7 +52,7 @@ <h2 id="header_title">pulWifi</h2>
<div id="div_content">
<noscript>You must have Javascript enabled to see this page properly // Es necesario tener activado Javascript para visualizar esta página correctamente</noscript>
<p rel="localize[description_text]" id="description_text">pulWifi for Android. Shows default passwords for wireless networks of some routers.</p>
- <p rel="localize[download_text]" id="download_text">You can freely download the last release (2.0.0) from <a href="https://github.com/downloads/pulwifi/pulwifi/pulwifi_2.0.0_signed.apk">here</a></p>
+ <p rel="localize[download_text]" id="download_text">You can freely download the last release:</p><a id="download_link"></a>
<p rel="localize[repository_text]" id="repository_text">To see the source code, you can point to <a href="https://github.com/pulWifi/pulWifi">Github project repository</a></p>
<p rel="localize[old_releases_text]" id="old_releases_text"><a href="https://github.com/pulWifi/pulWifi/downloads">Older releases</a></p>
<p rel="localize[license_text]" id="license_text">Published under <a href="http://www.gnu.org/copyleft/gpl.html">GNU GPLv3</a> license</p>
View
@@ -1,6 +1,6 @@
{
"description_text":"pulWifi para Android. Muestra contraseñas por defecto de las redes inalámbricas en varios modelos de routers.",
- "download_text":"Puedes descargar la última versión (2.0.0) desde <a href='https://github.com/downloads/pulwifi/pulwifi/pulwifi_2.0.0_signed.apk'>aqu&iacute;</a>",
+ "download_text":"Puedes descargar la última versión de forma gratuita:",
"repository_text":"Para ver el código fuente, accede al <a href='https://github.com/pulWifi/pulWifi'>repositorio Github del proyecto</a>",
"old_releases_text":"<a href='https://github.com/pulWifi/pulWifi/downloads'>Versiones anteriores</a>",
"license_text":"Publicado bajo la licencia <a href='http://www.gnu.org/copyleft/gpl.html'>GNU GPLv3</a>",
View
@@ -1,6 +1,6 @@
{
"description_text":"pulWifi para Android. Mostra contrasinais por defecto das redes inalámbricas en varios modelos de routers.",
- "download_text":"Podes descargar a última versión (2.0.0) dende <a href='https://github.com/downloads/pulwifi/pulwifi/pulwifi_2.0.0_signed.apk'>aqu&iacute;</a>",
+ "download_text":"Podes descargar a última versión de forma gratuíta:",
"repository_text":"Para ver o código fonte, accede ao <a href='https://github.com/pulWifi/pulWifi'>repositorio Github do proxecto</a>",
"old_releases_text":"<a href='https://github.com/pulWifi/pulWifi/downloads'>Versións anteriores</a>",
"license_text":"Publicado baixo la licencia <a href='http://www.gnu.org/copyleft/gpl.html'>GNU GPLv3</a>",

0 comments on commit 09c5866

Please sign in to comment.