Skip to content

Commit

Permalink
change to static cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
Julio César committed Apr 8, 2016
1 parent 4d6df94 commit 956556e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 41 deletions.
31 changes: 0 additions & 31 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,37 +23,6 @@ app.get('/', function(req, res) {
res.sendFile(__dirname + '/index.html');
});

app.get('/keypress.js', function(req, res) {
res.sendFile(__dirname + '/keypress.js');
});
app.get('/jquery.min.js', function(req, res) {
res.sendFile(__dirname + '/jquery.min.js');
});
app.get('/jquery-ui.min.js', function(req, res) {
res.sendFile(__dirname + '/jquery-ui.min.js');
});
app.get('/font-awesome.min.css', function(req, res) {
res.sendFile(__dirname + '/font-awesome.min.css');
});
app.get('/bootstrap.min.css', function(req, res) {
res.sendFile(__dirname + '/bootstrap.min.css');
});
app.get('/status.css', function(req, res) {
res.sendFile(__dirname + '/status.css');
});
app.get('/interstellar.js', function(req, res) {
res.sendFile(__dirname + '/interstellar.js');
});
app.get('/img/volume-empty.png', function(req, res) {
res.sendFile(__dirname + '/img/volume-empty.png');
});
app.get('/img/volume-full.png', function(req, res) {
res.sendFile(__dirname + '/img/volume-full.png');
});
app.get('/img/volume-knob.png', function(req, res) {
res.sendFile(__dirname + '/img/volume-knob.png');
});

var sockets = {};

io.on('connection', function(socket) {
Expand Down
14 changes: 7 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<html>
<head>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="/status.css" media="screen" title="no title" charset="utf-8">
<link href="/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="/font-awesome.min.css">
<script src="/jquery.min.js"></script>
<script src="/jquery-ui.min.js"></script>
<script src="/keypress.js"></script>
<link rel="stylesheet" href="https://juliocesar.io/voyager_static/status.css" media="screen" title="no title" charset="utf-8">
<link href="https://juliocesar.io/voyager_static/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://juliocesar.io/voyager_static/font-awesome.min.css">
<script src="https://juliocesar.io/voyager_static/jquery.min.js"></script>
<script src="https://juliocesar.io/voyager_static/jquery-ui.min.js"></script>
<script src="https://juliocesar.io/voyager_static/keypress.js"></script>
<script src="/socket.io/socket.io.js"></script>


Expand Down Expand Up @@ -193,5 +193,5 @@


</body>
<script src="/interstellar.js"></script>
<script src="https://juliocesar.io/voyager_static/interstellar.js"></script>
</html>
6 changes: 3 additions & 3 deletions status.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
margin: 0 auto;
height:15px;
width: 300px;
background: url('/img/volume-empty.png') no-repeat left top;
background: url('https://juliocesar.io/voyager_static/img/volume-empty.png') no-repeat left top;
border: none;
outline: none;
}
Expand All @@ -22,15 +22,15 @@
height:15px;
width: 300px;
position: absolute;
background: url('/img/volume-full.png') no-repeat left top;
background: url('https://juliocesar.io/voyager_static/img/volume-full.png') no-repeat left top;
border: none;
outline: none;
}

#volume .ui-slider-handle {
width: 38px;
height:39px;
background: url('/img/volume-knob.png') no-repeat left top;
background: url('https://juliocesar.io/voyager_static/img/volume-knob.png') no-repeat left top;
position: absolute;
margin-left: -15px;
cursor: pointer;
Expand Down

0 comments on commit 956556e

Please sign in to comment.