// -----------------------------------------------------------------------
// by_language.js
//
// Nov/11/2013
// -----------------------------------------------------------------------
jQuery (function ()
{
var url_json = "../statistics/data/sheet_bb.json";
jQuery.getJSON (url_json,function (data_json)
{
data_json.dbase = sharp_convert_proc (data_json.dbase);
proc01 (data_json);
});
});
// -----------------------------------------------------------------------
// [4]:
function proc01 (data_json)
{
var out_str = show_lang_proc (data_json.dbase);
jQuery(".nava").html (out_str);
// jQuery ("button.lang").click (function ()
jQuery ("button.lang").on ('click',function ()
{
var lang = this.id;
jQuery ("button.lang").css ("color","black");
jQuery ("button#" + this.id).css ("color","blue");
var lang_mod = lang_define_proc (lang);
crud_init_proc (lang,lang_mod);
contents_init_proc ();
if (lang === "common")
{
show_common_proc ();
}
else
{
show_data_base_proc (lang,data_json);
// jQuery ("button.dbase").click (function ()
jQuery ("button.dbase").on ('click',function ()
{
var dbase_cur = this.id;
jQuery ("button.dbase").css ("color","black");
jQuery ("#" + dbase_cur).css ("color","blue");
jQuery(".contents").html ("
");
jQuery(".makefile").html ("
");
jQuery(".execute").html ("
");
dbase_process (lang,dbase_cur,data_json.dbase);
});
button_selection_process ();
}
});
}
// -----------------------------------------------------------------------
// [4-2]:
function crud_init_proc (lang,lang_mod)
{
var out_str =
"