Skip to content

Instantly share code, notes, and snippets.

View mofizul21's full-sized avatar
🏠
Working from home

Mofizul mofizul21

🏠
Working from home
View GitHub Profile
@mofizul21
mofizul21 / contact_me.js
Created January 26, 2017 22:25
PHP Contact Form
/*
Jquery Validation using jqBootstrapValidation
example is taken from jqBootstrapValidation docs
*/
$(function() {
$("input,textarea").jqBootstrapValidation(
{
preventSubmit: true,
submitError: function($form, event, errors) {
@mofizul21
mofizul21 / countdown.js
Created January 22, 2017 03:47
JavaScript Countdown
function getTimeRemaining(endtime) {
var t = Date.parse(endtime) - Date.parse(new Date());
var seconds = Math.floor((t / 1000) % 60);
var minutes = Math.floor((t / 1000 / 60) % 60);
var hours = Math.floor((t / (1000 * 60 * 60)) % 24);
var days = Math.floor(t / (1000 * 60 * 60 * 24));
return {
'total': t,
'days': days,
'hours': hours,
@mofizul21
mofizul21 / contact-form-thank-you.html
Created April 25, 2015 22:39
PHP Email Contact Form
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Thank you!</title>
<!-- define some style elements-->
<style>
h1
{
font-family : Arial, Helvetica, sans-serif;
font-size : 16px;
@mofizul21
mofizul21 / contact.html
Created April 25, 2015 22:37
PHP Email Contact Form
<form class="form-horizontal" method="POST" name="contactform" action="contact-form-handler.php" id="form">
<div class="form-group">
<label for="contact_name" class="col-lg-2 control-label">Name</label>
<div class="col-lg-10">
<input type="text" class="form-control" id="contact_name" name="name">
</div>
</div>
<div class="form-group">
<label for="contact_email" class="col-lg-2 control-label">Email</label>
<div class="col-lg-10">
@mofizul21
mofizul21 / contact.php
Created April 25, 2015 22:34
PHP Email Contact Form
<?php
$errors = '';
$myemail = 'mofizul21@gmail.com';//<-----Put Your email address here.
if(empty($_POST['name']) ||
empty($_POST['email']) ||
empty($_POST['message']))
{
$errors .= "\n Error: all fields are required";
}
{"version":1,"resource":"file:///d%3A/nestJS/nestjs-task-management-fetch-data/src/components/fetch/Quote.js","entries":[{"id":"zb3B.js","timestamp":1662601070128},{"id":"zcYO.js","timestamp":1662601089097},{"id":"XvxG.js","timestamp":1662601225984},{"id":"Qj7U.js","timestamp":1662601236450},{"id":"uJK8.js","timestamp":1662601268307},{"id":"a5nM.js","source":"Workspace Edit","timestamp":1662601269516},{"id":"bG6v.js","timestamp":1662601271573},{"id":"3WLa.js","source":"undoRedo.source","timestamp":1662601277506},{"id":"mdR0.js","timestamp":1662601297374},{"id":"JfPj.js","source":"Workspace Edit","timestamp":1662601298641},{"id":"90Gh.js","timestamp":1662601305203},{"id":"dRMT.js","source":"Workspace Edit","timestamp":1662601311949},{"id":"OSZO.js","timestamp":1662601338329},{"id":"WM2b.js","timestamp":1662601350832},{"id":"gWBE.js","timestamp":1662601526987},{"id":"NrND.js","timestamp":1662601583516},{"id":"budd.js","timestamp":1662601598419},{"id":"l7LY.js","timestamp":1662601717142},{"id":"HQnn.js","timesta