Greasy Fork is available in English.

Empire Overview

Script for Ikariam 8.x.x, Overview tables for resources, buildings and military inspired by Ikariam Empire Board

< Відгуки до Empire Overview

Question/comment

e41
§
Опубліковано: 22.02.2024

Just a small improvement regarding the smaller font effect...
In order to scale the entire table, not just the text, you can change the following lines:

        if (this.checked) { GM_addStyle("#empireBoard {font-size:8pt}"); }
        else { GM_addStyle("#empireBoard {font-size:inherit}"); }

with this code:

	GM_addStyle('#empireBoard {transform:scale('+(this.checked?'0.9':'1')+')}');

Have fun!
:-)

§
Опубліковано: 24.02.2024

Feedback on this change

Works for me here

§
Опубліковано: 05.03.2024

Works for me here too. Thanks.

p.s.
change this line
scriptId: 1.1935,
with this
scriptId: 456297,
After the change every time you click the Website button on options board...
you can Go to the scripts greasyfork.org website for this code.

e41
§
Опубліковано: 26.03.2024

Thanks for confirmation.
:-)

mrfixАвтор
§
Опубліковано: 26.03.2024

Works for me here too. Thanks.

p.s.
change this line
scriptId: 1.1935,
with this
scriptId: 456297,
After the change every time you click the Website button on options board...
you can Go to the scripts greasyfork.org website for this code.

now use scriptId: 456297

i change url from old script site on it

mrfixАвтор
§
Опубліковано: 26.03.2024
Edited: 26.03.2024
Just a small improvement regarding the smaller font effect...

Thanx. Update
new code:
}).on("change", "#empire_smallFont", function () {
database.settings.smallFont.value = this.checked;
GM_addStyle('#empireBoard {transform:scale('+(this.checked?'0.9':'1')+')}');


Right ?

e41
§
Опубліковано: 26.03.2024

Right.
Maybe in the future we can add a slider instead of this, because with more than 15 cities, the table gets too big.
:-)

Опублікувати відповідь

Sign in to post a reply.