Skip to content

Instantly share code, notes, and snippets.

View reachkamrul's full-sized avatar
😁

Md Kamrul Islam reachkamrul

😁
View GitHub Profile
// This code will hide any row in responsive breakdown which doesn't have any data
// If all rows inside a + icon is empty, it will hide the +/- sign
function runAllThisStaff(){
$table.find('tbody tr').each(function(){
var clickedRow = jQuery(this);
var forCheck = clickedRow.find('td:not(:first-child)');
forCheck.each(function(){
var dataAvailable = jQuery(this).text().length;
if(jQuery(this).text().length === 0){
$(document).ready(function(){
var maxLength = 300; // give character length here
var colName = 'text'; // give your column key here
var readMoreText = "read more..."; // give read more text here
var readLessText = "read less..."; //give read less text here
function limitChar(){
$(".ninja_clmn_nm_"+colName).each(function(){
<?php
/*
* Dynamic item in fluent form dropdown.
*/
add_filter('fluenform_rendering_field_data_select', function ($data, $form) {
if ($form->id != 91) {
return $data;
}
<?php
/**
*
* ***** WooCommerce Purchase Validate Addon for Fluent Form *****
*
* Subscription status file
*
* @package wpvafff
*/
// added by Ninja Support
$('[data-toggle=dropdown]').on('click', function (event) {
if (jQuery(window).width() > 767) {
window.location.href = $(this).attr('href');
}
});
/*
* The following functions will add additional file types option to your file upload element
* In this case, You can enable .dwg file format
* Just add this snippet to your theme's functions.php file or relevant place.
*/
add_filter('fluentform_file_type_options', function ($types) {
$types[] = [
'label' => __('Autocad Files (dwg)', 'fluentform'),
'value' => 'dwg',
function runAll(){
$(document).on('click', 'tbody tr', function(e){
e.preventDefault();
var url = $(this).find('a').attr('href');
if(url != ""){
window.open(url, '_blank');
}
});
}
var my_class = "addDollar"; // define your class name here
var my_content = "$"; // define your prefix text here
var myClasses = jQuery('.'+ my_class +' .ff-el-input--content');
myClasses.prepend('<div class="ff_input-group-prepend"><span class="ff_input-group-text">'+my_content+'</span></div>');
myClasses.addClass('ff_input-group');
var className = "my_btn";
var amazonText = "Check Price at Amazon";
var walmartText = "Check Price at Walmart";
var emptyText = "Item Unavailable";
function changeButtonText(){
var myClass = $table.find('tbody .'+className);
$table.find('tbody .'+className+ ' a').each(function(){
var myVal = $(this).attr('href');
function imageTransformation(){
$table.find('tbody .my_image').each(function(){
var myImage = $(this).text();
if (myImage.match(',')){
var imageArray = myImage.split(',');
for ( var i = 0; i<imageArray.length; i++){
imageArray[i] = "<img src='"+imageArray[i]+"'>";
}
$(this).html(imageArray);