Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
BeycanDeveloper committed Sep 29, 2024
1 parent cb66b54 commit 79781f4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 73 deletions.
3 changes: 1 addition & 2 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ composer.lock
phpcs.xml
gulpfile.mjs
package.json
package-lock.json
/src/
package-lock.json
29 changes: 1 addition & 28 deletions assets/js/main.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/main.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 0 additions & 42 deletions src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,47 +10,5 @@
const params = window.CryptoPayLiteVars?.params || {};
window.CryptoPayLiteApp.start(window.CryptoPayLiteVars.order, params);
}

if (!window.customElements.get('cpl-powered-by')) {
const template = document.createElement('template');
template.innerHTML = `
<div class="footer">
<span class="powered-by">
Powered by
</span>
<a href="https://beycanpress.com/cryptopay?utm_source=powered_by_lite&utm_medium=web_component" target="_blank">CryptoPay</a>
</div>
<style>
.footer {
display: flex;
font-size: 14px;
padding: 20px 30px;
padding-bottom: 0px;
justify-content: center;
font-family: Arial, Helvetica, sans-serif;
}
.footer a {
font-weight: 600;
color: #7F7F7F;
text-decoration: none;
}
.footer .powered-by {
color: #7F7F7F;
font-weight: 400;
margin-right: 5px;
}
</style>
`;

class CPPoweredBy extends HTMLElement {
constructor(){
super();
this.attachShadow({ mode: 'open'});
this.shadowRoot.appendChild(template.content.cloneNode(true));
}
}

window.customElements.define('cpl-powered-by', CPPoweredBy);
}
});
})(jQuery);

0 comments on commit 79781f4

Please sign in to comment.