mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/1688-chrome-extension.git
synced 2026-08-19 04:14:07 +00:00
adding comments
This commit is contained in:
+1
-1
@@ -5,6 +5,6 @@ chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
|
||||
target: { tabId },
|
||||
files: ["inject.js"],
|
||||
})
|
||||
.then(() => console.log("script injected"));
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
|
||||
// css for pay with cief modal popup
|
||||
var head = document.getElementsByTagName('HEAD')[0];
|
||||
var link = document.createElement('link');
|
||||
link.rel = 'stylesheet';
|
||||
link.type = 'text/css';
|
||||
link.href = 'https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.19.1/css/mdb.min.css';
|
||||
head.appendChild(link);
|
||||
// end css for pay with cief modal popup
|
||||
|
||||
|
||||
|
||||
|
||||
// creating modal and appending to body
|
||||
const body = document.getElementsByTagName("body");
|
||||
const modal = document.createElement("div");
|
||||
modal.className = "modal fade right";
|
||||
@@ -45,7 +47,6 @@ const ciflogo = document.createElement("img");
|
||||
ciflogo.className = "image-fluid";
|
||||
ciflogo.style = 'margin-top: 30px; width: 100%; height: 60%; max-height: 60px !important;';
|
||||
ciflogo.src = "https://www.cief-malaysia.com/wp-content/uploads/2022/10/cropped-cief-dark-2.png";
|
||||
// ciflogo.src ="https://www.cief-malaysia.com/wp-content/uploads/2018/05/cropped-CIEF-logo-min-1-32x32.png";
|
||||
|
||||
|
||||
|
||||
@@ -97,7 +98,10 @@ document.body.appendChild(modal);
|
||||
|
||||
document.querySelector(".modal").classList.add("show");
|
||||
document.querySelector(".modal").style.display = "block";
|
||||
// end creating modal and appending to body
|
||||
|
||||
|
||||
// extract information and redirect
|
||||
function extractdata() {
|
||||
var table1 = document.getElementsByTagName('table')[0];
|
||||
for (var i = 0; i < table1.tBodies.length; i++) {
|
||||
@@ -132,3 +136,4 @@ function billplzurl() {
|
||||
document.location.href = 'https://dev.exchange.cief-malaysia.com';
|
||||
}
|
||||
|
||||
//end extract information and redirect
|
||||
|
||||
Reference in New Issue
Block a user