Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <!--
- This page is made to customize your music player.
- Below are the set of options that can be overridden.
- See for help
- https://nouvae.tumblr.com/codes/playlist/install
- customizable playlist by nouvae
- -->
- <head>
- <meta charset=utf-8>
- <link href="https://fonts.googleapis.com/css?family=Karla|Inconsolata|Yrsa" rel="stylesheet">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
- <script src="https://static.tumblr.com/qbey5ak/ZyJp4b53n/nouplay.js"></script>
- <link href="https://static.tumblr.com/qbey5ak/ie5p4bbjw/nouplay.css" type="text/css" rel="stylesheet">
- <script>
- /**
- *
- * CUSTOMIZE YOUR MUSIC PLAYER
- *
- **/
- // REQUIRED
- // your username
- // i.e. username = "nouvae";
- username = "";
- // the tag where the audio is under
- // if your tag has a space, replace the spaces
- // with a + sign.
- // i.e. tag = "music"; or tag = "my+playlist"
- tag = "";
- // OPTIONAL (will rely on default player)
- // the width of your playlist (in pixels)
- // i.e. width = "240px";
- width = "125px";
- // the title of your playlist
- // i.e. title = "favorite songs";
- title = "untitled";
- // the type of text
- // i.e. fontfam = "arial";
- // you can upload fonts via fonts.google.com or with css @font-face
- // or use the fonts I have downloaded "karla", "inconsolata", or "yrsa"
- fontfam = "karla";
- // the size of the text (in pixels)
- // i.e. fontsize = "15px";
- fontsize = "12px";
- // the background of your album cover
- // for color i.e. cover = "#cccccc";
- // for background image i.e. cover = "url('https://thelinkofyourimage.com')";
- cover = "#f2f2f2";
- // first part changes color of the player
- // second part changes the color of the buttons and text (if true, it changes the color of the buttons and text to white)
- // basic skins: playercolor = ["#000000", true]; (black player)
- // playercolor = ["#ffffff", false]; (white player)
- playercolor = ["#ffffff", false];
- // the color of the borders
- // i.e. border = "#d2d2d2";
- border = "#f3f3f3";
- // the color of the progress bar
- // i.e. progresscolor = "#000000";
- progresscolor = "blue";
- // the height of your progress bar (in pixels)
- // i.e. hotofprog = "3px";
- // if you don't want it, just make it equal to "0px"
- hofprog = "2px";
- // the alignment of the text
- // i.e. align = "center";
- align = "left";
- // write 'true' if you want the following on your playlist.
- // otherwise, write 'false'
- // i.e. hascover = true;
- // displays the album cover
- hascover = false;
- // displays the playlist title
- hastitle = false;
- // displays the name of the tracks
- hastrack = false;
- // displays the list of tracks
- // if 'hastrack' is true
- iflist = false;
- // carousels the current song
- ifscr = false;
- // displays text as all uppercase
- ifuppercase = false;
- // rounds the corners of the player
- ifrounded = false;
- // removes next and previous buttons
- ifsinglebutt = false;
- // displays tracks as a sidebar
- // if 'hastrack' is true
- horizon = false;
- </script>
- </head>
- <body>
- <div id="playlist">
- <div id="aside">
- <div id="title"></div>
- <div id="cover"></div>
- <div id="progressbg"></div>
- <div id="progress"></div>
- <div id="player"></div>
- <div id="buttons">
- <div class="prev">
- <svg height="1.4em" id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="25px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M256,128L32,256l224,128V260.8L480,384V128L256,251.2V128L256,128z"/></svg>
- </div>
- <div class="active">
- <div class="play"><svg height="1.4em" id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="25px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M128,96v320l256-160L128,96L128,96z"/></g></svg></div>
- <div class="pause"><svg height="1.4em" id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="25px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><rect height="320" width="79" x="128" y="96"/><rect height="320" width="79" x="305" y="96"/></g></svg></div>
- </div>
- <div class="next">
- <svg height="1.4em" id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="25px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M256,128v123.2L32,128v256l224-123.2V384l224-128L256,128L256,128z"/></svg>
- </div>
- </div>
- </div>
- <div id="tracks"></div>
- </div>
- <script src="https://static.tumblr.com/qbey5ak/uI7p4py2h/nouplay2.js"></script>
- <script>
- /**
- * code that generates the iframe
- **/
- function gen() {
- $("head").append("<style>body {text-align:right;font-family:inconsolata,monospace;font-size:14px;}a{text-decoration:none;color:blue;}a:hover{color:darkblue;}#genwrap a {margin-right:1.5em;} #genwrap{padding:2em;background:#ffffff;transition:0.5s;opacity:0.5;position:fixed;bottom:0px;right:0px;}#genwrap:hover {opacity:0.9;transition:0.5s;} #gen {font-family:inconsolata;font-size:1em;cursor:pointer;border:0;outline:0;background:#eeeeee;color:#000000;padding:1em 1.2em;margin-bottom:10px;}#gen:hover {background:#333333;color:#ffffff;} #magic{outline:0;padding:1em;width:600px;display:block;height:80px;}#genbuttons{text-align:left;margin:1em 0em;display:block;}</style>");
- $("body").append("<div id='genwrap'><textarea onClick='this.select()' id='magic'></textarea><br><div id='genbuttons'><a id='gen'>Generate iframe</a><a href='https://nouvae.tumblr.com'>#</a><a href='https://nouvae.tumblr.com/codes/playlist/install'>manual</a></div></div>");
- $("#gen").click(function() {
- var plink = window.location.href + "?g=hidden";
- document.getElementById("magic").textContent = '<iframe src="' + plink +'" width="' + framew + '" height="' + frameh + '" style="overflow:hidden!important;border:0!important;" scrolling="no"></iframe>';
- });
- };
- $(document).ready(function() {
- var hasIndex = window.location.href.indexOf("?g=hidden");
- if (hasIndex !== -1) {
- return;
- }
- else {
- gen();
- }
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement