window.PARTS = { /** 銉戙兗銈 */ write: function (func) { const html = func.toString().split('/*/')[1].trim(); document.write(html); }, /** common header */ header: function () { // /*/ 銆 /*/ 銇枔銇獺TML銈掕杩 this.write(function () { /*/ /*/ }); }, /** dummy header */ dummyHeader: function () { // /*/ 銆 /*/ 銇枔銇獺TML銈掕杩 this.write(function () { /*/ /*/ }); }, /** common footer */ footer: function () { // /*/ 銆 /*/ 銇枔銇獺TML銈掕杩 this.write(function () { /*/ /*/ }); }, }; function parts_aside_service(){ document.write('\
\

銈点兗銉撱偣

\
\ \
\
\ ');menuCurrentSet();} function parts_aside_ir(){ document.write('\
\

鎶曡硣瀹舵儏鍫包/h2>\ \

\ ');menuCurrentSet();} function parts_aside_corporate(){ document.write('\
\

浼佹キ鎯呭牨

\
\

銉戙兗銈姐儷銈般儷銉笺儣

\ \
\

銉戙兗銈姐儷銉涖兗銉儑銈c兂銈般偣

\ \
\
\ ');menuCurrentSet();} //menu current function menuCurrentSet(){ var path = window.location.pathname; console.log(path); var linkmenu = document.getElementsByClassName("p-aside__link"); for (var i = 0; i < linkmenu.length; i++) { var menuhref = linkmenu[i].getAttribute("href"); if(menuhref == path){ linkmenu[i].classList.add("is-current") console.log(path + ':' + menuhref); } } }