This file contains hidden or 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
let aTiny = {"a":"ᵃ","b":"ᵇ","c":"ᶜ","d":"ᵈ","e":"ᵉ","f":"ᶠ","g":"ᵍ","h":"ʰ","i":"ᶦ","j":"ʲ","k":"ᵏ","l":"ᶫ","m":"ᵐ","n":"ᶰ","o":"ᵒ","p":"ᵖ","q":"ᑫ","r":"ʳ","s":"ˢ","t":"ᵗ","u":"ᵘ","v":"ᵛ","w":"ʷ","x":"ˣ","y":"ʸ","z":"ᶻ","A":"ᴬ","B":"ᴮ","C":"ᶜ","D":"ᴰ","E":"ᴱ","F":"ᶠ","G":"ᴳ","H":"ᴴ","I":"ᴵ","J":"ᴶ","K":"ᴷ","L":"ᴸ","M":"ᴹ","N":"ᴺ","O":"ᴼ","P":"ᴾ","Q":"ᑫ","R":"ᴿ","S":"ˢ","T":"ᵀ","U":"ᵁ","V":"ⱽ","W":"ᵂ","X":"ˣ","Y":"ʸ","Z":"ᶻ","`":"`","~":"~","!":"﹗","@":"@","#":"#","$":"﹩","%":"﹪","^":"^","&":"﹠","*":"﹡","(":"⁽",")":"⁾","_":"⁻","-":"⁻","=":"⁼","+":"+","{":"{","[":"[","}":"}","]":"]",":":"﹕",";":"﹔","?":"﹖"}; | |
let doTinyCaption = ( (_d, _q, _t) => { // Inject Tiny type | |
let aTinyCnt = [..._d.querySelectorAll( _q )]; | |
if( aTinyCnt ){ setTimeout( ()=>{ doTinyCaption.tick(); }, 32); } | |
return { | |
"tick": ()=>{ | |
let sMU = ""; | |
aTinyCnt.forEach( (eVivCnt) => { | |
if(eVivCnt.atTiny !== eVivCnt.dataset.atTiny){ // Data atr changed | |
This file contains hidden or 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
//. Parent Component | |
provide() { | |
return { | |
cyRef: this.cytoRef, | |
obsId: this.obsId, | |
hostname: () => this.reactiveHostname | |
} | |
} | |
//. Child Component |
This file contains hidden or 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
function previousMonth(originalDate) { | |
let f = new Date(originalDate) | |
let l = new Date(originalDate) | |
l.setDate(0) // set to last day of previous month | |
f.setDate(0) | |
f.setDate(1) // set to the first day of that month | |
return [f, l] | |
} | |
function previousWeek(originalDate) { |
This file contains hidden or 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
watch: {. //. Hydrate the Vuetify Pagination object to persist the Sort colunm and Number of Pages. | |
pagination(val) { | |
const lsKey = this?.$route?.path || 'lsKey' | |
localStorage.setItem(lsKey, JSON.stringify(val, null)) | |
} | |
}, | |
mounted() { | |
const lsKey = this?.$route?.path || 'lsKey' | |
if (localStorage.getItem(lsKey)) { | |
this.pagination = JSON.parse(localStorage.getItem(lsKey)) |
This file contains hidden or 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
// Change display attributes if the page is being navigated via kb | |
// I think this was an IEFE back in the day | |
// Useage: | |
/* | |
body:not([data-is-kb]) .h-vs__hidden, | |
body[data-is-kb="false"] .h-vs__hidden{ visibility: hidden; } | |
*/ | |
"isKeyb": function( _bMode ){ // User navigation mode state | |
if( typeof _bMode !== "undefined" ){ |
This file contains hidden or 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
var doc = new jsPDF(); | |
function saveDiv(id, title) { | |
doc.fromHTML(`<html><head><title>${title}</title></head><body>` + document.getElementById(id).innerHTML + `</body></html>`); | |
doc.save(title + '.pdf'); | |
} |
This file contains hidden or 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
// ltd_auto_image | |
// SCK 20160503 | Gulp script QA Product AND Static images (55k) | |
// Notes: NODE 5.10.0 | GULP 3.9.x | |
//. 🌑🌒🌓🌔🌕🌖🌗🌘🌑 | |
var del = require('del'), | |
vinylPaths = require('vinyl-paths'), | |
gulp = require("gulp"), | |
debug = require("gulp-debug"), | |
imagemin = require("gulp-imagemin"), |
This file contains hidden or 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
// Dive into DOM to access Vuex array from mixin | |
export function getFeatureDOM(feature) { | |
// Return Feature Flag if it exists for current user | |
const features = document.querySelector('DIV#app').__vue__.$store.state.auth | |
.currentUser.activeFeatures | |
return features ? features.filter((fe) => fe === feature)[0] : null | |
} |
This file contains hidden or 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 hidden or 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
<!DOCTYPE html> | |
<!-- Display a 10 second countdown then client redirect to home page --> | |
<html> | |
<head> | |
<title>Expired Redirect</title> | |
</head> | |
<body> | |
<style> | |
.exp--p { | |
font-family: sans-serif; |