Display content of a textfile

Hi!

I got a text file stored on a server with statistics. Im trying to find a way to display this on my xibo displays.

So far i tried to embed the text file using a htlm iFrame but i can’t seem to increase the size of the text so its becomes really small and in black.

I guess there is a better way to do this. The content of the files change every 5-10 minutes or so.

Its a windows player and cms, on version 1.8.1.

I’m not sure if it’s possible, most likely not through direct css, by some js perhaps, not sure about that though.

Is it possible for you to have that file saved as .html?

Then it won’t be a problem to style it with css, even inside the html.

I think i figured it out, atleast on my screen in the CMS using javascript, but the player doesnt seem to use the javascript/css code. Any idea why?

I paste the code below:

HTML:

< body>
< div id=“text-file-container”>
< /body>

CSS:

< style type=“text/css”>
body{
color: white;
font-size: 400px;
}
< /style>

Java:

<script>
    $(function() {
        $.get('http://textfile.txt', function(data) {
            $('#text-file-container').html(data);
        });
    });
</script>