Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/std-microblock/wm.js
- Owner: std-microblock
- License: mit
- Created: 2020-10-30T18:43:53.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-22T21:07:35.000Z (about 3 years ago)
- Last Synced: 2024-09-22T18:02:44.570Z (about 1 month ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/)