- Overview - https://developer.spotify.com/web-api/
- Register an app - https://developer.spotify.com/my-applications
- Console for quick testing - https://developer.spotify.com/web-api/console/
- List of the wrappers in various languages - https://developer.spotify.com/web-api/code-examples/#libraries
- Authentication and Authorization Guide - https://developer.spotify.com/web-api/authorization-guide/
This file contains hidden or 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
#container { | |
background: #fff url(gradient.gif) repeat-x bottom; | |
background: -webkit-gradient( | |
linear, 0 100%, 0 0, | |
from(#ecebe7), color-stop(50%, #fff), to(#fff) | |
); | |
background: -webkit-linear-gradient(bottom, #ecebe7, #fff 50%, #fff); | |
background: -moz-linear-gradient(bottom, #ecebe7, #fff 50%, #fff); | |
} |
This file contains hidden or 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
/** | |
* Object descriptor | |
**/ | |
var a = { | |
prop1 : 14 | |
} | |
var descriptorObj1 = Object.getOwnPropertyDescriptor(a, 'prop1'); |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Binding the same event listeners more than once</title> | |
</head> |
This file contains hidden or 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
function delegate(element, eventType, selector, callback, bubble) { | |
var selectorObj = getSelectorType(selector); | |
var callbackFn; | |
selector = selectorObj.value; | |
switch (selectorObj.type) { | |
case 'tag': | |
callbackFn = tagSelector; | |
break; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<link href="style.css" rel="stylesheet" /> | |
<body> | |
<button id="open">click!</button> | |
<div id="popup" class="closed"><button id="close">click!</button></div> | |
</body> | |
<script src="popup.js"></script> | |
<script> | |
var p = document.getElementById('popup'); |
OlderNewer