This file contains 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
class Svg { | |
constructor(name) { | |
let div = document.createElement('div'); | |
div.innerHTML = require('../../../../public/img/svg/' + name + '.svg'); // change to wherever your svg files are | |
let fragment = document.createDocumentFragment(); | |
fragment.appendChild(div); | |
this.svg = fragment.querySelector('svg'); | |
} |
This file contains 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
<?php | |
namespace Spatie\Geocoder; | |
use GuzzleHttp\Client; | |
use Spatie\Geocoder\Exceptions\CouldNotGeocode; | |
class Geocoder | |
{ | |
const RESULT_NOT_FOUND = 'result_not_found'; |