Ads to promote this script are disabled by default
This commit is contained in:
parent
81d00657ae
commit
7bae915fd2
|
|
@ -7,6 +7,7 @@ var scripts = document.getElementsByTagName('script'),
|
||||||
|
|
||||||
var tarteaucitron = {
|
var tarteaucitron = {
|
||||||
"autoOpen": false, // auto open the panel with #tarteaucitron hash ?
|
"autoOpen": false, // auto open the panel with #tarteaucitron hash ?
|
||||||
|
"promoteThisScript": false, // promote this script if ads are denied ?
|
||||||
"cdn": cdn,
|
"cdn": cdn,
|
||||||
"user": {},
|
"user": {},
|
||||||
"lang": {},
|
"lang": {},
|
||||||
|
|
@ -401,6 +402,8 @@ var tarteaucitron = {
|
||||||
*/
|
*/
|
||||||
"promoteMe": function (el) {
|
"promoteMe": function (el) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
if (tarteaucitron.promoteThisScript === false) { return; }
|
||||||
|
|
||||||
var l = tarteaucitron.getLanguage(),
|
var l = tarteaucitron.getLanguage(),
|
||||||
w = el.offsetWidth,
|
w = el.offsetWidth,
|
||||||
h = el.offsetHeight,
|
h = el.offsetHeight,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue