Spotify Play button [closed] - html

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Just looking for some clarification with the new play button. I notice that when you hit play on the widget, it plays the song in the actual spotify app. Does that mean you need spotify to use the widget? What happens if you hit play and you don't have spotify? Do you have plans to make the widget independent of the app?

The Play Button works in a very similar way to Spotify's Facebook integration:
The tracks are played in the Spotify client.
If the Spotify client isn't running, it'll be launched.
If it isn't installed, the user will be led through a streamlined install process.
At the moment, this is required simply because without it we'd have to write a Spotify client in JavaScript, which is 1) hard and 2) served in plain text, which isn't really something we want to do! :-)

Related

Can a website tell a user's browser to store the entire page locally? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 days ago.
Improve this question
Can a (single-page) website tell a user's browser to store an entire page locally?
For context: I'm hosting a website on a server that charges according to bandwidth. The contents of the site don't change much, so I'm wondering if the user's browser can store the webpage rather than sending repeat requests for the web page!
I've looked into browser-native cacheing, but that appears to be for further requests triggered after the page's scripts load!
This is usually achieved thanks to PWA and Service workers: https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Offline_Service_workers
Actually it's the only way of doing that I know, it can be a bit tricky but it's quite interesting once you understand everything that you can do with it.

webpage intro video overlay and how often it plays [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am designing a webpage with an overlay intro video. Essentially the moment you enter the webpage an intro video will play. It works and did what I wanted it to do. WHAT I DON'T WANT IT TO DO is play every time I go into this page. What I want to do is:
Have the video play the moment you enter the page (PAGE A).
Then lets say you go to page B...
After that you return to page A and the video doesn't play again until after a certain period of time (lets say 12 hours).
We did figure out a way to do this but we lost the code, so we know its possible.
Anyway you guys can help me out here?
I would look into localStorage or sessionStorage. Either of those can be used to store information in-browser - for example, whether or not the user has seen the video before. On load, check localStorage for videoPlayed (or whatever you decide to call the variable) and use that to determine whether or not to show the video.
The main difference between the two is that localStorage never expires, while sessionStorage does once the page/browser is closed.

How to make an executable game accessible for users to play online [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
There's a little .exe file which contains a game I want to make available on a website (pure HTML), but I don't know how to do it.
What I want to achieve is: when clicked, users shouldn't have to install it but be able to play it on the site.
You can't use or run executables with html. Html and js can not modify directly contents in your PC and use system functions, they can do what they are allowed to by the browser, that communicates with the system and restricts some functioning.
That is why they can be considered "virtual" - they run on the browser that take care of their parsing and viewing.
For the same way you can't either embed it, since embedding requires the ability to run it.

How did this website do their splash page/age verification? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am looking at this website - http://www.shopmss.com/ - and I was wondering how they did the splash page, age verification and store all on the same URL 'shopmss.com'. You click through 3 screens before you get back to the store.
My secondary question is, can you do this without setting a cookie? i.e. Javascript, that appends the browser bar URL? Or something with mod_rewrite?
EDIT: I thought this was a relevant question to ask because I was exploring the best practice to accomplish the task, I figured it would have something technical. My bad.
The site is setting a cookie called BX. That could be tracking a session, in which they can display different content based on the state of the session.
They are using a frameset. Check the source.

Is there something like an equivalent of a "Go get Flash" link for HTML5? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm building a website that requires HTML5 features in order to run. If the features are not present in the browser we display a message to the user that they need to upgrade their browser in order to fully view the content.
What I would like to do is provide a link to a site with some information on what HTML5 is and what browsers support it, etc.
We'd prefer not have to build out our HTML5 information pages and just link to something "official" instead. Similar to the "Go get Flash" link (to http://get.adobe.com/flashplayer/) that is usually used to direct the user to Adobe if Flash isn't present.
Does such a site exist?
Try the API from html5please.com . It will show a message if the HTML5 features your site requires are unavailable on the user's browser and give them links to where they can download a browser that supports those features.
The message is configurable, but can look like this:
http://api.html5please.com/
These are some websites that may help explain the need to upgrade your browser:
http://browsehappy.com/
http://www.updatebrowser.net/
http://www.whatbrowser.org/en/
http://upgradeyourbrowser.net/