5 Unstar Star 10 Fork 4

RockYang / JWindow-webos云桌面插件

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
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://git.oschina.net/blackfox/JWindow.git
git@git.oschina.net:blackfox/JWindow.git
blackfox
JWindow
JWindow-webos云桌面插件
master

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542