Javascript for Hotspot users logout.html

Hi all

I need some help to get final MB left for hotspot users

So far I use the following variables

$(limit-bytes-total) --> available Bytes when last logged on
$(bytes-total) ---> used Bytes during session

I now would like to show the user the actual Bytes left

$(limit-bytes-total) subtract $(bytes-total) equals actual Bytes left.

I am just lost how to archive that with java script.

Thanks a lot for your help!

Mat

\

Ok, there the solution:

Total Megabytes Left: Data Traffic Used Since Last Logon:

or full website example

\

XX Wireless - Status Information

$(if refresh-timeout)

$(endif)


textarea,input,select { background-color: #C0C0C0; border: 4px #BBBBBB solid; padding: 3px; margin: 10px; font-size: 12px; color: black; } .tabula{ border-width: 0px; border-collapse: collapse; border-color: #c1c1c1; background-color: transparent; font-family: verdana; font-size: 14px; } body{font-size: 3px; font-family: verdana; } \ \ a, a:link, a:visited, a:active { color: #AAAAAA; text-decoration: none; font-size: 12px; } a:hover { border-bottom: 1px dotted #c1c1c1; color: #AAAAAA; } img {border: none;} td { font-size: 13px; padding: 4px;}
\ \ \
\ \ \ \ \ \
We recommend to keep this webpage open for your reference!
Total Megabytes Left:
Data Traffic Used Since Last Logon:
\ \

\ \ \

You are successfully logged on.

You are now able to access the internet. Enjoy your browsing.

$(endif)
\ \

Hi swissiws

Thanks for your help… :smiley: