/* * Created by PyramIDE. * User: Totoro * Date: 17/05/2014 * Time: 12:19 * */ read xlib/web/making_a_web_site.anubis read tools/basis.anubis public define HTML jqplot ( String img_url, String label_text, String action )= partial_content( [ js_inline(jquery_ready("$('#jq_img_btn').button();")) ], div([id("jq_img_btn")], table([ row( cell( actioner(same,same, img_link(img_url, label_text), action, []))), row( cell( actioner(same,same, link(label_text), action, []))) ] ) )) . public define HTML_Head_Tag jqplot_plugin ( String plugin )= js(js_file("/js/jquery/jqplot/plugins/jqplot."+plugin+".min.js")) . /* jQuery default js files */ public define List(HTML_Head_Tag) jqplot_init = [ js(js_file("/js/jquery/jqplot/jquery.jqplot.min.js")), css(css_file("/js/jquery/jqplot/jquery.jqplot.min.css")), ]. /* jQuery default js files, non minified version */ public define List(HTML_Head_Tag) jqplot_init_debug = [ js(js_file("/js/jquery/jqplot/jquery.jqplot.js")), css(css_file("/js/jquery/jqplot/jquery.jqplot.css")), ]. /* Initialize jQuery in compatiblity mode with jQueryUI */ public define List(HTML_Head_Tag) jqplot_init = jqplot_defaults.