at path:
ROOT
/
demo
/
old
/
js
/
eg-gallery-cobbles.js
run:
R
W
Run
jquery
DIR
2021-05-27 11:23:02
R
W
Run
vendor
DIR
2021-05-27 11:23:06
R
W
Run
_main.js
3.63 KB
2021-05-27 11:23:02
R
W
Run
Delete
Rename
chart.min.js
19.3 KB
2021-05-27 11:23:02
R
W
Run
Delete
Rename
eg-gallery-cobbles.js
4.22 KB
2021-05-27 11:23:02
R
W
Run
Delete
Rename
eg-gallery-grid.js
4.23 KB
2021-05-27 11:23:02
R
W
Run
Delete
Rename
eg-gallery-masonry.js
4.19 KB
2021-05-27 11:23:02
R
W
Run
Delete
Rename
eg-projects.js
4.26 KB
2021-05-27 11:23:02
R
W
Run
Delete
Rename
revslider-homepage.js
7.3 KB
2021-05-27 11:23:02
R
W
Run
Delete
Rename
scripts.js
93.8 KB
2021-05-27 11:23:02
R
W
Run
Delete
Rename
superfish.js
6.82 KB
2021-05-27 11:23:02
R
W
Run
Delete
Rename
trx_addons.js
128.8 KB
2021-05-27 11:23:02
R
W
Run
Delete
Rename
error_log
up
📄
eg-gallery-cobbles.js
Save
function eggbfc(winw, resultoption) { "use strict"; var lasttop = winw, lastbottom = 0, smallest = 9999, largest = 0, samount = 0, lamoung = 0, lastamount = 0, resultid = 0, resultidb = 0, responsiveEntries = [{ width: 1400, amount: 3, mmheight: 0 }, { width: 1170, amount: 3, mmheight: 0 }, { width: 1024, amount: 3, mmheight: 0 }, { width: 900, amount: 3, mmheight: 0 }, { width: 778, amount: 2, mmheight: 0 }, { width: 600, amount: 2, mmheight: 0 }, { width: 480, amount: 1, mmheight: 0 }]; if (responsiveEntries != undefined && responsiveEntries.length > 0) jQuery.each(responsiveEntries, function(index, obj) { var curw = obj.width != undefined ? obj.width : 0, cura = obj.amount != undefined ? obj.amount : 0; if (smallest > curw) { smallest = curw; samount = cura; resultidb = index; } if (largest < curw) { largest = curw; lamount = cura; } if (curw > lastbottom && curw <= lasttop) { lastbottom = curw; lastamount = cura; resultid = index; } }); if (smallest > winw) { lastamount = samount; resultid = resultidb; } var obj = new Object; obj.index = resultid; obj.column = lastamount; if (resultoption == "id") return obj; else return lastamount; } if ("cobbles" == "even") { var coh = 0, container = jQuery("#esg-grid-4-1"); var cwidth = container.width(), ar = "4:3", gbfc = eggbfc(jQuery(window).width(), "id"), row = 4; ar = ar.split(":"); aratio = parseInt(ar[0], 0) / parseInt(ar[1], 0); coh = cwidth / aratio; coh = coh / gbfc.column * row; var ul = container.find("ul").first(); ul.css({ display: "block", height: coh + "px" }); } var essapi_4; jQuery(document).ready(function() { "use strict"; essapi_4 = jQuery("#esg-grid-4-1").tpessential({ gridID: 4, layout: "cobbles", forceFullWidth: "off", lazyLoad: "off", row: 4, loadMoreAjaxToken: "5e77e0f921", loadMoreAjaxUrl: "#", loadMoreAjaxAction: "Essential_Grid_Front_request_ajax", ajaxContentTarget: "ess-grid-ajax-container-", ajaxScrollToOffset: "0", ajaxCloseButton: "off", ajaxContentSliding: "on", ajaxScrollToOnLoad: "on", ajaxNavButton: "off", ajaxCloseType: "type1", ajaxCloseInner: "false", ajaxCloseStyle: "light", ajaxClosePosition: "tr", space: 10, pageAnimation: "fade", paginationScrollToTop: "off", spinner: "spinner0", lightBoxMode: "single", animSpeed: 1000, delayBasic: 1, mainhoverdelay: 1, filterType: "single", showDropFilter: "hover", filterGroupClass: "esg-fgc-4", googleFonts: ['Open+Sans:300,400,600,700,800', 'Raleway:100,200,300,400,500,600,700,800,900', 'Droid+Serif:400,700'], aspectratio: "4:3", responsiveEntries: [{ width: 1400, amount: 3, mmheight: 0 }, { width: 1170, amount: 3, mmheight: 0 }, { width: 1024, amount: 3, mmheight: 0 }, { width: 900, amount: 3, mmheight: 0 }, { width: 778, amount: 2, mmheight: 0 }, { width: 600, amount: 2, mmheight: 0 }, { width: 480, amount: 1, mmheight: 0 }] }); });