PRINT G1Card for LOGIN/LOGOUT

This commit is contained in:
fred 2023-09-08 01:22:41 +02:00
parent 2c94b442e5
commit 6963bdc84d
1 changed files with 11 additions and 6 deletions

View File

@ -250,7 +250,8 @@ echo "<html>
cursor: pointer; cursor: pointer;
} }
</style> </style>
</head><body> <button id='printButton'>Print</button> </head><body>
<button id='printButton'>Print</button>
<h1>U U Planet ID registration : $LAT/$LON </h1> <h1>U U Planet ID registration : $LAT/$LON </h1>
<h2>${EMAIL}</h2> <h2>${EMAIL}</h2>
<br> <img width='300' height='300' src='Umap.jpg' alt='UPlanet map Image' \><img width='300' height='300' src='Usat.jpg' alt='UPlanet sat Image' \> <br> <img width='300' height='300' src='Umap.jpg' alt='UPlanet map Image' \><img width='300' height='300' src='Usat.jpg' alt='UPlanet sat Image' \>
@ -264,11 +265,9 @@ echo "<html>
<br> <img src=G1Card.${EMAIL}.jpg alt='Umap G1Card' \> <br> <img src=G1Card.${EMAIL}.jpg alt='Umap G1Card' \>
<br> <br>
<script> <script>
// Function to print the page
function printPage() { function printPage() {
window.print(); window.print();
} }
// Add click event listener to the print button
document.getElementById('printButton').addEventListener('click', printPage); document.getElementById('printButton').addEventListener('click', printPage);
</script> </script>
@ -350,9 +349,15 @@ echo "$HTTPCORS
</style> </style>
</head><body> </head><body>
<h1>UPlanet Registration</h1> <h1>UPlanet Registration</h1>
<br><h2>${EMAIL}<br> your TW PASS is <br> <br><h2>${EMAIL}<br> your TW PASS is <br></h2>
<bold>${NPASS}</bold></h2> <h1>${NPASS}</h1>
<button id='printButton'>Print</button>
<script>
function printPage() {
window.print();
}
document.getElementById('printButton').addEventListener('click', printPage);
</script>
---<br> ---<br>
TELEPORTATION TELEPORTATION
<br>in <br>in