You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ds...@apache.org on 2015/03/02 18:18:24 UTC
svn commit: r1663367 - /incubator/ignite/site/trunk/index.html
Author: dsetrakyan
Date: Mon Mar 2 17:18:24 2015
New Revision: 1663367
URL: http://svn.apache.org/r1663367
Log:
download script
Modified:
incubator/ignite/site/trunk/index.html
Modified: incubator/ignite/site/trunk/index.html
URL: http://svn.apache.org/viewvc/incubator/ignite/site/trunk/index.html?rev=1663367&r1=1663366&r2=1663367&view=diff
==============================================================================
--- incubator/ignite/site/trunk/index.html (original)
+++ incubator/ignite/site/trunk/index.html Mon Mar 2 17:18:24 2015
@@ -167,7 +167,7 @@ under the License.
<td>
<span><time datetime="2015-02-16">February 16, 2015</time></span>
</td>
- <td><a href="releases/1.0.0/ignite-fabric-1.0.0-RC1.zip" onClick="_gaq.push(['_trackEvent', 'Application', 'Download', 'Version 1.0']);">ignite-fabric-1.0.0-RC1.zip</a></td>
+ <td><a id="apache_ignite_download" href="releases/1.0.0/ignite-fabric-1.0.0-RC1.zip">ignite-fabric-1.0.0-RC1.zip</a></td>
</tr>
</table>
</div>
@@ -196,5 +196,25 @@ under the License.
$('#footer').load('includes/footer.html');
});
</script>
+<script>
+ var downloadLink = document.getElementById('apache_ignite_download');
+ addListener(downloadLink, 'download', function() {
+ ga('send', 'event', 'apache_ignite_download', 'download', 'apache ignite v1.0');
+ });
+
+ /**
+ * Utility to wrap the different behaviors between W3C-compliant browsers
+ * and IE when adding event handlers.
+ *
+ * @param {Object} element Object on which to attach the event listener.
+ * @param {string} type A string representing the event type to listen for
+ * (e.g. load, click, etc.).
+ * @param {function()} callback The function that receives the notification.
+ */
+ function addListener(element, type, callback) {
+ if (element.addEventListener) element.addEventListener(type, callback);
+ else if (element.attachEvent) element.attachEvent('on' + type, callback);
+ }
+</script>
</body>
</html>