Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
koggdalspotify committed Feb 21, 2012
0 parents commit 8e82ec2
Show file tree
Hide file tree
Showing 15 changed files with 148 additions and 0 deletions.
80 changes: 80 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
html, body {
background: #292929;
}

body {
width: 700px;
margin: 40px auto;
}


.clock {
width: 700px;
height: 243px;
margin: 0 auto 100px auto;
}

.clock .clock-top {
width: 685px;
height: 21px;
margin: 0 auto;
background: url('../images/clock/top.png');
}
.clock .clock-top .switch-face {
border: 0;
display: block;
width: 58px;
height: 8px;
margin: 0 auto;
position: relative;
top: 4px;
background: url('../images/clock/top-button.png');
}

.clock .clock-frame {
width: 700px;
height: 230px;
background: url('../images/clock/frame.png');
position: relative;
top: -5px;
}

.clock .clock-frame .clock-inside {
width: 670px;
height: 200px;
background: url('../images/clock/inside.png');
position: absolute;
top: 15px;
left: 15px;
z-index: 5;
}
.clock .clock-frame .clock-inside .clock-face {
position: absolute;
top: 0;
z-index: 6;
}

.clock .clock-frame .clock-inside:before {
content: "";
display: block;
width: 670px;
height: 200px;
background: url('../images/clock/inner-shadow.png');
position: relative;
z-index: 7;
}

.clock:after {
content: "";
display: block;
width: 698px;
height: 213px;
position: relative;
top: -140px;
background: url('../images/clock/drop-shadow.png');
}


#droparea {
display: none;
}
Binary file added images/clock/drop-shadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/clock/frame.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/clock/inner-shadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/clock/inside.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/clock/top-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/clock/top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon/128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon/18x18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon/64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon/icon.psd
Binary file not shown.
29 changes: 29 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Clock</title>

<link rel="stylesheet" href="sp://import/css/adam.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="clock">
<div class="clock-top">
<button type="button" class="switch-face"></button>
</div>
<div class="clock-frame">
<div class="clock-inside">
<canvas class="clock-face" id="clock-face" width="670" height="200"></canvas>
</div>
</div>
</div>

<section id="droparea">
<h1>Drop any music here</h1>
<p>Drop a playlist, album, artist or track here to use that music for the clock.</p>
</section>

<script>var sp = getSpotifyApi(1), app = sp.require("js/app");</script>
</body>
</html>
9 changes: 9 additions & 0 deletions js/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"use strict";
var sp = getSpotifyApi(1);
var models = sp.require('sp://import/scripts/api/models');
var application = models.application;


/*application.observe(models.EVENT.LINKSCHANGED, function () {
});*/
11 changes: 11 additions & 0 deletions js/ocanvas-2.0.0.min.js

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"BundleType": "Application",
"AppName": {
"en": "Clock"
},
"AppIcon": {
"18x18": "images/icon/18x18.png"
},
"AcceptedLinkTypes": [
"album",
"artist",
"playlist",
"track",
"user"
],
"SupportedLanguages": [
"en"
]
}

0 comments on commit 8e82ec2

Please sign in to comment.