forked from tianyueshi/AIroot-JUS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
387 changed files
with
44,921 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{@jscode} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
(function(__NAME__,__DOMAIN__,__APPDOMAIN__){ | ||
{@CLASS_NAME} | ||
var __UP__= window[__NAME__]; | ||
var ____ = {}; | ||
if(__UP__ instanceof HTMLElement){ | ||
____.dom = __UP__; | ||
}else{ | ||
__EXTEND__(____,__UP__); | ||
}; | ||
var _self = $('#' + __NAME__); | ||
{@jscode} | ||
__MODULE_INIT__[__DOMAIN__].push({domain:____,name:____.init,value:__NAME__}); | ||
__MODULE_LIST__[__NAME__] = window[__NAME__] = ____; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<@import value="component.*" /> | ||
<@import value="root.button.*" /> | ||
<@import value="root.*" /> | ||
<vbox width="100%" height="100%"> | ||
<dragpanel width="570" height="34" id="myvbox"> | ||
<style> | ||
body{ | ||
width:100%; | ||
height:100%; | ||
font-size:13px; | ||
overflow:hidden; | ||
box-sizing:border-box; | ||
position:relative; | ||
top:-21px; | ||
background-color:rgba(40,40,40,0.3); | ||
z-index:999; | ||
} | ||
#posi{ | ||
background-color:#ffffff; | ||
box-shadow:0px 2px 8px 2px rgba(0,0,0,0.2); | ||
border-radius:2px 2px 8px 8px; | ||
border-top:3px solid #3785ea; | ||
overflow:hidden; | ||
} | ||
.$show{ | ||
animation:showAlert 0.5s forwards; | ||
} | ||
.$hide{ | ||
animation:hideAlert 0.5s forwards; | ||
} | ||
#alarm{ | ||
left:11px; | ||
top:50%; | ||
margin-top:-15px; | ||
color:#f33131; | ||
width:100px; | ||
height:30px; | ||
line-height:30px; | ||
padding-left:38px; | ||
box-sizing:border-box; | ||
background:url(img/alert.png) no-repeat; | ||
} | ||
#report{ | ||
box-sizing:border-box; | ||
line-height:30px; | ||
text-align:center; | ||
-webkit-user-select:none; | ||
-moz-user-select:none; | ||
-ms-user-select:none; | ||
user-select:none; | ||
} | ||
#sure{ | ||
cursor: pointer; | ||
border-radius:21px; | ||
box-sizing:border-box; | ||
margin-top:-13px; | ||
background-color:#3785ea !important; | ||
color:#fefefe; | ||
text-align:center; | ||
font-size:13px; | ||
font-weight:normal; | ||
position:absolute; | ||
width:88px; | ||
height:35px; | ||
-webkit-user-select:none; | ||
-moz-user-select:none; | ||
-ms-user-select:none; | ||
user-select:none; | ||
} | ||
</style> | ||
<position width="360" height="170" id="posi"> | ||
<div left="0" top="0" width="343" height="32" style="padding-left:17px;line-height:32px;font-size:16px;border-bottom:1px solid #b7c4cf">提示</div> | ||
<div left="30" right="30" top="52" height="50" id="report"> | ||
|
||
</div> | ||
<position bottom="0" width="100%" height="60" style="background-color:#eff4f8"> | ||
<button("#3785ea") left="136" top="26" width="88" height="35" onclick="@this.sure()" id="sure">确定</button> | ||
</position> | ||
</position> | ||
</dragpanel> | ||
<script> | ||
function init(report){ | ||
_self.css("height",window.innerHeight); | ||
_self.click(function(){ | ||
return false; | ||
}); | ||
#report.text(report); | ||
#posi.css("left",window.innerWidth/2-#posi.width()/2); | ||
#posi.addClass("$show"); | ||
$("body").addChild(_self); | ||
} | ||
public function set message(value){ | ||
#report.text(value); | ||
} | ||
public function sure():void{ | ||
#posi.addClass("$hide"); | ||
setTimeout(function(){_self.remove()},500); | ||
__ALERT_FLAG__ = null; | ||
|
||
} | ||
</script> | ||
</vbox> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<!-- 绝对位置路径 --> | ||
<div> | ||
<style> | ||
body{ | ||
position:relative; | ||
} | ||
|
||
body>div{ | ||
position:absolute; | ||
} | ||
</style> | ||
<@content/> | ||
<script> | ||
|
||
function init(){ | ||
|
||
} | ||
|
||
/** | ||
* 对文档进行整理 | ||
*/ | ||
private static function layout(content){ | ||
var obj = content.children("div").not(":hidden"); | ||
var width = content.width(); | ||
var height = content.height(); | ||
var dWidth:int = 0; | ||
var dHeight:int = 0; | ||
var padding:int = 0; | ||
var left:int,right:int,top:int,bottom:int; | ||
obj.each(function(){ | ||
var $this = $(this); | ||
|
||
left = $this.attr("left"); | ||
if(left == undefined){ | ||
left = $this.attr("x"); | ||
if(!left){ | ||
left = 0; | ||
} | ||
} | ||
$this.css("left",left + "px"); | ||
right = $this.attr("right"); | ||
padding = $this.outerWidth(true) - $this.width(); | ||
if(right){ | ||
$this.width(content.width() - right - left - padding); | ||
}else{ | ||
dWidth = $this.attr("width"); | ||
if(dWidth){ | ||
|
||
if(dWidth.lastIndexOf("%") != -1){ | ||
$this.width(width * parseInt(dWidth)/100 - padding); | ||
}else{ | ||
dWidth = parseInt(dWidth); | ||
$this.width(dWidth - padding); | ||
} | ||
} | ||
|
||
|
||
|
||
} | ||
|
||
|
||
|
||
top = $this.attr("top"); | ||
if(!top){ | ||
top = $this.attr("y"); | ||
if(!top){ | ||
top = 0; | ||
} | ||
} | ||
$this.css("top",top + "px"); | ||
bottom = $this.attr("bottom"); | ||
padding = $this.outerHeight(true) - $this.height(); | ||
if(bottom){ | ||
$this.height(content.height() - bottom - right - padding); | ||
}else{ | ||
dHeight = $this.attr("height"); | ||
if(dHeight){ | ||
|
||
if(dHeight.lastIndexOf("%") != -1){ | ||
$this.height(height * parseInt(dHeight)/100 - padding); | ||
}else{ | ||
dHeight = parseInt(dHeight); | ||
$this.height(dHeight - padding); | ||
} | ||
} | ||
} | ||
|
||
}); | ||
|
||
} | ||
|
||
|
||
public function trigger(e){ | ||
layout(_self); | ||
} | ||
</script> | ||
</div> |
Oops, something went wrong.