Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
85 lines (74 sloc) 2.84 KB
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>nTunes!!!</title>
<link rel="stylesheet" href="/css/Aristo/jquery-ui-1.8rc3.custom.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet/less" href="/css/ntunes.less" type="text/css" />
</head>
<body>
<%- body %>
<script src="/js/jquery-1.4.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery-ui-1.8.4.custom.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/underscore.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/less-1.0.35.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
less.env = "development";
less.watch();
$("#library").resizable({
handles: 'e',
resize: function(event, ui) {
var w = $(window).width() - $('#library').outerWidth();
$('#browser').width(w);
$('#songCanvas').width(w);
}
});
$('#browser')
.width($(window).width() - $('#library').outerWidth())
.resizable({ handles: 's', resize: function(e, ui) {
$('#songCanvas')
.height($(window).height() - $('#header').outerHeight() - $('#browser').outerHeight());
$('#browser ul')
.height($('#browser').height() - $('#browser h2').outerHeight() - $('#browser .ui-resizable-s').outerHeight());
}});
$('#songCanvas')
.width($(window).width() - $('#library').outerWidth())
.height($(window).height() - $('#header').outerHeight() - $('#browser').outerHeight());
$('#browser ul')
.height($('#browser').height() - $('#browser h2').outerHeight() - $('#browser .ui-resizable-s').outerHeight());
$(window).bind('resize', function() {
$('#browser')
.width($(window).width() - $('#library').outerWidth());
$('#songCanvas')
.width($(window).width() - $('#library').outerWidth())
.height($(window).height() - $('#header').outerHeight() - $('#browser').outerHeight());
});
$('#playlists li')
.bind('dblclick', function(e) {
$(this).attr('contenteditable', 'true');
$(this).focus();
})
.bind('blur', function(e) {
$(this).attr('contenteditable', 'false');
});
$('#volume').slider({
min: 0,
max: 10,
value: 7,
animate: true,
slide: function(event, ui) {
if (ui.value === 10) {
var num = 1;
} else {
var num = '.' + ui.value
}
document.getElementById('playa').volume = num;
}
});
$('#controls a').bind('click', function(e) {
e.preventDefault();
});
</script>
<script src="/js/ntunes.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>