introduce search interface

This commit is contained in:
www
2020-12-07 09:57:30 +00:00
parent 894a99cdef
commit ad36db964e
21 changed files with 32004 additions and 52 deletions

8872
static/app.css Normal file

File diff suppressed because one or more lines are too long

22644
static/app.js Normal file

File diff suppressed because it is too large Load Diff

18
static/extra.css Normal file
View File

@@ -0,0 +1,18 @@
.input-group-rounded .input-group-field {
border-radius: 5000px 0 0 5000px;
padding-left: 1rem;
}
.input-group-rounded .input-group-button .button {
border-radius: 0 5000px 5000px 0;
font-size: 0.8rem;
}
.small-thumb img {
width:150px;
height:150px;
}
.media-object-section:first-child {
padding-right:2rem;
}

38
static/init.js Normal file
View File

@@ -0,0 +1,38 @@
$(
function(){
console.log("init loaded")
})
$(function (){
document.getElementById('links').onclick = function(event) {
event = event || window.event
var target = event.target || event.srcElement,
link = target.src ? target.parentNode : target,
options = { index: link, event: event },
links = this.getElementsByTagName('a')
options['onslide']=function(index,slide) {
console.log(index)
console.log($(`#links a:nth-child(${index})`).attr('id'))
history.replaceState(null,null,'#'+$(`#links a:nth-child(${index+1})`).attr('id'))
}
options['onclose']=function(){
history.pushState(null,null,'#')
}
blueimp.gallery=blueimp.Gallery(links, options)
}
window.onpopstate = function(){
console.log(`popped state ${$(location).attr('hash')}`)
if($(location).attr('hash')=="") {
blueimp.gallery.close()
}else {
$($(location).attr('hash')).trigger('click');
}
}
console.log($(location).attr('hash').substr(1))
$($(location).attr('hash')).trigger('click');
})

2
static/jquery-3.5.1.min.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
static/logo2014_64.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

2
static/test.txt Normal file
View File

@@ -0,0 +1,2 @@
DS
ADSADQWF