forked from fitnycdigitalinitiatives/onesearch-newbooks
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 81ee855
Showing
7 changed files
with
339 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!doctype html> | ||
<html class="h-100" lang="en"> | ||
|
||
<head> | ||
<!-- Required meta tags --> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=yes"> | ||
|
||
<!-- Bootstrap CSS --> | ||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> | ||
<!-- Owl CSS --> | ||
<link rel="stylesheet" href="owl/owl.carousel.min.css"> | ||
<!-- Main CSS --> | ||
<link rel="stylesheet" href="style.css"> | ||
<!-- Font Awesome --> | ||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.0/css/all.css" type="text/css"> | ||
|
||
<title>New Books</title> | ||
</head> | ||
|
||
<body class="d-flex flex-column h-150 bg-transparent"> | ||
<div class="my-auto"> | ||
<div class="container-fluid"> | ||
<div class="row align-items-center justify-content-around"> | ||
<div class="col-auto order-first px-3 pr-0"> | ||
<button type="button" class="btn btn-secondary btn-circle" id="previous"> | ||
<i class="fas fa-chevron-left"></i> | ||
<span class="sr-only">Previous</span> | ||
</button> | ||
</div> | ||
<div class="col-auto order-last px-3 pl-0"> | ||
<button type="button" class="btn btn-secondary btn-circle" id="next"> | ||
<i class="fas fa-chevron-right"></i> | ||
<span class="sr-only">Next</span> | ||
</button> | ||
</div> | ||
<div class="col overflow-hidden px-0"> | ||
<div class="owl-carousel"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- Optional JavaScript --> | ||
<!-- jQuery first, then Popper.js, then Bootstrap JS --> | ||
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script> | ||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> | ||
<script src="new-books.js"></script> | ||
<script src="owl/owl.carousel.min.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
$(document).ready(function() { | ||
$.getJSON("new-books.json", function(data) { | ||
var slides = []; | ||
$.each(data, function(i, book) { | ||
if (book["cover-url"] != "") { | ||
var slide = ` | ||
<a class="card" target="_top" href="` + book["primo-url"] + `" title="` + book["title"] + `"> | ||
<img src="` + book["cover-url"] + `" alt="` + book["title"] + `" class="card-img"> | ||
</a> | ||
` | ||
} | ||
/* | ||
else { | ||
var slide = ` | ||
<a class="card" href="` + book["primo-url"] + `"> | ||
<div class="card-body text-center p-3"> | ||
<h1 class="card-title text-dark"> | ||
` + book["title"] + ` | ||
</h1> | ||
<h2 class="card-subtitle text-muted"> | ||
` + book["author"] + ` | ||
</h2> | ||
</div> | ||
</a> | ||
` | ||
} | ||
*/ | ||
slides.push(slide); | ||
}); | ||
$(".owl-carousel").append(slides); | ||
var owl = $('.owl-carousel'); | ||
owl.owlCarousel({ | ||
margin: 10, | ||
loop: false, | ||
autoWidth: true, | ||
items: 10, | ||
nav: false, | ||
dots: false, | ||
responsive: { | ||
0: { | ||
slideBy: 1 | ||
}, | ||
420: { | ||
slideBy: 2 | ||
}, | ||
570: { | ||
slideBy: 3 | ||
}, | ||
725: { | ||
slideBy: 4 | ||
}, | ||
880: { | ||
slideBy: 5 | ||
}, | ||
1035: { | ||
slideBy: 6 | ||
}, | ||
1190: { | ||
slideBy: 7 | ||
}, | ||
1345: { | ||
slideBy: 8 | ||
}, | ||
1500: { | ||
slideBy: 9 | ||
}, | ||
} | ||
}); | ||
owl.on('changed.owl.carousel', function(event) { | ||
var minimum = event.relatedTarget.minimum(), | ||
maximum = event.relatedTarget.maximum(), | ||
current = event.relatedTarget.current(); | ||
if (current <= minimum) { | ||
$('#previous').prop('disabled', true); | ||
} else { | ||
$('#previous').prop('disabled', false); | ||
} | ||
if (current >= maximum) { | ||
$('#next').prop('disabled', true); | ||
} else { | ||
$('#next').prop('disabled', false); | ||
} | ||
}); | ||
// Go to the next item | ||
$('#next').click(function() { | ||
owl.trigger('next.owl.carousel'); | ||
}); | ||
// Go to the previous item | ||
$('#previous').click(function() { | ||
// With optional speed parameter | ||
// Parameters has to be in square bracket '[]' | ||
owl.trigger('prev.owl.carousel'); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
[ | ||
{ | ||
"title": "Matisse in the 1930s", | ||
"author": "Matisse, Henri, 1869-1954, artist.", | ||
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006457225103801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en", | ||
"call-number": "N6853.M33 A4 2022", | ||
"cover-url": "https://books.google.com/books/content?id=KTEKzwEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", | ||
"created": "" | ||
}, | ||
{ | ||
"title": "Esther Mahlangu: A Life in Color.", | ||
"author": "Girst, Thomas", | ||
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006510223603801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en", | ||
"call-number": "b25.0337", | ||
"cover-url": "https://books.google.com/books/content?id=hOQ70AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", | ||
"created": "" | ||
}, | ||
{ | ||
"title": "Jens Quistgaard : the sculpting designer", | ||
"author": "Guldberg, Stig author.", | ||
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006524825903801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en", | ||
"call-number": "b25.0314", | ||
"cover-url": "https://books.google.com/books/content?id=cvZ4zwEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", | ||
"created": "" | ||
}, | ||
{ | ||
"title": "Louis Fratino", | ||
"author": "Fratino, Louis, 1993- artist, interviewee.", | ||
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006537826003801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en", | ||
"call-number": "ND237.F6765 A4 2024", | ||
"cover-url": "https://books.google.com/books/content?id=OIZV0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", | ||
"created": "" | ||
}, | ||
{ | ||
"title": "Xanti Schawinsky : play, life, illusion : a retrospective in texts, letters and images", | ||
"author": "Schawinsky, Xanti.", | ||
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006599114503801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en", | ||
"call-number": "b25.0310", | ||
"cover-url": "https://books.google.com/books/content?id=BSfK0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", | ||
"created": "" | ||
}, | ||
{ | ||
"title": "Chagall", | ||
"author": "Chagall, Marc.", | ||
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006599115103801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en", | ||
"call-number": "b25.0325", | ||
"cover-url": "https://books.google.com/books/content?id=xdWs0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", | ||
"created": "" | ||
}, | ||
{ | ||
"title": "Miniaturen der Romantik : aus der Sammlung Tansey = Miniatures from the Romantic era:in the Tansey Collection", | ||
"author": "Pappe, Bernd", | ||
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006599115303801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en", | ||
"call-number": "b25.0303", | ||
"cover-url": "https://books.google.com/books/content?id=c2C-0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", | ||
"created": "" | ||
}, | ||
{ | ||
"title": "Painting architecture in Early Renaissance Italy : innovation and persuasion at the intersection of artistic and architectural practice", | ||
"author": "Lupi, Livia", | ||
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006599115403801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en", | ||
"call-number": "b25.0326", | ||
"cover-url": "https://books.google.com/books/content?id=NEi-0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", | ||
"created": "" | ||
}, | ||
{ | ||
"title": "The fate of Early Italian art during World War II : protection, rescue, restoration", | ||
"author": "Hoeniger, Cathleen.", | ||
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006599115703801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en", | ||
"call-number": "b25.0323", | ||
"cover-url": "https://books.google.com/books/content?id=fgau0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", | ||
"created": "" | ||
}, | ||
{ | ||
"title": "Portrait of the art dealer as a young man : New York in the sixties", | ||
"author": "Findlay, Michael", | ||
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006603921403801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en", | ||
"call-number": "b25.0309", | ||
"cover-url": "https://books.google.com/books/content?id=xm4X0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", | ||
"created": "" | ||
}, | ||
{ | ||
"title": "Impressions of the land : the story of a photographic collection of Palestine-Eretz Israel", | ||
"author": "Silver-Brody, Vivienne", | ||
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006603923303801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en", | ||
"call-number": "b25.0304", | ||
"cover-url": "https://books.google.com/books/content?id=P1O50AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", | ||
"created": "" | ||
}, | ||
{ | ||
"title": "Staging the Supernatural: Ghosts and the Theater in Japanese Prints.", | ||
"author": "Feltens, Frank", | ||
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006604725803801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en", | ||
"call-number": "b25.0317", | ||
"cover-url": "https://books.google.com/books/content?id=m6i4EAAAQBAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", | ||
"created": "" | ||
}, | ||
{ | ||
"title": "Licht - Natur - Melancholie : Konstruktionen des Nordischen bei Olafur Eliasson, Ragnar Kjartansson und A. Karlsson Rixon", | ||
"author": "Teubner, Maike.", | ||
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006606058603801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en", | ||
"call-number": "b25.0296", | ||
"cover-url": "https://books.google.com/books/content?id=szO70AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", | ||
"created": "" | ||
}, | ||
{ | ||
"title": "Artistic creativity : a scientific journey through homospatial, Janusian, and sep-con articulation processes", | ||
"author": "Rothenberg, Albert.", | ||
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006606058803801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en", | ||
"call-number": "b25.0302", | ||
"cover-url": "https://books.google.com/books/content?id=2AbM0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", | ||
"created": "" | ||
}, | ||
{ | ||
"title": "The seven deadly sins in Bruegel's day", | ||
"author": "Bruegel, Pieter, approximately 1525-1569", | ||
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006606059503801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en", | ||
"call-number": "b25.0286", | ||
"cover-url": "https://books.google.com/books/content?id=5D7c0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", | ||
"created": "" | ||
}, | ||
{ | ||
"title": "James Lee Byars : days in Japan", | ||
"author": "Sakagami, Shinobu, author.", | ||
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006607419003801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en", | ||
"call-number": "b25.0318", | ||
"cover-url": "https://books.google.com/books/content?id=CEnHAQAACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", | ||
"created": "" | ||
}, | ||
{ | ||
"title": "Atlas of mid-century modern masterpieces", | ||
"author": "Bradbury, Dominic author.", | ||
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006608724803801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en", | ||
"call-number": "b25.0319", | ||
"cover-url": "https://books.google.com/books/content?id=LyOv0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", | ||
"created": "" | ||
}, | ||
{ | ||
"title": "Say so", | ||
"author": "Hubbs, Whitney, photographer.", | ||
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006457223503801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en", | ||
"call-number": "TR676 .H824 2021", | ||
"cover-url": "https://books.google.com/books/content?id=6odyzgEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", | ||
"created": "" | ||
} | ||
] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.owl-stage { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.owl-item .card { | ||
width: 125px; | ||
} | ||
|
||
.owl-item .card .card-title { | ||
font-size: 1.25rem; | ||
} | ||
|
||
.owl-item .card .card-subtitle { | ||
font-size: 1.5rem; | ||
} | ||
|
||
.btn-circle { | ||
width: 35px; | ||
height: 35px; | ||
line-height: 35px; | ||
font-size: 0.9rem; | ||
text-align: center; | ||
padding: 0; | ||
border-radius: 50%; | ||
} | ||
|
||
.btn-circle i { | ||
position: relative; | ||
top: -1px; | ||
} |