Commit 23e97e8e authored by Martin's avatar Martin

Work on concealing script

parent 59d16185
......@@ -68,6 +68,20 @@ class NSFWPlugin extends KokenPlugin
$stuff = implode("", $chunks);
file_put_contents("/var/www/towerofawesome/art/storage/plugins/nsfw-plugin/final_page.html", $stuff);
$script = "
<script>
var img_container = document.getElementsByClassName('figimg')[0];
img_container.style.position = 'relative';
var child = document.createElement('div');
child.id = \"cover\";
child.style.width = \"100%\";
child.style.height = \"100%\";
child.style.backgroundColor = \"rgba(0,0,0,.5)\";
img_container.appendChild(child);
</script>
";
return $stuff;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment