var
- domain, id, node,
+ settings, domain, id, node,
count = 0,
slots = {},
output = [];
- $.openx = function( server, zones, options ) {
+ $.openx = function( zones, options ) {
if (domain) {
if (console.error)
return;
}
- domain = document.location.protocol == 'https:' ? 'https://' + server + ':8443':'http://' + server;
+ settings = $.extend(
+ {
+ 'protocol': document.location.protocol,
+ 'server': 'localhost'
+ },
+ options
+ );
+
+ domain = settings.protocol + '//';
+ domain += settings.server;
+ if (settings.protocol === 'http:' && settings.http_port)
+ domain += ':' + settings.http_port;
+ if (settings.protocol === 'https:' && settings.https_port)
+ domain += ':' + settings.https_port;
var
name,
"title": "jQuery OpenX",
"description": "jQuery plugin, that loads banner-ads from an OpenX-server in an asynchronous and responsive way",
"keywords": [ "openx" ],
- "version": "0.1.0",
+ "version": "0.1.1",
"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",