Oh yes, we need these files for people who aren't compiling themselves.
This commit is contained in:
parent
26af6681ce
commit
8476159433
2 changed files with 29 additions and 44 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by CoffeeScript 1.7.1
|
// Generated by CoffeeScript 1.11.0
|
||||||
(function() {
|
(function() {
|
||||||
var Sahli, ansiorascii, arraytocolor, booltoint, colorindex, colortoarray, colortoname, dec2hex, dumpjson, emptyfiledef, getfilelist, hex2dec, inttobool, loadsahli, newsahli, resolvefiletype, sahlicolor, statustobool;
|
var Sahli, ansiorascii, arraytocolor, booltoint, colorindex, colortoarray, colortoname, dec2hex, dumpjson, emptyfiledef, getfilelist, hex2dec, inttobool, loadsahli, newsahli, resolvefiletype, sahlicolor, statustobool;
|
||||||
|
|
||||||
|
|
@ -163,19 +163,19 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
Sahli.prototype.buildlist = function(data) {
|
Sahli.prototype.buildlist = function(data) {
|
||||||
var i, item, x, _i, _j, _len, _len1, _ref, _ref1;
|
var i, item, j, k, len, len1, ref, ref1, x;
|
||||||
$('#list').show(100);
|
$('#list').show(100);
|
||||||
$('#list ol li').remove();
|
$('#list ol li').remove();
|
||||||
_ref = this.data.filedata;
|
ref = this.data.filedata;
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (j = 0, len = ref.length; j < len; j++) {
|
||||||
i = _ref[_i];
|
i = ref[j];
|
||||||
console.log(i.author);
|
console.log(i.author);
|
||||||
}
|
}
|
||||||
x = 0;
|
x = 0;
|
||||||
$('#dirlocation').val(this.data.location);
|
$('#dirlocation').val(this.data.location);
|
||||||
_ref1 = this.data.filedata;
|
ref1 = this.data.filedata;
|
||||||
for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
|
for (k = 0, len1 = ref1.length; k < len1; k++) {
|
||||||
item = _ref1[_j];
|
item = ref1[k];
|
||||||
$('#sortlist').append(this.additem(item, x++));
|
$('#sortlist').append(this.additem(item, x++));
|
||||||
}
|
}
|
||||||
return $('#sortlist').sortable({
|
return $('#sortlist').sortable({
|
||||||
|
|
@ -186,13 +186,13 @@
|
||||||
},
|
},
|
||||||
stop: (function(_this) {
|
stop: (function(_this) {
|
||||||
return function(event, ui) {
|
return function(event, ui) {
|
||||||
var e, name, s, _k, _len2, _ref2;
|
var e, l, len2, name, ref2, s;
|
||||||
s = ui.item.data().startpos;
|
s = ui.item.data().startpos;
|
||||||
e = ui.item.index();
|
e = ui.item.index();
|
||||||
_this.data.filedata = _this.rearrangearray(s, e, _this.data.filedata);
|
_this.data.filedata = _this.rearrangearray(s, e, _this.data.filedata);
|
||||||
_ref2 = _this.data.filedata;
|
ref2 = _this.data.filedata;
|
||||||
for (_k = 0, _len2 = _ref2.length; _k < _len2; _k++) {
|
for (l = 0, len2 = ref2.length; l < len2; l++) {
|
||||||
name = _ref2[_k];
|
name = ref2[l];
|
||||||
console.log(name.author, name.name, name.file);
|
console.log(name.author, name.name, name.file);
|
||||||
}
|
}
|
||||||
console.log('---');
|
console.log('---');
|
||||||
|
|
@ -367,13 +367,13 @@
|
||||||
arraytocolor = function(array) {
|
arraytocolor = function(array) {
|
||||||
var c, x;
|
var c, x;
|
||||||
c = ((function() {
|
c = ((function() {
|
||||||
var _i, _len, _results;
|
var j, len, results;
|
||||||
_results = [];
|
results = [];
|
||||||
for (_i = 0, _len = array.length; _i < _len; _i++) {
|
for (j = 0, len = array.length; j < len; j++) {
|
||||||
x = array[_i];
|
x = array[j];
|
||||||
_results.push(dec2hex(x));
|
results.push(dec2hex(x));
|
||||||
}
|
}
|
||||||
return _results;
|
return results;
|
||||||
})()).slice(0, 3).join('');
|
})()).slice(0, 3).join('');
|
||||||
return "#" + c;
|
return "#" + c;
|
||||||
};
|
};
|
||||||
|
|
@ -383,13 +383,13 @@
|
||||||
color = color.slice(1);
|
color = color.slice(1);
|
||||||
c1 = [color.slice(0, 2), color.slice(2, 4), color.slice(4, 6)];
|
c1 = [color.slice(0, 2), color.slice(2, 4), color.slice(4, 6)];
|
||||||
x = (function() {
|
x = (function() {
|
||||||
var _i, _len, _results;
|
var j, len, results;
|
||||||
_results = [];
|
results = [];
|
||||||
for (_i = 0, _len = c1.length; _i < _len; _i++) {
|
for (j = 0, len = c1.length; j < len; j++) {
|
||||||
i = c1[_i];
|
i = c1[j];
|
||||||
_results.push(hex2dec(i));
|
results.push(hex2dec(i));
|
||||||
}
|
}
|
||||||
return _results;
|
return results;
|
||||||
})();
|
})();
|
||||||
x.push(255);
|
x.push(255);
|
||||||
return x;
|
return x;
|
||||||
|
|
|
||||||
25
sahli.js
25
sahli.js
|
|
@ -1,4 +1,4 @@
|
||||||
// Generated by CoffeeScript 1.9.3
|
// Generated by CoffeeScript 1.11.0
|
||||||
|
|
||||||
/*
|
/*
|
||||||
.___________________________________, ___
|
.___________________________________, ___
|
||||||
|
|
@ -173,28 +173,13 @@ l__________/__________|___|______l__________j_____j
|
||||||
};
|
};
|
||||||
|
|
||||||
Sahli.prevpic = function() {
|
Sahli.prevpic = function() {
|
||||||
var filedata, i, viewbox;
|
var i;
|
||||||
viewbox = $('div#sahliviewer');
|
|
||||||
viewbox.children().remove();
|
|
||||||
$('#panel').empty();
|
|
||||||
Sahli.scroll_direction = 1;
|
|
||||||
Sahli.scroll_speed = 5;
|
|
||||||
filedata = Sahli.filedata;
|
|
||||||
i = Sahli.currentpic - 2;
|
i = Sahli.currentpic - 2;
|
||||||
if (i < 0) {
|
if (i < 0) {
|
||||||
i = i + filedata.length;
|
i = i + Sahli.filedata.length;
|
||||||
}
|
}
|
||||||
filedata[i].pic = $('<h6>' + filedata[i].file + '</h6>');
|
Sahli.currentpic = i;
|
||||||
viewbox.append(filedata[i].pic);
|
return Sahli.nextpic();
|
||||||
Sahli.loadpic(filedata[i], filedata[i].pic);
|
|
||||||
Sahli.currentpic = i + 1;
|
|
||||||
if (Sahli.currentpic > filedata.length - 1) {
|
|
||||||
Sahli.currentpic = 0;
|
|
||||||
}
|
|
||||||
$('#panel').hide();
|
|
||||||
$('#outbox').show();
|
|
||||||
$('body').stop();
|
|
||||||
return Sahli.loadinfopanel(i);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Sahli.togglefullscreen = function() {
|
Sahli.togglefullscreen = function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue