Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

created small music player #52

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
884af6e
Signup of new project
Visiona Sep 24, 2017
5f9e993
Set up skeleton with divs of the player
Visiona Sep 24, 2017
eb852dd
Created basic html/css media player
Visiona Sep 24, 2017
e6b77aa
Refactored code and upgreaded look of the player
Visiona Sep 28, 2017
9c52155
FIrst song is playing with added puse/play functionality from jQuery
Visiona Sep 30, 2017
6e675cf
Created spotify association with three albums, and crawling though sp…
Visiona Sep 30, 2017
da9a921
Created automatic refilling players list with spotify. TO DO - create…
Visiona Oct 1, 2017
f1512b5
creating audio object, rearranging html
Visiona Oct 3, 2017
b4cc719
fixed playing functions, TODO:cloned anchors do not works when clicking
Visiona Oct 4, 2017
0a2531b
Fixed issue with asynchronous code - binding click event to every son…
Visiona Oct 5, 2017
1f1bce1
added fix to playing few songs at the same time, changing songs to im…
Visiona Oct 6, 2017
eceb00b
building functionality under play/pause/back and forwarding tracks in…
Visiona Oct 8, 2017
da29de0
Fixed all the issues with back and forward changing songs, whethere i…
Visiona Oct 8, 2017
bb2bc78
refactored code
Visiona Oct 8, 2017
18f1359
Fixed bug that prevented switching songs interchangably in status bar…
Visiona Oct 9, 2017
c5f5b5f
Updated README
Visiona Oct 23, 2017
f5bde28
Updated README
Visiona Oct 23, 2017
6fd5961
Updated README
Visiona Oct 23, 2017
95ced82
Updated link to live demo
Visiona Nov 3, 2017
1e0508f
preparing for deployment
Visiona Feb 18, 2018
3199e0b
Updated script
Visiona Feb 18, 2018
9a1416e
updated to https
Visiona Feb 21, 2018
5542269
updated to https
Visiona Feb 21, 2018
be5e366
Update in security link
Visiona May 13, 2018
5a51a75
replaced http into https in song fetched links
Visiona May 13, 2018
41c785f
replaced http into https in song fetched links
Visiona May 13, 2018
2e70317
added songs to work due to no https links
Visiona May 13, 2018
682ce78
updated with new links to new song locations
Visiona May 13, 2018
685b2eb
updated with new links to new song locations
Visiona May 13, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
Binary file not shown.
39 changes: 37 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,37 @@
# assignment_royalty_free_music_player
Ushering in the reign of Royalty Free Music w/ JavaScript.
# Royalty Free Music Player - JavaScript/jQuery

HTML, CSS, JavaScript, jQuery

Here is my music player based on a images provided by VCS. The music player holds a playlist of some royalty free songs. You can play any of them and jump between songs. Here are some requirements that this projects meet, originally requested by Viking Code School:
- A list of songs listed with their artists
- Each song should either be clickable or have a play button
- Each song should display differently when it’s being played
- A status bar with a play/pause button and the information for the current track
- The status bar should also have next and previous track buttons


![Music Player](music_player.png)

## Getting Started

OPEN LINK: http://cdn.rawgit.com/Visiona/assignment_royalty_free_music_player/f5bde28c/index.html

OR

You can clone the repository to your laptop and got into the project folder, then run:

```
ruby -run -e httpd . -p 9090

```

and open broswer on http://localhost:9090/

## Authors

* **Dariusz Biskupski** - *Initial work* - https://dariuszbiskupski.com


## Acknowledgments

This assignment I created for [Viking Code School](https://www.vikingcodeschool.com/)
25 changes: 25 additions & 0 deletions app/sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
Errno::ENOENT: No such file or directory @ rb_sysopen - app/sass

Backtrace:
/Users/Visiona/.rvm/gems/ruby-2.2.4/gems/sass-3.5.1/lib/sass/plugin/compiler.rb:454:in `read'
/Users/Visiona/.rvm/gems/ruby-2.2.4/gems/sass-3.5.1/lib/sass/plugin/compiler.rb:454:in `update_stylesheet'
/Users/Visiona/.rvm/gems/ruby-2.2.4/gems/sass-3.5.1/lib/sass/plugin/compiler.rb:215:in `block in update_stylesheets'
/Users/Visiona/.rvm/gems/ruby-2.2.4/gems/sass-3.5.1/lib/sass/plugin/compiler.rb:209:in `each'
/Users/Visiona/.rvm/gems/ruby-2.2.4/gems/sass-3.5.1/lib/sass/plugin/compiler.rb:209:in `update_stylesheets'
/Users/Visiona/.rvm/gems/ruby-2.2.4/gems/sass-3.5.1/lib/sass/plugin/compiler.rb:294:in `watch'
/Users/Visiona/.rvm/gems/ruby-2.2.4/gems/sass-3.5.1/lib/sass/plugin.rb:109:in `method_missing'
/Users/Visiona/.rvm/gems/ruby-2.2.4/gems/sass-3.5.1/lib/sass/exec/sass_scss.rb:360:in `watch_or_update'
/Users/Visiona/.rvm/gems/ruby-2.2.4/gems/sass-3.5.1/lib/sass/exec/sass_scss.rb:51:in `process_result'
/Users/Visiona/.rvm/gems/ruby-2.2.4/gems/sass-3.5.1/lib/sass/exec/base.rb:52:in `parse'
/Users/Visiona/.rvm/gems/ruby-2.2.4/gems/sass-3.5.1/lib/sass/exec/base.rb:19:in `parse!'
/Users/Visiona/.rvm/gems/ruby-2.2.4/gems/sass-3.5.1/bin/sass:13:in `<top (required)>'
/Users/Visiona/.rvm/gems/ruby-2.2.4/bin/sass:23:in `load'
/Users/Visiona/.rvm/gems/ruby-2.2.4/bin/sass:23:in `<main>'
/Users/Visiona/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in `eval'
/Users/Visiona/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in `<main>'
*/
body:before {
white-space: pre;
font-family: monospace;
content: "Errno::ENOENT: No such file or directory @ rb_sysopen - app/sass"; }
Binary file added assets/crown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
70 changes: 70 additions & 0 deletions home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">


<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">




<link rel="stylesheet" href="out_master.css">

<title>Royalty Music Player</title>
</head>

<body>
<div class="music-wrapper">

<div class="title-wrapper">
<img src="assets/crown.png" alt="">
<h3>Royalty Free Music Player</h3>
</div>

<div class="playlist">
</div>

<a href="javascript:void(0)" class="test-song">

<span class="glyphicon glyphicon-play" aria-hidden="true"></span>
<span class="glyphicon glyphicon-pause" aria-hidden="true"></span>
<div class="song-title">
<h5></h5>
<h6></h6>
</div>

</a>

<div class="playing-song">

<a href="javascript:void(0)" class="controls">
<span class="glyphicon glyphicon-step-backward" aria-hidden="true"></span>
<span class="glyphicon glyphicon-play" aria-hidden="true"></span>
<span class="glyphicon glyphicon-pause" aria-hidden="true"></span>
<span class="glyphicon glyphicon-step-forward" aria-hidden="true"></span>
<div class="song-playing-title">
<h4></h4>
<h5></h5>
</div>
</a>

</div>

</div>

<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- <script src="http://code.jquery.com/jquery-1.12.0.min.js"></script> -->
<!-- <script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script> -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="music.js"></script>


<!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> -->


</body>

</html>
1 change: 1 addition & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php include_once("home.html"); ?>
102 changes: 102 additions & 0 deletions master.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
@import url('https://fonts.googleapis.com/css?family=Oswald');

body {
font-family: 'Oswald', sans-serif;
color: #333;
}

div.title-wrapper {
background-color: #ccc;
padding: 3px;
border-bottom: 1px solid #333;
text-align: center;
h3 {
display: inline-block;
font-weight: 200;
margin-top: 15px;
margin-bottom: 0;
}
img {
width: 30px;
margin-bottom: 10px;
display: inline;
}

}

div.music-wrapper {
width: 500px;
margin: 80px auto;
border: 1px solid #333;
}

h6 {
color: #888;
margin: 5px 2px;
}

h5, h4 {
margin: 5px 2px;
}


div.playlist {
min-height: 150px;
max-height: 300px;
overflow-y: scroll;
overflow: auto;
}

div.playlist a.song-listed {
padding: 5px;
border-bottom: 1px solid #333;
font-size: 25px;
color: #ccc;
text-decoration: none;
display: block;
div.song-title {
max-width: 200px;
display: inline-block;
margin-left: 10px;
}
span.glyphicon {
top: -5px;
}
}

a.song-listed:hover > *{
color: #000;
}


div.playing-song {
background-color: #333;
padding: 5px 2px;

a.controls {
display: inline-block;
vertical-align: top;
margin-top: 15px;
margin-left: 20px;
text-decoration: none;
span.glyphicon {
font-size: 25px;
color: #fff;
top: -2px;
}
span.glyphicon:hover {
color: #666;
}
}

div.song-playing-title {
font-family: Helvetica;
color: #fff;
font-weight: 100;
display: inline-block;
margin-left: 10px;
h5 {
color: #999;
}
}
}
Loading