Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
0xWDG authored Aug 23, 2024
1 parent 46cdc66 commit 5978d2c
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,62 +2,62 @@ if (App === 'undefined') var App = {} // Eslint error.
if (tvOS === 'undefined') var tvOS = {} // Eslint error.
if (evaluateScripts === 'undefined') var evaluateScripts = {} // Eslint error.

evaluateScripts(['https://wdg.github.io/tvOS.js/tvOS.js'], function (success) {
evaluateScripts(['https://0xwdg.github.io/tvOS.js/tvOS.js'], function (success) {
if (success) {
var myList = []

myList.push({
image: 'https://wdg.github.io/tvOS.js/images/alertView.jpg',
image: 'https://0xwdg.github.io/tvOS.js/images/alertView.jpg',
title: 'AlertView',
subtitle: 'a example of AlertView',
action: 'openAlertView'
})

myList.push({
image: 'https://wdg.github.io/tvOS.js/images/compilationView.jpg',
image: 'https://0xwdg.github.io/tvOS.js/images/compilationView.jpg',
title: 'compilationView',
subtitle: 'a example of compilationView',
action: 'opencompilationView'
})

myList.push({
image: 'https://wdg.github.io/tvOS.js/images/listView.jpg',
image: 'https://0xwdg.github.io/tvOS.js/images/listView.jpg',
title: 'listView',
subtitle: 'a example of listView',
action: 'openlistView'
})

myList.push({
image: 'https://wdg.github.io/tvOS.js/images/loadingView.jpg',
image: 'https://0xwdg.github.io/tvOS.js/images/loadingView.jpg',
title: 'loadingView',
subtitle: 'a example of loadingView',
action: 'openloadingView'
})

myList.push({
image: 'https://wdg.github.io/tvOS.js/images/ratingView.jpg',
image: 'https://0xwdg.github.io/tvOS.js/images/ratingView.jpg',
title: 'ratingView',
subtitle: 'a example of ratingView',
action: 'openratingView'
})

myList.push({
image: 'https://wdg.github.io/tvOS.js/images/searchView.jpg',
image: 'https://0xwdg.github.io/tvOS.js/images/searchView.jpg',
title: 'searchView',
subtitle: 'a example of searchView',
action: 'opensearchView'
})

myList.push({
image: 'https://wdg.github.io/tvOS.js/images/exampleApp.jpg',
image: 'https://0xwdg.github.io/tvOS.js/images/exampleApp.jpg',
title: 'Example App',
subtitle: 'The App Team!',
description: 'if you\'ve got a problem and no-one else can help, then you should call The App Team!',
action: 'openExampleApp'
})

myList.push({
image: 'https://wdg.github.io/tvOS.js/images/exampleApp2.png',
image: 'https://0xwdg.github.io/tvOS.js/images/exampleApp2.png',
title: 'Example App',
subtitle: 'NU.nl News',
description: 'NU.nl © 2015 Sanoma Digital The Netherlands B.V.',
Expand Down Expand Up @@ -112,7 +112,7 @@ evaluateScripts(['https://wdg.github.io/tvOS.js/tvOS.js'], function (success) {
function openAlertView (e) {
tvOS.alert('Open alertView?', '', ['Yes', 'No'], function (c) {
if (c === 'Yes') {
tvOS.location('https://wdg.github.io/tvOS.js/example_alert.js')
tvOS.location('https://0xwdg.github.io/tvOS.js/example_alert.js')
} else {
tvOS.dismiss()
}
Expand All @@ -122,7 +122,7 @@ function openAlertView (e) {
function opencompilationView (e) {
tvOS.alert('Open compilationView?', '', ['Yes', 'No'], function (c) {
if (c === 'Yes') {
tvOS.location('https://wdg.github.io/tvOS.js/example_compilation.js')
tvOS.location('https://0xwdg.github.io/tvOS.js/example_compilation.js')
} else {
tvOS.dismiss()
}
Expand All @@ -132,7 +132,7 @@ function opencompilationView (e) {
function openlistView (e) {
tvOS.alert('Open listView?', '', ['Yes', 'No'], function (c) {
if (c === 'Yes') {
tvOS.location('https://wdg.github.io/tvOS.js/example_list.js')
tvOS.location('https://0xwdg.github.io/tvOS.js/example_list.js')
} else {
tvOS.dismiss()
}
Expand All @@ -142,7 +142,7 @@ function openlistView (e) {
function openloadingView (e) {
tvOS.alert('Open loadingView?', '', ['Yes', 'No'], function (c) {
if (c === 'Yes') {
tvOS.location('https://wdg.github.io/tvOS.js/example_loading.js')
tvOS.location('https://0xwdg.github.io/tvOS.js/example_loading.js')
} else {
tvOS.dismiss()
}
Expand All @@ -152,7 +152,7 @@ function openloadingView (e) {
function openratingView (e) {
tvOS.alert('Open ratingView?', '', ['Yes', 'No'], function (c) {
if (c === 'Yes') {
tvOS.location('https://wdg.github.io/tvOS.js/example_rating.js')
tvOS.location('https://0xwdg.github.io/tvOS.js/example_rating.js')
} else {
tvOS.dismiss()
}
Expand All @@ -162,7 +162,7 @@ function openratingView (e) {
function opensearchView (e) {
tvOS.alert('Open searchView?', '(there is no go back!)', ['Yes', 'No'], function (c) {
if (c === 'Yes') {
tvOS.location('https://wdg.github.io/tvOS.js/example_search.js')
tvOS.location('https://0xwdg.github.io/tvOS.js/example_search.js')
} else {
tvOS.dismiss()
}
Expand All @@ -172,7 +172,7 @@ function opensearchView (e) {
function openExampleApp (e) {
tvOS.alert('Open Example App?', '© The-App-Team', ['Yes', 'No'], function (c) {
if (c === 'Yes') {
tvOS.location('https://wdg.github.io/tvOS.js/example_app.js')
tvOS.location('https://0xwdg.github.io/tvOS.js/example_app.js')
} else {
tvOS.dismiss()
}
Expand All @@ -182,7 +182,7 @@ function openExampleApp (e) {
function openExampleApp2 (e) {
tvOS.alert('Open NU.nl App?', '', ['Yes', 'No'], function (c) {
if (c === 'Yes') {
tvOS.location('https://wdg.github.io/tvOS.js/example_app2.js')
tvOS.location('https://0xwdg.github.io/tvOS.js/example_app2.js')
} else {
tvOS.dismiss()
}
Expand All @@ -192,7 +192,7 @@ function openExampleApp2 (e) {
function openInstagram (e) {
tvOS.alert('Open Instagram App?', '', ['Yes', 'No'], function (c) {
if (c === 'Yes') {
tvOS.location('https://wdg.github.io/tvOS.js/example_instagram.js')
tvOS.location('https://0xwdg.github.io/tvOS.js/example_instagram.js')
} else {
tvOS.dismiss()
}
Expand All @@ -202,7 +202,7 @@ function openInstagram (e) {
function openTwitter (e) {
tvOS.alert('Open Twitter App?', '', ['Yes', 'No'], function (c) {
if (c === 'Yes') {
tvOS.location('https://wdg.github.io/tvOS.js/example_twitter.js')
tvOS.location('https://0xwdg.github.io/tvOS.js/example_twitter.js')
} else {
tvOS.dismiss()
}
Expand All @@ -212,7 +212,7 @@ function openTwitter (e) {
function openIMDB (e) {
tvOS.alert('Open IMDB?', '', ['Yes', 'No'], function (c) {
if (c === 'Yes') {
tvOS.location('https://wdg.github.io/tvOS.js/example_IMDB.js')
tvOS.location('https://0xwdg.github.io/tvOS.js/example_IMDB.js')
} else {
tvOS.dismiss()
}
Expand All @@ -222,7 +222,7 @@ function openIMDB (e) {
function openYoutubeVideo (e) {
tvOS.alert('Open YouTube Video?', '(there is no go back!)', ['Yes', 'No'], function (c) {
if (c === 'Yes') {
tvOS.location('https://wdg.github.io/tvOS.js/example_youtube.js')
tvOS.location('https://0xwdg.github.io/tvOS.js/example_youtube.js')
} else {
tvOS.dismiss()
}
Expand All @@ -232,7 +232,7 @@ function openYoutubeVideo (e) {
function list_reload (e) {
tvOS.alert('Reload?', '', ['Yes', 'No'], function (c) {
if (c === 'Yes') {
tvOS.location('https://wdg.github.io/tvOS.js/index.js')
tvOS.location('https://0xwdg.github.io/tvOS.js/index.js')
} else {
tvOS.dismiss()
}
Expand Down

0 comments on commit 5978d2c

Please sign in to comment.