mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-11-22 17:26:45 +00:00
Removed docker badge from README
This commit is contained in:
parent
8956519a10
commit
9f68f2632f
@ -1,5 +1,3 @@
|
|||||||
[![Docker Pulls](https://img.shields.io/docker/pulls/sintan1729/simply-shorten?style=for-the-badge)](https://hub.docker.com/r/sintan1729/simply-shorten)
|
|
||||||
|
|
||||||
# ![Logo](src/main/resources/public/assets/favicon-32.png) <span style="font-size:42px">Simply Shorten</span>
|
# ![Logo](src/main/resources/public/assets/favicon-32.png) <span style="font-size:42px">Simply Shorten</span>
|
||||||
|
|
||||||
# What is it?
|
# What is it?
|
||||||
|
@ -26,7 +26,9 @@ const refreshData = async () => {
|
|||||||
|
|
||||||
const displayData = async (data) => {
|
const displayData = async (data) => {
|
||||||
let site = await getSiteUrl();
|
let site = await getSiteUrl();
|
||||||
|
if (window.isSecureContext) {
|
||||||
site = site.replace(/(^\w+:|^)\/\//, '');
|
site = site.replace(/(^\w+:|^)\/\//, '');
|
||||||
|
}
|
||||||
table_box = document.querySelector(".pure-table");
|
table_box = document.querySelector(".pure-table");
|
||||||
if (data.length == 0) {
|
if (data.length == 0) {
|
||||||
table_box.style.visibility = "hidden";
|
table_box.style.visibility = "hidden";
|
||||||
@ -97,7 +99,7 @@ const addProtocol = (input) => {
|
|||||||
|
|
||||||
const A_LONG = (s) => `<a href='${s}'>${s}</a>`;
|
const A_LONG = (s) => `<a href='${s}'>${s}</a>`;
|
||||||
const A_SHORT = (s, t) => `<a href="javascript:copyShortUrl('${s}');">${t}/${s}</a>`;
|
const A_SHORT = (s, t) => `<a href="javascript:copyShortUrl('${s}');">${t}/${s}</a>`;
|
||||||
const A_SHORT_INSECURE = (s, t) => `<a href="/${s}">${t}/${s}</a>`;
|
const A_SHORT_INSECURE = (s, t) => `<a href="${t}/${s}">${t}/${s}</a>`;
|
||||||
|
|
||||||
const deleteButton = (shortUrl) => {
|
const deleteButton = (shortUrl) => {
|
||||||
const td = document.createElement("td");
|
const td = document.createElement("td");
|
||||||
|
Loading…
Reference in New Issue
Block a user