Let's say you want to host domains first.com
and second.com
.
Create folders for their files:
document.addEventListener('DOMContentLoaded', function(event) { | |
const search = document.getElementById('search'); | |
const results = document.getElementById('results'); | |
let data = []; | |
let search_term = ''; | |
fetch('/search.json') | |
.then(response => response.json()) | |
.then(data_server => { | |
data = data_server; |
<?php | |
# app/Validation/AllowedUsernameValidator.php | |
namespace App\Validation; | |
use Illuminate\Filesystem\Filesystem; | |
use Illuminate\Routing\Router; | |
use Illuminate\Config\Repository; |
{ | |
"New York": [ | |
"New York", | |
"Buffalo", | |
"Rochester", | |
"Yonkers", | |
"Syracuse", | |
"Albany", | |
"New Rochelle", | |
"Mount Vernon", |
backend default { | |
.host = "127.0.0.1"; | |
.port = "8080"; | |
} | |
acl purge { | |
"127.0.0.1"; | |
"localhost"; | |
} |
class Top_Bar_Walker extends Walker_Nav_Menu { | |
function start_lvl( &$output, $depth = 0, $args = array() ) { | |
$output .= "\n<ul class=\"sub-menu dropdown\">\n"; | |
} | |
function start_el( &$output, $object, $depth = 0, $args = array(), $current_object_id = 0 ) { | |
$item_html = ''; | |
parent::start_el( $item_html, $object, $depth, $args ); | |
$output .= ( $depth == 0 ) ? '<li class="divider"></li>' : ''; |
<?php | |
/** | |
* Template Name: Experts List | |
*/ | |
get_header(); ?> | |
<div id="content"> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<article <?php post_class(); ?>> | |
<header class="page-header"> | |
<h1 class="page-title"><?php the_title(); ?></h1> |
<?php | |
add_action( 'wp_enqueue_scripts', 'child_load_google_fonts' ); | |
/** | |
* Enqueue Google Fonts using a function | |
*/ | |
function child_load_google_fonts() { | |
// Setup font arguments | |
$query_args = array( |