console.log( "==== simpread options page: custom load ====" ) import '../assets/css/simpread.css'; import '../assets/css/options_page.css'; import '../assets/css/options_custom.css'; import 'notify_css'; import Velocity from 'velocity'; import Notify from 'notify'; import TextField from 'textfield'; import SelField from 'selectfield'; import Button from 'button'; import * as waves from 'waves'; import * as tt from 'tooltip'; import Switch from 'switch'; import { storage, STORAGE_MODE as mode } from 'storage'; import * as ss from 'stylesheet'; import * as conf from 'config'; import * as ver from 'version'; import * as watch from 'watch'; import th from 'theme'; let cur_custom; /** * Entry: * - storage get data form chrome storage * - waves.Render() * - tooltip.Render() */ storage.Read( () => { console.log( "simpread storage get success!", storage.focus, storage.read ); cur_custom = storage.read.custom; navRender(); propertyRender(); setPreviewStyle(); tt.Render( "body" ); waves.Render({ root: "body" }); $( "body" ).velocity({ opacity: 1 }, { duration: 1000, complete: ()=> { $( "body" ).removeAttr( "style" ); }}); }); /** * navigation Render */ function navRender() { const navClick = () => { location.href = location.origin + "/options/options.html#labs"; }; const button =