Initial commit: AIFO official portal web.

Add static site, shared layout, and Node dev server with standard .gitignore.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-30 15:29:50 +08:00
commit 4d30803b60
1154 changed files with 184340 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
"use strict";
$(document).ready(function() {
// Plugins init
$(".highlight")[0] && hljs.initHighlightingOnLoad();
// Copy code blocks to clipboard
$("figure.highlight, div.highlight").each(function() {
var t = '<div class="code-clipboard"><button class="btn-clipboard" title="Copy to clipboard">Copy</button></div>';
$(this).before(t);
$(".btn-clipboard").tooltip().on("mouseleave", function() {
$(this).tooltip("hide")
});
});
var t = new Clipboard(".btn-clipboard", {
target: function(e) {
return e.parentNode.nextElementSibling
}
});
t.on("success", function(t) {
e(t.trigger).attr("title", "Copied!").tooltip("_fixTitle").tooltip("show").attr("title", "Copy to clipboard").tooltip("_fixTitle");
t.clearSelection()
});
t.on("error", function(t) {
var n = /Mac/i.test(navigator.userAgent) ? "⌘" : "Ctrl-";
var r = "Press " + n + "C to copy";
e(t.trigger).attr("title", r).tooltip("_fixTitle").tooltip("show").attr("title", "Copy to clipboard").tooltip("_fixTitle")
});
});