魑魅魍魎
code:script.js
function 魑魅魍魎を闊歩させる(){
let 魑魅魍魎 = document.createElement('div');
魑魅魍魎.id="魑魅魍魎";
魑魅魍魎.innerHTML = `魑魅魍魎
<style>
position:fixed;
bottom:0;
left:0;
animation: 2s linear 0s infinite alternate 闊歩;
font-size:32px;
background:#fff;
z-index: 400;
}
@keyframes 闊歩{
0%{
left:0%;
}
100%{
left:calc(100% - 4em);
}
}
</style>
`;
// 魑魅魍魎.attachShadow({mode: 'open'});
document.body.append(魑魅魍魎);
setTimeout(()=>{魑魅魍魎.remove()},2000);
}
scrapbox.PageMenu.addMenu({
title: '魑魅魍魎が闊歩',
// ID衝突を回避
onClick: 魑魅魍魎を闊歩させる,
});