flymis/WebRoot/dojojs/src/widget/demoEngine/DemoItem.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.widget.demoEngine.DemoItem");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.HtmlWidget");
dojo.widget.defineWidget("my.widget.demoEngine.DemoItem",
dojo.widget.HtmlWidget,
{
templatePath: dojo.uri.dojoUri("src/widget/demoEngine/templates/DemoItem.html"),
templateCssPath: dojo.uri.dojoUri("src/widget/demoEngine/templates/DemoItem.css"),
postCreate: function() {
dojo.html.addClass(this.domNode,this.domNodeClass);
dojo.html.addClass(this.summaryBoxNode, this.summaryBoxClass);
dojo.html.addClass(this.screenshotTdNode, this.screenshotTdClass);
dojo.html.addClass(this.summaryContainerNode, this.summaryContainerClass);
dojo.html.addClass(this.summaryNode, this.summaryClass);
dojo.html.addClass(this.viewDemoLinkNode, this.viewDemoLinkClass);
this.nameNode.appendChild(document.createTextNode(this.name));
this.descriptionNode.appendChild(document.createTextNode(this.description));
this.thumbnailImageNode.src = this.thumbnail;
this.thumbnailImageNode.name=this.name;
this.viewDemoImageNode.src = this.viewDemoImage;
this.viewDemoImageNode.name=this.name;
},
onSelectDemo: function() {
//Attach to this to do something when a demo is selected
}
},
"",
function() {
this.demo = "";
this.domNodeClass="demoItemWrapper";
this.summaryBoxNode="";
this.summaryBoxClass="demoItemSummaryBox";
this.nameNode="";
this.thumbnailImageNode="";
this.viewDemoImageNode="";
this.screenshotTdNode="";
this.screenshotTdClass="demoItemScreenshot";
this.summaryContainerNode="";
this.summaryContainerClass="demoItemSummaryContainer";
this.summaryNode="";
this.summaryClass="demoItemSummary";
后面还有 11 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。