This repository has been archived by the owner on Feb 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
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
14 changed files
with
205 additions
and
55 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,44 @@ | ||
<!doctype html> | ||
<html id="html"> | ||
<head> | ||
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/> | ||
<meta name="viewport" | ||
content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/> | ||
<meta name="apple-mobile-web-app-capable" content="yes"/> | ||
|
||
<title>Switch samples</title> | ||
|
||
<script type="text/javascript" src="../../requirejs/require.js"></script> | ||
|
||
<script type="text/javascript"> | ||
require.config({ | ||
baseUrl: "../.." | ||
}); | ||
</script> | ||
|
||
|
||
<script type="text/javascript"> | ||
require(["deliteful-build/layer"], function(){ | ||
require([ | ||
"delite/register", | ||
"deliteful/Checkbox", | ||
"delite/theme!delite/themes/{{theme}}/global.css", // page level CSS | ||
"requirejs-domready/domReady!" | ||
], function (register, Checkbox) { | ||
register.parse(); | ||
}); | ||
|
||
}); | ||
</script> | ||
</head> | ||
<style> | ||
</style> | ||
<body> | ||
<label> | ||
<d-checkbox name="options" checked="true"></d-checkbox> | ||
Option 1 | ||
</label> | ||
<d-checkbox name="options" id="option2"></d-checkbox> | ||
<label for="option2"> Option 2 </label> | ||
</body> | ||
</html> |
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
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
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,93 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta name="viewport" | ||
content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/> | ||
<meta name="apple-mobile-web-app-capable" content="yes"/> | ||
<title>Swap View</title> | ||
|
||
<script type="text/javascript" src="../../requirejs/require.js"></script> | ||
|
||
<script type="text/javascript"> | ||
require.config({ | ||
baseUrl: "../.." | ||
}); | ||
</script> | ||
|
||
<script type="text/javascript"> | ||
require(["deliteful-build/layer"], function(){ | ||
require([ | ||
"delite/register", "deliteful/SwapView", "deliteful/ViewIndicator", "deliteful/Button", | ||
"delite/theme!delite/themes/{{theme}}/global.css", // page level CSS | ||
"requirejs-domready/domReady!" | ||
], function (register) { | ||
register.parse(); | ||
|
||
var handle = function (event) { | ||
console.log(event.type + ": " + event.dest); | ||
}; | ||
// Listen for delite/DisplayContainer events | ||
vs.on("delite-display-load", handle); | ||
vs.on("delite-before-show", handle); | ||
vs.on("delite-after-show", handle); | ||
vs.on("delite-before-hide", handle); | ||
vs.on("delite-after-hide", handle); | ||
|
||
document.body.style.display = ""; | ||
}); | ||
|
||
|
||
}); | ||
</script> | ||
|
||
<style> | ||
|
||
body { | ||
background-color: #eeeeee; | ||
} | ||
|
||
button { | ||
width: 10em; | ||
} | ||
|
||
#vs > div { | ||
font-size: 20px; | ||
font-family: Helvetica; | ||
text-align: center; | ||
font-weight: bold; | ||
} | ||
|
||
#vs { | ||
width: 50%; | ||
height: 300px; | ||
border: 2px solid gold | ||
} | ||
|
||
#vi { | ||
width: 50%; | ||
} | ||
</style> | ||
</head> | ||
<body style="display: none; margin:2em;"> | ||
<button is="d-button" onclick="vs.showPrevious({reverse:true});">Previous</button> | ||
<button is="d-button" onclick="vs.showNext();">Next</button> | ||
<br> | ||
<d-swap-view id="vs" selectedChildId="bbb"> | ||
<div style="background-color: honeydew; " id="aaa"> | ||
<h1>View 1</h1> | ||
</div> | ||
<div style="background-color: whitesmoke;" id="bbb"> | ||
<h1>View 2</h1> | ||
</div> | ||
<div style="background-color: powderblue;" id=ccc> | ||
<h1>View 3</h1> | ||
</div> | ||
<div style="background-color: oldlace;" id="ddd"> | ||
<h1>View 4</h1> | ||
</div> | ||
</d-swap-view> | ||
<d-view-indicator id="vi" viewstack="vs"></d-view-indicator> | ||
<br> | ||
|
||
</body> | ||
</html> |
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 |
---|---|---|
|
@@ -33,7 +33,6 @@ | |
list.store.add({label: "Item #" + i}); | ||
} | ||
list.startup(); | ||
|
||
document.body.style.display = ""; | ||
}); | ||
|
||
|
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
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
Large diffs are not rendered by default.
Oops, something went wrong.