From 552fe630eb1c6cddcadbe1a761149c7ce87bad8a Mon Sep 17 00:00:00 2001 From: That-Guy Date: Wed, 4 Apr 2012 00:14:32 +0200 Subject: [PATCH] overview, limits for streams and streams finished (#17, 3h) --- server-rel.html | 215 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 191 insertions(+), 24 deletions(-) diff --git a/server-rel.html b/server-rel.html index b201dacd..9a10cb4c 100644 --- a/server-rel.html +++ b/server-rel.html @@ -86,6 +86,7 @@ tbody tr:nth-child(odd) + /* login stuff */ #login @@ -270,6 +271,11 @@ label input width: 225px; } +label span +{ + float: right; +} + #editserver { @@ -278,6 +284,16 @@ label input +thead th .theadinfo +{ + color: #848484; + padding: 0 0 0 10px; + font: normal normal 9pt Arial, sans-serif; +} + + + + /* fonts */ #header-title > span, #header-connection, #header-host, @@ -413,6 +429,19 @@ td } + function TypeofResource(uri) + { + var protocol = /([a-zA-Z]+):\/\//.exec(uri); + + if(protocol === null || (protocol[1] && protocol[1] === 'file')) + { + return 'VoD'; + }else{ + return 'Live'; + } + } + + function shortToLongLimit(name) { console.log('getting the long name for the limit "' + name + '"'); @@ -537,10 +566,9 @@ td { case 'login': -//TODO fixme login creds var host = $('').attr('type', 'text').attr('placeholder', 'HTTP://LOCALHOST:4242'); - var user = $('').attr('type', 'text').attr('placeholder', 'USERNAME').attr('value', 'testaccount'); - var pass = $('').attr('type', 'password').attr('placeholder', 'PASSWORD').attr('value', 'pisvlek'); + var user = $('').attr('type', 'text').attr('placeholder', 'USERNAME'); + var pass = $('').attr('type', 'password').attr('placeholder', 'PASSWORD'); var conn = $('