Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ python setup.py develop
easy_install repoze.what-quickstart
easy_install repoze.what-pylons
easy_install mutagen
apt-get install python-dev
apt-get install python-dev
easy_install psycopg2
apt-get install libxslt1-dev
pip install lxml
Expand Down
6 changes: 3 additions & 3 deletions migrations/003-load-mbdump/generate_drop_constraints.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SELECT 'ALTER TABLE '||nspname||'.'||relname||' DROP CONSTRAINT '||conname||';'
FROM pg_constraint
INNER JOIN pg_class ON conrelid=pg_class.oid
INNER JOIN pg_namespace ON pg_namespace.oid=pg_class.relnamespace
FROM pg_constraint
INNER JOIN pg_class ON conrelid=pg_class.oid
INNER JOIN pg_namespace ON pg_namespace.oid=pg_class.relnamespace
ORDER BY CASE WHEN contype='f' THEN 0 ELSE 1 END,contype,nspname,relname,conname

36 changes: 18 additions & 18 deletions public/static/ben/#player.js#
Original file line number Diff line number Diff line change
Expand Up @@ -15,88 +15,88 @@ function showPlayBtn()
function playTrack(t,n)
{
$("#jquery_jplayer").jPlayer("setFile", t).jPlayer("play");

showPauseBtn();

$("#trackname").fadeOut(function(){
$("#trackname").text(n);
$("#trackname").fadeIn();
});

$("#pcent").fadeOut(function(){
$("#pcent").fadeIn();
});

return false;
}



$(document).ready(function(){

$("#jquery_jplayer").jPlayer({
ready: function () {
}
})
.jPlayer("onProgressChange", function(lp,ppr,ppa,pt,tt) {
$("#pcent").text(parseInt(ppa)+"%");
});


$("#pause").hide();


$('a[name|=trklisting]').click(function() {
console.log($(this).text())
return(playTrack($(this).title(),$(this).text() ));
});


$("#theseparation").click(function() {
return(playTrack("http://www.miaowmusic.com/mp3/Miaow-05-The-separation.mp3",$("#theseparation").text()));
});

$("#lismore").click(function() {
return(playTrack("http://www.miaowmusic.com/mp3/Miaow-04-Lismore.mp3",$("#lismore").text()));
});

$("#thinice").click(function() {
return(playTrack("http://www.miaowmusic.com/mp3/Miaow-10-Thin-ice.mp3",$("#thinice").text()));
});

$("#play").click(function() {
$("#jquery_jplayer").jPlayer("play");
showPauseBtn();
return false;
});

$("#pause").click(function() {
$("#jquery_jplayer").jPlayer("pause");
showPlayBtn();
return false;
});

$("#stop").click(function() {
$("#jquery_jplayer").jPlayer("stop");
showPlayBtn();
return false;
});

$("#vmax").click(function() {
$("#jquery_jplayer").jPlayer("volume", 100);
return false;
});

$("#vmute").click(function() {
$("#jquery_jplayer").jPlayer("volume", 0);
return false;
});

$("#vhalf").click(function() {
$("#jquery_jplayer").jPlayer("volume", 50);
return false;
});

});


56 changes: 28 additions & 28 deletions public/static/ben/columnizer/autocolumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
overflow : false,
// this function is called after content is columnized
doneFunc : function(){},
// if the content should be columnized into a
// if the content should be columnized into a
// container node other than it's own node
target : false,
// re-columnizing when images reload might make things
Expand All @@ -40,7 +40,7 @@
var lastWidth = 0;
var columnizing = false;
$cache.append($(this).children().clone(true));

// images loading after dom load
// can screw up the column heights,
// so recolumnize after images load
Expand All @@ -63,11 +63,11 @@
}
}
}

$inBox.empty();

columnizeIt();

if(!options.buildOnce){
$(window).resize(function() {
if(!options.buildOnce && $.browser.msie){
Expand All @@ -82,7 +82,7 @@
}
});
}

/**
* return a node that has a height
* less than or equal to height
Expand All @@ -96,14 +96,14 @@
$putInHere.append($pullOutHere[0].childNodes[0]);
}
if($putInHere[0].childNodes.length == 0) return;

// now we're too tall, undo the last one
var kids = $putInHere[0].childNodes;
var lastKid = kids[kids.length-1];
$putInHere[0].removeChild(lastKid);
var $item = $(lastKid);


if($item[0].nodeType == 3){
// it's a text node, split it up
var oText = $item[0].nodeValue;
Expand All @@ -120,7 +120,7 @@
}
latestTextNode = document.createTextNode(columnText);
$putInHere.append(latestTextNode);

if(oText.length > counter2){
oText = oText.substring(oText.indexOf(' ', counter2));
}else{
Expand All @@ -138,21 +138,21 @@
return false; // we ate the whole text node, move on to the next node
}
}

if($pullOutHere.children().length){
$pullOutHere.prepend($item);
}else{
$pullOutHere.append($item);
}

return $item[0].nodeType == 3;
}

function split($putInHere, $pullOutHere, $parentColumn, height){
if($pullOutHere.children().length){
$cloneMe = $pullOutHere.children(":first");
$clone = $cloneMe.clone(true);
if($clone.attr("nodeType") == 1 && !$clone.hasClass("dontend")){
if($clone.attr("nodeType") == 1 && !$clone.hasClass("dontend")){
$putInHere.append($clone);
if($clone.is("img") && $parentColumn.height() < height + 20){
$cloneMe.remove();
Expand All @@ -175,15 +175,15 @@
}
}
}


function singleColumnizeIt() {
if ($inBox.data("columnized") && $inBox.children().length == 1) {
return;
}
$inBox.data("columnized", true);
$inBox.data("columnizing", true);

$inBox.empty();
$inBox.append($("<div class='first last column' style='width:98%; padding: 3px; float: " + options.float + ";'></div>")); //"
$col = $inBox.children().eq($inBox.children().length-1);
Expand All @@ -195,7 +195,7 @@
if(!$destroyable.children().find(":first-child").hasClass("dontend")){
split($col, $destroyable, $col, targetHeight);
}

while(checkDontEndColumn($col.children(":last").length && $col.children(":last").get(0))){
var $lastKid = $col.children(":last");
$lastKid.remove();
Expand All @@ -222,24 +222,24 @@
$col.append($destroyable);
}
$inBox.data("columnizing", false);

if(options.overflow){
options.overflow.doneFunc();
}

}

function checkDontEndColumn(dom){
if(dom.nodeType != 1) return false;
if($(dom).hasClass("dontend")) return true;
if(dom.childNodes.length == 0) return false;
return checkDontEndColumn(dom.childNodes[dom.childNodes.length-1]);
}

function columnizeIt() {
if(lastWidth == $inBox.width()) return;
lastWidth = $inBox.width();

var numCols = Math.round($inBox.width() / options.width);
if(options.columns) numCols = options.columns;
// if ($inBox.data("columnized") && numCols == $inBox.children().length) {
Expand All @@ -251,14 +251,14 @@
if($inBox.data("columnizing")) return;
$inBox.data("columnized", true);
$inBox.data("columnizing", true);

$inBox.empty();
$inBox.append($("<div style='width:" + (Math.round(100 / numCols) - 2)+ "%; padding: 3px; float: " + options.float + ";'></div>")); //"
$col = $inBox.children(":last");
$col.append($cache.clone());
maxHeight = $col.height();
$inBox.empty();

var targetHeight = maxHeight / numCols;
var firstTime = true;
var maxLoops = 3;
Expand All @@ -271,7 +271,7 @@
targetHeight = options.height;
scrollHorizontally = true;
}

for(var loopCount=0;loopCount<maxLoops;loopCount++){
$inBox.empty();
var $destroyable;
Expand All @@ -289,7 +289,7 @@
var className = (i == numCols - 1) ? ("last " + className) : className;
$inBox.append($("<div class='" + className + "' style='width:" + (Math.round(100 / numCols) - 2)+ "%; float: " + options.float + ";'></div>")); //"
}

// fill all but the last column (unless overflowing)
var i = 0;
while(i < numCols - (options.overflow ? 0 : 1) || scrollHorizontally && $destroyable.children().length){
Expand All @@ -305,7 +305,7 @@
}else{
// alert("not splitting a dontend");
}

while(checkDontEndColumn($col.children(":last").length && $col.children(":last").get(0))){
var $lastKid = $col.children(":last");
$lastKid.remove();
Expand Down
2 changes: 1 addition & 1 deletion public/static/ben/columnizer/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1>Columnizer JQuery Plugin</h1>
<h3>About</h3>
<p>Columnizer will automatically split your 1 div of content into as many columns as will fit the user's browser! If
<p>Columnizer will automatically split your 1 div of content into as many columns as will fit the user's browser! If
the browser is resized, columns will be automatically added or removed appropriately.</p>
<p></p>
<p>For documentation, samples, and latest news, visit the project homepage at <a href='http://welcome.totheinter.net/columnizer-jquery-plugin/'>http://welcome.totheinter.net/columnizer-jquery-plugin/</a></p>
Expand Down
4 changes: 2 additions & 2 deletions public/static/ben/columnizer/sample6.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
.wide, .thin { clear:both; }
img{ float: left; padding:5px;}
blockquote { font-style: italic; margin-left: 10px; border-left:2px solid #EFEFEF; padding-left: 8px;}

</style>
<script src="jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="autocolumn.js" type="text/javascript" charset="utf-8"></script>
<script>
$(function(){
$('#hidden-wrapper a').click(function(){ alert("boo!"); });
$('#hidden-wrapper').columnize({
columns:4,
columns:4,
target: "#target",
doneFunc: function(){
$('.first.column').css("color", "blue");
Expand Down
6 changes: 3 additions & 3 deletions public/static/ben/display2.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ body {
margin:0;
padding:0;
border-width:0;

}

#main_display{
Expand Down Expand Up @@ -44,7 +44,7 @@ body {
float:left;
}
#wrapper2 {
}
}
.iscrolled_list{
color:#FF5600
}
Expand Down Expand Up @@ -76,7 +76,7 @@ FF5600
height:30px;
top:0px;
bottom:0px;

}

/*Some IPOD SPECIFIC STUFF/*/
Expand Down
8 changes: 4 additions & 4 deletions public/static/ben/initView.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ function viewHeight(){
}

function initShared(){
var headID = document.getElementsByTagName("head")[0];
var cssNode = document.createElement('link');
var headID = document.getElementsByTagName("head")[0];
var cssNode = document.createElement('link');
cssNode.type = 'text/css';
cssNode.rel = 'stylesheet';
cssNode.href = '/ben/display2.css';
Expand All @@ -65,8 +65,8 @@ function initShared(){


function initSmallView(){
var headID = document.getElementsByTagName("head")[0];
var meta = document.createElement('meta');
var headID = document.getElementsByTagName("head")[0];
var meta = document.createElement('meta');
meta.name="viewport";
meta.content="width=device-width,minimum-scale=1.0, maximum-scale=1.0";
headID.appendChild(meta);
Expand Down
Loading