mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-03-24 06:20:07 +01:00
Updates select.
This commit is contained in:
parent
a62d9311e1
commit
da297f03f7
@ -11,20 +11,21 @@
|
||||
|
||||
#selector {
|
||||
position: absolute;
|
||||
left: 8px;
|
||||
top: 8px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
left: 0;
|
||||
top: 0;
|
||||
margin-top: -3px;
|
||||
margin-left: -3px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #555;
|
||||
border-radius: 100px;
|
||||
opacity: 0.7;
|
||||
border-radius: 3px;
|
||||
opacity: 0.6;
|
||||
cursor: pointer;
|
||||
.transition(all 0.2s ease-in-out);
|
||||
|
||||
.on-selected, .on-not-selected {
|
||||
display: block;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
|
@ -117,6 +117,8 @@ modulejs.define('ext/select', ['_', '$', 'core/settings', 'core/resource', 'core
|
||||
item.$view.find('a')
|
||||
.on('mouseenter', function () {
|
||||
|
||||
var $icon = item.$view.find('.icon');
|
||||
|
||||
$('#selector').remove();
|
||||
$('<div id="selector">' +
|
||||
'<img src="' + resource.image('select') + '" class="on-selected" alt="selected" />' +
|
||||
@ -126,7 +128,6 @@ modulejs.define('ext/select', ['_', '$', 'core/settings', 'core/resource', 'core
|
||||
|
||||
event.stopImmediatePropagation();
|
||||
event.preventDefault();
|
||||
console.log('icon', event);
|
||||
|
||||
item.$view.toggleClass('selected');
|
||||
publish();
|
||||
@ -135,6 +136,7 @@ modulejs.define('ext/select', ['_', '$', 'core/settings', 'core/resource', 'core
|
||||
})
|
||||
.on('mouseleave', function () {
|
||||
|
||||
item.$view.find('a').removeClass('hover');
|
||||
$('#selector').remove();
|
||||
});
|
||||
}
|
||||
@ -142,7 +144,7 @@ modulejs.define('ext/select', ['_', '$', 'core/settings', 'core/resource', 'core
|
||||
|
||||
onLocationChanged = function (item) {
|
||||
|
||||
// _.each(item.content, initItem);
|
||||
_.each(item.content, initItem);
|
||||
publish();
|
||||
},
|
||||
|
||||
@ -150,7 +152,7 @@ modulejs.define('ext/select', ['_', '$', 'core/settings', 'core/resource', 'core
|
||||
|
||||
var selectionChanged = false;
|
||||
|
||||
// _.each(added, initItem);
|
||||
_.each(added, initItem);
|
||||
_.each(removed, function (item) {
|
||||
|
||||
if (item.$view && item.$view.hasClass('selected')) {
|
||||
|
@ -113,7 +113,7 @@ class Archive {
|
||||
. str_repeat("\0", 100) // linkname [100]
|
||||
. "ustar\0" // magic [6]
|
||||
. "00" // version [2]
|
||||
. str_repeat("\0", 80) // uname, gname, defmajor, devminor [32 + 32 + 8 + 8] ?92?
|
||||
. str_repeat("\0", 80) // uname, gname, defmajor, devminor [32 + 32 + 8 + 8]
|
||||
. str_pad($prefix, 155, "\0") // filename [155]
|
||||
. str_repeat("\0", 12); // fill [12]
|
||||
assert(strlen($header) === 512);
|
||||
|
Loading…
x
Reference in New Issue
Block a user