Score
0
Watch 5 Star 9 Fork 3

RockYang / JWindow-webos云桌面插件JavaScript

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
javascript webOS 窗口和任务栏管理工具 spread retract

Clone or download
demo.html 1.48 KB
Copy Edit Web IDE Raw Blame History
RockYang authored 2017-08-18 11:32 . docs: 添加 README 文件
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JWindow插件测试</title>
<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link href="src/css/JWindow.css" rel="stylesheet" type="text/css" />
<style>
body {background:url(img/bg_1.jpg) repeat;}
</style>
</head>
<body>
<div class="container" style="text-align: center; padding-top: 10px;">
<button onclick="addWindow();" class="btn btn-primary btn-lg">添加任务</button>
</div>
<div id="testdiv" style="display:none">
<h4>
GIT项目地址: <a href="https://git.oschina.net/blackfox/JWindow">https://git.oschina.net/blackfox/JWindow</a>
</h4>
</div>
<!--<iframe width="100%" scrolling="no" frameborder="0" src="http://www.baidu.com" style="background-color: transparent; height: 619px;"></iframe>-->
<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<script language="javascript" src="src/js/JWindow.js" ></script>
<script language="javascript">
function addWindow() {
//窗体配置
var config = {
helper : 'resize_helper',
title : '测试窗口',
content : document.getElementById('testdiv').innerHTML,
skin : 'default',
width : 80,
height :80,
task_title : "test task",
desk_id : 1,
icon_src : 'img/mid.png'
};
var _t = new Task(config);
JTaskBar.addTask(_t);
}
//addWindow();
</script>
</body>
</html>

Comment ( 0 )

Sign in for post a comment

JavaScript
1
https://gitee.com/blackfox/JWindow.git
git@gitee.com:blackfox/JWindow.git
blackfox
JWindow
JWindow-webos云桌面插件
master

Help Search