Skip to content

Instantly share code, notes, and snippets.

View bulbul84's full-sized avatar

Md Bulbul Hasan bulbul84

View GitHub Profile
@bulbul84
bulbul84 / index.html
Created February 22, 2022 13:54
HTML5 video custom play & pause button
<div align="center" class="embed-responsive embed-responsive-16by9">
<button class="playbutton" id="video_play"><img id="playpasue" src="custom/images/pause.png"></button>
<video id="herovideo" class="embed-responsive-item" width="560" height="315" autoplay loop muted>
<source src="custom/videos/Hero-Video-v8.mp4" type="video/mp4" />
<source src="custom/videos/Hero-Video-v8.mp4" type="video/mov" />
<source src="custom/videos/Hero-Video-v8.mp4" type="video/ogg" /> Your browser does not support the video tag.
</video>
</div>
@bulbul84
bulbul84 / index.html
Created February 22, 2022 14:34
How to change html element attribute value by jquery
<button id="dsk_humberger" class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown" aria-expanded="false" aria-label="Open the menu">
<img src="<?php echo get_template_directory_uri()?>/assets/images/humberger-open.svg" alt="open menu icon" class="open_menu">
<img src="<?php echo get_template_directory_uri()?>/assets/images/humberger-close.svg" alt="close menu icon" class="close_menu">
</button>
@bulbul84
bulbul84 / scripts.js
Last active March 11, 2022 10:42
adding loading icon when submit multistep form
<script>
$(document).ready(function() {
$("#email_submit").on("click", function() {
$(".multistep_form").addClass("loading");
setTimeout(function() {
$(".multistep_form").removeClass("loading");
}, 5000);
});
});
</script>
@bulbul84
bulbul84 / scripts.html
Created March 15, 2022 14:22
Scrolling a specific area when focus an input fields
<!-- This will scrolling desktop and mobile both -->
<script>
$(function(){
$("#filter").focus(function() {
$('html,body').animate({
scrollTop: $(".advisor_single_input").offset().top - 0},'slow');
});
$("#filter").focusout(function() {
@bulbul84
bulbul84 / style.css
Created June 14, 2022 15:09
Scrollbar style by css
::-webkit-scrollbar-corner {
background: rgba(0, 0, 0, 0.5);
}
* {
scrollbar-width: thin;
scrollbar-color: #c5c5c5;
}
/* Works on Chrome, Edge, and Safari */
*::-webkit-scrollbar {
width: 12px;
@bulbul84
bulbul84 / style.css
Created July 2, 2022 17:32
custom scrollbar style
html::-webkit-scrollbar-track {
background: linear-gradient(90deg,#434343,#434343 1px,#111 0,#111);
}
html::-webkit-scrollbar-thumb {
background: #434343;
border-radius: 16px;
box-shadow: inset 2px 2px 2px hsl(0deg 0% 100% / 25%), inset -2px -2px 2px rgb(0 0 0 / 25%);
}
html::-webkit-scrollbar {
width: 16px;
@bulbul84
bulbul84 / index.html
Created July 25, 2022 13:25
How to check password strength / length / requirements
<div class="row" id="idpassword">
<div class="col-sm-6">
<div class="form-group input_fields">
<input class="form-control" type="password" name="password" id="password" required>
<p class="show_hide" id="pass1">Show</p>
<label for="password">Password </label>
</div>
</div>
<div class="col-sm-6">
<div class="form-group input_fields">
@bulbul84
bulbul84 / scripts.js
Created July 25, 2022 18:05
responsive jquery css code
<script>
$(function(){
if ($(window).width() < 768) {
$("#filter").focus(function() {
$('html,body').animate({
scrollTop: $(".advisor_single_input").offset().top - 0},'slow');
});
$("#filter").focusout(function() {
@bulbul84
bulbul84 / scripts.js
Created July 25, 2022 18:07
add loading icon for multistep form
<script>
$(document).ready(function() {
$("#email_submit").on("click", function() {
$(".multistep_form").addClass("loading");
setTimeout(function() {
$(".multistep_form").removeClass("loading");
}, 500);
});
});
</script>
@bulbul84
bulbul84 / index.html
Created December 5, 2022 18:53
HTML Input fields style by CSS
<form action="#" id="form_affiliates">
<div class="affliate-form">
<div class="form-group input_fields">
<input type="text" id="organization" class="form-control" placeholder=" " name="organization" required>
<label for="organization">Organization</label>
</div>
<div class="form-group input_fields">
<input type="text" id="websiteurl" class="form-control" placeholder=" " name="websiteurl" required>
<label for="websiteurl">Website URL</label>