-
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.
Move FramesBrowser to built apps, update, add dependencies; Update bu…
…ild process; Add TiVuocto icon
- Loading branch information
octospacc
committed
Sep 14, 2024
1 parent
6372cfe
commit 3e5a65f
Showing
17 changed files
with
331 additions
and
69 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 @@ | ||
/html-data-url-loader-?.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,7 @@ | ||
#!/bin/sh | ||
for i in 0 1 | ||
do cp ./html-data-url-loader.html "./html-data-url-loader-${i}.html" | ||
done | ||
#echo "const fs=require('fs'); fs.writeFileSync('html2canvas.min.wrappedLib.js', 'window.FramesBrowser.Lib.html2canvas=' + JSON.stringify(fs.readFileSync('node_modules/html2canvas/dist/html2canvas.min.js', 'utf8')) + ';');" | node | ||
echo index.html utils.js WebManifest.json icon.png html-data-url-loader-?.html \ | ||
node_modules/html2canvas/dist/html2canvas.min.js |
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,34 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script src="./utils.js"></script> | ||
</head> | ||
<body> | ||
<script>(function(){ | ||
|
||
//window.addEventListener('load', (function(){ | ||
|
||
var [mime, body] = extractDataUrl(location.hash.slice(1)/*.split('#').slice(2).join('#')*/); | ||
var dom = (new DOMParser).parseFromString(body, mime); | ||
document.documentElement.innerHTML = dom.documentElement.innerHTML; | ||
document.head.innerHTML = dom.head.innerHTML; | ||
document.body.innerHTML = dom.body.innerHTML; | ||
|
||
// hydrate scripts; TODO handle all attributes to copy | ||
Array.from(document.querySelectorAll('script')).forEach(function(oldScriptEl){ | ||
newScriptEl = Object.assign(document.createElement('script'), { | ||
id: oldScriptEl.id, | ||
className: oldScriptEl.className, | ||
innerHTML: oldScriptEl.innerHTML, | ||
}); | ||
if (oldScriptEl.src) { | ||
newScriptEl.src = oldScriptEl.src; | ||
} | ||
oldScriptEl.replaceWith(newScriptEl); | ||
}); | ||
|
||
//})); | ||
|
||
})();</script> | ||
</body> | ||
</html> |
File renamed without changes
Oops, something went wrong.