resultados.html 3 KB
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.2/jspdf.min.js"></script>
	<script src="{{ url_for('static', filename = 'src/div.js') }}"></script>
	<script src="{{ url_for('static', filename = 'src/getters.js') }}"></script>
	<script src="{{ url_for('static', filename = 'src/convert.js') }}"></script>
	<link rel="stylesheet" href="{{ url_for('static', filename = 'styles/general.css') }}">
	<!--INCLUIMOS LA FUENTE-->
	<link rel="stylesheet" media="screen" href="https://fontlibrary.org/face/cmu-typewriter" type="text/css" />
	<title>Pruebas de Alineamiento</title>
</head>
<body>
	<div id = "pdf">
		
		<!-- Header -->
		<div class="TableContainer">
			{% from "functions.html" import header %}

			{{ header(data['dominio'],data['fecha']) }}
		</div>
		<!-- Header -->

		<br>
		
		<!-- Alineador -->
		<div class="TableContainer">
			{% from "functions.html" import alineador %}
			
			{{ alineador(data['alineador']['eje_delan']) }}
		</div>
		<!-- Alineador -->

		<br>

		<!-- Suspensión -->
		<div class="TableContainer">
			{% from "functions.html" import suspension %}

			{% set susp = data['suspension'][0] %}
			{{ suspension(1, susp['ren_izq'], susp['peso'], susp['ren_der']) }}
			
			{% set susp = data['suspension'][1] %}
			{{ suspension(2, susp['ren_izq'], susp['peso'], susp['ren_der']) }}
		</div>
		<!-- Suspensión -->
		
		<br>

		<!-- Frenos -->
		<div class="TableContainer">
			{% from "functions.html" import frenos %}

			{% set freno = data['frenos'][0] %}
			{{ frenos(1,freno['f_izq'],freno['res_izq'],freno['ov_izq'],freno['peso'],freno['f_der'],freno['res_der'],freno['ov_der']) }}
			
			{% set freno = data['frenos'][1] %}
			{{ frenos(2,freno['f_izq'],freno['res_izq'],freno['ov_izq'],freno['peso'],freno['f_der'],freno['res_der'],freno['ov_der']) }}
			
			{% set freno = data['frenos'][2] %}
			{{ frenos(3,freno['f_izq'],freno['res_izq'],freno['ov_izq'],freno['peso'],freno['f_der'],freno['res_der'],freno['ov_der']) }}
			
			{% set freno = data['frenos'][3] %}
			{{ frenos(4,freno['f_izq'],freno['res_izq'],freno['ov_izq'],freno['peso'],freno['f_der'],freno['res_der'],freno['ov_der']) }}
		</div>
		<!-- Frenos -->
		
		<br>

		<!-- Frenos Trasero -->
		<div class="TableContainer">
			{% from "functions.html" import trasero %}
			{{ trasero(data['trasero']['f_izq'], data['trasero']['f_der']) }}
		</div>
		<!-- Frenos Trasero -->

		<br>

		<!-- Gases y Humos -->
		<div class="TableContainer">
			{% from "functions.html" import gaseshumos %}
			{{ gaseshumos(data['gaseshumos']['co'], data['gaseshumos']['hc'], data['gaseshumos']['med']) }}
		</div>
		<!-- Gases y Humos -->

		<br>
	</div>

	<div class="PDFButtonContainer">
		<button class="PDFButton" onclick=
			"window.open(compile(generateDivTree( {{ data }} ), new jsPDF('portrait', 'pt', 'a4')).output('bloburl'))";
		>
			Convertir a PDF
		</button>
	</div>
</body>
</html>