Skip to content

Instantly share code, notes, and snippets.

View TANVIRFAZLEY's full-sized avatar
🎯
Focusing

Tanvir Fazley TANVIRFAZLEY

🎯
Focusing
View GitHub Profile
@TANVIRFAZLEY
TANVIRFAZLEY / gist:fcabc9ac9c0896073447009a25d322e9
Created February 12, 2021 12:47 — forked from oooh-boi/gist:3e3fbb773ebbd647b92de8880aa4c5ef
CSS and jQuery code used in "Custom Slider in Elementor built with Elementor" video tutorial
/* ---------- CSS
- should be "attached" to the master Section */
/* make 100% wide columns possible for Desktop devices in Elementor */
.custom-swiper .elementor-container .elementor-row {
/*flex-wrap: wrap;*/
}
/* make all the colums-slides 100% wide and full screen tall */
.custom-swiper > .elementor-container > .elementor-row > .elementor-element.elementor-column {
width: 100%;
@TANVIRFAZLEY
TANVIRFAZLEY / data.json
Last active October 8, 2022 11:54 — forked from hasinhayder/data.json
Wp Quick Configurator Data
{
"themes": [
"astra",
],
"plugins": [
"elementor",
"woocommerce",
"classic-editor",
"essential-addons-for-elementor-lite",
"all-in-one-wp-migration",
@TANVIRFAZLEY
TANVIRFAZLEY / Email & Name Preg Match.php
Last active October 8, 2022 12:01 — forked from ShiponKarmakar/Email & Name Preg Match.php
All Preg Metch PHP , Js ETC
<?php
// Email
if(!(preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/", $email))){}
// User Name
if(!(preg_match("/^[A-Za-z][A-Za-z0-9]{5,21}$/", $username))){}
// Name
if(!(preg_match("/^(Mr|Mrs|Dr|Md)\.\ /", $name))){}
?>
<?php
// Naming Constant
define( "RECIPIENT_NAME", "John Doe" );
define( "RECIPIENT_EMAIL", "[email protected]" );
// Values
$success = false;
$senderName = isset( $_POST['username'] ) ? preg_replace( "/[^\.\-\' a-zA-Z0-9]/", "", $_POST['username'] ) : "";
// Check the initial Poistion of the Sticky Header
var stickyHeaderTop = $('#stickyheader').offset().top;
$(window).scroll(function(){
if( $(window).scrollTop() > stickyHeaderTop ) {
$('#stickyheader').css({position: 'fixed', top: '0px'});
$('#stickyalias').css('display', 'block');
$('#stickyheader').addClass('fix-top');
} else {
$('#stickyheader').css({position: 'static', top: '0px'});
$('#stickyalias').css('display', 'none');