mirror of
				https://github.com/bingohuang/docker-labs.git
				synced 2025-10-26 14:42:46 +08:00 
			
		
		
		
	* - Enable use of override for session timeout. This is more useful than having to hard-code and rebuild the code for the previous 4 hour limit. Just set environmental variable and start the app. - Future work may involve breaking down into minutes, but this is a good minimum delivery to provide value to end-user/developer. - Fixes bug in Captcha code by introducing new landing page. This is not a new go template, it's a separate HTML file because SRP - single reponsibility principle. Happy for this to be refacted after merging commit. - Fix for including Docker 1.12 override has been removed for later PR. * Merge * Reinstate 'material' JS include' * https for JS includes * HTTPs for JS in bypass
		
			
				
	
	
		
			28 lines
		
	
	
		
			938 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			938 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {{define "GOOGLE_RECAPTCHA_SITE_KEY"}}
 | |
| <!doctype html>
 | |
| <html>
 | |
|     <head>
 | |
|         <title>Docker Playground</title>
 | |
| 	    <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.0/angular-material.min.css">
 | |
|         <link rel="stylesheet" href="/assets/style.css" />
 | |
|         <script src='https://www.google.com/recaptcha/api.js'></script>
 | |
|     </head>
 | |
|     <body class="welcome">
 | |
|         <div>
 | |
|             <h1>Welcome!</h1>
 | |
|             <h2>Before starting we need to verify you are a human</h2>
 | |
|             <form id="welcomeForm" method="POST" action="/">
 | |
|                 <div class="g-recaptcha" data-callback="iAmHuman" data-sitekey="{{.}}"></div>
 | |
|             </form>
 | |
|             <img src="/assets/large_h.png" />
 | |
|         </div>
 | |
| 
 | |
|         <script>
 | |
|             function iAmHuman(resp) {
 | |
|                 document.getElementById('welcomeForm').submit();
 | |
|             }
 | |
|         </script>
 | |
|     </body>
 | |
| </html>
 | |
| {{end}}
 |