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
<!DOCTYPE html> | |
<html lang="en-us"> | |
<head> | |
<meta name="author" content="Osman Zakir" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta charset="utf-8" /> | |
<link href="styles/styles.css" rel="stylesheet" /> | |
<script src="scripts/scripts.js" async defer></script> | |
<script async defer src="https://maps.googleapis.com/maps/api/js?v=3&key={{ apikey | urlencode }}&libraries=places&callback=init_map"></script> | |
<title>DragonOsman Currency Converter</title> |
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
#map { | |
height: 100%; | |
} | |
html, body { | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
} |
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
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ | |
'use strict'; | |
var _countryMap = require('./country-map'); | |
var _countryMap2 = _interopRequireDefault(_countryMap); | |
var _currencyMap = require('./currency-map'); | |
var _currencyMap2 = _interopRequireDefault(_currencyMap); |
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
import countryMap from './country-map'; | |
function getCurrencyAbbreviation(countryName) { | |
let country = countryMap[countryName]; | |
if (country) { | |
return country.currency; | |
} | |
return undefined; | |
} |
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
module.exports = { | |
'Afghanistan': { | |
'abbreviation': 'AF', | |
'currency': 'AFN' | |
}, | |
'Albania': { | |
'abbreviation': 'AL', | |
'currency': 'ALL' | |
}, | |
'Algeria': { |
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
// Osman Zakir | |
// 3 / 16 / 2018 | |
// Google Maps GUI + Currency Converter Web Application | |
// This application uses a Google Map as its UI. The user's geolocation is taken if the browser has permission, and an info window | |
// is opened at that location which displays a HTML form. The form has an input element to type in the amount of money in the base | |
// currency to convert, two dropdown menus populated with a list of currencies requested from the currency API, and a button to submit | |
// the form. By default, the base currency is USD and the resulting currency is the currency used at the place that the info window is | |
// opened on. | |
// Google's Geocoder and Reverse Geocoding Service returns status "ZERO_RESULTS" for Western Sahara, Wake Island, and Kosovo. The second |
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
1>------ Build started: Project: currency_converter, Configuration: Debug Win32 ------ | |
1>currency_converter.cpp | |
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\vcruntime_exception.h(25): warning C4820: '__std_exception_data': '3' bytes padding added after data member '__std_exception_data::_DoFree' | |
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\vcruntime_typeinfo.h(44): warning C4820: '__std_type_info_data': '3' bytes padding added after data member '__std_type_info_data::_DecoratedName' | |
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\xmemory0(127): warning C4365: 'argument': conversion from 'long' to 'unsigned int', signed/unsigned mismatch | |
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\xmemory0(141): warning C4365: 'argument': conversion from 'long' to 'unsigned int', signed/unsigned mismatch | |
1>c:\program fil |
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
1>------ Build started: Project: currency_converter, Configuration: Debug Win32 ------ | |
1>currency_converter.cpp | |
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\vcruntime_exception.h(25): warning C4820: '__std_exception_data': '3' bytes padding added after data member '__std_exception_data::_DoFree' | |
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\vcruntime_typeinfo.h(44): warning C4820: '__std_type_info_data': '3' bytes padding added after data member '__std_type_info_data::_DecoratedName' | |
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\xmemory0(127): warning C4365: 'argument': conversion from 'long' to 'unsigned int', signed/unsigned mismatch | |
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\xmemory0(141): warning C4365: 'argument': conversion from 'long' to 'unsigned int', signed/unsigned mismatch | |
1>c:\program fil |
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
In file included from currency_converter.cpp:17: | |
In file included from C:/boost_1_68_0\boost/beast/core.hpp:15: | |
In file included from C:/boost_1_68_0\boost/beast/core/bind_handler.hpp:14: | |
In file included from C:/boost_1_68_0\boost/beast/core/type_traits.hpp:14: | |
In file included from C:/boost_1_68_0\boost/beast/core/file_base.hpp:14: | |
In file included from C:/boost_1_68_0\boost/beast/core/string.hpp:15: | |
In file included from C:/boost_1_68_0\boost/utility/string_view.hpp:22: | |
In file included from C:/boost_1_68_0\boost/utility/string_view_fwd.hpp:21: | |
In file included from C:\Users\Osman\emsdk\emscripten\1.38.18\system\include\libcxx\string:477: | |
In file included from C:\Users\Osman\emsdk\emscripten\1.38.18\system\include\libcxx\string_view:176: |
This file has been truncated, but you can view the full file.
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
Build started 12/6/2018 10:06:54 PM. | |
Environment at start of build: | |
accesskey = 6118470d67d40caf1f4db130ec67e1e8 | |
ALLUSERSPROFILE = C:\ProgramData | |
apikey = AIzaSyDpOhTTtJXh6EyO_iyH26tV5tSPTH5FgDo | |
APPDATA = C:\Users\Osman\AppData\Roaming | |
ChocolateyInstall = C:\ProgramData\chocolatey | |
ChocolateyLastPathUpdate = Sun Nov 11 21:41:52 2018 | |
CommonProgramFiles = C:\Program Files (x86)\Common Files | |
CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files |