JS - Basic Markup for Jquery (SDB Terms)
Wed Jan 19 2022 03:19:14 GMT+0000 (UTC)
Saved by
@dwtut
#jquery
#javascript
(function ($) {
if (!window.SDB) {
SDB = {};
}
/*
* Application Init, everything starts here
*
*/
SDB.App = function() {
return {
exists: function(x) {
if ($(x).length > 0) { return true; }
},
init: function() {
// Basic Clickable on Whole Column with Target Blank
if(SDB.App.exists('.tg-clickable')){
$(document).on('click', 'body:not(.fl-builder-edit) .tg-clickable > .fl-col-content', function(event) {
var link = $(this).find("a").attr("href");
window.open(link,'_blank');
return false;
});
}
// Start New Function from here
} // CLOSE INIT FUNCTION
};
}();
$(function() {
SDB.App.init();
});
}(jQuery));
content_copyCOPY
This is basic markup for the JS
https://www.thetinygirl.com/wp-admin/post.php?post
Comments