mirror of
https://github.com/jlengrand/soundcloud-web-component-application.git
synced 2026-03-10 08:41:23 +00:00
Embed first version of player in webpage
This commit is contained in:
27
app/components/sc-player/sc-player.html
Normal file
27
app/components/sc-player/sc-player.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<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=https%3A//api.soundcloud.com/tracks/113662676&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true">
|
||||
</iframe>
|
||||
|
||||
</template>
|
||||
<script>
|
||||
Polymer({
|
||||
is: 'sc-player'
|
||||
});
|
||||
</script>
|
||||
</dom-module>
|
||||
@@ -8,9 +8,11 @@
|
||||
|
||||
<link rel="import" href="../app/components/sc-title/sc-title.html">
|
||||
<link rel="import" href="../app/components/sc-profile/sc-profile.html">
|
||||
<link rel="import" href="../app/components/sc-player/sc-player.html">
|
||||
|
||||
<body>
|
||||
<sc-title></sc-title>
|
||||
<sc-profile></sc-profile>
|
||||
<sc-player></sc-player>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user