Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) Safe-mode: OFF (not secure) /var/www/clients/client172/web473/web/OLD_WP/wp-content/plugins/gallery-images/assets/js/ drwxr-xr-x |
Viewing file: view-blog-style-gallery.js (3.36 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | jQuery.each(param_obj, function (index, value) { if (!isNaN(value)) { param_obj[index] = parseInt(value); } }); function Gallery_Img_Blog_Style_Gallery(id) { var _this = this; _this.body = jQuery('body'); _this.container = jQuery('#' + id + '.view-blog-style-gallery'); _this.content = _this.container.parent(); _this.ratingType = _this.content.data('rating-type'); _this.likeContent = jQuery('.huge_it_gallery_like_cont'); _this.likeCountContainer = jQuery('.huge_it_like_count'); _this.loadMoreBtn = _this.content.find('.load_more_button'); _this.loadingIcon = _this.content.find('.loading'); _this.documentReady = function () { galleryImgRatingCountsOptimize(_this.container,_this.ratingType); }; _this.addEventListeners = function () { _this.loadMoreBtn.on('click', _this.loadMoreBtnClick); }; _this.loadMoreBtnClick = function () { var blogLoadNonce = jQuery(this).attr('data-blog-nonce-value'); if (parseInt(_this.content.find(".pagenum:last").val()) < parseInt(_this.container.find("#total").val())) { var pagenum = parseInt(_this.content.find(".pagenum:last").val()) + 1; var perpage = _this.content.attr('data-content-per-page'); var galleryid = _this.content.attr('data-gallery-id'); var pID = postID; var likeStyle = _this.ratingType; var ratingCount = param_obj.gallery_img_ht_lightbox_rating_count; _this.getResult(pagenum, perpage, galleryid, pID, likeStyle, ratingCount, blogLoadNonce); } else { _this.loadMoreBtn.hide(); } return false; }; _this.getResult = function (pagenum, perpage, galleryid, pID, likeStyle, ratingCount, blogLoadNonce) { var data = { action: "huge_it_gallery_ajax", task: 'load_blog_view', page: pagenum, perpage: perpage, galleryid: galleryid, pID: pID, likeStyle: likeStyle, ratingCount: ratingCount, galleryImgBlogLoadNonce: blogLoadNonce }; _this.loadingIcon.show(); _this.loadMoreBtn.hide(); jQuery.post(adminUrl, data, function (response) { if (response.success) { var $objnewitems = jQuery(response.success); _this.container.append($objnewitems); setTimeout(function(){ },100); _this.loadMoreBtn.show(); _this.loadingIcon.hide(); if (_this.content.find(".pagenum:last").val() == _this.content.find("#total").val()) { _this.loadMoreBtn.hide(); } galleryImgRatingCountsOptimize(_this.container,_this.ratingType); } else { alert("no"); } } , "json"); }; _this.init = function () { _this.documentReady(); _this.addEventListeners(); }; this.init(); } var galleries = []; jQuery(document).ready(function () { jQuery(".video_view9_cont_list.view-blog-style-gallery").each(function (i) { var id = jQuery(this).attr('id'); galleries[i] = new Gallery_Img_Blog_Style_Gallery(id); }); }); |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0099 ]-- |