Created
          April 29, 2016 15:32 
        
      - 
      
 - 
        
Save Ozerich/1053492189ad3a62cbe95f80a82f9d95 to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | console.log('Loading event'); | |
| var AWS = require('aws-sdk'); | |
| exports.handler = function(event, context) { | |
| console.log("Request received:\n", JSON.stringify(event)); | |
| console.log("Context received:\n", JSON.stringify(context)); | |
| context.succeed('<!doctype html><html lang="en"><head><meta charset="utf-8"><style>*{outline: none;}.logo{margin-bottom: 15px; display: inline-block;}.form-container{text-align: center;width: 300px; position: absolute; transform: translate(-50%, -50%); top: 50%; left: 50%; padding: 20px;}input{width: 100%; box-sizing: border-box; padding: 10px 10px; font-size: 20px; border: 1px solid #aaa; color: rgb(0, 74, 94)}button{height: 40px; box-sizing: border-box; line-height: 40px; background: rgb(0, 74, 94); color: #fff;border: 0 none; cursor: pointer; width: 150px; display: block; margin: 0 auto;}</style></head><body><div class="form-container"><div class="logo"><img src="https://17eb94422c7de298ec1b-8601c126654e9663374c173ae837a562.ssl.cf1.rackcdn.com/Images/umbrella%20redesign/Logo%20Update%20with%20Trademark/adv_janus.png"></div><form action="" method="post"><input type="text" name="login" placeholder="login"><br><br><input type="password" name="password" placeholder="password"><br><br><button>Download CSV</button></form></div></body></html>'); | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment