mirror of
https://github.com/kevinnlsamuel/rainbowcroissant.git
synced 2025-12-06 10:06:01 +05:30
more trials. blocked by DOM
This commit is contained in:
@@ -1,9 +1,20 @@
|
|||||||
<script>
|
<script lang="ts">
|
||||||
|
let tableEle:HTMLTableElement;
|
||||||
function share(){
|
function share(){
|
||||||
|
console.log(tableEle)
|
||||||
|
const tableBlob = new Blob([tableEle], {type:'text/plain'})
|
||||||
|
const tableFile = new File([tableBlob], 'messagebody.html')
|
||||||
|
console.log(tableFile)
|
||||||
const data = {
|
const data = {
|
||||||
text: 'hello world',
|
files: [
|
||||||
|
tableFile,
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
if(navigator.canShare(data))
|
||||||
navigator.share(data)
|
navigator.share(data)
|
||||||
|
.catch(m => {
|
||||||
|
console.log(m)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -11,7 +22,7 @@
|
|||||||
This will be populated… sometime
|
This will be populated… sometime
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table class="grid-table border-collapse">
|
<table bind:this={tableEle} class="grid-table border-collapse">
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Semester</th>
|
<th scope="row">Semester</th>
|
||||||
<td>N</td>
|
<td>N</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user