-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
74 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,89 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Share | FullStacked</title> | ||
|
||
<meta name="theme-color" content="#081325"/> | ||
|
||
<link rel="icon" type="image/x-icon" href="https://files.fullstacked.org/favicon.png"> | ||
<link rel="stylesheet" href="index.css"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="apple-itunes-app" content="app-id=6477835950"> | ||
|
||
<meta name="theme-color" content="#081325" /> | ||
|
||
<link | ||
rel="icon" | ||
type="image/x-icon" | ||
href="https://files.fullstacked.org/favicon.png" | ||
/> | ||
<link rel="stylesheet" href="index.css" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="apple-itunes-app" content="app-id=6477835950" /> | ||
|
||
<meta property="og:url" content="https://fullstacked.org" /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:title" content="FullStacked" /> | ||
<meta property="og:description" content="Build and run full-stack JavaScript web apps on any platform." /> | ||
<meta property="og:image" content="https://files.fullstacked.org/sharing-image.jpg" /> | ||
<meta | ||
property="og:description" | ||
content="Build and run full-stack JavaScript web apps on any platform." | ||
/> | ||
<meta | ||
property="og:image" | ||
content="https://files.fullstacked.org/sharing-image.jpg" | ||
/> | ||
|
||
<meta name="twitter:card" content="summary_large_image" /> | ||
<meta name="twitter:site" content="@get_fullstacked" /> | ||
<meta name="twitter:title" content="FullStacked" /> | ||
<meta name="twitter:description" content="Build and run full-stack JavaScript web apps on any platform." /> | ||
<meta name="twitter:image" content="https://files.fullstacked.org/sharing-image.jpg" /> | ||
|
||
<meta | ||
name="twitter:description" | ||
content="Build and run full-stack JavaScript web apps on any platform." | ||
/> | ||
<meta | ||
name="twitter:image" | ||
content="https://files.fullstacked.org/sharing-image.jpg" | ||
/> | ||
</head> | ||
<body> | ||
<img src="app-icon-dev.PNG" /> | ||
<h1>FullStacked Editor</h1> | ||
<p>You are trying to open</p> | ||
<div></div> | ||
<p>Make sure you have FullStacked Editor installed.</p> | ||
<a href="https://github.com/fullstackedorg/editor/releases/latest" target="_blank"> | ||
<p>Make sure you have FullStacked installed beforehand.</p> | ||
<a href="https://fullstacked.org/download" target="_blank"> | ||
Download Page | ||
</a> | ||
<section> | ||
<p>Try this repository directly in your browser!</p> | ||
<a | ||
id="open-in-wasm" | ||
target="_blank" | ||
> | ||
Open in FullStacked WASM | ||
</a> | ||
</section> | ||
|
||
<script> | ||
const searchParams = new URLSearchParams(window.location.search); | ||
const gitURL = searchParams.get("git"); | ||
const div = document.querySelector("div"); | ||
div.innerText = gitURL || "No git in url"; | ||
|
||
const deeplink = () => { | ||
if(gitURL) | ||
window.location.href = "fullstacked://" + gitURL; | ||
} | ||
deeplink(); | ||
div.addEventListener("click", deeplink); | ||
|
||
let fullstackedorgRepoURL; | ||
if(gitURL.startsWith("https:")) { | ||
const url = new URL(gitURL); | ||
if(url.pathname.startsWith("/fullstackedorg")){ | ||
fullstackedorgRepoURL = url | ||
} | ||
} | ||
|
||
if(fullstackedorgRepoURL){ | ||
document.querySelector("section").style.display = "block"; | ||
document.querySelector("#open-in-wasm").href = "https://demo.fullstacked.org?url=" + | ||
encodeURIComponent(fullstackedorgRepoURL.toString()); | ||
} | ||
</script> | ||
</body> | ||
</html> | ||
</html> |