Skip to content

Instantly share code, notes, and snippets.

View anshulg90's full-sized avatar

Anshul Gangrade anshulg90

  • Pune, India
View GitHub Profile
.m_collapse_text, .show_collapse .m_expand_text, .m_section{
display: none;
}
.show_collapse .m_collapse_text {
display: inline;
}
@anshulg90
anshulg90 / gform-sections-accordion.js
Created June 10, 2022 08:19 — forked from BruceMcKinnon/gform-sections-accordion.js
Collapsible Gravity Form Sections
/*
This JS creates collapsible Gravity Form sections breaks
IMPORTANT:
1 - Within the Gravity form, you must add the class collapsible to each section break.
2 - All fields within those section breaks must have the class collapsible_field
3 - You must include both the CSS and the JS
@anshulg90
anshulg90 / remove-wp-version-param.php
Last active February 6, 2019 05:41
Remove wp version param from any enqueued scripts
<?php
/* ---------------------------------------------------------------------------
* Remove wp version param from any enqueued scripts
* --------------------------------------------------------------------------- */
add_filter( 'style_loader_src', 'graph_remove_wp_ver_css_js', 9999 );
add_filter( 'script_loader_src', 'graph_remove_wp_ver_css_js', 9999 );
function graph_remove_wp_ver_css_js( $src ) {
if ( strpos( $src, 'ver=' ) )
$src = remove_query_arg( 'ver', $src );
@anshulg90
anshulg90 / index.html
Created November 6, 2013 07:10
A Pen by Gabriel.
<div class="container">
<h1>inline editing <small>with jquery & textareas</small></h1>
<table class="table table-bordered">
<thead>
<tr>
<th>Field 1</th>
<th>Field 2</th>
<th>Field 3</th>
</tr>
</thead>
@anshulg90
anshulg90 / A-Pen-by-Dave-Rupert.markdown
Created November 6, 2013 07:07
A Pen by Dave Rupert.
@anshulg90
anshulg90 / index.html
Created August 6, 2013 06:56
A CodePen by meanyack. Paper plane animation - Type your message and flip the paper, make a plane. Send it. All animations, and background are made using CSS. I added jquery only to add/remove classes as I couldn't have more time to make it as keyframes. Thank you Cihad Turhan
<div id="plate" class="front">
<textarea class="message">Dear John Doe,
I don't know who you are but you're somehow very famous. I just want to meet you. Just let me know if you're reading my message.
Best Regards
Cihad
</textarea>
<button class="send"> Send it </button> <br/>
<div id="bottom">
<a href="http://codepen.io/meanyack/pen/zkEsx" id="codepen_link"> * </a>
</div>