Nástroje používateľa

Nástoje správy stránok


blog:odborny:2019-08-21-spotify_link_generator_open_spotify_track_in_specific_playlist

Rozdiely

Tu môžete vidieť rozdiely medzi vybranou verziou a aktuálnou verziou danej stránky.

Odkaz na tento prehľad zmien

Nasledujúca revízia
Predchádzajúca revízia
blog:odborny:2019-08-21-spotify_link_generator_open_spotify_track_in_specific_playlist [2019/08/21 14:17]
Róbert Toth vytvorené
blog:odborny:2019-08-21-spotify_link_generator_open_spotify_track_in_specific_playlist [2019/10/08 23:03] (aktuálne)
Róbert Toth socialshareprivacy2 plugin call replaced with socialite
Riadok 101: Riadok 101:
   // show results   // show results
   resultURLElement.value = resultURL;   resultURLElement.value = resultURL;
-  resultURIElement.value = resultURI; +  resultURLhrefElement.href      = resultURL;
-  resultURLElement.href = 'resultURL';+
   resultURLhrefElement.innerHTML = 'open';   resultURLhrefElement.innerHTML = 'open';
-  resultURIElement.href = 'resultURI';+   
 +  resultURIElement.value = resultURI; 
 +  resultURIhrefElement.href      = resultURI;
   resultURIhrefElement.innerHTML = 'open';   resultURIhrefElement.innerHTML = 'open';
 } }
Riadok 115: Riadok 116:
 <dl style="margin-left:50px;"> <dl style="margin-left:50px;">
   <dt>Track URL:</dt>   <dt>Track URL:</dt>
-  <dd><input type="text" id="trackURL" placeholder="e.g. https://open.spotify.com/track/2dhhGc8znEPcEMz0tEyT7w" style="width:500px;" onchange='calculateSpotifyURL()'>+  <dd><input type="text" id="trackURL" placeholder="e.g. https://open.spotify.com/track/2dhhGc8znEPcEMz0tEyT7w" style="width:500px;" oninput='calculateSpotifyURL()'>
   <dt>Track URI:</dt>   <dt>Track URI:</dt>
-  <dd><input type="text" id="trackURI" placeholder="e.g. spotify:track:2dhhGc8znEPcEMz0tEyT7w" style="width:500px;" onchange='calculateSpotifyURL()'>+  <dd><input type="text" id="trackURI" placeholder="e.g. spotify:track:2dhhGc8znEPcEMz0tEyT7w" style="width:500px;" oninput='calculateSpotifyURL()'>
   <dt>Track ID:</dt>   <dt>Track ID:</dt>
-  <dd><input type="text" id="trackID" placeholder="e.g. 2dhhGc8znEPcEMz0tEyT7w" style="width:300px;" onchange='calculateSpotifyURL()'>+  <dd><input type="text" id="trackID" placeholder="e.g. 2dhhGc8znEPcEMz0tEyT7w" style="width:300px;" oninput='calculateSpotifyURL()'>
 </dl> </dl>
  
Riadok 126: Riadok 127:
 <dl style="margin-left:50px;"> <dl style="margin-left:50px;">
   <dt>Playlist URL:</dt>   <dt>Playlist URL:</dt>
-  <dd><input type="text" id="playlistURL" placeholder="e.g. https://open.spotify.com/playlist/1T33xoMY3sDPrIA3ymgChd" style="width:500px;" onchange='calculateSpotifyURL()'>+  <dd><input type="text" id="playlistURL" placeholder="e.g. https://open.spotify.com/playlist/1T33xoMY3sDPrIA3ymgChd" style="width:500px;" oninput='calculateSpotifyURL()'>
   <dt>Playlist URI:</dt>   <dt>Playlist URI:</dt>
-  <dd><input type="text" id="playlistURI" placeholder="e.g. spotify:playlist:1T33xoMY3sDPrIA3ymgChd" style="width:500px;" onchange='calculateSpotifyURL()'>+  <dd><input type="text" id="playlistURI" placeholder="e.g. spotify:playlist:1T33xoMY3sDPrIA3ymgChd" style="width:500px;" oninput='calculateSpotifyURL()'>
   <dt>Playlist ID:</dt>   <dt>Playlist ID:</dt>
-  <dd><input type="text" id="playlistID" placeholder="e.g. 1T33xoMY3sDPrIA3ymgChd" style="width:300px;" onchange='calculateSpotifyURL()'>+  <dd><input type="text" id="playlistID" placeholder="e.g. 1T33xoMY3sDPrIA3ymgChd" style="width:300px;" oninput='calculateSpotifyURL()'>
 </dl> </dl>
  
Riadok 141: Riadok 142:
  
 <dl> <dl>
-  <dt>Link URL (to open in web browser): <a href="#" id="resultURLhref"></a></dt>+  <dt>Link URL (to open in web browser): <a href="#" id="resultURLhref" target="_blank"></a></dt>
   <dd><input type="text" id="resultURL" style="width:500px;">   <dd><input type="text" id="resultURL" style="width:500px;">
-  <dt>Link URI (to open in Spotify): <a href="#" id="resultURIhref"></a></dt>+  <dt>Link URI (to open in Spotify): <a href="#" id="resultURIhref" target="_blank"></a></dt>
   <dd><input type="text" id="resultURI" style="width:500px;">   <dd><input type="text" id="resultURI" style="width:500px;">
 </dl> </dl>
Riadok 154: Riadok 155:
  
  
-{{socialshareprivacy2}}+~~socialite~~
 {{tag>tools}} {{tag>tools}}
  
blog/odborny/2019-08-21-spotify_link_generator_open_spotify_track_in_specific_playlist.1566389833.txt.gz · Posledná úprava: 2019/08/21 14:17 od Róbert Toth