[tor-commits] [tpo/master] Update to script in line

2019-04-04 Thread hiro
commit 0afd5bf53cf8d2b1dc86a0b47283847a998b38ed
Author: hiro 
Date:   Fri Apr 5 01:23:04 2019 +0200

Update to script in line
---
 assets/static/js/download.js   | 16 
 templates/footer.html  |  2 +-
 templates/meta.html|  1 -
 templates/script-download.html | 14 --
 4 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/assets/static/js/download.js b/assets/static/js/download.js
new file mode 100644
index 000..8ce7625
--- /dev/null
+++ b/assets/static/js/download.js
@@ -0,0 +1,16 @@
+$(".downloadLink").click(
+function(e) {
+e.preventDefault();
+
+locale = window.location.href.split('/')[3];
+//open download link in new page
+window.open( $(this).attr("href") );
+url = "/thank-you/"
+//redirect current page to success page
+if (locale != "download") {
+  url = "/" + locale + url
+}
+window.location=url;
+window.focus();
+}
+);
diff --git a/templates/footer.html b/templates/footer.html
index 63080db..5602948 100644
--- a/templates/footer.html
+++ b/templates/footer.html
@@ -89,5 +89,5 @@
 
 
 
-{% include 'script-download.html' %}
+
   
diff --git a/templates/meta.html b/templates/meta.html
index ff32484..a86eb82 100644
--- a/templates/meta.html
+++ b/templates/meta.html
@@ -1,7 +1,6 @@
 
 http://www.w3.org/1999/xhtml; {% if bag('alternatives', this.alt, 
'direction') == 'text-right' %}dir="rtl"{% endif %}>
 
-
 
 
 
diff --git a/templates/script-download.html b/templates/script-download.html
deleted file mode 100644
index ce605ea..000
--- a/templates/script-download.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-  $(".downloadLink").click(
-  function(e) {
-  e.preventDefault();
-
-  //open download link in new page
-  window.open( $(this).attr("href") );
-
-  //redirect current page to success page
-  window.location="{{ '/thank-you'|url(alt=this.alt) }}";
-  window.focus();
-  }
-  );
-

___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tpo/master] Update to script in line

2019-04-04 Thread hiro
commit 9392491c29d3d35e484beaf029c0bc510cecf5bd
Author: hiro 
Date:   Fri Apr 5 01:05:53 2019 +0200

Update to script in line
---
 templates/meta.html | 1 -
 1 file changed, 1 deletion(-)

diff --git a/templates/meta.html b/templates/meta.html
index 5de33ec..ff32484 100644
--- a/templates/meta.html
+++ b/templates/meta.html
@@ -2,7 +2,6 @@
 http://www.w3.org/1999/xhtml; {% if bag('alternatives', this.alt, 
'direction') == 'text-right' %}dir="rtl"{% endif %}>
 
 
-
 
 
 

___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tpo/master] Update to script in line

2019-04-04 Thread hiro
commit a989ff9529451bce20b1d047da67866d51232052
Author: hiro 
Date:   Fri Apr 5 01:05:28 2019 +0200

Update to script in line
---
 assets/static/js/download.js | 12 
 templates/meta.html  |  1 +
 2 files changed, 1 insertion(+), 12 deletions(-)

diff --git a/assets/static/js/download.js b/assets/static/js/download.js
deleted file mode 100644
index 17a5d88..000
--- a/assets/static/js/download.js
+++ /dev/null
@@ -1,12 +0,0 @@
-$(".downloadLink").click(
-function(e) {
-e.preventDefault();
-
-//open download link in new page
-window.open( $(this).attr("href") );
-
-//redirect current page to success page
-window.location="{{ '/thank-you'|url(alt=this.alt) }}";
-window.focus();
-}
-);
diff --git a/templates/meta.html b/templates/meta.html
index ff32484..5de33ec 100644
--- a/templates/meta.html
+++ b/templates/meta.html
@@ -2,6 +2,7 @@
 http://www.w3.org/1999/xhtml; {% if bag('alternatives', this.alt, 
'direction') == 'text-right' %}dir="rtl"{% endif %}>
 
 
+
 
 
 



___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tpo/master] Update to script in line

2019-04-04 Thread hiro
commit 2c9b200a176a63dc029ee841f604e6fafe322682
Author: hiro 
Date:   Fri Apr 5 00:48:24 2019 +0200

Update to script in line
---
 templates/meta.html | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/templates/meta.html b/templates/meta.html
index d87b415..ff32484 100644
--- a/templates/meta.html
+++ b/templates/meta.html
@@ -1,8 +1,7 @@
 
 http://www.w3.org/1999/xhtml; {% if bag('alternatives', this.alt, 
'direction') == 'text-right' %}dir="rtl"{% endif %}>
 
-https://torproject.org 'sha256-FqLmSOREzRHwnNg/O6ZAfzLKaIPr6c5coXumA9M00Hg='">
-
+
 
 
 

___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tpo/master] Update to script in line

2019-04-04 Thread hiro
commit ff751a49f3ccefdf0aa4328b169378c7a8fb4a6d
Author: hiro 
Date:   Fri Apr 5 00:40:44 2019 +0200

Update to script in line
---
 templates/meta.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/templates/meta.html b/templates/meta.html
index ddbd810..d87b415 100644
--- a/templates/meta.html
+++ b/templates/meta.html
@@ -1,6 +1,8 @@
 
 http://www.w3.org/1999/xhtml; {% if bag('alternatives', this.alt, 
'direction') == 'text-right' %}dir="rtl"{% endif %}>
 
+https://torproject.org 'sha256-FqLmSOREzRHwnNg/O6ZAfzLKaIPr6c5coXumA9M00Hg='">
+
 
 
 
@@ -11,7 +13,6 @@
 
 
 https://www.torproject.org/static/images/tor-project-logo-onions.png; 
/>
-
 
 
 

___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tpo/master] Update to script in line

2019-04-04 Thread hiro
commit 8d1551239f1a6e76bc2801df54efeac503e8f998
Author: hiro 
Date:   Fri Apr 5 00:26:44 2019 +0200

Update to script in line
---
 templates/meta.html | 1 +
 1 file changed, 1 insertion(+)

diff --git a/templates/meta.html b/templates/meta.html
index a86eb82..ddbd810 100644
--- a/templates/meta.html
+++ b/templates/meta.html
@@ -11,6 +11,7 @@
 
 
 https://www.torproject.org/static/images/tor-project-logo-onions.png; 
/>
+
 
 
 

___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [tpo/master] Update to script in line

2019-04-04 Thread hiro
commit 1ed2eadef7036169b82e5c520bda1af61484
Author: hiro 
Date:   Fri Apr 5 00:09:01 2019 +0200

Update to script in line
---
 templates/script-download.html | 15 ++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/templates/script-download.html b/templates/script-download.html
index 1583d28..ce605ea 100644
--- a/templates/script-download.html
+++ b/templates/script-download.html
@@ -1 +1,14 @@
-
+
+  $(".downloadLink").click(
+  function(e) {
+  e.preventDefault();
+
+  //open download link in new page
+  window.open( $(this).attr("href") );
+
+  //redirect current page to success page
+  window.location="{{ '/thank-you'|url(alt=this.alt) }}";
+  window.focus();
+  }
+  );
+

___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits