109 lines
2.4 KiB
HTML
109 lines
2.4 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
body {
|
|
width: 200px;
|
|
margin: 0;
|
|
padding: 10px;
|
|
font-family: Arial, sans-serif;
|
|
transition: all 0.3s ease;
|
|
}
|
|
body.dialog-open {
|
|
width: 300px;
|
|
height: 200px;
|
|
}
|
|
#grabKeywords, #grabSemrushKeywords {
|
|
width: 100%;
|
|
padding: 8px;
|
|
margin: 5px 0;
|
|
cursor: pointer;
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
}
|
|
#grabKeywords:hover, #grabSemrushKeywords:hover {
|
|
background-color: #45a049;
|
|
}
|
|
#dialog {
|
|
display: none;
|
|
position: absolute;
|
|
left: 10px;
|
|
right: 10px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: white;
|
|
padding: 15px;
|
|
border-radius: 5px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
z-index: 1000;
|
|
}
|
|
#dialog p {
|
|
margin: 0 0 15px 0;
|
|
font-size: 14px;
|
|
line-height: 1.4;
|
|
}
|
|
.dialog-buttons {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
}
|
|
.dialog-buttons button {
|
|
flex: 1;
|
|
padding: 8px;
|
|
cursor: pointer;
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
}
|
|
.dialog-buttons button:hover {
|
|
background-color: #45a049;
|
|
}
|
|
#overlay {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0,0,0,0.5);
|
|
z-index: 999;
|
|
}
|
|
.checkbox-container {
|
|
margin: 15px 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.checkbox-container input[type="checkbox"] {
|
|
margin: 0;
|
|
}
|
|
.checkbox-container label {
|
|
font-size: 14px;
|
|
user-select: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<button id="grabKeywords">Grab GKWP Keywords</button>
|
|
<button id="grabSemrushKeywords">Grab SEMRush Keywords</button>
|
|
|
|
<div id="overlay"></div>
|
|
<div id="dialog">
|
|
<p>Would you like to include column headers in the export?</p>
|
|
<div class="checkbox-container">
|
|
<input type="checkbox" id="extractAllPages" checked>
|
|
<label for="extractAllPages">Extract all pages (if available)</label>
|
|
</div>
|
|
<div class="dialog-buttons">
|
|
<button id="yesButton">Yes</button>
|
|
<button id="noButton">No</button>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="popup.js"></script>
|
|
</body>
|
|
</html> |