JimmyZhong (Talk | contribs) |
JimmyZhong (Talk | contribs) |
||
Line 42: | Line 42: | ||
} | } | ||
</style> | </style> | ||
+ | <!-- The following reset code was given by William Kwok from the UW iGEM team --> | ||
+ | <!-- Add on-page javascript for destroying default iGEM CSS and adding a loading animation --> | ||
+ | <!-- I do it twice to run once so the page loading animation gets correct styling the first run --> | ||
+ | <!-- Second run is just to make sure everything gets ran --> | ||
+ | <script type="text/javascript"> | ||
+ | $('div#content').removeAttr('id').attr('id', 'contentBox'); | ||
+ | $('a#top').remove(); | ||
+ | $('div#top_title').remove(); | ||
+ | $('div#HQ_page').removeAttr('id'); | ||
+ | $('div.mw-body').removeAttr('class'); | ||
+ | $('div#mw-content-text').removeAttr('id'); | ||
+ | $('div#bodyContent').removeAttr('id'); | ||
+ | $('div.mw-content-ltr>p').addClass('meta'); | ||
+ | $('div.mw-content-ltr').removeAttr('class'); | ||
+ | document.getElementById("root").innerText = "Page loading..."; | ||
+ | $(document).ready(function () { | ||
+ | $('div#content').removeAttr('id').attr('id', 'contentBox'); | ||
+ | $('a#top').remove(); | ||
+ | $('div#top_title').remove(); | ||
+ | $('div#HQ_page').removeAttr('id'); | ||
+ | $('div.mw-body').removeAttr('class'); | ||
+ | $('div#mw-content-text').removeAttr('id'); | ||
+ | $('div#bodyContent').removeAttr('id'); | ||
+ | $('div.mw-content-ltr>p').addClass('meta'); | ||
+ | $('div.mw-content-ltr').removeAttr('class'); | ||
+ | }) | ||
+ | </script> | ||
<body> | <body> | ||
Revision as of 18:27, 5 August 2018