Fix #18
In one line, the class is `tarteaucitronOpenPanel` and it works on emulated ie 5. I think it's cross browser ;)
This commit is contained in:
parent
ff0c52df50
commit
7b4f06c5e0
|
|
@ -10,7 +10,7 @@ var scripts = document.getElementsByTagName('script'),
|
||||||
tarteaucitronNoAdBlocker = false;
|
tarteaucitronNoAdBlocker = false;
|
||||||
|
|
||||||
var tarteaucitron = {
|
var tarteaucitron = {
|
||||||
"version": 201.3,
|
"version": 201.6,
|
||||||
"cdn": cdn,
|
"cdn": cdn,
|
||||||
"user": {},
|
"user": {},
|
||||||
"lang": {},
|
"lang": {},
|
||||||
|
|
@ -32,6 +32,11 @@ var tarteaucitron = {
|
||||||
if (window.addEventListener) {
|
if (window.addEventListener) {
|
||||||
window.addEventListener("load", function () {
|
window.addEventListener("load", function () {
|
||||||
tarteaucitron.load();
|
tarteaucitron.load();
|
||||||
|
tarteaucitron.fallback(['tarteaucitronOpenPanel'], function (elem) {
|
||||||
|
elem.addEventListener("click", function () {
|
||||||
|
tarteaucitron.userInterface.openPanel();
|
||||||
|
}, false);
|
||||||
|
}, true);
|
||||||
}, false);
|
}, false);
|
||||||
window.addEventListener("keydown", function (evt) {
|
window.addEventListener("keydown", function (evt) {
|
||||||
if (evt.keyCode === 27) {
|
if (evt.keyCode === 27) {
|
||||||
|
|
@ -53,6 +58,11 @@ var tarteaucitron = {
|
||||||
} else {
|
} else {
|
||||||
window.attachEvent("onload", function () {
|
window.attachEvent("onload", function () {
|
||||||
tarteaucitron.load();
|
tarteaucitron.load();
|
||||||
|
tarteaucitron.fallback(['tarteaucitronOpenPanel'], function (elem) {
|
||||||
|
elem.attachEvent("onclick", function () {
|
||||||
|
tarteaucitron.userInterface.openPanel();
|
||||||
|
});
|
||||||
|
}, true);
|
||||||
});
|
});
|
||||||
window.attachEvent("onkeydown", function (evt) {
|
window.attachEvent("onkeydown", function (evt) {
|
||||||
if (evt.keyCode === 27) {
|
if (evt.keyCode === 27) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue