Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(() => {
- if(profileFields){
- profileFields.forEach(obj => {
- if(obj.id === '1'){
- const songIn = obj.content.indexOf("/track/");
- const songfin = obj.content.indexOf("</div><div");
- const song = obj.content.substring(songIn, songfin);
- if(song){
- $('.spoti-song').append('<iframe src="https://open.spotify.com/embed' + song + '" width="300" height="380" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>');
- }else{
- $('.spoti-song').append('<iframe src="https://open.spotify.com/embed/track/0FkcmHJOsWE80rlpzfT0Pq" width="300" height="380" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>');
- };
- };
- });
- };
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement