-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 787fde7
Showing
53 changed files
with
6,627 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,239 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Play SRG Apple build information -> Open in a web browser</title> | ||
<meta charset="UTF-8" content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' /> | ||
<meta property="og:image" content="https://srgssr.github.io/playsrg-apple/preview.png" /> | ||
<meta name="twitter:card" content="summary_large_image"> | ||
<meta property="og:title" content="Play SRG Apple build information -> Open in a web browser" /> | ||
<meta property="og:description" content="More information on the Play SRG Apple version and how to find it. You need to open the page in a web browser to find out the platform, configuration and version number." /> | ||
<style> | ||
@font-face { | ||
font-family: "SRG SSR Configuration Regular"; | ||
src: url("https://www.rsi.ch/play/v3/fonts/SRGSSRTypeVF_Text_W_Wght.woff2") format("woff2"); | ||
} | ||
body { | ||
font-family: "SRG SSR Configuration Regular"; | ||
-webkit-touch-callout: none; | ||
-webkit-user-select: none; | ||
-webkit-text-size-adjust: 100%; | ||
color: #ffffff; | ||
background-color: #161616; | ||
} | ||
a { | ||
color: white; | ||
} | ||
img { | ||
border-radius: 10pt; | ||
} | ||
</style> | ||
<script> | ||
const Platform = { | ||
iOS: 'ios', | ||
tvOS: 'tvos', | ||
none: 'none' | ||
}; | ||
|
||
const Configuration = { | ||
nightly: 'nightly', | ||
beta: 'beta', | ||
testFlight: 'testflight', | ||
appstore: 'appstore', | ||
none: 'none' | ||
}; | ||
|
||
function getPlatform() { | ||
const platformParam = getQueryParameter('platform'); | ||
const platform = platformParam ? platformParam.toLowerCase() : null; | ||
if (platform === 'ios') { | ||
return Platform.iOS; | ||
} else if (platform === 'tvos') { | ||
return Platform.tvOS; | ||
} | ||
return Platform.none; | ||
} | ||
|
||
function platformName() { | ||
switch (getPlatform()) { | ||
case Platform.iOS: | ||
return 'iOS'; | ||
case Platform.tvOS: | ||
return 'tvOS'; | ||
default: | ||
return 'SRG'; | ||
} | ||
} | ||
|
||
function getConfiguration() { | ||
const configurationParam = getQueryParameter('configuration'); | ||
const configuration = configurationParam ? configurationParam.toLowerCase() : null; | ||
if (configuration === 'nightly') { | ||
return Configuration.nightly; | ||
} else if (configuration === 'beta') { | ||
return Configuration.beta; | ||
} else if (configuration === 'testflight') { | ||
return Configuration.testFlight; | ||
} else if (configuration === 'appstore') { | ||
return Configuration.appstore; | ||
} else return Configuration.none; | ||
} | ||
|
||
function configurationName() { | ||
switch (getConfiguration()) { | ||
case Configuration.nightly: | ||
return 'nightly'; | ||
case Configuration.beta: | ||
return 'beta'; | ||
case Configuration.testFlight: | ||
return 'public TestFlight beta'; | ||
default: | ||
return 'AppStore'; | ||
} | ||
} | ||
|
||
function configurationNames() { | ||
switch (getConfiguration()) { | ||
case Configuration.nightly: | ||
return 'nightlies'; | ||
case Configuration.beta: | ||
return 'betas'; | ||
case Configuration.testFlight: | ||
return 'public TestFlight betas'; | ||
default: | ||
return ''; | ||
} | ||
} | ||
|
||
function getVersion() { | ||
var version = getQueryParameter('version'); | ||
return version ? version : ''; | ||
} | ||
|
||
function getQueryParameter(name) { | ||
const url = window.location.href; | ||
name = name.replace(/[\[\]]/g, '\\$&'); | ||
const regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'); | ||
const results = regex.exec(url); | ||
if (!results) { | ||
return null; | ||
} | ||
if (!results[2]) { | ||
return ''; | ||
} | ||
return decodeURIComponent(results[2]); | ||
} | ||
|
||
function applicationId(configuration, bu) { | ||
applicationIds = { | ||
'nightly': { | ||
'rsi': '1525999232', | ||
'rtr': '1525999511', | ||
'rts': '1525999108', | ||
'srf': '1525999251' | ||
}, | ||
'beta': { | ||
'rsi': '1541523749', | ||
'rtr': '1541523913', | ||
'rts': '1541524094', | ||
'srf': '1541523775' | ||
}, | ||
'testflight': { | ||
'rsi': '920753497', | ||
'rtr': '920754925', | ||
'rts': '920754415', | ||
'srf': '638194352' | ||
}, | ||
'appstore': { | ||
'rsi': '920753497', | ||
'rtr': '920754925', | ||
'rts': '920754415', | ||
'srf': '638194352' | ||
}, | ||
'none': { | ||
'rsi': '920753497', | ||
'rtr': '920754925', | ||
'rts': '920754415', | ||
'srf': '638194352' | ||
} | ||
}; | ||
return applicationIds[configuration][bu]; | ||
} | ||
|
||
function getApplicationLink(configuration, bu) { | ||
switch (configuration) { | ||
case Configuration.nightly: | ||
case Configuration.beta: | ||
case Configuration.testFlight: | ||
return 'https://beta.itunes.apple.com/v1/app/' + applicationId(configuration, bu); | ||
default: | ||
return 'https://apps.apple.com/ch/app/' + applicationId(configuration, bu); | ||
} | ||
} | ||
|
||
document.title = 'Play ' + platformName() + ' ' + configurationNames() + ' ' + getVersion() + ' - SRG SSR'; | ||
</script> | ||
</head> | ||
<body> | ||
<div style="text-align: center;"> | ||
<script> | ||
var version = getVersion(); | ||
var platform = getPlatform(); | ||
var configuration = getConfiguration(); | ||
|
||
switch (configuration) { | ||
case Configuration.nightly: | ||
case Configuration.beta: | ||
document.write('<h2>Play ' + platformName() + ' ' + configurationNames() + '</h2>'); | ||
document.write('<p>The ' + configurationName() + ' versions are only intended for internal SRG SSR use and should not be distributed outside the company.</p>'); | ||
document.write('<p>Only the developer team can send a private invitation with <a href="https://apps.apple.com/app/testflight/id899247664" target="_blank">Apple TestFlight</a> access link.</p>'); | ||
break; | ||
case Configuration.testFlight: | ||
document.write('<h2>Play ' + platformName() + ' ' + configurationNames() + '</h2>'); | ||
document.write('<p>The ' + configurationName() + ' versions are available for all with an anonymous subscription.</p>'); | ||
document.write('<p>Find the <a href="https://apps.apple.com/app/testflight/id899247664" target="_blank">Apple TestFlight</a> invitation link in the iOS application from the AppStore, in Profile tab, in Settings view.</p>'); | ||
break; | ||
default: | ||
document.write('<h2>Play ' + platformName() + '</h2>'); | ||
document.write('<p>The ' + configurationName() + ' versions are available for all on the AppStore.</p>'); | ||
break; | ||
} | ||
|
||
if (platform === Platform.iOS) { | ||
document.write('<p>📱 🚗 💻</p><p>Available on iPhone, iPad, with CarPlay<br/>and on Mac with Apple Silicon (MacOS running the iPad version).</p>'); | ||
} else if (platform === Platform.tvOS) { | ||
document.write('<p>📺</p><p>Available on Apple TV.</p>'); | ||
} | ||
|
||
if (version && platform !== Platform.none && configuration !== Configuration.none) { | ||
if (configuration === Configuration.appstore) { | ||
document.write('<p>Search in Apple Store application and install <b>Play ' + platformName() + ' version</b>.<br />The latest version could be:</p>'); | ||
} | ||
else { | ||
document.write('<p>Search in Apple TestFlight application and install this <b>Play ' + platformName() + ' ' + configurationName() + ' version</b>:</p>'); | ||
} | ||
document.write('<h1>' + version + '</h1>'); | ||
} | ||
|
||
if (platform !== Platform.none) { | ||
tvInfo = (platform === Platform.tvOS) ? '<br/>(tvOS builds are only displayed on TV)' : ''; | ||
|
||
switch (configuration) { | ||
case Configuration.nightly: | ||
case Configuration.beta: | ||
case Configuration.testFlight: | ||
document.write('<p>Help TestFlight links:' + tvInfo + '</p>'); | ||
break; | ||
default: | ||
document.write('<p>AppStore links:</p>'); | ||
break; | ||
} | ||
|
||
bus = ['rsi', 'rtr', 'rts', 'srf']; | ||
for (bu of bus) { | ||
document.write('<p><a href="' + getApplicationLink(configuration, bu) + '" target="_blank"><img src="./icon_' + bu + '-' + getPlatform() + '-' + configuration + '.png" height="60"/></a></p>'); | ||
} | ||
} | ||
</script> | ||
</div> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Play SRG Apple</title> | ||
</head> | ||
<meta charset="UTF-8" content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' /> | ||
<meta property="og:image" content="https://srgssr.github.io/playsrg-apple/preview.png" /> | ||
<meta name="twitter:card" content="summary_large_image"> | ||
<style> | ||
@font-face { | ||
font-family: "SRG SSR Type Regular"; | ||
src: url("https://www.rsi.ch/play/v3/fonts/SRGSSRTypeVF_Text_W_Wght.woff2") format("woff2"); | ||
} | ||
body { | ||
font-family: "SRG SSR Type Regular"; | ||
-webkit-touch-callout: none; | ||
-webkit-user-select: none; | ||
-webkit-text-size-adjust: 100%; | ||
color: #ffffff; | ||
background-color: #161616; | ||
} | ||
a { | ||
color: white; | ||
} | ||
</style> | ||
<body> | ||
<div style="text-align: center;"> | ||
<h2>Play SRG Apple</h2> | ||
<br/> | ||
<h4>iPhone & iPad release notes</h4> | ||
<p><a href="releases/release_notes-ios-rsi.html">Play RSI</a></p> | ||
<p><a href="releases/release_notes-ios-rtr.html">Play RTR</a></p> | ||
<p><a href="releases/release_notes-ios-rts.html">Play RTS</a></p> | ||
<p><a href="releases/release_notes-ios-srf.html">Play SRF</a></p> | ||
<br/> | ||
<h4>Apple TV release notes</h4> | ||
<p><a href="releases/release_notes-tvos-rsi.html">Play RSI</a></p> | ||
<p><a href="releases/release_notes-tvos-rtr.html">Play RTR</a></p> | ||
<p><a href="releases/release_notes-tvos-rts.html">Play RTS</a></p> | ||
<p><a href="releases/release_notes-tvos-srf.html">Play SRF</a></p> | ||
<br/> | ||
<h4>Beta (TestFlight) release notes</h4> | ||
<p><a href="releases/release_notes-ios-beta.html">Play iOS beta</a></p> | ||
<p><a href="releases/release_notes-tvos-beta.html">Play tvOS beta</a></p> | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.
Oops, something went wrong.