// Generated by CoffeeScript 1.12.7
(function() {
  var tryssl;

  tryssl = function() {
    console.log('Call URL -> ', window.datas.sslHost);
    return $.ajax(window.datas.sslHost, {
      dataType: 'jsonp',
      statusCode: {
        401: function() {
          $('#lformSSL').submit();
          return console.log('Error code 401');
        }
      },
      success: function(data) {
        $('#lformSSL').submit();
        return console.log('Success -> ', data);
      },
      error: function() {
        $('#lformSSL').submit();
        return console.log('Error');
      }
    });
  };

  $(document).ready(function() {
    return $('.sslclick').on('click', tryssl);
  });

}).call(this);
