From be000613e75ed85e286c56dad37e6285c5d16ff4 Mon Sep 17 00:00:00 2001 From: PeterTheOne Date: Wed, 28 Feb 2018 11:38:49 +0100 Subject: change direct-links on embed, try max-width --- contrib/site/index.html | 18 ++++++++++++------ contrib/site/style.css | 17 +++++++++++++++++ 2 files changed, 29 insertions(+), 6 deletions(-) (limited to 'contrib/site') diff --git a/contrib/site/index.html b/contrib/site/index.html index 4cf4c4c..2868d27 100644 --- a/contrib/site/index.html +++ b/contrib/site/index.html @@ -296,12 +296,18 @@ } function setDirectLinks(model) { - $('#footer .direct-links') - .append('.../' + model.getStreamUrl('webm', true, true) + '
') - .append('.../' + model.getStreamUrl('hls', true, true) + '
') - .append('.../' + model.getStreamUrl('flash', true, true) + '
') - .append('.../' + model.getStreamUrl('ogg', true, true) + '
') - .append('.../' + model.getStreamUrl('mp3', true, true) + '
'); + if (!model.parameters.embed == 'true') { + $('#footer .direct-links') + .append('.../' + model.getStreamUrl('webm', true, true) + '
') + .append('.../' + model.getStreamUrl('hls', true, true) + '
') + .append('.../' + model.getStreamUrl('flash', true, true) + '
') + .append('.../' + model.getStreamUrl('ogg', true, true) + '
') + .append('.../' + model.getStreamUrl('mp3', true, true) + '
'); + } else { + $('#footer .direct-links') + .append('Streaming Server
') + .append('Elevate Homepage'); + } } var uri = parseLocationHref(); diff --git a/contrib/site/style.css b/contrib/site/style.css index 51b4e48..161d62b 100644 --- a/contrib/site/style.css +++ b/contrib/site/style.css @@ -3,8 +3,19 @@ body { text-align: center; background-image: url(images/background.png); background-repeat: repeat; + margin: 0; } +/*#header, +#video-container-outer, +#video-overlay, +#player, +#controls, +#logos, +#footer { + max-width: 95%; +}*/ + h1 { letter-spacing: -1px; color: #000000; @@ -33,6 +44,12 @@ a:hover { text-decoration: underline; } +/*.center { + overflow: hidden; + max-width: 100%; + position: relative; +}*/ + .center > * { margin: 0 auto; } -- cgit v1.2.3