Skip to content

Instantly share code, notes, and snippets.

View ssbalakumar's full-sized avatar
💭
I may be slow to respond.

Bala Kumar Sankarapandian ssbalakumar

💭
I may be slow to respond.
  • Wipro
  • Bengaluru, Karnataka, India
View GitHub Profile

How to remove hide the select arrow in Firefox using -moz-appearance:none;

tl;dr (or, the fix)

  1. Set -moz-appearance to none. This will "reset" the styling of the element;
  2. Set text-indent to 0.01px. This will "push" the text a tiny bit[1] to the right;
  3. Set text-overflow to '' (an empty string). This will change anything that extends beyond the element's width to... nothing - and this includes the infamous arrow!

Firefox select element with no arrow

jQuery.placeholder = function() {
$('[placeholder]').focus(function() {
var input = $(this);
if (input.hasClass('placeholder')) {
input.val('');
input.removeClass('placeholder');
}
}).blur(function() {
var input = $(this);
if (input.val() === '') {
// Animation Progress Bars
$("[data-appear-progress-animation]").each(function() {
var $this = $(this);
$this.appear(function() {
var delay = ($this.attr("data-appear-animation-delay") ? $this.attr("data-appear-animation-delay") : 1);
if(delay > 1) $this.css("animation-delay", delay + "ms");
@ssbalakumar
ssbalakumar / hrm.sql
Created December 8, 2016 05:02
HRM DB
use hrm
create table mtblAccYear(
intAccYear numeric(6,0) not null primary key identity(1,1),
varAccYear varchar(15),
dtBeginDate datetime,
dtEndDate datetime,
)
create table mtblUserRole (
@ssbalakumar
ssbalakumar / district.cs
Created December 8, 2016 05:04
Cascading Dropdown Edit Mode
protected void Edit(object sender, EventArgs e)
{
hfAddEditId.Value = (sender as Button).CommandArgument;
_HrmEntity.intDistrictId = Convert.ToInt32(hfAddEditId.Value);
List<Entity_HRM> listdist = new List<Entity_HRM>();
listdist = _district.GetAllDataById(_HrmEntity);
var sta = (from usr in listdist select usr);
if (sta.Any())
{
List<Entity_HRM> listCountry = new List<Entity_HRM>();
if( function_exists('acf_add_local_field_group') ):
acf_add_local_field_group(array (
'key' => 'group_58ea278ba3131',
'title' => 'Featured Column',
'fields' => array (
array (
'key' => 'field_58ea27aff64ea',
'label' => 'Featured Column',
'name' => 'featured_column',
<?php
/*
* Register colors and layout for the Theme Customizer.
*/
function pepper_customize_register($wp_customize) {
function pepper_sanitize_text( $input ) {
return $input;
}
<div class="row">
<?php
$query = new WP_Query(array(
'posts_per_page' => 3,
));
while ($query->have_posts()): $query->the_post(); ?>
<div class="col-md-4 col-sm-6 col-xs-12">
<article class="post-item">
<div class="post-tile">
<a href="<?php the_permalink(); ?>" class="media-box"> <?php echo get_the_post_thumbnail( get_the_ID(), 'large'); ?></a>
<section class="cta-home">
<div class="cta-container">
<?php $callto_action_home = get_theme_mod('callto_action_home',__( '', 'pepper' )); ?>
<?php if(!empty($callto_action_home)) : ?>
<div>
<h2 class="h3"> <?php echo esc_html($callto_action_home); ?></h2>
</div>
<a class="btn btn-sm btn-black btn-inverse" href="">VIEW FAQS</a>
<?php endif; ?>
</div>