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(){
|
||||
console.log(tableEle)
|
||||
const tableBlob = new Blob([tableEle], {type:'text/plain'})
|
||||
const tableFile = new File([tableBlob], 'messagebody.html')
|
||||
console.log(tableFile)
|
||||
const data = {
|
||||
text: 'hello world',
|
||||
files: [
|
||||
tableFile,
|
||||
]
|
||||
}
|
||||
navigator.share(data)
|
||||
if(navigator.canShare(data))
|
||||
navigator.share(data)
|
||||
.catch(m => {
|
||||
console.log(m)
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -11,7 +22,7 @@
|
||||
This will be populated… sometime
|
||||
</p>
|
||||
|
||||
<table class="grid-table border-collapse">
|
||||
<table bind:this={tableEle} class="grid-table border-collapse">
|
||||
<tr>
|
||||
<th scope="row">Semester</th>
|
||||
<td>N</td>
|
||||
|
||||
Reference in New Issue
Block a user