"using show more button show infinite content" Code Answer's
You're definitely familiar with the best coding language CSS that developers use to develop their projects and they get all their queries like "using show more button show infinite content" answered properly. Developers are finding an appropriate answer about using show more button show infinite content related to the CSS coding language. By visiting this online portal developers get answers concerning CSS codes question like using show more button show infinite content. Enter your desired code related query in the search bar and get every piece of information about CSS code related question on using show more button show infinite content.
using show more button show infinite content
.ioh_load_more_container {
margin-top: 25px;
}
.ioh_load_more {
cursor:pointer;
}
Source: really-simple-plugins.com
using show more button show infinite content
/*Change infinite scroll into load more button */
//prevent the infinite scroll from running with a hack
$('.um-activity-wall').attr('data-single_post', 'TRUE');
//set up a function which inserts a load more button, and removes the animated gif
function ioh_append_loadmore_btn() {
var lastDiv = $('.um-activity-load:last');
lastDiv.html('<div class="ioh_load_more btn btn-primary">Load more</div>');
lastDiv.show();
lastDiv.addClass('ioh_load_more_container');
lastDiv.removeClass('um-activity-load');
}
ioh_append_loadmore_btn();
//add an event listener to the added load more button, which executes the loading.
$(document).on('click', '.ioh_load_more', function() {
var wall = jQuery('.um-activity-wall');
if ( wall.length > 0
&& jQuery(window).scrollTop() + jQuery(window).height() >= wall.offset().top + wall.height()
// && jQuery('.um-activity-widget:not(.um-activity-new-post):visible').length >= jQuery('.um-activity-wall').attr('data-per_page')
&& Loadwall_ajax === false) {
Loadwall_ajax = true;
var lastDiv = $('.ioh_load_more_container:last');
lastDiv.addClass('um-activity-load');
jQuery.ajax({
url: wp.ajax.settings.url,
type: 'post',
data: {
action: 'um_activity_load_wall',
offset: jQuery('.um-activity-widget:not(.um-activity-new-post):visible').length,
user_id: wall.data('user_id'),
user_wall: wall.data( 'user_wall' ),
hashtag: wall.data('hashtag'),
nonce: um_scripts.nonce
},
success: function( data ) {
jQuery('.um-activity-load').hide();
if ( data === '' ) {
Loadwall_ajax = true;
} else {
jQuery('.um-activity-wall').append( data );
Loadwall_ajax = false;
}
ioh_append_loadmore_btn();
},
error: function (e) {
console.log('UM Social Activity Error', e);
}
});
}
});
Source: really-simple-plugins.com
All those coders who are working on the CSS based application and are stuck on using show more button show infinite content can get a collection of related answers to their query. Programmers need to enter their query on using show more button show infinite content related to CSS code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about using show more button show infinite content for the programmers working on CSS code while coding their module. Coders are also allowed to rectify already present answers of using show more button show infinite content while working on the CSS language code. Developers can add up suggestions if they deem fit any other answer relating to "using show more button show infinite content". Visit this developer's friendly online web community, CodeProZone, and get your queries like using show more button show infinite content resolved professionally and stay updated to the latest CSS updates.