Added prettier (#661)
* Added prettier * Added prettier * Added prettier
This commit is contained in:
@@ -8,25 +8,35 @@ import { GCTimers } from '../VariablesAndData';
|
||||
* @param {object} cookie A Golden Cookie object
|
||||
*/
|
||||
export default function CreateGCTimer(cookie) {
|
||||
const GCTimer = document.createElement('div');
|
||||
GCTimer.id = `GCTimer${cookie.id}`;
|
||||
GCTimer.style.width = '96px';
|
||||
GCTimer.style.height = '96px';
|
||||
GCTimer.style.position = 'absolute';
|
||||
GCTimer.style.zIndex = '10000000001';
|
||||
GCTimer.style.textAlign = 'center';
|
||||
GCTimer.style.lineHeight = '96px';
|
||||
GCTimer.style.fontFamily = '"Kavoon", Georgia, serif';
|
||||
GCTimer.style.fontSize = '35px';
|
||||
GCTimer.style.cursor = 'pointer';
|
||||
GCTimer.style.display = 'block';
|
||||
if (CMOptions.GCTimer === 0) GCTimer.style.display = 'none';
|
||||
GCTimer.style.left = cookie.l.style.left;
|
||||
GCTimer.style.top = cookie.l.style.top;
|
||||
GCTimer.onclick = function () { cookie.pop(); };
|
||||
GCTimer.onmouseover = function () { cookie.l.style.filter = 'brightness(125%) drop-shadow(0px 0px 3px rgba(255,255,255,1))'; cookie.l.style.webkitFilter = 'brightness(125%) drop-shadow(0px 0px 3px rgba(255,255,255,1))'; };
|
||||
GCTimer.onmouseout = function () { cookie.l.style.filter = ''; cookie.l.style.webkitFilter = ''; };
|
||||
const GCTimer = document.createElement('div');
|
||||
GCTimer.id = `GCTimer${cookie.id}`;
|
||||
GCTimer.style.width = '96px';
|
||||
GCTimer.style.height = '96px';
|
||||
GCTimer.style.position = 'absolute';
|
||||
GCTimer.style.zIndex = '10000000001';
|
||||
GCTimer.style.textAlign = 'center';
|
||||
GCTimer.style.lineHeight = '96px';
|
||||
GCTimer.style.fontFamily = '"Kavoon", Georgia, serif';
|
||||
GCTimer.style.fontSize = '35px';
|
||||
GCTimer.style.cursor = 'pointer';
|
||||
GCTimer.style.display = 'block';
|
||||
if (CMOptions.GCTimer === 0) GCTimer.style.display = 'none';
|
||||
GCTimer.style.left = cookie.l.style.left;
|
||||
GCTimer.style.top = cookie.l.style.top;
|
||||
GCTimer.onclick = function () {
|
||||
cookie.pop();
|
||||
};
|
||||
GCTimer.onmouseover = function () {
|
||||
cookie.l.style.filter =
|
||||
'brightness(125%) drop-shadow(0px 0px 3px rgba(255,255,255,1))';
|
||||
cookie.l.style.webkitFilter =
|
||||
'brightness(125%) drop-shadow(0px 0px 3px rgba(255,255,255,1))';
|
||||
};
|
||||
GCTimer.onmouseout = function () {
|
||||
cookie.l.style.filter = '';
|
||||
cookie.l.style.webkitFilter = '';
|
||||
};
|
||||
|
||||
GCTimers[cookie.id] = GCTimer;
|
||||
l('shimmers').appendChild(GCTimer);
|
||||
GCTimers[cookie.id] = GCTimer;
|
||||
l('shimmers').appendChild(GCTimer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user