Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Corrections to widget templates.

  • Loading branch information...
commit ffcb2deba135ac17f34683169e875d04f0d66741 1 parent 2f889fa
@douglascrockford authored
Showing with 5 additions and 6 deletions.
  1. +3 −4 template.html
  2. +1 −1  template.js
  3. +1 −1  widget.html
View
7 template.html
@@ -24,7 +24,6 @@
is required only if the widget will load library modules.
<script>
-"use strict";
ADSAFE.id("TEMPLATE_");
</script>
@@ -35,16 +34,16 @@
ADSAFE.go starts the execution of the widget.
<script>
-"use strict";
ADSAFE.go("TEMPLATE_", function (dom, lib) {
+ "use strict";
// This is where the code for the widget is placed. It can access
// the document through the dom parameter, allowing it indirect
// access to html elements, allowing it to change content, styling,
// and behavior.
-// Each library file can give itself a name. This script can access
-// the library file as lib.name.
+// Each library file can give itself a NAME. This program can access
+// the library file as lib.NAME.
});
</script>
View
2  template.js
@@ -13,7 +13,7 @@ ADSAFE.lib("template", function () {
return {
// Return an object containing the library module's privileged methods.
-// The script can get access to this object at lib.name.
+// The program can get access to this object at lib.template.
};
});
View
2  widget.html
@@ -183,7 +183,7 @@
<p>A page could allow inter-widget communication by providing communication
methods to the <var>lib</var> object. A page could allow a method
to change the <code>src</code> of a node.</p>
- <p>The file <a href="adsafe.js"><code>adsafe.js</code></a> contains the
+ <p>The file <a href="https://github.com/douglascrockford/ADsafe"><code>adsafe.js</code></a> contains the
runtime component that provides the <code>ADSAFE</code> object, and should be loaded before all interceptors and widgets. The
file <a href="template.html">template.html</a> contains the template
for a widget. The file <a href="template.js">template.js</a> contains
Please sign in to comment.
Something went wrong with that request. Please try again.