Skip to content
Snippets Groups Projects
Select Git revision
  • cdb26ad8e5915e71a4c9bdda46a1006cd29eb63e
  • master default protected
2 results

download.hbs

Blame
  • download.hbs 2.47 KiB
    <!DOCTYPE html>
    <html lang="en">
    <head>
    	<meta charset="utf-8">
    	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    	<meta name="viewport" content="width=device-width, initial-scale=1">
    	<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    	<title>Download</title>
    
    	<!-- Bootstrap -->
    	<!--<link href="../node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">-->
    	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    </head>
    <body>
    	<div class ="container">
    	<div class="row"><div class="col-md-2"></div> <div class="col-md-10"><h3>Choose which files to compile into your custom build of ExplorViz:</h3></div></div>
    		<div class="row">
    			<div class="col-md-3"></div>
    			<div class="col-md-9">
    				<form action="/" method="post">
    					<div class ="form-group">
    						<div class="checkbox">
    							<label>
    								{{#each downloadFiles as |item|}}
    								<input type="checkbox" name={{item}} value={{item}}>{{item}}<br>
    								{{/each}}
    								<br>
    							</label>
    						</div>
    						<button type="submit" class="btn btn-primary">Create Build and Download Zip</button>
    					</div>
    				</form>
    			</div>	
    		</div>
    	     		<div class="row">
    			<div class="col-md-3"></div>
    			<div class="col-md-6">Please do not close the window, while your download is being prepared. 
    <!-- 			<iframe id ="downloadFrame" src="" onload="onDownloadFinished(this)"></iframe>
    				<script type="text/javascript">
    					document.getElementById('downloadFrame').onload= function() {
    						//"Your download will start automatically."
    						       // Hier newDownload anzeigen und checkedFiles übergeben?!
    					};
    				</script> -->
    {{#each checkedFiles as |file|}}
    	{{/each}}
    	<script> location.href="/download?checkedFiles={{checkedFiles}}" </script> 
    			</div>
    
    		</div>
    
    		<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    		<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    		<!-- Include all compiled plugins (below), or include individual files as needed -->
    		<!-- <script src="../node_modules/bootstrap/dist/js/bootstrap.min.js"></script>-->
    		<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
    	</body>
    	</html>