GithubHelp home page GithubHelp logo

Comments (5)

cmdcmdcmd avatar cmdcmdcmd commented on June 27, 2024

On it :)

from openwhyd.

adrienjoly avatar adrienjoly commented on June 27, 2024

That's awesome! Thank you Claire!

from openwhyd.

adrienjoly avatar adrienjoly commented on June 27, 2024

I just found my work in progress on an embedded player that can be loaded dynamically (i.e. by loading a JavaScript file, instead of integrating an iframe) and customized by its hosting page:

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>New OpenWhyd Embed</title>
  <link rel="stylesheet" type="text/css" href='/html/testWhydEmbed.css'></link>
</head>
<body>
  <div id="coucou"></div>
  <script src='/js/whydEmbed.js?id=coucou&amp;path=https://openwhyd.org/u/53034dbe7e91c862b2b59270/playlist/1'></script>
</body>
</html>
.whydEmbed {
  color: #555;
  font-family: helvetica, arial;
  font-size: 14px;
}

.whydEmbed * {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.whydEmbed > div {
  position: relative;
  width: 300px;
  height: 200px;
  overflow:hidden;
  background: #333;
  background-size: cover;
  background-position: 50% 50%;
}

.whydEmbed > div * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.whydEmbed ul {
  width: 300px;
  height: 100px;
  overflow-x: hidden;
  padding-left: 20px;
  list-style: none;
  padding: 0;
  background: #ddd;
}

.whydEmbed li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: normal;
  cursor: pointer;
  white-space: nowrap;
  padding: 5px;
  text-shadow: 0 1px 0 rgba(255,255,255,1);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #888;
}

.whydEmbed li span {
  display: inline-block;
  height: 14px;
  width: 12px;
  margin: 0px 6px;
  background: transparent url("/images/icon-embedv2-play-pause.png") no-repeat 0 -14px;
}

.whydEmbed li:hover {
  background: #f0f1f2;
}

from openwhyd.

adrienjoly avatar adrienjoly commented on June 27, 2024

Otherwise, you can find the previous and current version of the player embed in these files:

Both are loaded by app/templates/feed.js (which indentation is completely broken, for some reason => needs fixing), based on the value of the format parameter of any track list endpoint.

Suggestion: create files feedEmbedV3.html and feedEmbedV3.css, and add them to feed.js, in a way to not break existing integration of openwhyd playlist embeds on external websites (they should still be able to use V1 or V2).

from openwhyd.

adrienjoly avatar adrienjoly commented on June 27, 2024

Nobody asked for this in a long time.

from openwhyd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.