This file contains hidden or 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
<body> | |
<div class="pink"> | |
<!-- <div class="details"> | |
<p>"Homer's Paradise"</p> | |
</div> | |
--> | |
<!-- add candy + drift --> |
This file contains hidden or 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
/* Common database helper functions. */ | |
var dbPromise = idb.open('restaurant-idb', 1, upgradeDb => { | |
if (!upgradeDb.objectStoreNames.contains('restaurants')) { | |
const foodOs = upgradeDb.createObjectStore('restaurants', {keyPath: 'id', autoIncrement: true}); | |
foodOs.createIndex('rest_name', 'name', {unique: true}); | |
foodOs.createIndex('boro_name', 'neighborhood', {unique: false}); | |
foodOs.createIndex('cuis_name', 'cuisine_type', {unique: false}); | |
} | |
console.log("ObjectStore: Created restaurants"); |
This file contains hidden or 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
/* Common database helper functions. */ | |
var dbPromise = idb.open('restaurant-idb', 1, upgradeDb => { | |
if (!upgradeDb.objectStoreNames.contains('restaurants')) { | |
const foodOs = upgradeDb.createObjectStore('restaurants', {keyPath: 'id', autoIncrement: true}); | |
foodOs.createIndex('rest_name', 'name', {unique: true}); | |
foodOs.createIndex('boro_name', 'neighborhood', {unique: false}); | |
foodOs.createIndex('cuis_name', 'cuisine_type', {unique: false}); | |
} | |
console.log("ObjectStore: Created restaurants"); |
This file contains hidden or 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
/** | |
** sails: node server | |
* Common database helper functions. | |
*/ | |
var dbPromise = idb.open('restaurant-idb', 1, upgradeDb => { | |
if (!upgradeDb.objectStoreNames.contains('restaurants')) { |
This file contains hidden or 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
// debugger; | |
/** | |
* Common database helper functions. | |
*/ | |
var dbPromise = idb.open('restaurant-idb', 1, upgradeDb => { | |
if (!upgradeDb.objectStoreNames.contains('restaurants')) { | |
const foodOs = upgradeDb.createObjectStore('restaurants', {keyPath: 'id', autoIncrement: true}); | |
foodOs.createIndex('boro_name', 'neighborhood', {unique: false}); | |
foodOs.createIndex('cuis_name', 'cuisine_type', {unique: false}); |
This file contains hidden or 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
<dt class="icon-def"> | |
<a data-icon="i" class="hoverInfo" data-tooltip-click="true" data-tooltip-content="<span class='cctt'>Description goes here...Lotus root water spinach fennel kombu maize bamboo shoot green bean swiss chard seakale pumpkin onion chickpea gram corn pea. Brussels sprout coriander water chestnut gourd swiss chard wakame kohlrabi beetroot carrot watercress. Corn amaranth salsify bunya nuts nori azuki bean chickweed potato bell pepper artichoke.</span>">Pockets</a> | |
</dt> |