mirror of
https://github.com/Viren070/stremio-addons-list.git
synced 2025-12-01 23:19:02 +01:00
Merge pull request #417 from Viren070/add-install-web-button
This commit is contained in:
@@ -100,7 +100,7 @@ getCached().then(cached => {
|
||||
const lowerCaseName = addonManifest.name.toLowerCase()
|
||||
const keywordsForAddonPage = config['addon-keywords'].split('{}').join(lowerCaseName)
|
||||
|
||||
const installButton = !(addonManifest.behaviorHints || {}).configurationRequire ? '<a class="addon-button install-button" href="'+task.url.replace('https://','stremio://')+'">Install</a> <a class="addon-button copy-link-button" href="#" onClick="copyLink(event, \''+task.url+'\')">Copy Link</a>' : ''
|
||||
const installButton = !(addonManifest.behaviorHints || {}).configurationRequire ? '<a class="addon-button install-button" href="'+task.url.replace('https://','stremio://')+'">Install</a> <a class="addon-button install-web-button" href="https://web.stremio.com/#/addons?addon='+task.url+'" target="_blank">Install (Web)</a> <a class="addon-button copy-link-button" href="#" onClick="copyLink(event, \''+task.url+'\')">Copy Link</a>' : '';
|
||||
const configButton = (addonManifest.behaviorHints || {}).configurable ? '<a class="addon-button configure-button" href="'+task.url.replace('/manifest.json','/configure')+'" target="_blank">Configure</a>' : ''
|
||||
const commentsButton = task.commentCount ? `<a href="${slug(addonManifest.name)}.html" class="addon-button last-addon-button"><ion-icon name="chatbubbles" class="gray-icon"></ion-icon> ${task.commentCount}</a>` : ''
|
||||
const language = task.language && task.language !== 'Multilingual' && task.language !== 'None' ? `<div class="addon-language">${task.language} Content</div>` : ''
|
||||
|
||||
@@ -108,6 +108,13 @@ h1 {
|
||||
.install-button:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
.install-web-button {
|
||||
background-color: #dc30ff;
|
||||
color: #fff;
|
||||
}
|
||||
.install-web-button:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
.copy-link-button {
|
||||
background-color: #FFA030;
|
||||
color: #fff;
|
||||
|
||||
Reference in New Issue
Block a user