function plug_notepad($d) { $d = $d ? $d : 2; $id = 'np' . randid(); $ret .= np_sav($d, $id) . br(); $sty = 'border:1px dotted grey; margin:4px; padding:10px; min-width:320px; max-width:640px; min-height:220px; max-height:440px; overflow-y:auto;'; $ret .= divedit($id, 'panel justy', $sty, $j, $txt); $_SESSION['onload'] = 'document.getElementById(\'' . $id . '\').innerHTML=localStorage[\'m' . $d . '\']'; //$_SESSION['onload']='mem_storage(\''.$id.'_m'.$d.'_1_1_ckb\');'; return divd('np', $ret); }
function plug_pad($d) { Head::add('csscode', ' #content{width:100%;} .tab{font-size:large; border:0; margin:4px auto; padding:16px; min-width:440px; max-width:90%; line-height:1.2em; min-height:400px; max-height:90vh;}'); $d = $d ? $d : 2; $id = 'np' . randid(); $ret .= np_sav($d, $id); $ret .= divedit($id, 'tab justy', '', $j, $txt); $_SESSION['onload'] = 'document.getElementById(\'' . $id . '\').innerHTML=localStorage[\'m' . $d . '\']'; //$_SESSION['onload']='mem_storage(\''.$id.'_m'.$d.'_1_1_ckb\');'; return divd('np', $ret); }