resultados.html 2.97 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 onload="generateDivTree( {{ data }} )">-->
<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['freno'][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['freno'][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['freno'][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['freno'][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['gases']['co'], data['gases']['hc'], data['humos']['med']) }}
		</div>
		<!-- Gases y Humos -->

		<br>
	</div>

	<div class="PDFButtonContainer">
		<button class="PDFButton" onclick="divToPDF(document.getElementById('pdf'))">
			Convertir a PDF
		</button>
	</div>
</body>
</html>