Commit 4667cd6f authored by Ahoy's avatar Ahoy

data-ahoy del elem

parent f10a3e9e
Pipeline #12909751 passed with stages
in 1 minute and 36 seconds
......@@ -19,14 +19,6 @@ function ahoy_yo() {
function yo(sel) {
var h, w, i, l, s, t = false, p = '';
var yohoho_loading = document.querySelector('#yohoho-loading');
if (yohoho_loading) {
yohoho_loading.parentNode.removeChild(yohoho_loading);
}
var yohoho_iframe = document.querySelector('#yohoho-iframe');
if (yohoho_iframe) {
yohoho_iframe.parentNode.removeChild(yohoho_iframe);
}
var yohoho = document.querySelector('#' + ((sel) ? sel : 'yohoho'));
if (!yohoho) {
yohoho = document.querySelector('#yohoho-online');
......@@ -84,6 +76,19 @@ function yo(sel) {
return false;
}
var yohoho_loading = document.querySelector('#yohoho-loading');
if (yohoho_loading) {
yohoho_loading.parentNode.removeChild(yohoho_loading);
}
var yohoho_buttons = document.querySelector('#yohoho-buttons');
if (yohoho_buttons) {
yohoho_buttons.parentNode.removeChild(yohoho_buttons);
}
var yohoho_iframe = document.querySelector('#yohoho-iframe');
if (yohoho_iframe) {
yohoho_iframe.parentNode.removeChild(yohoho_iframe);
}
var head = document.head || document.getElementsByTagName('head')[0];
var css = '#yohoho{border:0;margin:0;padding:0;overflow:hidden;position:relative}#yohoho-loading{z-index:9999;position:absolute;left:0;top:0;width:100%;height:100%;background:#' + bg + ' url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwIiBoZWlnaHQ9IjEyMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiIGNsYXNzPSJ1aWwtc3BpcmFsIj48cmVjdCB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgY2xhc3M9ImJrIiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTU0LjUgODkuOWMtOS42IDAtMTguNi0zLjktMjUuNC0xMSAtNi44LT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i0xMC4xYzYuMi02LjUgOS42LTE1LjIgOS42LTI0LjQgMC0xMC40LTMuOS0yMC4yLTEwLjktMjcuNiAtNy03LjQtMTYuMy0xMS40LTI2LjMtMTEuNHMtMTkuMyA0LjEtMjYuMyAxMS40UzEzIDQxLjggMTMgNTIuMmMwIDAuOS0wLjcgMS42LTEuNSAxLjZTMTAgNTMuMSAxMCA1Mi4yYzAtMTEuMyA0LjItMjEuOSAxMS44LTI5LjkgNy42LTggMTcuNy0xMi40IDI4LjQtMTIuNCAxMC43IDAgMjAuOCA0LjQgMjguNCAxMi40IDcuNiA4IDExLjggMTguNiAxMS44IDI5LjkgMCAxMC4xLTMuNyAxOS41LTEwLjUgMjYuN0M3My4xIDg2IDY0LjEgODkuOSA1NC41IDg5Ljl6IiBmaWxsPSIjZmZmIj48YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InJvdGF0ZSIgZnJvbT0iMCA1MCA1MCIgdG89IjM2MCA1MCA1MCIgZHVyPSIxcyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiLz48L3BhdGg+PC9zdmc+) 50% 50% no-repeat}#yohoho-buttons{position:absolute;z-index:9999;right:0;top:50px;text-align:left}#yohoho-buttons:hover{right:0!important}#yohoho-buttons div{font-family:Verdana,sans-serif;font-weight:normal;text-shadow:none;line-height:normal;font-size:12px;color:#fff;background:#' + bg + ';border-radius:5px 0 0 5px;padding:5px;margin:5px 0 5px 5px;opacity:.7;}#yohoho-buttons div:hover,#yohoho-buttons div.yohoho-active{color:#fff;background:#' + bg + ';cursor:pointer;opacity:1}';
s = document.createElement('style');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment