Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/std-microblock/wm.js

Implement the window in the browser
https://github.com/std-microblock/wm.js

Last synced: 7 days ago
JSON representation

Implement the window in the browser

Awesome Lists containing this project

README

        

# wm.js
Implement the window in the browser!

Example code
```html





body{
background: #414141;
}


var win=new wm.window(),a=0
function foo(){
let win=new wm.window("Wm.js is pretty shit".split(" ")[a++]);
win.setContentNode(wm.toolFuncs.createEle(`<pre style="margin:15px;color:white;">Wm.js is pretty shit!</pre>`))
}
win.setContentNode(wm.toolFuncs.createEle("<div onclick='foo()' style='border-radius:10px;user-select:none;color:white;box-shadow:0px 0px 10px black;padding:10px;margin:10px;background:#343434'>点我增加窗口</div>"))



```
[Result](https://www.bilibili.com/video/BV1M54y1r72o/)