refactoring
This commit is contained in:
7
popup/styles/bootstrap.min.css
vendored
Normal file
7
popup/styles/bootstrap.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -3,11 +3,9 @@
|
||||
<link>
|
||||
<meta charset="utf-8">
|
||||
<title>Data Extractor</title>
|
||||
<script charset="UTF-8" type="text/javascript" src="../scripts/jquery.min.js"></script>
|
||||
<script charset="UTF-8" type="text/javascript" src="../styles/bootstrap.min.js"></script>
|
||||
<script charset="UTF-8" type="text/javascript" src="./tip.js"></script>
|
||||
<script charset="UTF-8" type="text/javascript" src="tip.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="../styles/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="styles/bootstrap.min.css">
|
||||
</head>
|
||||
|
||||
<body style="margin: 20px 10px;">
|
||||
@ -26,7 +24,8 @@
|
||||
and type your scripts in the console.
|
||||
</p>
|
||||
<p>
|
||||
<img src="../images/console.png" alt="" style="max-width: 489px; width: 100%; border-radius: 5px">
|
||||
<img src="../images/console.png" alt=""
|
||||
style="max-width: 489px; width: 100%; border-radius: 5px">
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
12
popup/tip.js
12
popup/tip.js
@ -1,14 +1,14 @@
|
||||
$().ready(
|
||||
() => {
|
||||
$("#link-extension-detail").on('click', () => {
|
||||
window.onload = function () {
|
||||
document.querySelector('#link-extension-detail')
|
||||
.addEventListener('click', () => {
|
||||
chrome.tabs.create({
|
||||
'url': `chrome://extensions/?id=${chrome.runtime.id}`
|
||||
});
|
||||
})
|
||||
$("#link-document").on('click', () => {
|
||||
document.querySelector('#link-document')
|
||||
.addEventListener('click', () => {
|
||||
chrome.tabs.create({
|
||||
'url': `https://git.jebbs.co/jebbs/data-extracter-extesion`
|
||||
});
|
||||
})
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user