projects
/
openx
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9585948
)
The selector for picking the DOM-elements is now configurable
0.1.3
author
Kai Moritz
<kai@juplo.de>
Thu, 28 Feb 2013 00:03:53 +0000
(
01:03
+0100)
committer
Kai Moritz
<kai@juplo.de>
Thu, 28 Feb 2013 00:03:53 +0000
(
01:03
+0100)
jquery.openx.js
patch
|
blob
|
history
openx.jquery.json
patch
|
blob
|
history
diff --git
a/jquery.openx.js
b/jquery.openx.js
index
f5f2253
..
352d0ac
100644
(file)
--- a/
jquery.openx.js
+++ b/
jquery.openx.js
@@
-86,6
+86,13
@@
* charset: string Charset used, when delivering the banner-codes.
* If empty, the charset is guessed by OpenX. Examples
* for sensible values: "UTF-8", "ISO-8859-1".
* charset: string Charset used, when delivering the banner-codes.
* If empty, the charset is guessed by OpenX. Examples
* for sensible values: "UTF-8", "ISO-8859-1".
+ *
+ *
+ * Other settings:
+ *
+ * selector: string A selector for selecting the DOM-elements, that
+ * should display ad-banners. DEFAULT: ".oa".
+ * See: http://api.jquery.com/category/selectors/
*/
$.openx = function( options ) {
*/
$.openx = function( options ) {
@@
-121,6
+128,7
@@
'protocol': document.location.protocol,
'delivery': '/www/delivery',
'fl': 'fl.js',
'protocol': document.location.protocol,
'delivery': '/www/delivery',
'fl': 'fl.js',
+ 'selector': '.oa',
'cache': true
},
options
'cache': true
},
options
@@
-158,7
+166,7
@@
*/
src += '?zones=';
for(name in OA_zones) {
*/
src += '?zones=';
for(name in OA_zones) {
- $(
'.oa'
).each(function() {
+ $(
settings.selector
).each(function() {
var
node = $(this),
id;
var
node = $(this),
id;
diff --git
a/openx.jquery.json
b/openx.jquery.json
index
3c9fa35
..
8b34333
100644
(file)
--- a/
openx.jquery.json
+++ b/
openx.jquery.json
@@
-3,7
+3,7
@@
"title": "jQuery OpenX",
"description": "jQuery plugin, that loads banner-ads from an OpenX-server in an asynchronous and responsive way",
"keywords": [ "openx", "adserver", "banner", "asynchrone", "responsive" ],
"title": "jQuery OpenX",
"description": "jQuery plugin, that loads banner-ads from an OpenX-server in an asynchronous and responsive way",
"keywords": [ "openx", "adserver", "banner", "asynchrone", "responsive" ],
- "version": "0.1.
2
",
+ "version": "0.1.
3
",
"author": { "name": "Kai Moritz", "email": "kai@juplo.de" },
"licenses": [ { "type": "LGPLv3", "url": "http://www.gnu.org/licenses/lgpl-3.0.html" } ],
"homepage": "http://juplo.de/openx",
"author": { "name": "Kai Moritz", "email": "kai@juplo.de" },
"licenses": [ { "type": "LGPLv3", "url": "http://www.gnu.org/licenses/lgpl-3.0.html" } ],
"homepage": "http://juplo.de/openx",