|
|
@ -23,7 +23,7 @@ $(function() {
|
|
|
|
|
|
|
|
|
|
|
|
//Remove row
|
|
|
|
//Remove row
|
|
|
|
$this.find("button[data-toggle=fieldset-remove-row]").click(function() {
|
|
|
|
$this.find("button[data-toggle=fieldset-remove-row]").click(function() {
|
|
|
|
if($this.find("[data-toggle=fieldset-entry]").length > 1) {
|
|
|
|
if ($this.find("[data-toggle=fieldset-entry]").length > 1) {
|
|
|
|
var thisRow = $(this).closest("[data-toggle=fieldset-entry]");
|
|
|
|
var thisRow = $(this).closest("[data-toggle=fieldset-entry]");
|
|
|
|
thisRow.remove();
|
|
|
|
thisRow.remove();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -32,91 +32,95 @@ $(function() {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$( function() {
|
|
|
|
$(function() {
|
|
|
|
$( "#draggable" ).draggable();
|
|
|
|
$("#draggable").draggable();
|
|
|
|
$( "#droppable" ).droppable({
|
|
|
|
$("#droppable").droppable({
|
|
|
|
drop: function( event, ui ) {
|
|
|
|
drop: function(event, ui) {
|
|
|
|
$( this )
|
|
|
|
$(this)
|
|
|
|
.addClass( "ui-state-highlight" )
|
|
|
|
.addClass("ui-state-highlight")
|
|
|
|
.find( "p" )
|
|
|
|
.find("p")
|
|
|
|
.html( "Dropped!" );
|
|
|
|
.html("Dropped!");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} );
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$( "#title" ).click(function() {
|
|
|
|
$("#title").click(function() {
|
|
|
|
generateTitle(this);
|
|
|
|
generateTitle(this);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$( document ).ready(function() {
|
|
|
|
$(document).ready(function() {
|
|
|
|
generateTitle("#title");
|
|
|
|
generateTitle("#title");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function generateTitle(elem){
|
|
|
|
function generateTitle(elem) {
|
|
|
|
var x = ["XPERIMENTAL"]
|
|
|
|
var x = ["XPERIMENTAL"]
|
|
|
|
var p1 = ["POTENTIAL", "PUBLIC", "POST", "PI", "PLATFORM FOR", "PRETENTIOUS"]
|
|
|
|
var p1 = ["POTENTIAL", "PUBLIC", "POST", "PI", "PLATFORM FOR", "PRETENTIOUS"]
|
|
|
|
var p2 = ["PIRATE", "PERFORMATIVE", "PUBLIC", "PUBLISHING", "POTENTIAL"]
|
|
|
|
var p2 = ["PIRATE", "PERFORMATIVE", "PUBLIC", "PUBLISHING", "POTENTIAL"]
|
|
|
|
var l = ["LIBRARY", "LIAISON", "LAB", "LEGALITY", "LABOUR"]
|
|
|
|
var l = ["LIBRARY", "LIAISON", "LAB", "LEGALITY", "LABOUR"]
|
|
|
|
|
|
|
|
|
|
|
|
$(elem).text(x[Math.floor(Math.random()*x.length)]+" "+p1[Math.floor(Math.random()*p1.length)]+" "+p2[Math.floor(Math.random()*p2.length)]+" "+l[Math.floor(Math.random()*l.length)]);
|
|
|
|
$(elem).text(x[Math.floor(Math.random() * x.length)] + " " + p1[Math.floor(Math.random() * p1.length)] + " " + p2[Math.floor(Math.random() * p2.length)] + " " + l[Math.floor(Math.random() * l.length)]);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$( function() {
|
|
|
|
$(function() {
|
|
|
|
$( "#tabs" ).tabs().addClass( "ui-tabs-vertical ui-helper-clearfix" );
|
|
|
|
$("#tabs").tabs().addClass("ui-tabs-vertical ui-helper-clearfix");
|
|
|
|
$( "#tabs li" ).removeClass( "ui-corner-top" ).addClass( "ui-corner-left" );
|
|
|
|
$("#tabs li").removeClass("ui-corner-top").addClass("ui-corner-left");
|
|
|
|
} );
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var marquee = $('div.marquee');
|
|
|
|
|
|
|
|
marquee.each(function() {
|
|
|
|
|
|
|
|
var mar = $(this),indent = mar.width();
|
|
|
|
|
|
|
|
mar.marquee = function() {
|
|
|
|
|
|
|
|
indent--;
|
|
|
|
|
|
|
|
mar.css('text-indent',indent);
|
|
|
|
|
|
|
|
if (indent < -1 * mar.children('div.marquee-text').width()) {
|
|
|
|
|
|
|
|
indent = mar.width();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
mar.data('interval',setInterval(mar.marquee,1000/60));
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$( ".no_cover" ).each(function() {
|
|
|
|
$(".no_cover").each(function() {
|
|
|
|
var string = $(this).attr('id')
|
|
|
|
var string = $(this).attr('id')
|
|
|
|
var randomColor = colorHash(string).rgb
|
|
|
|
var randomColor = colorHash(string).rgb
|
|
|
|
|
|
|
|
|
|
|
|
$(this).css({
|
|
|
|
$(this).css({
|
|
|
|
'background-color' : randomColor,
|
|
|
|
'background-color': randomColor,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function colorHash(inputString){
|
|
|
|
function colorHash(inputString) {
|
|
|
|
var sum = 0;
|
|
|
|
var sum = 0;
|
|
|
|
|
|
|
|
|
|
|
|
for(var i in inputString){
|
|
|
|
for (var i in inputString) {
|
|
|
|
sum += inputString.charCodeAt(i);
|
|
|
|
sum += inputString.charCodeAt(i);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
r = ~~(('0.'+Math.sin(sum+1).toString().substr(6))*256);
|
|
|
|
r = ~~(('0.' + Math.sin(sum + 1).toString().substr(6)) * 256);
|
|
|
|
g = ~~(('0.'+Math.sin(sum+2).toString().substr(6))*256);
|
|
|
|
g = ~~(('0.' + Math.sin(sum + 2).toString().substr(6)) * 256);
|
|
|
|
b = ~~(('0.'+Math.sin(sum+3).toString().substr(6))*256);
|
|
|
|
b = ~~(('0.' + Math.sin(sum + 3).toString().substr(6)) * 256);
|
|
|
|
|
|
|
|
|
|
|
|
var rgb = "rgb("+r+", "+g+", "+b+")";
|
|
|
|
var rgb = "rgb(" + r + ", " + g + ", " + b + ")";
|
|
|
|
|
|
|
|
|
|
|
|
var hex = "#";
|
|
|
|
var hex = "#";
|
|
|
|
|
|
|
|
|
|
|
|
hex += ("00" + r.toString(16)).substr(-2,2).toUpperCase();
|
|
|
|
hex += ("00" + r.toString(16)).substr(-2, 2).toUpperCase();
|
|
|
|
hex += ("00" + g.toString(18)).substr(-2,2).toUpperCase();
|
|
|
|
hex += ("00" + g.toString(18)).substr(-2, 2).toUpperCase();
|
|
|
|
hex += ("00" + b.toString(20)).substr(-2,2).toUpperCase();
|
|
|
|
hex += ("00" + b.toString(20)).substr(-2, 2).toUpperCase();
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
r: r
|
|
|
|
r: r,
|
|
|
|
,g: g
|
|
|
|
g: g,
|
|
|
|
,b: b
|
|
|
|
b: b,
|
|
|
|
,rgb: rgb
|
|
|
|
rgb: rgb,
|
|
|
|
,hex: hex
|
|
|
|
hex: hex
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//newsticker
|
|
|
|
|
|
|
|
var marquee = $('div.marquee');
|
|
|
|
|
|
|
|
marquee.each(function() {
|
|
|
|
|
|
|
|
var mar = $(this),
|
|
|
|
|
|
|
|
indent = mar.width();
|
|
|
|
|
|
|
|
mar.marquee = function() {
|
|
|
|
|
|
|
|
indent--;
|
|
|
|
|
|
|
|
mar.css('text-indent', indent);
|
|
|
|
|
|
|
|
if (indent < -1 * mar.children('div.marquee-text').width()) {
|
|
|
|
|
|
|
|
indent = mar.width();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
mar.data('interval', setInterval(mar.marquee, 10));
|
|
|
|
|
|
|
|
});
|
|
|
|