From 4a03c5f689dd492aa837eb0f75499678d177b3c6 Mon Sep 17 00:00:00 2001 From: Robert Mayr Date: Jul 07 2017 15:47:45 +0000 Subject: add python-classroom splash file and load it --- diff --git a/labs.fedoraproject.org/data/content/python-classroom/download/python-classroom-download-splash.html b/labs.fedoraproject.org/data/content/python-classroom/download/python-classroom-download-splash.html new file mode 100644 index 0000000..503ac89 --- /dev/null +++ b/labs.fedoraproject.org/data/content/python-classroom/download/python-classroom-download-splash.html @@ -0,0 +1,38 @@ + + + + + ${_('Download Fedora Python Classroom')} + + + + + +
+
+
+
+

${_('Thanks for Downloading Fedora!')}

+

${_('Your download should begin in a few seconds. If not, click the link below:')} +

+

+
+
+
+
+
+
+
+ +
+ +
+ +
+
+
+ + diff --git a/labs.fedoraproject.org/data/content/python-classroom/download/robotics-download-splash.html b/labs.fedoraproject.org/data/content/python-classroom/download/robotics-download-splash.html deleted file mode 100644 index 596113b..0000000 --- a/labs.fedoraproject.org/data/content/python-classroom/download/robotics-download-splash.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - ${_('Download Fedora Robotics Suite')} - - - - - -
-
-
-
-

${_('Thanks for Downloading Fedora!')}

-

${_('Your download should begin in a few seconds. If not, click the link below:')} -

-

-
-
-
-
-
-
-
- -
- -
- -
-
-
- - diff --git a/labs.fedoraproject.org/static/js/init.js b/labs.fedoraproject.org/static/js/init.js index 1a9032b..8d49477 100644 --- a/labs.fedoraproject.org/static/js/init.js +++ b/labs.fedoraproject.org/static/js/init.js @@ -65,6 +65,15 @@ $(document).ready(function(){ window.location = 'jam-download-splash?file='+linkLocation; }); + // redirect download links to the Python Classroom splash page + $("a.python-classroom-download-splash").click(function(event){ + event.preventDefault(); + linkLocation = this.href; + + // this passes the URL path to the Robotics splash page + window.location = 'python-classroom-download-splash?file='+linkLocation; + }); + // redirect download links to the Robotics splash page $("a.robotics-download-splash").click(function(event){ event.preventDefault();