@@ -546,6 +546,59 @@ <h1 id="au3305">AU3305 模式识别导论</h1>
546546
547547
548548
549+ < h2 id ="__comments "> Comments</ h2 >
550+ <!-- Insert generated snippet here -->
551+ < script src ="https://giscus.app/client.js "
552+ data-repo ="kumikosjtu/kumikosjtu.github.io "
553+ data-repo-id ="R_kgDOLE-SBw "
554+ data-category ="Announcements "
555+ data-category-id ="DIC_kwDOLE-SB84CcbeV "
556+ data-mapping ="pathname "
557+ data-strict ="0 "
558+ data-reactions-enabled ="1 "
559+ data-emit-metadata ="0 "
560+ data-input-position ="bottom "
561+ data-theme ="light "
562+ data-lang ="zh-CN "
563+ crossorigin ="anonymous "
564+ async >
565+ </ script >
566+ <!-- Synchronize Giscus theme with palette -->
567+ < script >
568+ var giscus = document . querySelector ( "script[src*=giscus]" )
569+
570+ // Set palette on initial load
571+ var palette = __md_get ( "__palette" )
572+ if ( palette && typeof palette . color === "object" ) {
573+ var theme = palette . color . scheme === "slate"
574+ ? "transparent_dark"
575+ : "light"
576+
577+ // Instruct Giscus to set theme
578+ giscus . setAttribute ( "data-theme" , theme )
579+ }
580+
581+ // Register event handlers after documented loaded
582+ document . addEventListener ( "DOMContentLoaded" , function ( ) {
583+ var ref = document . querySelector ( "[data-md-component=palette]" )
584+ ref . addEventListener ( "change" , function ( ) {
585+ var palette = __md_get ( "__palette" )
586+ if ( palette && typeof palette . color === "object" ) {
587+ var theme = palette . color . scheme === "slate"
588+ ? "transparent_dark"
589+ : "light"
590+
591+ // Instruct Giscus to change theme
592+ var frame = document . querySelector ( ".giscus-frame" )
593+ frame . contentWindow . postMessage (
594+ { giscus : { setConfig : { theme } } } ,
595+ "https://giscus.app"
596+ )
597+ }
598+ } )
599+ } )
600+ </ script >
601+
549602
550603 </ article >
551604 </ div >
0 commit comments