- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <link href="https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.8.4/nv.d3.css" rel="stylesheet" type="text/css"> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.2/d3.min.js" charset="utf-8"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.8.4/nv.d3.js"></script> | |
| <script src="https://raw.githubusercontent.com/nvd3-community/nvd3/gh-pages/examples/lib/stream_layers.js"></script> | |
| <style> |
| var data = []; | |
| $(".ti__details").each(function(i){ | |
| var artist = $(this).find(".ti__artist meta").attr("content"); | |
| var title = $(this).find(".ti__title").attr("content"); | |
| var format = artist + " - " + title; | |
| var yt = 'http://www.youtube.com/results?search_type=&search_query=' + encodeURI(artist + " " + title) + '&aq=f&oq='; | |
| var spoti = 'https://play.spotify.com/search/'+ encodeURI(artist + " " + title); | |
| var item = new Object; | |
| console.groupCollapsed(format); | |
| console.log(yt); |