// ----------------------------------------------------------- // Called from: hdfBanner // ----------------------------------------------------------- function hdfWelcome(registry) { console.log("hdfWelcome registry: ", registry); if (registry.byId("hdmMainWelcomePane")) { var welcomePane = registry.byId("hdmMainWelcomePane"); registry.byId("hdmMainTabContainer").removeChild(welcomePane); welcomePane.destroyRecursive(false); return; } hdfWelcomeNew(registry); return; } // ----------------------------------------------------------- // hdfWelcomeNew: // ----------------------------------------------------------- function hdfWelcomeNew(registry) { require(["dojo/ready", "dijit/layout/ContentPane", "dojo/dom", "dojo/dom-construct","dojo/dom-style"], function(ready, ContentPane, dom, domConstruct, domStyle){ var welcomeDomNodeId = "hdmMainWelcomePane"; var tabdepth = registry.byId("hdmMainTabContainer").getChildren().length; var welcomePane = new ContentPane({ id: welcomeDomNodeId, title: "Welcome", closable: true }); welcomePane.domNode.id = welcomeDomNodeId; registry.byId("hdmMainTabContainer").addChild(welcomePane, tabdepth); registry.byId("hdmMainTabContainer").selectChild(welcomePane); hdfWelcomeTop(registry,welcomePane); //hdfWelcomeLeft(registry,welcomePane); //hdfWelcomeCenter(registry,welcomePane); //hdfWelcomeRight(registry,welcomePane); }); return; } // ----------------------------------------------------------- // hdfWelcomeTop: // ----------------------------------------------------------- function hdfWelcomeTop(registry, welcomePane) { require(["dojo/ready", "dijit/layout/ContentPane", "dojo/dom", "dojo/dom-construct"], function(ready, ContentPane, dom, domConstruct){ var topDomNodeId = welcomePane.domNode.id + "_top"; var topDomNode = domConstruct.create("div", {id: topDomNodeId}); //domConstruct.place(toolbarDomNode, dom.byId(mainTabDomNodeId)); var topPane = new ContentPane({ id: topDomNodeId, style: "height: 98%; width: 100%; " + //"background-image: url(../../../img/Hugmar/Image-20140413.png); " + "background-image: url(../../../img/SS/bg5.jpg); " + "background-repeat: no-repeat; background-position: center;", content: "" }, topDomNode); welcomePane.addChild(topPane); }); return; } // ----------------------------------------------------------- // hdfWelcomeLeft: // ----------------------------------------------------------- function hdfWelcomeLeft(registry, welcomePane) { require(["dojo/ready", "dijit/layout/ContentPane", "dojo/dom", "dojo/dom-construct"], function(ready, ContentPane, dom, domConstruct){ var leftDomNodeId = welcomePane.domNode.id + "_left"; var leftDomNode = domConstruct.create("div", {id: leftDomNodeId}); //domConstruct.place(toolbarDomNode, dom.byId(mainTabDomNodeId)); var leftPane = new ContentPane({ id: leftDomNodeId, style: "height: 88%; width: 33%; float: left", content: " " }, leftDomNode); welcomePane.addChild(leftPane); hdfWelcomeLeft1(leftPane); }); return; } // ----------------------------------------------------------- // hdfWelcomeLeft1: // ----------------------------------------------------------- function hdfWelcomeLeft1(leftPane) { require(["dojo/dom", "dojo/dom-construct", "dojo/domReady!"], function(dom, domConstruct){ var heading = domConstruct.toDom("
Hugmar Framework is an IBM i Integrated Language Environment (ILE), " + "cloud enabled programming methodology tool for state of the art open-source " + "Web Development Tools using industry accepted web standards.
"; var domText = domConstruct.toDom(fragment); domConstruct.place(heading, leftPane.domNode); domConstruct.place(domText, leftPane.domNode); // Architecture var heading = domConstruct.toDom("
";
var domImage = domConstruct.toDom(image);
domConstruct.place(domImage, centerPane.domNode);
var text = "Throstur Gudmundsson is the founder of Hugmar Enterprises Inc, ...
"; var domText = domConstruct.toDom(text); domConstruct.place(domText, centerPane.domNode); }); return; } // ----------------------------------------------------------- // hdfWelcomeRight: // ----------------------------------------------------------- function hdfWelcomeRight(registry, welcomePane) { require(["dojo/ready", "dijit/layout/ContentPane", "dojo/dom", "dojo/dom-construct"], function(ready, ContentPane, dom, domConstruct){ var rightDomNodeId = welcomePane.domNode.id + "_right"; var rightDomNode = domConstruct.create("div", {id: rightDomNodeId}); //domConstruct.place(toolbarDomNode, dom.byId(mainTabDomNodeId)); var rightPane = new ContentPane({ id: rightDomNodeId, style: "height: 88%; width: 33%; float: right", content: " " }, rightDomNode); welcomePane.addChild(rightPane); hdfWelcomeRight1(rightPane); }); return; } // ----------------------------------------------------------- // hdfWelcomeRight1: // ----------------------------------------------------------- function hdfWelcomeRight1(rightPane) { require(["dojo/dom", "dojo/dom-construct", "dojo/domReady!"], function(dom, domConstruct){ // Profiles var heading = domConstruct.toDom("
";
var domImage = domConstruct.toDom(image);
domConstruct.place(domImage, rightPane.domNode);
var text = "Throstur Gudmundsson is the founder of Hugmar Enterprises Inc, " + "that specializes in software products and consulting for the IBM i. " + "He is the designer and lead developer of all the Hugmar products. " + "He has keen interest in development methodologies, " + "and especially how they apply to the IBM i and Open-Source. " + "From the early days of SAA-CUA all the way to the modern browser, " + "Throstur has successfully developed and implemented tools to make DB2 " + "based software better and more efficient.
"; var domText = domConstruct.toDom(text); domConstruct.place(domText, rightPane.domNode); // Technologies var heading = domConstruct.toDom("