package org.apache.jsp.WEB_002dINF.pages;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class demo_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List<String> _jspx_dependants;
static {
_jspx_dependants = new java.util.ArrayList<String>(3);
_jspx_dependants.add("/WEB-INF/jspf/config.js");
_jspx_dependants.add("/WEB-INF/jspf/callback.js");
_jspx_dependants.add("/WEB-INF/jspf/lexl.svg");
}
private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector;
public java.util.List<String> getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html; charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
_jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("<!DOCTYPE html>\n");
out.write("<html>\n");
out.write("<head>\n");
out.write("<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n");
out.write("<title>Highcharts export server</title>\n");
out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"resources/css/demo.css\" />\n");
out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"resources/css/codemirror.css\" />\n");
out.write("<script src=\"resources/js//jquery-1.11.0.min.js\"></script>\n");
out.write("<script src=\"resources/js/codemirror-compressed.js\"></script>\n");
out.write("<link rel=\"stylesheet\" href=\"http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,400,700,400italic\" type=\"text/css\" />\n");
out.write("<script>\n");
out.write("\tvar editors = [];\n");
out.write("\n");
out.write("\t$(document).ready(function() {\n");
out.write("\n");
out.write("\t\tvar enableEditor = function(id) {\n");
out.write("\t\t\tif (id === 'options') {\n");
out.write("\t\t\t\teditors[0] = CodeMirror.fromTextArea($('textarea#options')[0], {\n");
out.write("\t\t\t\t\tlineNumbers : true,\n");
out.write("\t\t\t\t\tmatchBrackets : true,\n");
out.write("\t\t\t\t\ttabMode : \"indent\",\n");
out.write("\t\t\t\t\tmode : \"text/javascript\",\n");
out.write("\t\t\t\t\tlineWrapping : true\n");
out.write("\t\t\t\t});\n");
out.write("\t\t\t} else {\n");
out.write("\t\t\t\t// options for svg editor\n");
out.write("\t\t\t\teditors[1] = CodeMirror.fromTextArea($('textarea#svg')[0], {\n");
out.write("\t\t\t\t\tlineNumbers : true,\n");
out.write("\t\t\t\t\tmode : {\n");
out.write("\t\t\t\t\t\tname : \"xml\",\n");
out.write("\t\t\t\t\t\talignCDATA : true\n");
out.write("\t\t\t\t\t},\n");
out.write("\t\t\t\t\tmatchBrackets : true,\n");
out.write("\t\t\t\t\ttabMode : \"indent\",\n");
out.write("\t\t\t\t\tlineWrapping : true\n");
out.write("\t\t\t\t});\n");
out.write("\t\t\t}\n");
out.write("\t\t};\n");
out.write("\n");
out.write("\t\t$('#preview').click(function () {\n");
out.write("\t\t\trunPOST();\n");
out.write("\t\t\treturn false;\n");
out.write("\t\t});\n");
out.write("\n");
out.write("\t\t// attach eventhandler to radio fields\n");
out.write("\t\t$('input[type=\"radio\"]').change(function() {\n");
out.write("\t\t\tvar checked = this.id, other, html;\n");
out.write("\t\t\t// which editor is checked/ should be visible\n");
out.write("\t\t\tchecked === 'svg' ? other = 'options' : other = 'svg';\n");
out.write("\t\t\t// get html source from the div outside of the form\n");
out.write("\t\t\t$('div#' + checked).html($('div#toggle').html());\n");
out.write("\t\t\t/* move the html of the previous editor outside the form,\n");
out.write("\t\t\tremove first Codemirror wrapper */\n");
out.write("\t\t\t$('div#' + other + ' div.CodeMirror-wrap').remove();\n");
out.write("\n");
out.write("\t\t\t$('div#toggle').html($('div#' + other).html());\n");
out.write("\t\t\t// empty the container which held the previous editor.\n");
out.write("\t\t\t$('div#' + other).html('');\n");
out.write("\t\t\t// enable codemirror for texarea\n");
out.write("\t\t\tenableEditor(checked);\n");
out.write("\n");
out.write("\t\t});\n");
out.write("\n");
out.write("\t\t// default radio #config is selected\n");
out.write("\t\t$('input#options').prop('checked', true);\n");
out.write("\n");
out.write("\t\tenableEditor('options');\n");
out.write("\n");
out.write("\t\t// callback editor\n");
out.write("\t\teditors[3] = CodeMirror.fromTextArea($('textarea#callback')[0], {\n");
out.write("\t\t\tid : 'test',\n");
out.write("\t\t\tlineNumbers : true,\n");
out.write("\t\t\tmatchBrackets : true,\n");
out.write("\t\t\ttabMode : \"indent\",\n");
out.write("\t\t\tmode : \"text/javascript\",\n");
out.write("\t\t\tlineWrapping : true\n");
out.write("\t\t});\n");
out.write("\n");
out.write("\t});\n");
out.write("\n");
out.write("\t/**\n");
out.write("\t * Preview an async generated image\n");
out.write("\t */\n");
out.write("\tfunction preview (filename) {\n");
out.write("\t\tif ($('#type').val() === 'application/pdf') {\n");
out.write("\n");
out.write(" \t\t$('#container').html('<iframe style=\"width:600px;height:400px\" src=\"./' + filename + '\"></iframe>')\n");
out.write(" \t} else {\n");
out.write(" \t\t$('#container').html('<img src=\"./' + filename + '\"/>');\n");
out.write(" \t}\n");
out.write("\t}\n");
out.write("\n");
out.write("\t/**\n");
out.write("\t * Run a post and receive back an image URL async\n");
out.write("\t */\n");
out.write(" function runPOST() {\n");
out.write("\n");
out.write(" \tvar dataString = 'async=true',\n");
out.write(" \t\txdr,\n");
out.write("\t\t\tidx;\n");
out.write("\n");
out.write(" \t$('#container').html('Loading....');\n");
out.write("\n");
out.write("\t\tfor(idx = 0; idx < editors.length; idx++) {\n");
out.write("\t\t\t// ensure saving to textarea before serializing the form\n");
out.write("\t\t\tif(editors[idx]) {\n");
out.write("\t\t\t\teditors[idx].save();\n");
out.write("\t\t\t}\n");
out.write("\t\t}\n");
out.write("\n");
out.write("\t\t$.each($('#exportForm').serializeArray(), function (i, pair) {\n");
out.write(" \t\tdataString += '&' + pair.name + '=' + pair.value;\n");
out.write(" \t});\n");
out.write("\n");
out.write(" \tif (window.XDomainRequest) {\n");
out.write(" xdr = new XDomainRequest();\n");
out.write(" xdr.open(\"post\", './?' + dataString);\n");
out.write(" xdr.onload = function () {\n");
out.write(" p
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论











收起资源包目录





































































































共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论


好家伙VCC
- 粉丝: 4548
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 基于Android的社交分享平台的设计论文.doc
- 网络宣传管理工作总结.docx
- 董老师研发多项目管理.doc
- 基因工程的步骤.ppt
- 国际货物买卖法MicrosoftPowerPoint演示文稿.pptx
- 金蝶软件初始化准备及基础资料编码规则培训.ppt
- 软件售后服务人员提成方案附表.docx
- 设施网络规划与物流管理.pptx
- 网络侵权的界定是什么?.doc
- 基于MATLAB彩色图像及增强处理设计方法.doc
- 项目管理人员安全生产责任制考核记录表.doc
- 天骄联盟网网络推广策划书.doc
- 中小企业会计信息化综述.doc
- 门户网站Web及应用服务器加速及负载均衡方案.doc
- 信息系统项目管理师九大项目管理知识点整合.pdf
- 根源性创新与计算机产业.ppt
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
