From de9fed9b806debf090194a74fccad07fa940cdff Mon Sep 17 00:00:00 2001 From: Zhefu Li <zf-li23@mails.tsinghua.edu.cn> Date: Tue, 1 Oct 2024 17:16:51 +0000 Subject: [PATCH] Update attributions.html --- wiki/pages/attributions.html | 116 ++++++++++++++++++++--------------- 1 file changed, 65 insertions(+), 51 deletions(-) diff --git a/wiki/pages/attributions.html b/wiki/pages/attributions.html index bc837c77..5bb10c39 100644 --- a/wiki/pages/attributions.html +++ b/wiki/pages/attributions.html @@ -1,61 +1,75 @@ <!DOCTYPE html> <html lang="en"> + <head> - <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <link rel="icon" type="image/x-icon" href="https://static.igem.wiki/teams/5187/art/icon.png"> - <title>Attributions | Tsinghua - IGEM 2024</title> - <style> - body { - font-family: Calibri, sans-serif; - line-height: 1.6; - margin: 0; - padding: 0; - } - .content { - padding: 20px; - max-width: 1500px; - margin: 0 auto; - } - h2 { - scroll-margin-top: 60px; - } - .row.mt-4 { - margin-right: 130px; - margin-left: 110px; - } - - </style> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link rel="icon" type="image/x-icon" href="https://static.igem.wiki/teams/5187/art/icon.png"> + <title>Attributions | Tsinghua - IGEM 2024</title> + <style> + body { + font-family: Calibri, sans-serif; + line-height: 1.6; + margin: 0; + padding: 0; + } + + .content { + padding: 20px; + max-width: 1500px; + margin: 0 auto; + } + + h2 { + scroll-margin-top: 60px; + } + + .row.mt-4 { + margin-right: 130px; + margin-left: 110px; + } + </style> </head> + <body> - {% extends "layout.html" %} - - {% block title %}Attributions{% endblock %} - - {% block page_content %} - - <div class="progress-container"> - <svg class="progress-bar-circle" width="60" height="60"> - <circle class="progress-circle" cx="30" cy="30" r="25" stroke-width="5" fill="transparent"></circle> - </svg> - <div class="progress-text">0%</div> - </div> - - <div class="row mt-4"> - <div class="col-lg-12"> - <script type="text/javascript"> - - </script> - <iframe - style="width: 100%" - id="igem-attribution-form" - src="https://teams.igem.org/wiki/5187/attributions" - > - </iframe> + {% extends "layout.html" %} + + {% block title %}Attributions{% endblock %} + + {% block page_content %} + + <div class="progress-container"> + <svg class="progress-bar-circle" width="60" height="60"> + <circle class="progress-circle" cx="30" cy="30" r="25" stroke-width="5" fill="transparent"></circle> + </svg> + <div class="progress-text">0%</div> + </div> + + <div class="row mt-4"> + <div class="col-lg-12"> + <script type="text/javascript"> + + </script> + <script type="text/javascript"> + window.onload = function () { + var iframe = document.getElementById('igem-attribution-form'); + iframe.onload = function () { + try { + var bHeight = iframe.contentWindow.document.body.scrollHeight; + var dHeight = iframe.contentWindow.document.documentElement.scrollHeight; + var height = Math.max(bHeight, dHeight); + iframe.height = height; + } catch (ex) { } + }; + }; + </script> + <iframe style="width: 100%" id="igem-attribution-form" src="https://teams.igem.org/wiki/5187/attributions"> + </iframe> + </div> + </div> </div> - </div> -</div> </body> + </html> {% endblock %} \ No newline at end of file -- GitLab