Skip to content

Instantly share code, notes, and snippets.

@radiocontrolled
Last active October 28, 2016 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radiocontrolled/703ccdc61a6b2b4c557664f2d0b895c5 to your computer and use it in GitHub Desktop.
Save radiocontrolled/703ccdc61a6b2b4c557664f2d0b895c5 to your computer and use it in GitHub Desktop.
function isAutoplay() {
var url = window.location.search;
var arr = url.split(/(\&|\?)/);
var autoplay = false;
for(var i = 0; i < arr.length; i++) {
if(arr[i] === "autoplay=true") {
autoplay = true;
}
}
return autoplay;
}
isAutoplay();
@radiocontrolled
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment