in example pages, allow for setting theme from outside the iframe
This commit is contained in:
parent
0148701372
commit
0f4d72c1da
14 changed files with 52 additions and 50 deletions
|
|
@ -6,11 +6,6 @@
|
|||
position: absolute;
|
||||
left: 224px;
|
||||
}
|
||||
#switch {
|
||||
position: absolute;
|
||||
left: 16px;
|
||||
top: 144px;
|
||||
}
|
||||
|
||||
#label0, #progress0 {
|
||||
top: 16px;
|
||||
|
|
|
|||
|
|
@ -3,10 +3,11 @@
|
|||
<head>
|
||||
<title>Progress</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<link rel="shortcut icon" type="image/png" href="../../source/Ox.UI/png/icon16.png"/>
|
||||
<link rel="shortcut icon" type="image/png" href="../../source/Ox.UI/themes/classic/png/icon16.png"/>
|
||||
<link rel="stylesheet" type="text/css" href="css/example.css"/>
|
||||
<script type="text/javascript" src="../../dev/Ox.js"></script>
|
||||
<script type="text/javascript" src="js/example.js"></script>
|
||||
<script>window.addEventListener('message', function(e) { eval(e.data); });</script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -117,17 +117,6 @@ Ox.load('UI', function() {
|
|||
.appendTo($status),
|
||||
$remaining = Ox.$('<div>')
|
||||
.appendTo($status),
|
||||
$button = Ox.Button({
|
||||
title: 'Switch Theme',
|
||||
width: labelWidth
|
||||
})
|
||||
.attr({id: 'switch'})
|
||||
.bindEvent({
|
||||
click: function() {
|
||||
Ox.Theme(Ox.Theme() == 'classic' ? 'modern' : 'classic');
|
||||
}
|
||||
})
|
||||
.appendTo(Ox.$body);
|
||||
cancelled = false,
|
||||
paused = false,
|
||||
progress = 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue