Showing
5 changed files
with
2 additions
and
13 deletions
.env
deleted
100644 → 0
1 | -Map_Key = "https://maps.googleapis.com/maps/api/js?key=AIzaSyDK6K4iDdo9cKQdrNoOJaaYg29nEG0BIjw&callback=initMap&libraries=&v=weekly" | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
This diff is collapsed. Click to expand it.
... | @@ -13,7 +13,6 @@ | ... | @@ -13,7 +13,6 @@ |
13 | "bcryptjs": "^2.4.3", | 13 | "bcryptjs": "^2.4.3", |
14 | "body-parser": "^1.19.0", | 14 | "body-parser": "^1.19.0", |
15 | "connect-flash": "^0.1.1", | 15 | "connect-flash": "^0.1.1", |
16 | - "dotenv": "^10.0.0", | ||
17 | "ejs": "^3.1.6", | 16 | "ejs": "^3.1.6", |
18 | "express": "^4.17.1", | 17 | "express": "^4.17.1", |
19 | "express-session": "^1.17.1", | 18 | "express-session": "^1.17.1", | ... | ... |
1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
2 | <html> | 2 | <html> |
3 | <head> | 3 | <head> |
4 | - <script> | ||
5 | - import dotenv from "dotenv"; | ||
6 | - dotenv.config(); | ||
7 | - </script> | ||
8 | <title>Geocoding Service</title> | 4 | <title>Geocoding Service</title> |
9 | <script src="https://polyfill.io/v3/polyfill.min.js?features=default"></script> | 5 | <script src="https://polyfill.io/v3/polyfill.min.js?features=default"></script> |
10 | <style type="text/css"> | 6 | <style type="text/css"> |
... | @@ -139,7 +135,7 @@ | ... | @@ -139,7 +135,7 @@ |
139 | 135 | ||
140 | <!-- Async script executes immediately and must be after any DOM elements used in callback. --> | 136 | <!-- Async script executes immediately and must be after any DOM elements used in callback. --> |
141 | <script | 137 | <script |
142 | - src=process.env.Map_Key; | 138 | + src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDK6K4iDdo9cKQdrNoOJaaYg29nEG0BIjw&callback=initMap&libraries=&v=weekly" |
143 | async | 139 | async |
144 | ></script> | 140 | ></script> |
145 | </body> | 141 | </body> | ... | ... |
1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
2 | <html> | 2 | <html> |
3 | <head> | 3 | <head> |
4 | - <script> | ||
5 | - import dotenv from "dotenv"; | ||
6 | - dotenv.config(); | ||
7 | - API_KEY = process.env.Map_Key | ||
8 | - </script> | ||
9 | <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> | 4 | <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> |
10 | <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script> | 5 | <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script> |
11 | <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> | 6 | <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> |
... | @@ -147,7 +142,7 @@ | ... | @@ -147,7 +142,7 @@ |
147 | 142 | ||
148 | <!-- Async script executes immediately and must be after any DOM elements used in callback. --> | 143 | <!-- Async script executes immediately and must be after any DOM elements used in callback. --> |
149 | <script | 144 | <script |
150 | - src=API_KEY | 145 | + src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDK6K4iDdo9cKQdrNoOJaaYg29nEG0BIjw&callback=initMap&libraries=&v=weekly" |
151 | async | 146 | async |
152 | ></script> | 147 | ></script> |
153 | 148 | ... | ... |
-
Please register or login to post a comment