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('\
\
');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);
}
}
}