Skip to content

Instantly share code, notes, and snippets.

View mtNATS's full-sized avatar
:octocat:
(isset($brain))?:die;

Mitrofan Kaufman mtNATS

:octocat:
(isset($brain))?:die;
View GitHub Profile
@mtNATS
mtNATS / index.html
Created December 28, 2023 03:53
The Social Icon Effect With Dark & Light Mode
<html lang="en" data-theme="dark">
<head>
<title></title>
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<script src="https://kit.fontawesome.com/1c2c2462bf.js" crossorigin="anonymous"></script>
<!-- <link rel="stylesheet" href="style.css"> -->
</head>
<body>
<div class="social-icons">
<button class="mode">Light</button>
@mtNATS
mtNATS / index.html
Created December 28, 2023 03:38
Simple Authorization Form
<div class="modal__background">
<div class="modal__window">
<form class="auth-form" name="form-auth" method="post">
<label class="auth-form__label">
<span class="auth-form__placeholder">email</span>
<input class="auth-form__input input-email" type="email" name="email" autocomplete="off" required>
</label>
@mtNATS
mtNATS / index.html
Created December 24, 2023 15:14
Materialize Collapsible - Expand All, Collapse All
<div class="container">
<br /><br />
<a class="waves-effect waves-light btn" onClick="expandAll();"><i class="material-icons left">fullscreen</i>Expand All</a>
<a class="waves-effect waves-light btn" onClick="collapseAll();"><i class="material-icons left">fullscreen_exit</i>Collapse All</a>
<br /><br />
<ul class="collapsible" data-collapsible="expandable">
<li>
<div class="collapsible-header"><i class="mdi-navigation-chevron-right"></i><a name="987"/>First</a></div>
<?php
define('BOT_TOKEN', 'XXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXX'); // place bot token of your bot here
function checkTelegramAuthorization($auth_data) {
$check_hash = $auth_data['hash'];
unset($auth_data['hash']);
$data_check_arr = [];
foreach ($auth_data as $key => $value) {
$data_check_arr[] = $key . '=' . $value;
function woo_mini_wallet_callback() {
if (!function_exists('woo_wallet') || !is_user_logged_in()) {
return '';
}
ob_start();
$title = __('Current wallet balance', 'woo-wallet');
$mini_wallet = '<a class="woo-wallet-menu-contents" href="' . esc_url(wc_get_account_endpoint_url(get_option('woocommerce_woo_wallet_endpoint', 'woo-wallet'))) . '" title="' . $title . '">';
$mini_wallet .= '<span class="woo-wallet-icon-wallet"></span>';
$mini_wallet .= woo_wallet()->wallet->get_wallet_balance(get_current_user_id());
$mini_wallet .= '</a>';
@mtNATS
mtNATS / acf-js.js
Created May 29, 2020 02:00 — forked from neilgee/acf-js.js
ACF Google Map - Get Directions Link
(function($) {
/*
* new_map
*
* This function will render a Google Map onto the selected jQuery element
*
* @type function
* @date 8/11/2013
* @since 4.3.0
@mtNATS
mtNATS / index.html
Created May 1, 2020 01:49
Price slider with image change
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<body>
<div class="left">
<div class="left-section-first">
<h2>How much it will cost?</h2>
<input type="range" id="slider" min="1000" max="8000" step="500" value="0" class="slider"/>
</div>
@mtNATS
mtNATS / bootstrap-dashboard-template.markdown
Last active January 13, 2020 01:22
Bootstrap Dashboard Template
@mtNATS
mtNATS / index.html
Created November 16, 2019 22:29
Secret Project
<div class="mobile-wrap">
<div class="mobile clearfix">
<div class="header">
<span class="ion-ios-navicon pull-left"><i></i></span>
<span class="title">Home</span>
<span class="ion-ios-search pull-right"></span>
<div class="search">
<form method="post">
<input type="search" placeholder="Search Here">
</form>
@mtNATS
mtNATS / animated-login-and-sign-up.markdown
Created November 16, 2019 15:44
Animated Login and Sign up