-
Notifications
You must be signed in to change notification settings - Fork 1
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
Girobusan
authored and
Girobusan
committed
Jun 28, 2022
1 parent
5aea95e
commit 6fb4506
Showing
9 changed files
with
573 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Imp Fiddle</title> | ||
<meta name="description" content=""> | ||
<meta name="og:image" content=""> | ||
<meta name="og:title" content="Imp Fiddle"> | ||
<meta name="og:description" content=""> | ||
<meta name="twitter:image" content=""> | ||
<meta name="twitter:card" content="summary_large_image"> | ||
<script>window.datasets=undefined</script> | ||
<!--add external css, libraries, fonts, metadata ...--> | ||
<script> | ||
window.settings = { | ||
"title": "Imp Fiddle", | ||
"description": "", | ||
"image": "", | ||
"filename": "index.html", | ||
"headHTML": "<!--add external css, libraries, fonts, metadata ...-->", | ||
"author": "", | ||
"keywords": "", | ||
"autoRun": "", | ||
"editor": "", | ||
"webViewed": "editor" | ||
} | ||
</script> | ||
<script> | ||
window.addEventListener("hashchange" , ()=>history.go(0)); | ||
window.addEventListener( | ||
"DOMContentLoaded" , | ||
function(){ | ||
const p = window.location.protocol; | ||
if(window.location.hash==="#view"){ | ||
return; | ||
} | ||
if(p.startsWith("http") && | ||
window.settings.webViewed==="result" && | ||
window.location.hash !== "#edit" | ||
){ | ||
return; | ||
} | ||
|
||
if(p=='file:' || window.location.hash=="#edit"){ | ||
console.log("Loading editor") | ||
const s = document.createElement("script"); | ||
s.src = "fiddler.js" | ||
document.head.appendChild(s); | ||
} | ||
|
||
}) | ||
</script> | ||
<script id="customJS">//Your Java Script goes here</script> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<style id="customCSS"> | ||
/*Place for your CSS code*/ | ||
</style> | ||
</head> | ||
<body> | ||
<!--Your html here--> | ||
<script id="htmlSource" type="text/html"><!--Your html here--></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
Oops, something went wrong.