Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorin-Oakenpants authored Feb 27, 2024
1 parent 8f92b14 commit 8ea3e3c
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions temp.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<body>
<p id= "date"></p>
<p id= "last"></p>

<script>
'use strict';

let options = {day: '2-digit', month: '2-digit', year: 'numeric', hour12: false, hour: '2-digit', minute: 'numeric', second: 'numeric'}
let event = new Date()
document.getElementById("date").innerHTML = event.toLocaleDateString(undefined, options)

let oList = {
AttributeParsingErrorNoTag: '<math id="AttributeParsingErrorNoTag" scriptlevel="."></math>',
DuplicateMprescripts: '<math id="DuplicateMprescripts"><mmultiscripts><mprescripts/><mprescripts/></mmultiscripts></math>',
}
let oMimeTypes = ['application/xml','application/xhtml+xml','image/svg+xml','text/html','text/xml',]
let aLast = []
let parser = new DOMParser
try {
oMimeTypes.forEach(function(mimetype) {
try {
let pDoc = parser.parseFromString('<p></p>', mimetype)
let last = pDoc.activeElement.parentNode.lastModified
aLast.push(last + " | " + mimetype)
} catch(err) {
console.log(mimetype, err)
aLast.push("error | " + mimetype)
}
})
//console.log(aLast)
document.getElementById("last").innerHTML = aLast.join("<br>")
} catch(e) {
console.log(e)
}
</script>

</body>
</html>

0 comments on commit 8ea3e3c

Please sign in to comment.