PageRenderTime 42ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/compare/index.php

https://github.com/Allikin/SpotifyTools.php
PHP | 102 lines | 100 code | 2 blank | 0 comment | 2 complexity | 74547b1d203a2f7b0434f59af287832d MD5 | raw file
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">
  3. <head>
  4. <title>Those annoying dupes</title>
  5. <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
  6. <link rel="stylesheet" type="text/css" href="../styles.css">
  7. <meta name="description" content="Quick and easy way to compare Spotify playlists" />
  8. <meta property="og:title" content="Compare your Spotify playlists" />
  9. <meta property="og:type" content="website" />
  10. <meta property="og:url" content="http://thoseannoyingdupes.com/compare/" />
  11. <meta property="og:image" content="http://thoseannoyingdupes.com/dupes_250x250.jpg" />
  12. <meta property="og:site_name" content="Those annoying dupes" />
  13. <meta property="fb:admins" content="anita.berge" />
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  15. </head>
  16. <body>
  17. <?php include('../java.js');
  18. include('../functions.php');
  19. ?>
  20. <div id="top" class="center">
  21. <h2>Compare Spotify playlists</h2>
  22. <b>Simply choose your desired Spotify playlists and drag/copy them to the fields below to compare</b><br/>
  23. - will not lists dupes within a playlist, just the ones that the different playlists have in common.<br/>
  24. - if you compare more than 2 playlists it will show what playlists that have that track (applies to dupes only).<br/>
  25. - you can choose to show the unique tracks for the playlists<br/>
  26. - playlists can be compared with track lists<br/>&nbsp;<br/>
  27. <div class="menu">
  28. <a href="../">Remove dupes</a>
  29. &nbsp;|&nbsp;
  30. Compare
  31. &nbsp;|&nbsp;
  32. <a href="../randomizer/">Randomize</a>
  33. &nbsp;|&nbsp;
  34. <a href="../split/">Split up</a>
  35. &nbsp;|&nbsp;
  36. <a href="/">Home</a>
  37. </div>
  38. </div>
  39. <div id="middle" class="center">
  40. <div id="col1" class="col">
  41. <form name='playlist' action='' method='POST'>
  42. <b>Drag/copy your <i>playlists</i> here - limited</b><br/>
  43. &nbsp;&nbsp;<font size='-2'>- will only accept up to 1000 tracks<br/>
  44. &nbsp;&nbsp;- does not handle local tracks<br/>&nbsp;<br/>
  45. <div id="newlink">
  46. <div class="feed">
  47. <b>Playlists:</b></font><br/>
  48. <input type='text' name='playlist[]' size='37' value="">
  49. <br/>&nbsp;<br/>
  50. </div>
  51. <div class="feed">
  52. <input type='text' name='playlist[]' size='37' value="">
  53. <br/>&nbsp;<br/>
  54. </div>
  55. </div>
  56. <div id="addnew">
  57. <a href="javascript:add_pl_feed()">Add another playlist</a><br/><br/>
  58. </div>
  59. <div id="newplaylist" style="display:none">
  60. <div class="feed">
  61. <input type="text" name="playlist[]" size='37' value=""><br/><br/>
  62. </div>
  63. </div>
  64. <input type='radio' name='compare' value ='dupes' checked >
  65. Show me the duplicates<br/>
  66. <input type='radio' name='compare' value ='uniques'>
  67. Show me the unique tracks<br/><br/>
  68. <input type="submit" name="submit" value="Submit"/>
  69. <input type='submit' name='reset' value="Reset"/>
  70. <br/><br/><b>and/or</b><br/>&nbsp;<br/>&nbsp;<br/>
  71. <b>...drag/copy your <i>tracks</i> here - no limit!</b><br/>
  72. &nbsp;&nbsp;<font size='-2'>- as many as you want, local ones too<br/>&nbsp;<br/>
  73. <b>Track list(s):</b></font><br/>
  74. <div id="newlink2">
  75. <div class="feed2">
  76. <textarea name='tracks[]' rows='6' cols='35' wrap='off'></textarea>
  77. <br/>&nbsp;<br/>
  78. </div>
  79. </div>
  80. <div id="addnew2">
  81. <a href="javascript:add_tr_feed()">Add another track list</a><br/><br/>
  82. </div>
  83. <div id="newtracklist" style="display:none">
  84. <div class="feed2">
  85. <textarea name='tracks[]' rows='6' cols='35' wrap='off'></textarea>
  86. <br/>&nbsp;<br/>
  87. </div>
  88. </div>
  89. <input type='radio' name='compare' value ='dupes'>
  90. Show me the duplicates<br/>
  91. <input type='radio' name='compare' value ='uniques'>
  92. Show me the unique tracks<br/><br/>
  93. <input type="submit" name="submit" value="Submit"/>
  94. <input type='submit' name='reset' value="Reset"/>
  95. </div>
  96. <div id="col2" class="col">
  97. <?php include('compare.php'); ?>
  98. </div>
  99. </div>
  100. <?php include('../footer.php');?>