function paste_this(charval)
{
if(charval == 'stacked')
{
$("#textarea_div").html(" ");
var d='<div style="margin:15px;"><input id="target" type="text" onkeyup="myFunction()" style="width:40px;margin-left:5px;"><br>———<br><input id="targets" type="text" onkeyup="myFunctions()" style="width:40px;margin-left:5px;"></div>';
$("#textarea_div").append(d);
//$("#textarea_div").append(f);
}
if(charval == 'linear')
{
$("#textarea_div").html(" ");
var d='<div style="margin:15px;"><sup><input id="target" type="text" onkeyup="myFunction()" style="width:40px;margin-left:5px;"></sup> ⁄ <sub><input id="targets" type="text" onkeyup="myFunctions()" style="width:40px;margin-left:5px;"></sub></div>';
$("#textarea_div").append(d);
//$("#textarea_div").append(f);
}
if(charval == 'skewed')
{
$("#textarea_div").html(" ");
var d='<div style="margin:15px;"><sup><input id="target" type="text" onkeyup="myFunction()" style="width:40px;margin-left:5px;"></sup>⁄ <sub><input id="targets" type="text" onkeyup="myFunctions()" style="width:40px;margin-left:5px;"></sub></div>';
$("#textarea_div").append(d);
//$("#textarea_div").append(f);
}
if(charval == 'small')
{
$("#textarea_div").html(" ");
var d='<div style="margin:15px;"><input id="target" type="text" onkeyup="myFunction()" style="width:20px;margin-left:5px;"><br>——<br><input id="targets" type="text" onkeyup="myFunctions()" style="width:20px;margin-left:5px;"></div>';
$("#textarea_div").append(d);
//$("#textarea_div").append(f);
}
if(charval == 'pai')
{
var d=unescape('%u03C0')
$("#textarea_div").html(" ");
var d='<div style="margin:15px;"><input id="target" type="text" onkeyup="myFunction()" style="width:40px;margin-left:5px;border:none;" value="'+d +'"><br>———<br><input id="targets" type="text" value="2" onkeyup="myFunctions()" style="width:40px;margin-left:5px;border:none;"></div>';
$("#textarea_div").append(d);
//$("#textarea_div").append(f);
}
if(charval == 'superscript')
{
$("#textarea_div").html(" ");
var d='<div style="margin:15px;"><input id="target" type="text" onkeyup="myFunction()" style="width:40px;" value=""> <sup><input id="targets" type="text" onkeyup="myFunctions()" style="width:40px;"></sup></div>';
$("#textarea_div").append(d);
//$("#textarea_div").append(f);
}
if(charval == 'subscript')
{
$("#textarea_div").html(" ");
var d='<div style="margin:15px;"><sub><input id="target" type="text" onkeyup="myFunction()" style="width:40px;" value=""></sub> <input id="targets" type="text" onkeyup="myFunctions()" style="width:40px;"></div>';
$("#textarea_div").append(d);
//$("#textarea_div").append(f);
}
}
//$(".textbox1").css("border","none");
function myFunction() {
$("#target").css("border","none");
}
function myFunctions() {
$("#targets").css("border","none");
}
function open_this_sk(a)
{
$("#sk1").hide();
$("#sk2").show();
}
function open_this_xyz()
{
$("#sk1").hide();
$("#sk2").hide();
$("#sk3").show();
}
function open_this_root()
{
$("#sk1").hide();
$("#sk2").hide();
$("#sk3").hide();
$("#sk4").show();
}
function open_this_dxy()
{
$("#sk1").hide();
$("#sk2").hide();
$("#sk3").hide();
$("#sk4").hide();
$("#sk5").hide();
$("#sk6").show();
}
function open_this_dxy2()
{
$("#sk1").hide();
$("#sk2").hide();
$("#sk3").hide();
$("#sk4").hide();
$("#sk5").show();
}
function open_this_dollar()
{
$("#sk1").hide();
$("#sk2").hide();
$("#sk3").hide();
$("#sk4").hide();
$("#sk5").hide();
$("#sk6").hide();
$("#sk7").hide();
$("#sk7").show();
}
function open_this_bracket()
{
$("#sk1").hide();
$("#sk2").hide();
$("#sk3").hide();
$("#sk4").hide();
$("#sk5").hide();
$("#sk6").hide();
$("#sk7").hide();
$("#sk8").hide();
$("#sk9").show();
}
function open_this_sin_theta()
{
$("#sk1").hide();
$("#sk2").hide();
$("#sk3").hide();
$("#sk4").hide();
$("#sk5").hide();
$("#sk6").hide();
$("#sk7").hide();
$("#sk8").hide();
$("#sk9").hide();
$("#sk10").show();
}
function open_this_metrics()
{
$("#sk1").hide();
$("#sk2").hide();
$("#sk3").hide();
$("#sk4").hide();
$("#sk5").hide();
$("#sk6").hide();
$("#sk7").hide();
$("#sk8").hide();
$("#sk9").hide();
$("#sk10").hide();
$("#sk11").show();
}
function show_scn_keyword()
{
if(document.getElementById("sc_keyboard").style.display=="block")
{
document.getElementById("sc_keyboard").style.display="none";
}
else
{
document.getElementById("sc_keyboard").style.display="block";
document.getElementById("sk1").style.display="block";
document.getElementById("sk2").style.display="none";
document.getElementById("sk3").style.display="none";
document.getElementById("sk4").style.display="none";
document.getElementById("sk5").style.display="none";
document.getElementById("sk6").style.display="none";
document.getElementById("sk7").style.display="none";
document.getElementById("sk8").style.display="none";
document.getElementById("sk9").style.display="none";
document.getElementById("sk10").style.display="none";
document.getElementById("sk11").style.display="none";
}
}
$(document).on("click", "#add_heading", function () {
var contentHead = $(this).data('cheadname');
var contentChapter = $(this).data('cid');
$("#model_content_heading").val( contentHead );
$("#model_content_cid").val( contentChapter );
});