-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from yukiarimo/beta
v6.1
- Loading branch information
Showing
95 changed files
with
1,873 additions
and
10,823 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
chrome.action.onClicked.addListener(function () { | ||
chrome.tabs.create({ | ||
url: 'index.html' | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* Additional styles to position the popover */ | ||
#floatingImage { | ||
position: fixed; | ||
bottom: 10px; | ||
right: 10px; | ||
width: 50px; | ||
height: 50px; | ||
cursor: pointer; | ||
z-index: 1000; | ||
/* Ensure the image is above other elements */ | ||
border: none; | ||
/* Remove button border */ | ||
background: none; | ||
/* Remove button background */ | ||
padding: 0; | ||
/* Remove button padding */ | ||
outline: none; | ||
/* Remove focus outline */ | ||
} | ||
|
||
#popoverContainer { | ||
position: fixed; | ||
bottom: 60px; | ||
/* Adjust this value to position the popover above the image */ | ||
right: 10px; | ||
/* Align the popover with the right side of the image */ | ||
display: none; | ||
z-index: 1001; | ||
/* Ensure the popover is above the image */ | ||
width: 250px; | ||
/* Set a fixed width for the popover */ | ||
transition: opacity 0.2s; | ||
/* Smooth transition for popover appearance */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<title>Yuna AI</title> | ||
<!-- Include Bootstrap CSS --> | ||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> | ||
<link rel="stylesheet" href="index.css"> | ||
</head> | ||
|
||
<body> | ||
<!-- Trigger for popover --> | ||
<img id="floatingImage" src="yuna-ai-48.png" alt="Yuna AI"> | ||
|
||
<!-- Popover content --> | ||
<div id="popoverContainer" class="popover bs-popover-top"> | ||
<div class="arrow"></div> | ||
<h3 class="popover-header">Input</h3> | ||
<div class="popover-body"> | ||
<input type="text" id="inputField" class="form-control"> | ||
<button id="submitButton" class="btn btn-primary mt-2">Submit</button> | ||
</div> | ||
</div> | ||
|
||
<script src="index.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Create a container for the popover | ||
var popoverContainer = document.createElement('div'); | ||
|
||
// Set the innerHTML of the container with your popover HTML | ||
popoverContainer.innerHTML = ` | ||
<img id="floatingImage" src="yuna-ai-48.png" alt="Yuna AI" style="position: fixed; bottom: 10px; right: 10px; cursor: pointer; z-index: 1000;"> | ||
<div id="popoverContainer" class="popover bs-popover-top" style="position: fixed; bottom: 70px; right: 10px; display: none; z-index: 1001;"> | ||
<div class="arrow"></div> | ||
<h3 class="popover-header">Input</h3> | ||
<div class="popover-body"> | ||
<input type="text" id="inputField" class="form-control"> | ||
<button id="submitButton" class="btn btn-primary mt-2">Submit</button> | ||
</div> | ||
</div> | ||
`; | ||
|
||
// Append the container to the body | ||
document.body.appendChild(popoverContainer); | ||
|
||
// Create the link element for Bootstrap CSS | ||
var bootstrapLink = document.createElement('link'); | ||
bootstrapLink.rel = 'stylesheet'; | ||
bootstrapLink.href = 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css'; | ||
|
||
// Append the link element to the head of the document | ||
document.head.appendChild(bootstrapLink); | ||
|
||
// Vanilla JavaScript to toggle the popover | ||
// Add event listeners for the popover functionality | ||
window.onload = function() { | ||
var floatingImage = document.getElementById('floatingImage'); | ||
var popover = document.getElementById('popoverContainer'); | ||
|
||
floatingImage.addEventListener('click', function() { | ||
var isDisplayed = popover.style.display === 'block'; | ||
popover.style.display = isDisplayed ? 'none' : 'block'; | ||
popover.style.opacity = isDisplayed ? 0 : 1; | ||
}); | ||
|
||
document.getElementById('submitButton').addEventListener('click', function() { | ||
var input = document.getElementById('inputField'); | ||
console.log(input.value); | ||
input.value = ''; | ||
popover.style.display = 'none'; | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"manifest_version": 3, | ||
"name": "Yuna AI", | ||
"version": "1.0", | ||
"description": "Your Virtual AI Girlfriend", | ||
"icons": { | ||
"16": "yuna-ai-16.png", | ||
"48": "yuna-ai-48.png", | ||
"128": "yuna-ai-128.png" | ||
}, | ||
"action": { | ||
"default_popup": "index.html", | ||
"default_icon": { | ||
"16": "yuna-ai-16.png", | ||
"48": "yuna-ai-48.png", | ||
"128": "yuna-ai-128.png" | ||
}, | ||
"default_title": "Click to open the popup" | ||
}, | ||
"permissions": [ | ||
"storage", | ||
"tabs", | ||
"activeTab" | ||
], | ||
"chrome_url_overrides": { | ||
"newtab": "index.html" | ||
}, | ||
"background": { | ||
"service_worker": "background.js" | ||
}, | ||
"web_accessible_resources": [{ | ||
"resources": ["index.js", "index.css", "yuna-ai-16.png", "yuna-ai-48.png", "yuna-ai-128.png"], | ||
"matches": ["<all_urls>"] | ||
}], | ||
"content_scripts": [{ | ||
"matches": ["<all_urls>"], | ||
"js": ["index.js"], | ||
"/css": ["index.css"], | ||
"images": ["yuna-ai-16.png", "yuna-ai-48.png", "yuna-ai-128.png"] | ||
}] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"john": "scrypt:32768:8:1$eEWrwZJUH0GjoWxO$201347371343408c8824d8b77b31f13d6d17d14538bb01f63d43626032dddcd33e3509e9eaec5c695d496a3b8b2bbd9787fe6eb6bffaa092fab702a99efb92d7" | ||
} |
Empty file.
Oops, something went wrong.