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
<?php | |
/* Copy and Paste the Whole Code Below this line */ | |
/* When you are using it inside functions.php, You might wanna loose the start and end PHP tag */ | |
/* The Shortcode Format Will be -> [youtube-vid id="Video ID" res="Video Resolution"] */ | |
/* In http://www.youtube.com/watch?v=a8ZeqZrLxpw <- this video, a8ZeqZrLxpw is the id */ | |
/* This simple Shortcode Cover 4 premade resolution and 1 fallback. 240p, 360p, 480p, 720p and 240p fallback */ | |
/* A Very Simple Effort to make your life easier, By Oritro Ahmed [ http://ioritro.com ] */ | |
/* And FYI: you don't need to copy this long comment section */ |
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
<IfModule mod_setenvif.c> | |
<IfModule mod_headers.c> | |
<FilesMatch "\.(bmp|cur|gif|ico|jpe?g|png|svgz?|webp)$"> | |
SetEnvIf Origin ":" IS_CORS | |
Header set Access-Control-Allow-Origin "*" env=IS_CORS | |
</FilesMatch> | |
</IfModule> | |
</IfModule> | |
<IfModule mod_headers.c> |
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
<?php | |
if(isset($_GET['unit'])) { | |
$userunit = $_GET['unit']; | |
$bills = array ( | |
array ( | |
'min' => 1, | |
'max' => 75, | |
'price' => 3.8 | |
), |
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> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>Address Page</title> | |
</head> | |
<body> |
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
trsteel_ckeditor: | |
class: Trsteel\CkeditorBundle\Form\Type\CkeditorType | |
# transformers: ['html_purifier'] | |
toolbar: ['document', 'clipboard', 'editing', '/', 'basicstyles', 'paragraph', 'links', '/', 'insert', 'styles', 'tools'] | |
toolbar_groups: | |
document: ['Source','-','Save','-','Templates'] | |
clipboard: ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo'] | |
editing: ['Find','Replace','-','SelectAll'] | |
basicstyles: ['Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat'] | |
paragraph: ['NumberedList','BulletedList','-','Outdent','Indent','-','JustifyLeft', 'JustifyCenter','JustifyRight','JustifyBlock'] |
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
// Make sure to load this after the HTML is loaded. Also, don't forget to include the API with '&libraries=places' for this to work | |
$(window).on('load',function () { | |
// The field where people will search their address, Must be a text input | |
var searchinput = 'street_number'; | |
// Don't need Place Search For this Example | |
var autocomplete; | |
// Could've done the following line a bit easier ! | |
autocomplete = new google.maps.places.Autocomplete((document.getElementById(searchinput)),{ | |
types: ['geocode'] |
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
$(window).on('load',function () { | |
var searchinput = 'street_number'; | |
var autocomplete; | |
autocomplete = new google.maps.places.Autocomplete((document.getElementById(searchinput)),{ | |
types: ['geocode'] | |
}); | |
autocomplete.addListener('place_changed', fillInAddress); | |
function fillInAddress() { | |
var place = autocomplete.getPlace(); |
OlderNewer