From a52daa929e22bd084d7e896dee32e349f3c3ea47 Mon Sep 17 00:00:00 2001 From: David Ashby Date: Sat, 19 Mar 2022 15:32:00 -0400 Subject: [PATCH] upgrade mapbox, localize jquery.scrollTo --- index.html | 919 +++++++++++++++++++----------------- js/jquery.scrollTo.2.1.3.js | 7 + 2 files changed, 498 insertions(+), 428 deletions(-) create mode 100644 js/jquery.scrollTo.2.1.3.js diff --git a/index.html b/index.html index c436a7c..32ffc45 100644 --- a/index.html +++ b/index.html @@ -1,31 +1,67 @@ - - - + + + + + Independent Bookstores in New York City - Best Community Bookstores in NYC - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + +
@@ -35,10 +71,16 @@
  • The Many Independent Bookstores of New York City

  • info
  • - git + git
  • - @alazyreader + @alazyreader
  • @@ -47,10 +89,18 @@

    New York City loves its independent bookstores. It - eulogizes those that have faded + eulogizes those that have faded and celebrates when new ventures are launched. And while the historic - Book Row may have passed away in the 80s, there are still many indie bookstores dotting the map, across all + Book Row may have passed away in the 80s, there are still many indie bookstores dotting the map, across all five boroughs. Here, I have attempted to collect all of the currently-open general-interest independent booksellers in NYC. Any store with regular-ish hours (excluding religious booksellers and @@ -69,7 +119,13 @@ please let me know by email or - twitter. Orignally based on the "Hack Spots" website by + twitter. Orignally based on the "Hack Spots" website by @jllord (although I don't believe any of the actual underlying code still survives at this point). @@ -86,401 +142,409 @@

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameAddress
    192 Books192 10th Ave, New York
    Aeon Bookstore151 East Broadway, New York
    Alabaster Bookshop122 4th Ave, New York
    Albertine Books972 Fifth Ave, New York
    Archestratus160 Huron St, Brooklyn
    Argosy Books116 East 59th St, New York
    Astoria Bookshop31-29 31st St, Astoria
    Avoid The Day Bookstore & Cafe99-04 A Rockaway Beach Blvd, Rockaway Park
    Berl's Brooklyn Poetry Shop126A Front St, Brooklyn
    Better Read Than Dead867 Broadway, Brooklyn
    Bluestockings172 Allen Street, New York
    Bonnie Slotnick Cookbooks28 East 2nd St, New York
    Book Club Bar197 E 3rd St, New York
    Book Culture536 W 112th St, New York
    Book Culture LIC26-09 Jackson Ave, Queens
    Book Culture on Broadway2915 Broadway, New York
    Book Thug Nation100 North 3rd St, Brooklyn
    Bookmarc400 Bleecker St, New York
    BookMark Shoppe8415 3rd Avenue, Brooklyn
    Bookoff49 W 45nd St, New York
    Books Are Magic225 Smith St, Brooklyn
    Books Of Wonder42 West 17th St, New York
    Books Of Wonder (Upper West Side)217 West 84th St, New York
    Boulevard Books7518 13th Ave, Brooklyn
    Bravo's Book Nook115 MacDougal St, New York
    Cafe con Libros724 Prospect Place, Brooklyn
    Catland987 Flushing Ave, Brooklyn
    Chartwell Booksellers55 E 52nd St, New York
    Civil Service Book Shop34 Carmine St, New York
    Codex Books1 Bleecker St, New York
    Community Bookstore143 7th Ave, Brooklyn
    Cups and Books2024 Bedford Ave, Brooklyn
    Dashwood Books33 Bond St, New York
    Desert Island Comics540 Metropolitan Ave, Brooklyn
    East Village Books99 St. Mark's Place, New York
    Every Thing Goes Book Cafe and Neighborhood Stage208 Bay St, Staten Island
    Freebird Books123 Columbia St, Brooklyn
    Greenlight Bookstore686 Fulton St, Brooklyn
    Greenlight Bookstore (Prospect Lefferts Gardens)632 Flatbush Ave, Brooklyn
    Here's A Book Store1964 Coney Island Ave, Brooklyn
    Housing Works Bookstore Café126 Crosby St, New York
    Human Relations Books1067 Flushing Ave, Brooklyn
    Idlewild Books170 7th Avenue S, New York
    James Cummins Bookseller699 Madison Ave, 7th Floor, New York
    Jewel City Books658 Franklin Ave, Brooklyn
    Joanne Hendricks Cookbooks488 Greenwich St, New York
    Karma Bookstore136 East Third St, New York
    Kew & Willow Books81-63 Lefferts Boulevard, New York
    Kinokunya1073 Avenue of the Americas, New York
    Kitchen Arts & Letters1435 Lexington Ave, New York
    Logos Bookstore1575 York Ave, New York
    Mast Books72 Avenue A, New York
    McNally Jackson Books52 Prince St, New York
    McNally Jackson Books City Point445 Albee Square W, Unit G112, Brooklyn
    McNally Jackson Books Seaport4 Fulton St, New York
    McNally Jackson Books Williamsburg76 North 4th St, Brooklyn
    Melville House Publishers46 John St, Brooklyn
    Mercer Street Books & Records206 Mercer St, New York
    Mil Mundos Books323 Linden St, Brooklyn
    Molasses Books770 Hart St, Brooklyn
    Namaste Bookshop2 W 14th St, New York
    Pillow-Cat Books328 East 9th St, New York
    Posman Books Chelsea Market75 9th Avenue, New York
    Posman Books Rockefeller Center30 Rockefeller Plaza, New York
    PowerHouse Arena28 Adams St, Brooklyn
    PowerHouse on 8th1111 8th Ave, Brooklyn
    Printed Matter231 11th Ave, New York
    Printed Matter St. Marks38 St. Marks Pl, New York
    Quest Bookshop240 E 53rd St, New York
    Respect For Life Books-N-Things537 Nostrand Ave, Brooklyn
    Revolution Books437 Malcolm X Blvd, New York
    Rizzoli Bookstore1133 Broadway, New York
    Shakespeare & Company939 Lexington Ave, New York
    Shakespeare & Company (Upper West Side)2020 Broadway, New York
    Sister's Uptown Bookstore1942 Amsterdam Ave, New York
    Spoonbill & Sugartown, Booksellers218 Bedford Ave, Brooklyn
    Standards Manual212 Franklin Street, Brooklyn
    Strand Bookstore828 Broadway, New York
    Sweet Pickle Books47 Orchard St, New York
    Terrace Books242 Prospect Park West, Brooklyn
    The Austin Book Shop104-29 Jamaica Ave, Richmond Hill
    The Book Cellar1465 York Ave, New York
    The Center for Fiction15 Lafayette Ave, Brooklyn
    The Corner Bookstore1313 Madison Ave, New York
    The Lit. Bar131 Alexander Ave, Bronx
    The Mysterious Bookshop58 Warren St, New York
    Three Lives & Company238 West 10th St, New York
    Topos Bookstore Cafe788 Woodward Ave, Brooklyn
    Turn The Page... Again39-15a Bell Blvd, Flushing
    Unnameable Books600 Vanderbilt Ave, Brooklyn
    Unoppressive Non-Imperialist Bargain Books34 Carmine St, New York
    Ursus Books50 East 78th St, Suite 1C, New York
    Westsider Rare & Used Books2246 Broadway, New York
    Westsider Records233 West 72nd St, New York
    Word Bookstore126 Franklin St, Brooklyn
    Word Up Books2113 Amsterdam Ave, New York
    Yu and Me Books44 Mulberry St, New York
    -
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameAddress
    192 Books192 10th Ave, New York
    Aeon Bookstore151 East Broadway, New York
    Alabaster Bookshop122 4th Ave, New York
    Albertine Books972 Fifth Ave, New York
    Archestratus160 Huron St, Brooklyn
    Argosy Books116 East 59th St, New York
    Astoria Bookshop31-29 31st St, Astoria
    Avoid The Day Bookstore & Cafe99-04 A Rockaway Beach Blvd, Rockaway Park
    Berl's Brooklyn Poetry Shop126A Front St, Brooklyn
    Better Read Than Dead867 Broadway, Brooklyn
    Bluestockings172 Allen Street, New York
    Bonnie Slotnick Cookbooks28 East 2nd St, New York
    Book Club Bar197 E 3rd St, New York
    Book Culture536 W 112th St, New York
    Book Culture LIC26-09 Jackson Ave, Queens
    Book Culture on Broadway2915 Broadway, New York
    Book Thug Nation100 North 3rd St, Brooklyn
    Bookmarc400 Bleecker St, New York
    BookMark Shoppe8415 3rd Avenue, Brooklyn
    Bookoff49 W 45nd St, New York
    Books Are Magic225 Smith St, Brooklyn
    Books Of Wonder42 West 17th St, New York
    Books Of Wonder (Upper West Side)217 West 84th St, New York
    Boulevard Books7518 13th Ave, Brooklyn
    Bravo's Book Nook115 MacDougal St, New York
    Cafe con Libros724 Prospect Place, Brooklyn
    Catland987 Flushing Ave, Brooklyn
    Chartwell Booksellers55 E 52nd St, New York
    Civil Service Book Shop34 Carmine St, New York
    Codex Books1 Bleecker St, New York
    Community Bookstore143 7th Ave, Brooklyn
    Cups and Books2024 Bedford Ave, Brooklyn
    Dashwood Books33 Bond St, New York
    Desert Island Comics540 Metropolitan Ave, Brooklyn
    East Village Books99 St. Mark's Place, New York
    + Every Thing Goes Book Cafe and Neighborhood Stage + 208 Bay St, Staten Island
    Freebird Books123 Columbia St, Brooklyn
    Greenlight Bookstore686 Fulton St, Brooklyn
    + Greenlight Bookstore (Prospect Lefferts Gardens) + 632 Flatbush Ave, Brooklyn
    Here's A Book Store1964 Coney Island Ave, Brooklyn
    Housing Works Bookstore Café126 Crosby St, New York
    Human Relations Books1067 Flushing Ave, Brooklyn
    Idlewild Books170 7th Avenue S, New York
    James Cummins Bookseller699 Madison Ave, 7th Floor, New York
    Jewel City Books658 Franklin Ave, Brooklyn
    Joanne Hendricks Cookbooks488 Greenwich St, New York
    Karma Bookstore136 East Third St, New York
    Kew & Willow Books81-63 Lefferts Boulevard, New York
    Kinokunya1073 Avenue of the Americas, New York
    Kitchen Arts & Letters1435 Lexington Ave, New York
    Logos Bookstore1575 York Ave, New York
    Mast Books72 Avenue A, New York
    McNally Jackson Books52 Prince St, New York
    McNally Jackson Books City Point445 Albee Square W, Unit G112, Brooklyn
    McNally Jackson Books Seaport4 Fulton St, New York
    McNally Jackson Books Williamsburg76 North 4th St, Brooklyn
    Melville House Publishers46 John St, Brooklyn
    Mercer Street Books & Records206 Mercer St, New York
    Mil Mundos Books323 Linden St, Brooklyn
    Molasses Books770 Hart St, Brooklyn
    Namaste Bookshop2 W 14th St, New York
    Pillow-Cat Books328 East 9th St, New York
    Posman Books Chelsea Market75 9th Avenue, New York
    Posman Books Rockefeller Center30 Rockefeller Plaza, New York
    PowerHouse Arena28 Adams St, Brooklyn
    PowerHouse on 8th1111 8th Ave, Brooklyn
    Printed Matter231 11th Ave, New York
    Printed Matter St. Marks38 St. Marks Pl, New York
    Quest Bookshop240 E 53rd St, New York
    Respect For Life Books-N-Things537 Nostrand Ave, Brooklyn
    Revolution Books437 Malcolm X Blvd, New York
    Rizzoli Bookstore1133 Broadway, New York
    Shakespeare & Company939 Lexington Ave, New York
    + Shakespeare & Company (Upper West Side) + 2020 Broadway, New York
    Sister's Uptown Bookstore1942 Amsterdam Ave, New York
    Spoonbill & Sugartown, Booksellers218 Bedford Ave, Brooklyn
    Standards Manual212 Franklin Street, Brooklyn
    Strand Bookstore828 Broadway, New York
    Sweet Pickle Books47 Orchard St, New York
    Terrace Books242 Prospect Park West, Brooklyn
    The Austin Book Shop104-29 Jamaica Ave, Richmond Hill
    The Book Cellar1465 York Ave, New York
    The Center for Fiction15 Lafayette Ave, Brooklyn
    The Corner Bookstore1313 Madison Ave, New York
    The Lit. Bar131 Alexander Ave, Bronx
    The Mysterious Bookshop58 Warren St, New York
    Three Lives & Company238 West 10th St, New York
    Topos Bookstore Cafe788 Woodward Ave, Brooklyn
    Turn The Page... Again39-15a Bell Blvd, Flushing
    Unnameable Books600 Vanderbilt Ave, Brooklyn
    Unoppressive Non-Imperialist Bargain Books34 Carmine St, New York
    Ursus Books50 East 78th St, Suite 1C, New York
    Westsider Rare & Used Books2246 Broadway, New York
    Westsider Records233 West 72nd St, New York
    Word Bookstore126 Franklin St, Brooklyn
    Word Up Books2113 Amsterdam Ave, New York
    Yu and Me Books44 Mulberry St, New York
    +
    @@ -754,6 +818,5 @@ ga("create", "UA-100418882-1", "auto"); ga("send", "pageview"); - - - \ No newline at end of file + + diff --git a/js/jquery.scrollTo.2.1.3.js b/js/jquery.scrollTo.2.1.3.js new file mode 100644 index 0000000..3f7d145 --- /dev/null +++ b/js/jquery.scrollTo.2.1.3.js @@ -0,0 +1,7 @@ +/** + * Copyright (c) 2007 Ariel Flesler - aflesler ○ gmail • com | https://github.com/flesler + * Licensed under MIT + * @author Ariel Flesler + * @version 2.1.3 + */ +;(function(factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(typeof module!=='undefined'&&module.exports){module.exports=factory(require('jquery'))}else{factory(jQuery)}})(function($){'use strict';var $scrollTo=$.scrollTo=function(target,duration,settings){return $(window).scrollTo(target,duration,settings)};$scrollTo.defaults={axis:'xy',duration:0,limit:true};function isWin(elem){return!elem.nodeName||$.inArray(elem.nodeName.toLowerCase(),['iframe','#document','html','body'])!==-1}function isFunction(obj){return typeof obj==='function'}$.fn.scrollTo=function(target,duration,settings){if(typeof duration==='object'){settings=duration;duration=0}if(typeof settings==='function'){settings={onAfter:settings}}if(target==='max'){target=9e9}settings=$.extend({},$scrollTo.defaults,settings);duration=duration||settings.duration;var queue=settings.queue&&settings.axis.length>1;if(queue){duration/=2}settings.offset=both(settings.offset);settings.over=both(settings.over);return this.each(function(){if(target===null){return}var win=isWin(this),elem=win?this.contentWindow||window:this,$elem=$(elem),targ=target,attr={},toff;switch(typeof targ){case 'number':case 'string':if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(targ)){targ=both(targ);break}targ=win?$(targ):$(targ,elem);case 'object':if(targ.length===0){return}if(targ.is||targ.style){toff=(targ=$(targ)).offset()}}var offset=isFunction(settings.offset)&&settings.offset(elem,targ)||settings.offset;$.each(settings.axis.split(''),function(i,axis){var Pos=axis==='x'?'Left':'Top',pos=Pos.toLowerCase(),key='scroll'+Pos,prev=$elem[key](),max=$scrollTo.max(elem,axis);if(toff){attr[key]=toff[pos]+(win?0:prev-$elem.offset()[pos]);if(settings.margin){attr[key]-=parseInt(targ.css('margin'+Pos),10)||0;attr[key]-=parseInt(targ.css('border'+Pos+'Width'),10)||0}attr[key]+=offset[pos]||0;if(settings.over[pos]){attr[key]+=targ[axis==='x'?'width':'height']()*settings.over[pos]}}else{var val=targ[pos];attr[key]=val.slice&&val.slice(-1)==='%'?parseFloat(val)/100*max:val}if(settings.limit&&/^\d+$/.test(attr[key])){attr[key]=attr[key]<=0?0:Math.min(attr[key],max)}if(!i&&settings.axis.length>1){if(prev===attr[key]){attr={}}else if(queue){animate(settings.onAfterFirst);attr={}}}});animate(settings.onAfter);function animate(callback){var opts=$.extend({},settings,{queue:true,duration:duration,complete:callback&&function(){callback.call(elem,targ,settings)}});$elem.animate(attr,opts)}})};$scrollTo.max=function(elem,axis){var Dim=axis==='x'?'Width':'Height',scroll='scroll'+Dim;if(!isWin(elem)){return elem[scroll]-$(elem)[Dim.toLowerCase()]()}var size='client'+Dim,doc=elem.ownerDocument||elem.document,html=doc.documentElement,body=doc.body;return Math.max(html[scroll],body[scroll])-Math.min(html[size],body[size])};function both(val){return isFunction(val)||$.isPlainObject(val)?val:{top:val,left:val}}$.Tween.propHooks.scrollLeft=$.Tween.propHooks.scrollTop={get:function(t){return $(t.elem)[t.prop]()},set:function(t){var curr=this.get(t);if(t.options.interrupt&&t._last&&t._last!==curr){return $(t.elem).stop()}var next=Math.round(t.now);if(curr!==next){$(t.elem)[t.prop](next);t._last=this.get(t)}}};return $scrollTo});