mirror of
https://github.com/jlengrand/soundcloud-web-component-application.git
synced 2026-03-10 08:41:23 +00:00
35 lines
945 B
HTML
35 lines
945 B
HTML
<link rel="import" href="../../../bower_components/polymer/polymer.html">
|
|
|
|
<dom-module id="sc-player">
|
|
<template>
|
|
<style>
|
|
:host {
|
|
margin: auto;
|
|
width: 50%;
|
|
display: block;
|
|
}
|
|
</style>
|
|
|
|
<iframe
|
|
width="100%"
|
|
height="450"
|
|
scrolling="no"
|
|
frameborder="no"
|
|
src="https://w.soundcloud.com/player/?url={{playlistUrl}}&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true">
|
|
</iframe>
|
|
|
|
</template>
|
|
<script>
|
|
Polymer({
|
|
is: 'sc-player',
|
|
properties: {
|
|
playlistUrl : {
|
|
type: String,
|
|
value: "",
|
|
reflectToAttribute: true
|
|
}
|
|
}
|
|
});
|
|
</script>
|
|
</dom-module>
|