Skip to content

Instantly share code, notes, and snippets.

View priyankamandal4's full-sized avatar

priyanka mandal priyankamandal4

View GitHub Profile
@priyankamandal4
priyankamandal4 / gist:56ee861686d48fd3f014e7978f9667e9
Last active December 26, 2020 07:35
Stripe payment with PHP
reference - https://stripe.com/docs/legacy-checkout/php
download stripe library and place on same folder as payment.php form - https://github.com/stripe/stripe-php/releases (zip file)
create stripeconfig.php -
<?php
// Stripe API configuration
define('STRIPE_API_KEY', 'sk_test_51HgpeaH62mpjAqDhIE96LGn6pJFISizL0x4j7beb3Od5sTE47Ks3RVQ8RJGQi79n6UnD8VgHyBrKKUeIY7vuOPFw00QAlzq8u7');
define('STRIPE_PUBLISHABLE_KEY', 'pk_test_51HgpeaH62mpjAqDhxGw6gYVRuFdIqqJa7QfBDCPitk0MwLZbkiNqfTuShzPcOSgoTTwUP760uIDvHA8gvmgtMaYk00WHXJVNN3');
<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit" async defer></script>
<input type="submit" id="contact-submit" class="btn" value="Send Message" style="display: none;">
<p id="showbtn" onclick="showbtn();"> submit</p>
<script type="text/javascript">
function showbtn(){
var name = $('#name').val();
var name1 = $('#name1').val();
var Contact = $('#Contact').val();
var email = $('#email').val();
::-webkit-scrollbar {
width: 2px;
height: 4px;
}
create .htaccess file in the parent directory and paste below code
RewriteEngine on
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
@priyankamandal4
priyankamandal4 / bootstrap.min.css
Last active January 22, 2020 08:49
Pagination.
/*!
* Bootstrap v3.0.0
*
* Copyright 2013 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world by @mdo and @fat.
*//*! normalize.css v2.1.0 | MIT License | git.io/normalize */article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{margin:.67em 0;font-size:2em}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{height:0;-moz-box-sizing:content-box;box-sizing:content-box}mark{color:#000;background:#ff0}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:"\201C" "\201D" "\2018" "\2019"}small{font-size:80%}sub,sup{position:relativ
@priyankamandal4
priyankamandal4 / gist:504c1112210c34101df0c948603c7e7e
Last active March 19, 2020 07:31
Goolge Re-captcha for HTML Form
First generate your Site key by filling the form at https://www.google.com/recaptcha/intro/v3.html
Place this inside <head> tags - <script src="https://www.google.com/recaptcha/api.js?render=Your_site_key"></script>
Place HTML <form> tags - <form method="post" id="comment_form">
<div class="form-group">
<input name="name" type="text" id="ContentPlaceHolder1_txtName" class="form-control" placeholder="Full Name" required="">
</div>
<div class="form-group">
<input name="email" type="email" id="ContentPlaceHolder1_txtEmail" class="form-control" placeholder="Email-Id" required="">
</div>
<div class="form-group">
/*! Magnific Popup - v1.1.0 - 2016-02-20
* http://dimsemenov.com/plugins/magnific-popup/
* Copyright (c) 2016 Dmitry Semenov; */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn}
script : $('#loader').fadeOut(2000);
html: <div class="outer-container_loader" id="loader">
<div class="inner-container_loader">
<div class="centered-content_loader">
<div style="position: relative;z-index: 9999;">
<img src="https://www.lktailor.com/images/logo1.png" alt="Loading..." style="width: 65%;">
<div class="spinner sk-spinner-wave">
<div class="rect1"></div>