Below is a description on how to use the classes in the below script
include 'zdb.php';
Storage.prototype.proxy = {} | |
Storage.prototype.getAll = function () { | |
data = {}; | |
Object.keys(this).forEach(key => { | |
try { | |
data[key] = JSON.parse(this[key]); | |
} catch { | |
data[key] = this[key]; | |
} | |
}); |
'use strict'; | |
// https://codesandbox.io/s/v37l3k0k53 | |
const Vue = require('vue') // npm install vue | |
const M = require('materialize-css') // npm install materialize-css@^1.* | |
Vue.component('MaterializeSelect', { | |
template: ` | |
<select :value='value'> |
// Stardate script © Phillip L. Sublett | |
// Phillip.L@Sublett.org | |
// http://TrekGuide.com | |
var now = new Date(); | |
var then = new Date("July 15, 1987"); | |
var stardate = now.getTime() - then.getTime(); | |
stardate = stardate / (1000 * 60 * 60 * 24 * 0.036525); | |
stardate = Math.floor(stardate + 410000); | |
stardate = stardate / 10 |