| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <!doctype html>
- <html lang="en">
- <head>
- <title>[[*longtitle]] | [[++site_name]]</title>
- <base href="[[!++site_url]]" >
- <meta charset="[[++modx_charset]]" >
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" >
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
- <meta name="keywords" content="[[*introtext]]" >
- <meta name="description" content="[[*description]]" >
- [[!Profile]]
-
- <link rel="icon" href="client-assets/images/favicon.ico?v=2" type="image/x-icon" >
-
- <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
- <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous" rel="stylesheet" type="text/css" />
- <link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />
- <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/all.css" integrity="sha256-PF6MatZtiJ8/c9O9HQ8uSUXr++R9KBYu4gbNG5511WE=" crossorigin="anonymous" rel="stylesheet" type="text/css" />
- <link type="text/css" href="/client-assets/weather-icons/css/weather-icons.min.css?version=1.16" rel="stylesheet" type="text/css" />
- <link href="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-popup.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="https://use.fontawesome.com/1e2844bb90.js"></script>
-
- <link href="client-assets/css/dashboard.css" rel="stylesheet" type="text/css" />
- <script src="https://unpkg.com/gijgo@1.9.11/js/gijgo.min.js" type="text/javascript"></script>
- <link href="https://unpkg.com/gijgo@1.9.11/css/gijgo.min.css" rel="stylesheet" type="text/css" />
- <script src="client-assets/js/skycons.js" type="text/javascript"></script>
-
- <link href="client-assets/home/css/graphing.css" rel="stylesheet" type="text/css" media="screen" />
- <link href="client-assets/home/css/alux.min.css" rel="stylesheet" type="text/css" media="screen" />
-
- <script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.3/html2pdf.bundle.min.js" integrity="sha512-YcsIPGdhPK4P/uRW6/sruonlYj+Q7UHWeKfTAkBW+g83NKM+jMJFJ4iAPfSnVp7BKD4dKMHmVSvICUbE/V1sSw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
- <style>
- @media print {
- @page {
- size: A4 portrait;
- }
- @page :left {
- margin-left: 0.5cm;
- }
- @page :right {
- margin-right: 0.5cm;
- }
- @page :top {
- margin-top: 0cm;
- }
- @page :bottom {
- margin-bottom: 0cm;
- }
- }
- </style>
- </head>
- <body>
- <!-- Get Front Page -->
- <!-- Get Graph
- [[!getResources? &resources=`32` &tpl=`graph-page` &includeContent=1]] -->
- <? include_once soil-analysis.php; ?>
- <p></p>
- <!-- Get Report -->
- [[!getResources? &resources=`41` &tpl=@INLINE [[+content]] &includeContent=`1`]] -->
- <? include_once soil-report.php; ?>
- <!-- jQuery first, then Popper.js, then Bootstrap JS -->
- <script type="text/javascript" src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js" integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=" crossorigin="anonymous"></script>
- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
- <script type="text/javascript" src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
- <script type="text/javascript">
- addEventListener("load", function() {
- setTimeout(hideURLbar, 0);
- }, false);
- function hideURLbar(){
- window.scrollTo(0,1);
- }
- </script>
- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.bundle.min.js" integrity="sha384-xrRywqdh3PHs8keKZN+8zzc5TX0GRTLCcmivcbNJWm2rs5C8PRhcEn3czEjhAO9o" crossorigin="anonymous"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.js"></script>
- <script>
- //https://github.com/eKoopmans/html2pdf.js
- $('.downloadPDF').click(function () {
- var element = document.getElementById('content'); //document.createElement("body");
- element.classList.remove('screen');
- element.classList.add('print');
- var opt = {
- margin: 3,
- filename: 'soil-analysis.pdf',
- image: { type: 'jpeg', quality: 1.0 },
- html2canvas: { scale: 2, letterRendering: true, windowWidth: 1024 }, //, windowWidth: 1024
- jsPDF: { orientation: 'portrait', unit: 'mm', format: 'a4', putOnlyUsedFonts: true, floatPrecision: 'smart', }
- };
- html2pdf()
- .from(element)
- .toPdf()
- .set(opt)
- .save()
- .then(function(){
- element.classList.remove('print');
- element.classList.add('screen');
- });
-
- });
- </script>
- </body>
- </html>
|