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
<script> | |
var et_site_url = 'http://webhostingdivi.site'; | |
var et_post_id = '193'; | |
function et_core_page_resource_fallback(a, b) { | |
"undefined" === typeof b && (b = a.sheet.cssRules && 0 === a.sheet.cssRules.length); | |
b && (a.onerror = null, a.onload = null, a.href ? a.href = et_site_url + "/?et_core_page_resource=" + a.id + et_post_id : a.src && (a.src = et_site_url + "/?et_core_page_resource=" + a.id + et_post_id)) | |
} | |
</script> | |
<title>Divi hosting home | Premium Divi Web Hosting</title> |
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
$scheme = 'http'; | |
// detect if we use HTTPS protocole | |
if ( isset( $_SERVER['HTTP_USER_AGENT_HTTPS'] ) && $_SERVER['HTTP_USER_AGENT_HTTPS'] == 'ON' ) { | |
$scheme = 'https'; | |
} | |
// replace with subdomain name for static files | |
$static_folder_name = 'static'; |
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
function js_async_attr($tag){ | |
# Do not add defer or async attribute to these scripts | |
$scripts_to_exclude = array('script1.js', 'script2.js', 'script3.js'); | |
foreach($scripts_to_exclude as $exclude_script){ | |
if(true == strpos($tag, $exclude_script ) ) | |
return $tag; | |
} | |
# Defer or async all remaining scripts not excluded above | |
return str_replace( ' src', ' defer="defer" src', $tag ); |
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
WebFontConfig = { | |
google: { | |
families: [ 'Ubuntu:400' ] | |
}, | |
timeout: 2000 | |
}; |
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 | |
// Disable pingback.ping xmlrpc method to prevent Wordpress from participating in DDoS attacks | |
// remove x-pingback HTTP header | |
add_filter('wp_headers', function($headers) { | |
unset($headers['X-Pingback']); | |
return $headers; | |
}); | |
// disable pingbacks | |
add_filter( 'xmlrpc_methods', function( $methods ) { | |
unset( $methods['pingback.ping'] ); |
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
jQuery(document).ready(function ($) { | |
$('.owl-carousel').owlCarousel({ | |
navText:['\43','\44'], | |
dots: false, | |
loop: true, | |
nav: true, | |
lazyload: true, | |
margin: 50, | |
responsiveClass: true, | |
responsive: { |
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
/** | |
* Owl Carousel v2.2.1 | |
* Copyright 2013-2017 David Deutsch | |
* Licensed under () | |
*/ | |
/* | |
* Default theme - Owl Carousel CSS File | |
*/ |
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
.hero__terminal { | |
width: 60%; | |
margin: -11rem auto 3rem auto; | |
text-align: left; | |
color: white; | |
padding: 0 1rem; | |
border-radius: 4px; | |
background-color: #232323; | |
min-height: 285px; | |
animation: fadeUp 2s; |
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
// utilities | |
var get = function (selector, scope) { | |
scope = scope ? scope : document; | |
return scope.querySelector(selector); | |
}; | |
var getAll = function (selector, scope) { | |
scope = scope ? scope : document; | |
return scope.querySelectorAll(selector); | |
}; |
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
(function($) { | |
$(document).ready(function() { | |
var navChildren = $("#top-menu li").children(); | |
var aArray = []; | |
for (var i = 0; i < navChildren.length; i++) { | |
var aChild = navChildren[i]; | |
// var ahref = $(aChild).attr('href'); | |
var ahrefTMP = $(aChild).attr('href'); | |
var ahref = ahrefTMP.substring(ahrefTMP.indexOf('#')); |
OlderNewer