";
html_editor.getDoc().setValue(_html_script_code + _inithtmlcode);
}else if(_thisvar == 'bs3') {
_html_script_code = "
";
html_editor.getDoc().setValue(_html_script_code + _inithtmlcode);
}else if(_thisvar == 'bs4') {
_html_script_code = "
";
html_editor.getDoc().setValue(_html_script_code + _inithtmlcode);
}else if(_thisvar == 'ag') {
_html_script_code = "
";
html_editor.getDoc().setValue(_html_script_code + _inithtmlcode);
}else if(_thisvar == 'vue2') {
_html_script_code = "
";
html_editor.getDoc().setValue(_html_script_code + _inithtmlcode);
}else if(_thisvar == 'vue3') {
_html_script_code = "
";
html_editor.getDoc().setValue(_html_script_code + _inithtmlcode);
}else if(_thisvar == 'fa') {
_html_script_code = "
";
html_editor.getDoc().setValue(_html_script_code + _inithtmlcode);
}
});
});
$('#libs').on('hidden.bs.modal', function () {
$("#sel1 option:first-child").attr('selected', true);
$("#sel1 option:last-child").attr('selected', false);
$("#libs-table tr").removeClass("success");
})
$("#filter").keyup(function() {
_search_value = $(this).val();
//https://api.staticfile.net/libraries
//https://api.cdnjs.com/libraries
$.get('https://api.staticfile.net/libraries',{search:_search_value,fields:"homepage"},function(data) {
var _val_tr ='';
$("#fa-spinner").show();
$.each(data.results, function(i, item) {
if(i
< 10) { _val_tr += '', _libsrc + '
/head>'); } else if(array_matches_body) { _editor_content = _editor_content.replace('
html>', '
'); } var patternHead = /]*>((.|[ ])*)/im var array_matches_head = patternHead.exec(src); var patternBodyTag = /]*)>/im; var array_matches_body_tag = patternBodyTag.exec(src); if (array_matches_body_tag) { src = src.replace('', ''); } } //console.log(css); if (css.indexOf(' '; if (array_matches_head) { src = src.replace('', css + ''); } else if (array_matches_body_tag) { src = src.replace('', css + '');
} else {
src += css;
}
}
// Javascript
if(js) {
js = '
';
if (array_matches_body_tag) {
src = src.replace('
/body>', js + '
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/bian-cheng-ri-ji/68462.html