Code Toggle

How to Overlay entire site with a black tint, disabling all links…

Simple way to overlay entire site with a black tint, disabling all links and bringing into focus anything above it.

[pre]]czozODI6XCINCiQoZnVuY3Rpb24oKSB7DQogICB2YXIgZG9jSGVpZ2h0ID0gJChkb2N1bWVudCkuaGVpZ2h0KCk7DQogICAkKFwiYm9ke1smKiZdfXlcIikuYXBwZW5kKFwiPGRpdiBpZD1cJ292ZXJsYXlcJz48L2Rpdj5cIik7DQoNCiAgICQoXCIjb3ZlcmxheVwiKQ0KICAgICAgLmhlaWdodChke1smKiZdfW9jSGVpZ2h0KQ0KICAgICAgLmNzcyh7DQogICAgICAgICBcJ29wYWNpdHlcJyA6IDAuNCwNCiAgICAgICAgIFwncG9zaXRpb25cJzogXCdhYntbJiomXX1zb2x1dGVcJywNCiAgICAgICAgIFwndG9wXCc6IDAsDQogICAgICAgICBcJ2xlZnRcJzogMCwNCiAgICAgICAgIFwnYmFja2dyb3VuZC1jb2xve1smKiZdfXJcJzogXCdibGFja1wnLA0KICAgICAgICAgXCd3aWR0aFwnOiBcJzEwMCVcJywNCiAgICAgICAgIFwnei1pbmRleFwnOiA1MDAwDQogICAgICB9KTt7WyYqJl19DQoNCn0pOw0KXCI7e1smKiZdfQ==[[/pre]

Leave a Reply