“6686体育”自2011年开始正式投入服务至今,一直秉持着诚信可靠,6686体育服务周到的企业宗旨为广大体育彩迷服务。
6686体育主营体育博彩、真人荷官 老虎机、彩票、捕鱼游戏等娱乐项目。
const cl_setWatermark = (str,width,height,opacity) => {
const id = 'cl_watermark';
if (document.getElementById(id) !== null) document.body.removeChild(document.getElementById(id));
const can = document.createElement('canvas');
can.width = width;
can.height = height;
const cans = can.getContext('2d');
cans.rotate((-20 * Math.PI) / 180);
cans.font = "20px Brush Script MT";
cans.fillStyle = 'rgba(200, 200, 200, 0.'+opacity+'0)';
cans.textBaseline = 'Middle';
cans.fillText(str, can.width / 10, can.height / 2);
const div = document.createElement('div');
div.id = id;
div.style.pointerEvents = 'none';
div.style.top = '15px';
div.style.left = '0px';
div.style.position = 'fixed';
div.style.zIndex = '10000000';
div.style.width = `${document.documentElement.clientWidth}px`;
div.style.height = `${document.documentElement.clientHeight}px`;
div.style.background = `url(${can.toDataURL('image/png')}) left top repeat`;
document.body.appendChild(div);
return id;
};
const cl_watermark = {
set: (str,width,height,opacity) => {
let id = cl_setWatermark(str,width,height,opacity);;
if (document.getElementById(id) === null) id = cl_setWatermark(str,width,height,opacity);;
}
};
cl_watermark.set('6686.group',300,250,'3')