Skip to content

Instantly share code, notes, and snippets.

View Attaulla9's full-sized avatar
💻
Focusing

Attaullla Faniband Attaulla9

💻
Focusing
View GitHub Profile
@Attaulla9
Attaulla9 / cookies.js
Last active December 24, 2021 14:04
Get Cookies data in object format and access by name
// set cookie
var isCookiesExist = false;
var parse_cookie;
if (document.cookie.indexOf('fordata=') != -1) {
isCookiesExist=true;
var cookiedata = document.cookie
.split('; ')
.map(cookie => cookie.split("="))
.reduce((accumulator, [key, value]) => (
@Attaulla9
Attaulla9 / modal.html
Created December 1, 2021 16:47
custome css Modal
<style>
.otp_modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background-color: rgba(0, 0, 0, .5);
display: flex;
justify-content: center;
@Attaulla9
Attaulla9 / googlesheetapi.js
Created November 25, 2021 19:27
We can create Google sheet endpoint through this code
var sheetName = 'Sheet1'
var scriptProp = PropertiesService.getScriptProperties()
function intialSetup () {
var activeSpreadsheet = SpreadsheetApp.getActiveSpreadsheet()
scriptProp.setProperty('key', activeSpreadsheet.getId())
}
function doPost (e) {
@Attaulla9
Attaulla9 / Scrolljump.js
Created October 7, 2021 08:07
Smooth scroll when click (Take you to the section)
$("#lp-pom-text-1222").click(function () {
$('html, body').animate({
scrollTop: $("#lp-pom-block-767").offset().top
}, 2000);
});
@Attaulla9
Attaulla9 / wp-query-ref.php
Created October 2, 2021 16:59 — forked from luetkemj/wp-query-ref.php
WP: Query $args
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.github.io
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php
*/
@Attaulla9
Attaulla9 / wl-api.php
Created October 2, 2021 06:00 — forked from ivandoric/wl-api.php
WordPress Rest API Custom Endpoints Video Tutorials Notes - Check out the videos: https://www.youtube.com/watch?v=C2twS9ArdCI and https://www.youtube.com/watch?v=76sJL9fd12Y
<?php
/**
* Plugin Name: Custom API
* Plugin URI: http://chrushingit.com
* Description: Crushing it!
* Version: 1.0
* Author: Art Vandelay
* Author URI: http://watch-learn.com
*/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="http://html5-training-in-hyderabad.blogspot.com.br/favicon.ico">
<title>My Gist</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- Font-awesome -->
@Attaulla9
Attaulla9 / searchAndNavigation.html
Created August 30, 2021 07:32
Vuejs search and Navigation code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="http://html5-training-in-hyderabad.blogspot.com.br/favicon.ico">
<title>My Gist</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- Font-awesome -->
@Attaulla9
Attaulla9 / IndianStates.json
Created August 27, 2021 11:37 — forked from shiva0704/IndianStates.json
Latest Indian States and Union Territories in JSON format Raw - Updated
{
"AN":"Andaman and Nicobar Islands",
"AP":"Andhra Pradesh",
"AR":"Arunachal Pradesh",
"AS":"Assam",
"BR":"Bihar",
"CG":"Chandigarh",
"CH":"Chhattisgarh",
"DN":"Dadra and Nagar Haveli",
"DD":"Daman and Diu",
@Attaulla9
Attaulla9 / unbounceSticky.js
Created July 16, 2021 16:33
Making Button unbounce container sticky
<script>
<script>
// Add ID of sticky CTA
var fixedCta = $('#lp-pom-box-283');
// DO NOT EDIT BELOW CODE
var ctaPos = fixedCta.offset();
var ctaLeft = ctaPos.left;
var ctaTop = ctaPos.top;