forked from wingman007/fmi
-
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
1 parent
54fc03d
commit 6afb7a8
Showing
4 changed files
with
56 additions
and
56 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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
require(["dojo/ready", "dijit/layout/AccordionContainer", "dijit/layout/ContentPane"], function(ready, AccordionContainer, ContentPane){ | ||
ready(function(){ | ||
var aContainer = new AccordionContainer({style:"height: 300px"}, "markup"); | ||
aContainer.addChild(new ContentPane({ | ||
title: "This is a content pane", | ||
content: "Hi!" | ||
})); | ||
aContainer.addChild(new ContentPane({ | ||
title:"This is as well", | ||
content:"Hi how are you?" | ||
})); | ||
aContainer.addChild(new ContentPane({ | ||
title:"This too", | ||
content:"Hello im fine.. thnx" | ||
})); | ||
aContainer.startup(); | ||
}); | ||
require(["dojo/ready", "dijit/layout/AccordionContainer", "dijit/layout/ContentPane"], function(ready, AccordionContainer, ContentPane){ | ||
ready(function(){ | ||
var aContainer = new AccordionContainer({style:"height: 300px"}, "markup"); | ||
aContainer.addChild(new ContentPane({ | ||
title: "This is a content pane", | ||
content: "Hi!" | ||
})); | ||
aContainer.addChild(new ContentPane({ | ||
title:"This is as well", | ||
content:"Hi how are you?" | ||
})); | ||
aContainer.addChild(new ContentPane({ | ||
title:"This too", | ||
content:"Hello im fine.. thnx" | ||
})); | ||
aContainer.startup(); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
require(["dojo/dom", "dojo/domReady!"], function(dom){ | ||
dom.byId("myDiv").innerHTML = "Hello New World!"; | ||
}); | ||
|
||
require(["dojo/dom", "dojo/string", "dojo/domReady!"], function(dom, string){ | ||
dom.byId("someNode").innerHTML = string.trim(" I Like Trim Strings "); | ||
}); | ||
|
||
require(["dojo/dom", "dojo/fx", "dojo/domReady!"], function(dom, fx){ | ||
// The piece we had before... | ||
var greeting = dom.byId("greeting"); | ||
greeting.innerHTML += " from Dojo!"; | ||
// ...but now, with an animation! | ||
fx.slideTo({ | ||
top: 100, | ||
left: 200, | ||
node: greeting | ||
}).play(); | ||
require(["dojo/dom", "dojo/domReady!"], function(dom){ | ||
dom.byId("myDiv").innerHTML = "Hello New World!"; | ||
}); | ||
|
||
require(["dojo/dom", "dojo/string", "dojo/domReady!"], function(dom, string){ | ||
dom.byId("someNode").innerHTML = string.trim(" I Like Trim Strings "); | ||
}); | ||
|
||
require(["dojo/dom", "dojo/fx", "dojo/domReady!"], function(dom, fx){ | ||
// The piece we had before... | ||
var greeting = dom.byId("greeting"); | ||
greeting.innerHTML += " from Dojo!"; | ||
// ...but now, with an animation! | ||
fx.slideTo({ | ||
top: 100, | ||
left: 200, | ||
node: greeting | ||
}).play(); | ||
}); |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
require(["dojo/dom", "dojo/domReady!"], function(dom){ | ||
dom.byId("myDiv").innerHTML = "Hello New World!"; | ||
require(["dojo/dom", "dojo/domReady!"], function(dom){ | ||
dom.byId("myDiv").innerHTML = "Hello New World!"; | ||
}); |
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
/* | ||
(function(){ | ||
window.onload = function(e){ | ||
var divs = $("div"); | ||
// alert(divs[0]); | ||
$("p.details").css("background-color", "yellow").show("fast"); | ||
}; | ||
})(); | ||
*/ | ||
|
||
$(function(){ | ||
var divs = $("div"); | ||
alert(divs[0]); | ||
$("p.details").css("background-color", "yellow").show("fast"); | ||
$("p.details").text('Changed by jQuery'); | ||
}); | ||
|
||
// var jQuery = function(){}; | ||
// var $ = jQuery; | ||
/* | ||
(function(){ | ||
window.onload = function(e){ | ||
var divs = $("div"); | ||
// alert(divs[0]); | ||
$("p.details").css("background-color", "yellow").show("fast"); | ||
}; | ||
})(); | ||
*/ | ||
|
||
$(function(){ | ||
var divs = $("div"); | ||
alert(divs[0]); | ||
$("p.details").css("background-color", "yellow").show("fast"); | ||
$("p.details").text('Changed by jQuery'); | ||
}); | ||
|
||
// var jQuery = function(){}; | ||
// var $ = jQuery; |