mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
+ removed files that are now in the "shared" folder
This commit is contained in:
parent
8f5edff379
commit
e0745abe2c
19
content/select/js/jquery.js
vendored
19
content/select/js/jquery.js
vendored
File diff suppressed because one or more lines are too long
@ -1,48 +0,0 @@
|
||||
function Selector(options){ this.init(options) }
|
||||
Selector.prototype = {
|
||||
init: function(options){
|
||||
var self = this;
|
||||
options.onSelect = function(a,b){ self.showMenu(a,b); };
|
||||
options.onStart = function(){ self.hideMenu() };
|
||||
this.lasso = new Lasso(options);
|
||||
},
|
||||
|
||||
hideMenu: function(){
|
||||
if( this.menu ) this.menu.remove();
|
||||
},
|
||||
|
||||
showMenu: function( selectedEls, pos ){
|
||||
if( pos == null || selectedEls.length == 0 ) return;
|
||||
var self = this;
|
||||
|
||||
this.menu = $("<div class='lasso-menu'>").appendTo("body");
|
||||
this.menu.css({
|
||||
position:"fixed",
|
||||
zIndex: 9999,
|
||||
top:pos.y-this.menu.height()/2,
|
||||
left:pos.x-this.menu.width()/2
|
||||
})
|
||||
.text("Group")
|
||||
.mouseout( function(){self.hideMenu()} )
|
||||
.mousedown( function(){group(selectedEls)} )
|
||||
}
|
||||
}
|
||||
|
||||
function group(els){
|
||||
var startEl = $(els[0]);
|
||||
startEl.css("z-index", 0);
|
||||
for( var i=1; i<els.length; i++){
|
||||
var el = els[i];
|
||||
var pos = startEl.position()
|
||||
$(el).css("z-index", i*10)
|
||||
$(el).animate({top: pos.top+i*15, left: pos.left+i*15, position: "absolute"}, 250);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$(function(){
|
||||
var select = new Selector({
|
||||
targets: ".tab",
|
||||
container: "html",
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user