;(function ($) {
$.fn.athenaAd = function (options) {
var ctx = $.extend({}, options);
var self = {
_getAdPos: function (key) {
},
_filterAd: function () {
},
};
var adConfiguration = {
top_nav: {pos: 1, callback: self._showAdContent, multiVersion: true, filter: self._filterAd},
left_nav: {pos: 2, callback: self._showAdContent, multiVersion: true},
bottom: {pos: 4, callback: self._showAdContent, multiVersion: true},
left_nav_carousel: {pos: 8, callback: self._carousel, multiVersion: false, preAdStr: "hades_profession_ad_"},
popup: {pos: 16, callback: self._showPopAdContent, multiVersion: true, filter: self._filterAd,},
};
var discover = {
openBoard: function (code, isClick) {
self._getAdContent(self._getAdUrl(code, isClick), self._showPopAdContent, null, "popup", isClick)
},
closeBoard: function (code) {
},
getAds: function () {
};
return discover;
};
})(jQuery);
function closeBoard(code) {
return $(window).athenaAd().closeBoard(code);
}
function openBoard(code, isClick) {
return $(window).athenaAd().openBoard(code, isClick);
}
网友评论