diff options
author | PeterTheOne <petertheone@gmail.com> | 2018-02-28 11:38:49 +0100 |
---|---|---|
committer | PeterTheOne <petertheone@gmail.com> | 2018-02-28 11:38:49 +0100 |
commit | be000613e75ed85e286c56dad37e6285c5d16ff4 (patch) | |
tree | 8bd78e27ff1c2cd5f1877647d09e4bf3f668156a /contrib/site/index.html | |
parent | short direct-links (diff) |
change direct-links on embed, try max-width
Diffstat (limited to 'contrib/site/index.html')
-rw-r--r-- | contrib/site/index.html | 18 |
1 files changed, 12 insertions, 6 deletions
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('<a href="' + model.getStreamUrl('webm', true) + '">.../' + model.getStreamUrl('webm', true, true) + '</a><br />') - .append('<a href="' + model.getStreamUrl('hls', true) + '">.../' + model.getStreamUrl('hls', true, true) + '</a><br />') - .append('<a href="' + model.getStreamUrl('flash', true) + '">.../' + model.getStreamUrl('flash', true, true) + '</a><br />') - .append('<a href="' + model.getStreamUrl('ogg', true) + '">.../' + model.getStreamUrl('ogg', true, true) + '</a><br />') - .append('<a href="' + model.getStreamUrl('mp3', true) + '">.../' + model.getStreamUrl('mp3', true, true) + '</a><br />'); + if (!model.parameters.embed == 'true') { + $('#footer .direct-links') + .append('<a href="' + model.getStreamUrl('webm', true) + '">.../' + model.getStreamUrl('webm', true, true) + '</a><br />') + .append('<a href="' + model.getStreamUrl('hls', true) + '">.../' + model.getStreamUrl('hls', true, true) + '</a><br />') + .append('<a href="' + model.getStreamUrl('flash', true) + '">.../' + model.getStreamUrl('flash', true, true) + '</a><br />') + .append('<a href="' + model.getStreamUrl('ogg', true) + '">.../' + model.getStreamUrl('ogg', true, true) + '</a><br />') + .append('<a href="' + model.getStreamUrl('mp3', true) + '">.../' + model.getStreamUrl('mp3', true, true) + '</a><br />'); + } else { + $('#footer .direct-links') + .append('<a href="https://stream.elevate.at/" target="_parent">Streaming Server</a><br />') + .append('<a href="https://www.elevate.at/" target="_parent">Elevate Homepage</a>'); + } } var uri = parseLocationHref(); |