Skip to content

Commit

Permalink
testing some idea
Browse files Browse the repository at this point in the history
  • Loading branch information
katemat committed Jul 16, 2020
1 parent ae6a86b commit ba48659
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 3 additions & 3 deletions public/trashure-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function showPosition(position, cb) {

// Fetches information to be displayed
const handlePinClick = function (e) {
const url = `https://trashure-app.herokuapp.com/api/trashure_items/${e.target.metadata.id}`;
const url = `http://trashure-app.herokuapp.com/api/trashure_items/${e.target.metadata.id}`;
// const url = `http://localhost:8080/api/trashure_items/${e.target.metadata.id}`;
axios.get(url).then((res) => {
res.data.forEach(function (data) {
Expand All @@ -90,7 +90,7 @@ const handlePinClick = function (e) {

reverseGeocode(fakevent);

const url = `https://trashure-app.herokuapp.com/api/users/${data.owner_id}`;
const url = `http://trashure-app.herokuapp.com/api/users/${data.owner_id}`;
// const url = `http://localhost:8080/api/users/${data.owner_id}`;
axios.get(url).then((res) => {
document.querySelector(
Expand Down Expand Up @@ -155,7 +155,7 @@ function getMap() {

var center = map.getCenter();

const url = 'https://trashure-app.herokuapp.com/api/trashure_items';
const url = 'http://trashure-app.herokuapp.com/api/trashure_items';
// const url = 'http://localhost:8080/api/trashure_items';

axios.get(url).then((res) => {
Expand Down
8 changes: 1 addition & 7 deletions views/edit-item.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,9 @@
/>
<link rel="stylesheet" href="/style.css" />
<link rel="stylesheet" href="/style2.css" />
<!-- <script
type="text/javascript"
src="https://www.bing.com/api/maps/mapcontrol?callback=getMap&key=AuewOzxuyMxFiwOpCiEiYyNsck-yIwg3nBqGlLukoPc6gZm-v9Eiyw3eBGpPPTDw"
async
defer
></script> -->
<script
type="text/javascript"
src="https://www.bing.com/api/maps/mapcontrol?callback=GetMap&key=AuewOzxuyMxFiwOpCiEiYyNsck-yIwg3nBqGlLukoPc6gZm-v9Eiyw3eBGpPPTDw"
src="http://www.bing.com/api/maps/mapcontrol?callback=GetMap&key=AuewOzxuyMxFiwOpCiEiYyNsck-yIwg3nBqGlLukoPc6gZm-v9Eiyw3eBGpPPTDw"
async
defer
></script>
Expand Down

0 comments on commit ba48659

Please sign in to comment.