Compare commits

..

3 Commits

Author SHA1 Message Date
e06c6dd1c6
Added license 2021-08-14 16:00:31 +02:00
1025f6b2c2
Added comments 2021-08-14 15:58:58 +02:00
435a8bcfe0
Added credits and comments 2021-08-14 15:58:51 +02:00
3 changed files with 32 additions and 2 deletions

24
LICENSE Normal file
View File

@ -0,0 +1,24 @@
MIT License
-----------
Copyright (c) 2021 ODIT.Services (https://odit.services)
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

View File

@ -26,3 +26,8 @@ TODO: -->
- [x] Generate another url - [x] Generate another url
- [ ] Project Logo™ - [ ] Project Logo™
- [ ] Finalize styling - [ ] Finalize styling
## Credits
* ClipboardJS by Zeno Rocha licensed under MIT - Website: https://clipboardjs.com/ - Repo: https://github.com/zenorocha/clipboard.js
* TailwindCSS by TailwindLabs licensed under MIT - Website: https://tailwindcss.com - Repo: https://github.com/tailwindlabs/tailwindcss
* LinkyLinky Server: https://git.odit.services/kauft.es/linkylinky

View File

@ -11,8 +11,8 @@ clipboard.on('success', function (e) {
}); });
}); });
document.getElementById("create").onclick = createUrl;
// Calls the api to create a new short url // Calls the api to create a new short url
document.getElementById("create").onclick = createUrl;
function createUrl() { function createUrl() {
chrome.tabs.query({ active: true, lastFocusedWindow: true }, tabs => { chrome.tabs.query({ active: true, lastFocusedWindow: true }, tabs => {
let shorturl = { let shorturl = {
@ -43,6 +43,7 @@ function createUrl() {
} }
//Resets the UI
document.getElementById("reset").onclick = reset; document.getElementById("reset").onclick = reset;
function reset() { function reset() {
document.getElementById("shorturl").innerText = ""; document.getElementById("shorturl").innerText = "";