|
|
|
@ -1,6 +1,5 @@ |
|
|
|
$(document).ready(function() { |
|
|
|
$(document).ready(function() { |
|
|
|
$(window).load(function () {
|
|
|
|
$(window).load(function () {
|
|
|
|
|
|
|
|
|
|
|
|
var my_text=$(".glossary-content").html(); |
|
|
|
var my_text=$(".glossary-content").html(); |
|
|
|
my_protocol = location.protocol; |
|
|
|
my_protocol = location.protocol; |
|
|
|
my_pathname=location.pathname; |
|
|
|
my_pathname=location.pathname; |
|
|
|
@ -50,19 +49,20 @@ $(document).ready(function() { |
|
|
|
|
|
|
|
|
|
|
|
var complex_array = new Array(); |
|
|
|
var complex_array = new Array(); |
|
|
|
$("#highlight-plugin .glossary-ajax").mouseover(function(){ |
|
|
|
$("#highlight-plugin .glossary-ajax").mouseover(function(){ |
|
|
|
random_id=Math.round(Math.random()*100); |
|
|
|
random_id = Math.round(Math.random()*100); |
|
|
|
div_show_id="div_show_id"+random_id; |
|
|
|
div_show_id="div_show_id"+random_id; |
|
|
|
div_content_id="div_content_id"+random_id; |
|
|
|
div_content_id="div_content_id"+random_id; |
|
|
|
$(this).append("<div id="+div_show_id+" ><div id="+div_content_id+"> </div></div>"); |
|
|
|
$(this).append("<div id="+div_show_id+" ><div id="+div_content_id+"> </div></div>"); |
|
|
|
$("div#"+div_show_id).attr("style","z-index:99;display:inline;float:left;position:absolute;background-color:#F2F2F2;border-bottom: 1px solid #2E2E2E;border-right: 1px solid #2E2E2E;border-left: 1px solid #2E2E2E;border-top: 1px solid #2E2E2E;color:#305582;margin-left:5px;margin-right:5px;"); |
|
|
|
$("div#"+div_show_id).attr("style","z-index:99;display:inline;float:left;position:absolute;background-color:#F2F2F2;border-bottom: 1px solid #2E2E2E;border-right: 1px solid #2E2E2E;border-left: 1px solid #2E2E2E;border-top: 1px solid #2E2E2E;color:#305582;margin-left:5px;margin-right:5px;"); |
|
|
|
$("div#"+div_content_id).attr("style","z-index:99;background-color:#F2F2F2;color:#0B3861;margin-left:8px;margin-right:8px;margin-top:5px;margin-bottom:5px;");
|
|
|
|
$("div#"+div_content_id).attr("style","z-index:99;background-color:#F2F2F2;color:#0B3861;margin-left:8px;margin-right:8px;margin-top:5px;margin-bottom:5px;");
|
|
|
|
notebook_id=$(this).attr("name"); |
|
|
|
notebook_id = $(this).attr("name"); |
|
|
|
data_notebook=notebook_id.split("link"); |
|
|
|
data_notebook = notebook_id.split("link"); |
|
|
|
my_glossary_id=data_notebook[1]; |
|
|
|
my_glossary_id = data_notebook[1]; |
|
|
|
$.ajax({ |
|
|
|
$.ajax({ |
|
|
|
contentType: "application/x-www-form-urlencoded", |
|
|
|
contentType: "application/x-www-form-urlencoded", |
|
|
|
beforeSend: function(content_object) { |
|
|
|
beforeSend: function(content_object) { |
|
|
|
$("div#"+div_content_id).html("<img src="+my_protocol+"//"+location.host+work_path+"/main/inc/lib/javascript/indicator.gif />"); }, |
|
|
|
$("div#"+div_content_id).html("<img src="+my_protocol+"//"+location.host+work_path+"/main/inc/lib/javascript/indicator.gif />");
|
|
|
|
|
|
|
|
}, |
|
|
|
type: "POST", |
|
|
|
type: "POST", |
|
|
|
url: my_protocol+"//"+location.host+work_path+"/main/glossary/glossary_ajax_request.php", |
|
|
|
url: my_protocol+"//"+location.host+work_path+"/main/glossary/glossary_ajax_request.php", |
|
|
|
data: "glossary_id="+my_glossary_id, |
|
|
|
data: "glossary_id="+my_glossary_id, |
|
|
|
|