'use strict';

angular.module('cloudSlangWebsiteApp')
    .controller('GettingStartedCtrl', function () {

        $('#delay').on('click', function (e) {

            e.preventDefault();  //stop the browser from following
            window.location.href = 'https://github.com/CloudSlang/cloud-slang/releases/download/cloudslang-0.9.1/cslang-cli-with-content.zip';

            var $target = $($(this).data('target'));
            $target.data('triggered', true);
            setTimeout(function () {
                if ($target.data('triggered')) {
                    $target.modal('show')
                        .data('triggered', false); // prevents multiple clicks from reopening
                }
            }, 4000); // milliseconds
            return false;
        });

        $('#delay1').on('click', function (e) {

            e.preventDefault();  //stop the browser from following
            window.location.href = 'https://github.com/CloudSlang/cloud-slang/releases/download/cloudslang-0.9.1/cslang-cli.tar.gz';

            var $target = $($(this).data('target'));
            $target.data('triggered', true);
            setTimeout(function () {
                if ($target.data('triggered')) {
                    $target.modal('show')
                        .data('triggered', false); // prevents multiple clicks from reopening
                }
            }, 4000); // milliseconds
            return false;
        });
    });

@@ -1017,15 +1017,30 @@
 -cli
+-with-content
 .tar.gz
+ip
 ';%0A%0A

version links