mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-21 14:35:21 -04:00
106 lines
4 KiB
Diff
106 lines
4 KiB
Diff
diff --git a/index.html b/index.html
|
|
index c5a383383..bf9896df5 100644
|
|
--- a/index.html
|
|
+++ b/index.html
|
|
@@ -10,11 +10,77 @@
|
|
<link rel="canonical" href="https://nwchemgit.github.io/index.html">
|
|
<link rel="shortcut icon" href="img/favicon.ico">
|
|
<title>NWChem Website - NWChem</title>
|
|
- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700" />
|
|
+<!-- JSON-LD markup generated by Google Structured Data Markup Helper. -->
|
|
+<script type="application/ld+json">
|
|
+{
|
|
+ "@context" : "http://schema.org",
|
|
+ "@type" : "SoftwareApplication",
|
|
+ "name" : "NWChem",
|
|
+ "image" : "https://nwchemgit.github.io/header.webp",
|
|
+ "url" : "https://nwchemgit.github.io/",
|
|
+ "publisher" : {
|
|
+ "@type" : "Organization",
|
|
+ "name" : "EMSL"
|
|
+ },
|
|
+ "applicationCategory" : "computational chemistry",
|
|
+ "downloadUrl" : "https://nwchemgit.github.io/Download.html",
|
|
+ "softwareVersion" : "7.0.2"
|
|
+}
|
|
+</script>
|
|
+<script>
|
|
+function load_theme(){
|
|
+var DOMTokenListSupports = function(tokenList, token) {
|
|
+ if (!tokenList || !tokenList.supports) {
|
|
+ return;
|
|
+ }
|
|
+ try {
|
|
+ return tokenList.supports(token);
|
|
+ } catch (e) {
|
|
+ if (e instanceof TypeError) {
|
|
+ console.log("The DOMTokenList doesn't have a supported tokens list");
|
|
+ } else {
|
|
+ console.error("That shouldn't have happened");
|
|
+ }
|
|
+ }
|
|
+};
|
|
|
|
- <link rel="stylesheet" href="css/theme.css" />
|
|
- <link rel="stylesheet" href="css/theme_extra.css" />
|
|
-
|
|
+var linkSupportsPreload = DOMTokenListSupports(document.createElement("link").relList, "preload");
|
|
+// if((navigator.userAgent.toLowerCase("chrome") > -1) && (!linkSupportsPreload)){
|
|
+ if(linkSupportsPreload){
|
|
+ // Dynamically load the things that relied on preload.
|
|
+ console.log(" @@@@ PRELOADING @@@ ");
|
|
+ var fileref1=document.createElement("link")
|
|
+ fileref1.setAttribute("rel", "preload")
|
|
+ fileref1.setAttribute("as", "style")
|
|
+ fileref1.setAttribute("onload", "this.rel = \'stylesheet\'")
|
|
+ fileref1.setAttribute("href", "https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700" )
|
|
+ var fileref3=document.createElement("link")
|
|
+ fileref3.setAttribute("rel", "preload")
|
|
+ fileref3.setAttribute("as", "style")
|
|
+ fileref3.setAttribute("onload", "this.rel = \'stylesheet\'")
|
|
+ fileref3.setAttribute("href", "css/theme_extra.css")
|
|
+}else{
|
|
+ console.log("@@@@ NOT PRELOADING @@@ ");
|
|
+ var fileref1=document.createElement("link")
|
|
+ fileref1.setAttribute("rel", "stylesheet")
|
|
+ fileref1.setAttribute("href", "https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700")
|
|
+ var fileref3=document.createElement("link")
|
|
+ fileref3.setAttribute("rel", "stylesheet")
|
|
+ fileref3.setAttribute("href", "css/theme_extra.css")
|
|
+}
|
|
+ if (typeof fileref1!="undefined")
|
|
+ document.body.appendChild(fileref1)
|
|
+ if (typeof fileref3!="undefined")
|
|
+ document.body.appendChild(fileref3)
|
|
+}
|
|
+</script>
|
|
+<link rel="preload" href="fonts/Lato/lato-regular.woff2" as="font" type="font/woff2" crossorigin>
|
|
+<link rel="preload" href="fonts/Lato/lato-bold.woff2" as="font" type="font/woff2" crossorigin>
|
|
+<link rel="preload" href="fonts/Lato/lato-italic.woff2" as="font" type="font/woff2" crossorigin>
|
|
+<link rel="stylesheet" href="css/theme.css" />
|
|
+<link rel="preload" href="fonts/fontawesome-webfont.woff2?v=4.7.0" as="font" type="font/woff2" crossorigin>
|
|
+<link rel="preload" href="fonts/RobotoSlab/roboto-slab-v7-bold.woff2" as="font" type="font/woff2" crossorigin>
|
|
+<link rel="preload" href="fonts/RobotoSlab/roboto-slab-v7-regular.woff2" as="font" type="font/woff2" crossorigin>
|
|
<script>
|
|
// Current page data
|
|
var mkdocs_page_name = "NWChem Website";
|
|
@@ -26,7 +92,10 @@
|
|
|
|
</head>
|
|
|
|
-<body class="wy-body-for-nav" role="document">
|
|
+ <body class="wy-body-for-nav" role="document">
|
|
+ <script>
|
|
+ load_theme();
|
|
+ </script>
|
|
|
|
<div class="wy-grid-for-nav">
|
|
|
|
@@ -257,5 +326,7 @@ DOI: <a href="http://dx.doi.org/10.1063/5.0004997">10.1063/5.0004997</a> </p>
|
|
};
|
|
</script>
|
|
|
|
+
|
|
+
|
|
</body>
|
|
</html>
|