You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
602 B
35 lines
602 B
|
|
|
|
//
|
|
// init all variables with the class givin
|
|
$(document).ready(function() {
|
|
// debug ("init");
|
|
|
|
$(".GUIwindow").each( function (i) {
|
|
gWindowDragElement(this);
|
|
});
|
|
});
|
|
|
|
|
|
//
|
|
//
|
|
function gAddEventListener (id, eventname, callback) {
|
|
var obj = document.getElementById(id);
|
|
|
|
if (obj) obj.addEventListener(eventname, callback);
|
|
};
|
|
|
|
|
|
//
|
|
// get the text between Text1 and Text2
|
|
function getTextBetween(fulltext, text1, text2) {
|
|
var end1 = text1.length;
|
|
var start2 = fulltext.length-text2.length;
|
|
|
|
if (end1 < start2) {
|
|
return fulltext.substr(text1.length, start2-end1);
|
|
}
|
|
else return "";
|
|
};
|
|
|