intel-screenbot

An Ingress Intel Map Bot for Hangoutsbot
git clone git://archive.git.mtrnord.blog/MTRNord/intel-screenbot.git
Log | Files | Refs | README | LICENSE

commit 88729ce0ddc2c23849a64666e121b74c1cd7e0a0
parent 923f625655a519eb20bf2db7994178926c17b850
Author: Marcel <MTRNord@users.noreply.github.com>
Date:   Sat, 31 Dec 2016 00:48:42 +0100

Make Text Header a little smaller and refactor some Code
Diffstat:
Mscreencap.js | 148++++++++++++++++++++++++++++++++++++++++----------------------------------------
1 file changed, 74 insertions(+), 74 deletions(-)

diff --git a/screencap.js b/screencap.js @@ -413,81 +413,81 @@ function getDateTime(format) { function addTimestamp(time) { if (search == "nix") { - if (maptype == "iitc") { - page.evaluate(function(dateTime, search) { - var water = document.createElement('p'); - water.id='watermark-ice'; - water.innerHTML = dateTime; - water.style.position = 'absolute'; - water.style.color = '#3A539B'; - water.style.top = '0'; - water.style.zIndex = '4404'; - water.style.marginTop = '0'; - water.style.paddingTop = '0'; - water.style.left = '0'; - water.style.fontSize = '40px'; - water.style.opacity = '0.8'; - water.style.fontFamily = 'monospace'; - water.style.textShadow = '0px 1px 8px rgba(150, 150, 150, 1)'; - document.querySelectorAll('body')[0].appendChild(water); - }, time, search); - }else { - page.evaluate(function(dateTime, search) { - var water = document.createElement('p'); - water.id='watermark-ice'; - water.style.zIndex = '4404'; - water.innerHTML = dateTime; - water.style.position = 'absolute'; - water.style.color = 'orange'; - water.style.top = '0'; - water.style.left = '0'; - water.style.fontSize = '40px'; - water.style.opacity = '0.8'; - water.style.marginTop = '0'; - water.style.paddingTop = '0'; - water.style.fontFamily = 'monospace'; - water.style.textShadow = '0px 1px 8px rgba(150, 150, 150, 1)'; - document.querySelectorAll('body')[0].appendChild(water); - }, time, search); - } + if (maptype == "iitc") { + page.evaluate(function(dateTime, search) { + var water = document.createElement('p'); + water.id='watermark-ice'; + water.innerHTML = dateTime; + water.style.position = 'absolute'; + water.style.color = '#3A539B'; + water.style.top = '0'; + water.style.zIndex = '4404'; + water.style.marginTop = '0'; + water.style.paddingTop = '0'; + water.style.left = '0'; + water.style.fontSize = '30px'; + water.style.opacity = '0.8'; + water.style.fontFamily = 'monospace'; + water.style.textShadow = '0px 1px 8px rgba(150, 150, 150, 1)'; + document.querySelectorAll('body')[0].appendChild(water); + }, time, search); + }else { + page.evaluate(function(dateTime, search) { + var water = document.createElement('p'); + water.id='watermark-ice'; + water.style.zIndex = '4404'; + water.innerHTML = dateTime; + water.style.position = 'absolute'; + water.style.color = 'orange'; + water.style.top = '0'; + water.style.left = '0'; + water.style.fontSize = '30px'; + water.style.opacity = '0.8'; + water.style.marginTop = '0'; + water.style.paddingTop = '0'; + water.style.fontFamily = 'monospace'; + water.style.textShadow = '0px 1px 8px rgba(150, 150, 150, 1)'; + document.querySelectorAll('body')[0].appendChild(water); + }, time, search); + } }else{ - if (maptype == "iitc") { - page.evaluate(function(dateTime, search) { - var water = document.createElement('p'); - water.id='watermark-ice'; - water.innerHTML = dateTime + ' - ' + search; - water.style.position = 'absolute'; - water.style.color = '#3A539B'; - water.style.top = '0'; - water.style.zIndex = '4404'; - water.style.marginTop = '0'; - water.style.paddingTop = '0'; - water.style.left = '0'; - water.style.fontSize = '40px'; - water.style.opacity = '0.8'; - water.style.fontFamily = 'monospace'; - water.style.textShadow = '0px 1px 8px rgba(150, 150, 150, 1)'; - document.querySelectorAll('body')[0].appendChild(water); - }, time, search); - }else { - page.evaluate(function(dateTime, search) { - var water = document.createElement('p'); - water.id='watermark-ice'; - water.style.zIndex = '4404'; - water.innerHTML = dateTime + ' - ' + search; - water.style.position = 'absolute'; - water.style.color = 'orange'; - water.style.top = '0'; - water.style.left = '0'; - water.style.fontSize = '40px'; - water.style.opacity = '0.8'; - water.style.marginTop = '0'; - water.style.paddingTop = '0'; - water.style.fontFamily = 'monospace'; - water.style.textShadow = '0px 1px 8px rgba(150, 150, 150, 1)'; - document.querySelectorAll('body')[0].appendChild(water); - }, time, search); - } + if (maptype == "iitc") { + page.evaluate(function(dateTime, search) { + var water = document.createElement('p'); + water.id='watermark-ice'; + water.innerHTML = dateTime + ' - ' + search; + water.style.position = 'absolute'; + water.style.color = '#3A539B'; + water.style.top = '0'; + water.style.zIndex = '4404'; + water.style.marginTop = '0'; + water.style.paddingTop = '0'; + water.style.left = '0'; + water.style.fontSize = '30px'; + water.style.opacity = '0.8'; + water.style.fontFamily = 'monospace'; + water.style.textShadow = '0px 1px 8px rgba(150, 150, 150, 1)'; + document.querySelectorAll('body')[0].appendChild(water); + }, time, search); + }else { + page.evaluate(function(dateTime, search) { + var water = document.createElement('p'); + water.id='watermark-ice'; + water.style.zIndex = '4404'; + water.innerHTML = dateTime + ' - ' + search; + water.style.position = 'absolute'; + water.style.color = 'orange'; + water.style.top = '0'; + water.style.left = '0'; + water.style.fontSize = '30px'; + water.style.opacity = '0.8'; + water.style.marginTop = '0'; + water.style.paddingTop = '0'; + water.style.fontFamily = 'monospace'; + water.style.textShadow = '0px 1px 8px rgba(150, 150, 150, 1)'; + document.querySelectorAll('body')[0].appendChild(water); + }, time, search); + } } }