Submit
Path:
~
/
home
/
getwphos
/
www
/
shellfish
/
wp-content
/
plugins
/
templaza-framework
/
framework
/
assets
/
js
/
File Content:
heartbeat.js
(function($, document, window){ $(document).ready(function(){ if(typeof tzinst_heartbeat_ajax !== "undefined" && typeof tzinst_heartbeat_ajax.admin_ajax_url !== "undefined") { $("#templaza-framework .tzinst-demo-import").addClass("no-license"); var tzinst_heartbeat ={ beatTimer: 0, beatIntTimer: 0, interval: 60, connecting: false, init: function() { // var $mmain = $("#templaza-framework"); // if($mmain.length){ // $mmain.find(".tzinst-demo-import").addClass("no-license"); // } if(tzinst_heartbeat.connecting){ return; } tzinst_heartbeat.connecting = true; $.ajax({ "url": tzinst_heartbeat_ajax.admin_ajax_url, "method": "POST", "dataType": "json", "data": { "action": tzinst_heartbeat_ajax.heartbeat_action, "_nonce": tzinst_heartbeat_ajax.heartbeat_nonce, } }).done(function (response, textStatus, jqXHR) { if (typeof response !== "undefined" && typeof response.auth_check !== "undefined") { var $main = $("#templaza-framework"), $notice = $("#setting-error-tzinst_heartbeat_domain_notice"); if (!response.auth_check) { if ($main.length) { var $mHeader = $main.find(".templaza-framework__header"), $mImport = $main.find(".tzinst-demo-import"); if ($mImport.length) { $mImport.find(".action").remove().end().addClass("no-license"); } if ($mHeader.length) { if (response.message) { var $msg = '<div class="uk-alert-danger uk-margin-bottom uk-box-shadow-small heartbeat-error" data-uk-alert>' + response.message + '<a class="uk-alert-close" data-uk-close></a></div>'; var $heartbeat = $main.find(".heartbeat-error"); if ($heartbeat.length) { $heartbeat.remove(); } $mHeader.after($msg); } } } else { if ($notice.length) { if (response.message) { var $msg = '<div class="notice-error settings-error notice is-dismissible"><p>' + response.message + '</p>' + '<p>' + tzinst_heartbeat_ajax.l10nStrings.reactivate + '</p></div>'; $notice.html($msg).removeClass("hide-if-no-js"); } } } } else { if ($main.length) { var $heartbeat = $main.find(".heartbeat-error"), $mimport = $main.find(".tzinst-demo-import"); if ($heartbeat.length) { $heartbeat.remove(); } if($mimport.length){ $mimport.removeClass("no-license"); } } else if ($notice.length) { $notice.html('').addClass("hide-if-no-js"); } } } if($notice.length){ $notice.insertAfter($(".wrap hr.wp-header-end")); } tzinst_heartbeat.connecting = false; window.clearInterval( tzinst_heartbeat.beatIntTimer ); tzinst_heartbeat.beatIntTimer = window.setInterval(tzinst_heartbeat.init, tzinst_heartbeat.interval * 1000); }); } }; window.clearTimeout( tzinst_heartbeat.beatTimer ); tzinst_heartbeat.beatTimer = window.setTimeout( function() { tzinst_heartbeat.init(); }, tzinst_heartbeat.interval ); } // Replace twitter icon to x-twitter icon UIkit.icon.add('twitter','<svg xmlns="http://www.w3.org/2000/svg" height="20" width="20" viewBox="0 0 512 512"><path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/></svg>'); }); })(jQuery, document, window);
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
core.js
3485 bytes
0644
heartbeat.js
5651 bytes
0644
installation.js
32460 bytes
0644
theme-install.js
4128 bytes
0644
N4ST4R_ID | Naxtarrr