rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
function (count) { buffer.scrollLines(Math.max(count, 1)); },
function () { window.goDoCommand("cmd_forwardInline"); });
function (count) { buffer.scrollLines(Math.max(count, 1)); },
var request = new ServerReq('client/room.php',function(response) { response.room.rid = response.room.rid.toInt(); room.set(response.room); var soundEnabled = $('soundEnabled').checked; $('soundEnabled').checked = false; response.messages.each(function(item) {
response.messages.each(function(item) {
var request = new ServerReq('client/room.php',function(response) { response.room.rid = response.room.rid.toInt(); room.set(response.room); var soundEnabled = $('soundEnabled').checked; $('soundEnabled').checked = false; //remember if sound was enabled but turn it off response.messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); if(!lastId) lastId = item.lid - 1; MBchat.updateables.processMessage(item); }); $('soundEnabled').checked = soundEnabled; //turn it on again if(response.listid)lastId = response.lastid.toInt(); //Display room name at head of page var el = new Element('h1') .set('text', room.name ) .inject('roomNameContainer'); if (room.type == 'M' && (me.is('M') || me.is('S') )) { //Can't go to private room here var whisperBoxes = $$('.whisperBox'); whisperBoxes.each ( function (whisperBox) { var privateBox = whisperBox.getElement('.private'); privateBox.removeClass('private'); privateBox.addClass('nonprivate'); privateBox.removeEvent('click',goPrivate); }); } MBchat.updateables.online.show(room.rid); //Show online list for room $('messageText').focus(); }).transmit({'rid' : rid});
$('soundEnabled').checked = soundEnabled; if(response.listid)lastId = response.lastid.toInt(); var el = new Element('h1') .set('text', room.name ) .inject('roomNameContainer'); if (room.type == 'M' && (me.is('M') || me.is('S') )) { var whisperBoxes = $$('.whisperBox'); whisperBoxes.each ( function (whisperBox) { var privateBox = whisperBox.getElement('.private'); privateBox.removeClass('private'); privateBox.addClass('nonprivate'); privateBox.removeEvent('click',goPrivate); }); } MBchat.updateables.online.show(room.rid); $('messageText').focus(); }).transmit({'rid' : rid});
var request = new ServerReq('client/room.php',function(response) { response.room.rid = response.room.rid.toInt(); room.set(response.room); var soundEnabled = $('soundEnabled').checked; $('soundEnabled').checked = false; //remember if sound was enabled but turn it off response.messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); if(!lastId) lastId = item.lid - 1; MBchat.updateables.processMessage(item); }); $('soundEnabled').checked = soundEnabled; //turn it on again if(response.listid)lastId = response.lastid.toInt(); //Display room name at head of page var el = new Element('h1') .set('text', room.name ) .inject('roomNameContainer'); if (room.type == 'M' && (me.is('M') || me.is('S') )) { //Can't go to private room here var whisperBoxes = $$('.whisperBox'); whisperBoxes.each ( function (whisperBox) { var privateBox = whisperBox.getElement('.private'); privateBox.removeClass('private'); privateBox.addClass('nonprivate'); privateBox.removeEvent('click',goPrivate); }); } MBchat.updateables.online.show(room.rid); //Show online list for room $('messageText').focus(); }).transmit({'rid' : rid});
var request = new ServerReq('room.php',function(response) { response.room.rid = response.room.rid.toInt(); room.set(response.room); var soundEnabled = $('soundEnabled').checked; $('soundEnabled').checked = false; response.messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); if(!lastId) lastId = item.lid - 1; MBchat.updateables.processMessage(item); }); $('soundEnabled').checked = soundEnabled; lastId = response.lastid.toInt(); MBchat.updateables.poller.setLastId(lastId); var el = new Element('h1') .set('text', room.name ) .inject('roomNameContainer'); if (room.type == 'M' && (me.mod == 'M' || me.role == 'H' || me.role == 'G' || me.role == 'S' )) { var whisperBoxes = $$('.whisperBox'); whisperBoxes.each ( function (whisperBox) { var privateBox = whisperBox.getElement('.private'); privateBox.removeClass('private'); privateBox.addClass('nonprivate'); privateBox.removeEvent('click',goPrivate); }); } MBchat.updateables.online.show(room.rid); $('messageText').focus(); }).transmit({'rid' : rid});
if (fellowWhisperers.some(function(item){ return this.get('id').substr(1) == item.get('id').substr(whisperBox.get('id').length+1); },user)) {
var request = new ServerReq('room.php',function(response) { response.room.rid = response.room.rid.toInt(); room.set(response.room); var soundEnabled = $('soundEnabled').checked; $('soundEnabled').checked = false; //remember if sound was enabled but turn it off response.messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); if(!lastId) lastId = item.lid - 1; MBchat.updateables.processMessage(item); }); $('soundEnabled').checked = soundEnabled; //turn it on again lastId = response.lastid.toInt(); //Ensure we get all message from here on in MBchat.updateables.poller.setLastId(lastId); //Display room name at head of page var el = new Element('h1') .set('text', room.name ) .inject('roomNameContainer'); if (room.type == 'M' && (me.mod == 'M' || me.role == 'H' || me.role == 'G' || me.role == 'S' )) { //Can't go to private room here var whisperBoxes = $$('.whisperBox'); whisperBoxes.each ( function (whisperBox) { var privateBox = whisperBox.getElement('.private'); privateBox.removeClass('private'); privateBox.addClass('nonprivate'); privateBox.removeEvent('click',goPrivate); }); } MBchat.updateables.online.show(room.rid); //Show online list for room $('messageText').focus(); }).transmit({'rid' : rid});
substrings = substrings.map(function (str) quote[0] + quote[1](str));
function (res, item) res.filter(function (str) compare(fixCase(item.unquoted || item.text), str)),
substrings = substrings.map(function (str) quote[0] + quote[1](str));
$('.deleteButton-' + id).live('click', function(evt)
$('#addButton-' + id).bind('click', function(evt)
$('.deleteButton-' + id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); });
remove($(this).attr('rel'));
add();
$('.deleteButton-' + id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); });
function (count) { if (mappings.repeat) { for (let i in util.interruptibleRange(0, Math.max(count, 1), 100)) mappings.repeat();
function () { if (Editor.windowIsEditable()) { if (options["insertmode"]) modes.set(modes.INSERT); else if (win.getSelection().toString() != "") modes.set(modes.VISUAL, modes.TEXTAREA); else modes.main = modes.TEXTAREA; } else { options.setPref("accessibility.browsewithcaret", true);
function (count) { if (mappings.repeat) { for (let i in util.interruptibleRange(0, Math.max(count, 1), 100)) mappings.repeat(); } },
},
});
function (count) { if (mappings.repeat) { for (let i in util.interruptibleRange(0, Math.max(count, 1), 100)) mappings.repeat(); } },
_datastore.load(this.callback("beforedata",[obj,this]),this,this.settings.data.opts,function(data){ data = _this.callback("ondata", [data, _this]); if(!data || data.length == 0) { obj.removeClass("closed").removeClass("open").addClass("leaf").children("ul").remove(); if(callback) callback.call(); return; } _datastore.parse(data,_this,_this.settings.data.opts,function(str){ str = _this.callback("onparse", [str, _this]); obj.children("ul").remove(); obj.append($("<ul>").html(str)); obj.find("li:last-child").addClass("last").end().find("li:has(ul)").not(".open").addClass("closed"); obj.find("li").not(".open").not(".closed").addClass("leaf"); if(callback) callback.call(); }); });
obj.find("li.open").each( function () { _this.close_branch(this, true); });
_datastore.load(this.callback("beforedata",[obj,this]),this,this.settings.data.opts,function(data){ data = _this.callback("ondata", [data, _this]); if(!data || data.length == 0) { obj.removeClass("closed").removeClass("open").addClass("leaf").children("ul").remove(); if(callback) callback.call(); return; } _datastore.parse(data,_this,_this.settings.data.opts,function(str){ str = _this.callback("onparse", [str, _this]); // if(obj.children('ul:eq(0)').children('li').size() > 1) obj.children("ul").find('.loaading').parent().replaceWith(str); else obj.children("ul").remove(); obj.append($("<ul>").html(str)); obj.find("li:last-child").addClass("last").end().find("li:has(ul)").not(".open").addClass("closed"); obj.find("li").not(".open").not(".closed").addClass("leaf"); if(callback) callback.call(); }); });
function (count) { buffer.scrollPages(Math.max(count, 1)); },
function (count) { buffer.scrollLines(Math.max(count, 1)); },
function (count) { buffer.scrollPages(Math.max(count, 1)); },
response.messages.each(function(item) {
var request = new ServerReq('room.php',function(response) { response.room.rid = response.room.rid.toInt(); room.set(response.room); var soundEnabled = $('soundEnabled').checked; $('soundEnabled').checked = false; response.messages.each(function(item) {
response.messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); if(!lastId) lastId = item.lid - 1; MBchat.updateables.processMessage(item); });
$('soundEnabled').checked = soundEnabled; if(response.listid)lastId = response.lastid.toInt(); MBchat.updateables.poller.setLastId(lastId); var el = new Element('h1') .set('text', room.name ) .inject('roomNameContainer'); if (room.type == 'M' && (me.mod == 'M' || me.role == 'H' || me.role == 'G' || me.role == 'S' )) { var whisperBoxes = $$('.whisperBox'); whisperBoxes.each ( function (whisperBox) { var privateBox = whisperBox.getElement('.private'); privateBox.removeClass('private'); privateBox.addClass('nonprivate'); privateBox.removeEvent('click',goPrivate); }); } MBchat.updateables.online.show(room.rid); $('messageText').focus(); }).transmit({'rid' : rid});
response.messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); if(!lastId) lastId = item.lid - 1; MBchat.updateables.processMessage(item); });
$('.inputField-' + id).live('blur', function(evt)
$('.deleteButton-' + id).live('click', function(evt)
$('.inputField-' + id).live('blur', function(evt) { // clear elements elements = []; // loop $('.inputField-' + id).each(function() { // cleanup var value = $(this).val().replace(/^\s+|\s+$/g, ''); // empty elements shouldn't be added if(value == '') { $(this).parent().parent().remove(); } // add else elements.push(value); }); // set new value $('#' + id).val(elements.join(options.splitChar)); });
elements = [];
evt.preventDefault(); evt.stopPropagation();
$('.inputField-' + id).live('blur', function(evt) { // clear elements elements = []; // loop $('.inputField-' + id).each(function() { // cleanup var value = $(this).val().replace(/^\s+|\s+$/g, ''); // empty elements shouldn't be added if(value == '') { $(this).parent().parent().remove(); } // add else elements.push(value); }); // set new value $('#' + id).val(elements.join(options.splitChar)); });
$('.inputField-' + id).each(function() { var value = $(this).val().replace(/^\s+|\s+$/g, ''); if(value == '') { $(this).parent().parent().remove(); } else elements.push(value); }); $('#' + id).val(elements.join(options.splitChar));
remove($(this).attr('rel'));
$('.inputField-' + id).live('blur', function(evt) { // clear elements elements = []; // loop $('.inputField-' + id).each(function() { // cleanup var value = $(this).val().replace(/^\s+|\s+$/g, ''); // empty elements shouldn't be added if(value == '') { $(this).parent().parent().remove(); } // add else elements.push(value); }); // set new value $('#' + id).val(elements.join(options.splitChar)); });
function () { if (Editor.windowIsEditable()) { if (options["insertmode"]) modes.set(modes.INSERT); else if (win.getSelection().toString() != "") modes.set(modes.VISUAL, modes.TEXTAREA); else modes.main = modes.TEXTAREA; } else { options.setPref("accessibility.browsewithcaret", true); } });
function () { tabs.stop(config.browser.mCurrentTab); });
function () { if (Editor.windowIsEditable()) { if (options["insertmode"]) modes.set(modes.INSERT); else if (win.getSelection().toString() != "") modes.set(modes.VISUAL, modes.TEXTAREA); else modes.main = modes.TEXTAREA; } else { // setting this option notifies an observer which takes care of the // mode setting options.setPref("accessibility.browsewithcaret", true); } });
_datastore.parse(data,_this,_this.settings.data.opts,function(str){ str = _this.callback("onparse", [str, _this]); obj.children("ul").remove(); obj.append($("<ul>").html(str)); obj.find("li:last-child").addClass("last").end().find("li:has(ul)").not(".open").addClass("closed"); obj.find("li").not(".open").not(".closed").addClass("leaf"); if(callback) callback.call(); });
return this.open_branch(ref_node, true, function () { _this.create.apply(_this, [obj, ref_node, position]); } );
_datastore.parse(data,_this,_this.settings.data.opts,function(str){ str = _this.callback("onparse", [str, _this]); // if(obj.children('ul:eq(0)').children('li').size() > 1) obj.children("ul").find('.loaading').parent().replaceWith(str); else obj.children("ul").remove(); obj.append($("<ul>").html(str)); obj.find("li:last-child").addClass("last").end().find("li:has(ul)").not(".open").addClass("closed"); obj.find("li").not(".open").not(".closed").addClass("leaf"); if(callback) callback.call(); });
append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&
unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=
append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&
function (count) { buffer.scrollLines(-Math.max(count, 1)); },
function (count) { buffer.scrollPages(Math.max(count, 1)); },
function (count) { buffer.scrollLines(-Math.max(count, 1)); },
whisperBoxes.each ( function (whisperBox) { var privateBox = whisperBox.getElement('.private'); privateBox.removeClass('private'); privateBox.addClass('nonprivate'); privateBox.removeEvent('click',goPrivate); });
whisperers.each(function(whisperer) { var uid = whisperer.get('id').substr(whisperIdStr.length+1).toInt(); if (uid != msg.user.uid) { if(othersAdded) { whisper.appendText(', '); }else { whisper.appendText(' '); othersAdded = true; } var newWhisperer = whisperer.clone(); newWhisperer.inject(whisper); }; });
whisperBoxes.each ( function (whisperBox) { var privateBox = whisperBox.getElement('.private'); privateBox.removeClass('private'); privateBox.addClass('nonprivate'); privateBox.removeEvent('click',goPrivate); });
$('.inputField-' + id).each(function()
$('.inputField-' + id).live('keyup', function(evt) { elements = []; $('.inputField-' + id).each(function()
$('.inputField-' + id).each(function() { // cleanup var value = $(this).val().replace(/^\s+|\s+$/g, ''); // empty elements shouldn't be added if(value == '') { $(this).parent().parent().remove(); } // add else elements.push(value); });
$('#' + id).val(elements.join(options.splitChar)); });
$('.inputField-' + id).each(function() { // cleanup var value = $(this).val().replace(/^\s+|\s+$/g, ''); // empty elements shouldn't be added if(value == '') { $(this).parent().parent().remove(); } // add else elements.push(value); });
function () { tabs.stop(config.browser.mCurrentTab); });
function (count) { buffer.scrollLines(Math.max(count, 1)); },
function () { tabs.stop(config.browser.mCurrentTab); });
return this._load_branch(ref_node, function () { _this._create.apply(_this, [obj, ref_node, position, supress_callback]); } );
obj.parents("li.closed").each(function () { _this.open_branch(this) });
return this._load_branch(ref_node, function () { _this._create.apply(_this, [obj, ref_node, position, supress_callback]); } );
i.appendChild(j.$.cloneNode(true));return i.innerHTML;},setHtml:function(i){return this.$.innerHTML=i;},setText:function(i){h.prototype.setText=this.$.innerText!=undefined?function(j){return this.$.innerText=j;}:function(j){return this.$.textContent=j;};return this.setText(i);},getAttribute:(function(){var i=function(j){return this.$.getAttribute(j,2);};if(c&&(b.ie7Compat||b.ie6Compat))return function(j){var n=this;switch(j){case 'class':j='className';break;case 'tabindex':var k=i.call(n,j);if(k!==0&&n.$.tabIndex===0)k=null;return k;break;case 'checked':var l=n.$.attributes.getNamedItem(j),m=l.specified?l.nodeValue:n.$.checked;return m?'checked':null;case 'hspace':return n.$.hspace;case 'style':return n.$.style.cssText;}return i.call(n,j);};else return i;})(),getChildren:function(){return new d.nodeList(this.$.childNodes);},getComputedStyle:c?function(i){return this.$.currentStyle[e.cssStyleToDomStyle(i)];}:function(i){return this.getWindow().$.getComputedStyle(this.$,'').getPropertyValue(i);},getDtd:function(){var i=f[this.getName()];this.getDtd=function(){return i;};return i;},getElementsByTag:g.prototype.getElementsByTag,getTabIndex:c?function(){var i=this.$.tabIndex;if(i===0&&!f.$tabIndex[this.getName()]&&parseInt(this.getAttribute('tabindex'),10)!==0)i=-1;return i;}:b.webkit?function(){var i=this.$.tabIndex;if(i==undefined){i=parseInt(this.getAttribute('tabindex'),10);if(isNaN(i))i=-1;}return i;}:function(){return this.$.tabIndex;},getText:function(){return this.$.textContent||this.$.innerText||'';},getWindow:function(){return this.getDocument().getWindow();},getId:function(){return this.$.id||null;},getNameAtt:function(){return this.$.name||null;},getName:function(){var i=this.$.nodeName.toLowerCase();if(c){var j=this.$.scopeName;if(j!='HTML')i=j.toLowerCase()+':'+i;}return(this.getName=function(){return i;})();},getValue:function(){return this.$.value;},getFirst:function(i){var j=this.$.firstChild,k=j&&new d.node(j);if(k&&i&&!i(k))k=k.getNext(i);return k;},getLast:function(i){var j=this.$.lastChild,k=j&&new d.node(j);if(k&&i&&!i(k))k=k.getPrevious(i);return k;},getStyle:function(i){return this.$.style[e.cssStyleToDomStyle(i)];},is:function(){var i=this.getName();for(var j=0;j<arguments.length;j++){if(arguments[j]==i)return true;}return false;},isEditable:function(){var i=this.getName(),j=!f.$nonEditable[i]&&(f[i]||f.span);return j&&j['#'];},isIdentical:function(i){if(this.getName()!=i.getName())return false;var j=this.$.attributes,k=i.$.attributes,l=j.length,m=k.length;
};d.nodeList.prototype={count:function(){return this.$.length;},getItem:function(h){var i=this.$[h];return i?new d.node(i):null;}};d.element=function(h,i){if(typeof h=='string')h=(i?i.$:document).createElement(h);d.domObject.call(this,h);};var h=d.element;h.get=function(i){return i&&(i.$?i:new h(i));};h.prototype=new d.node();h.createFromHtml=function(i,j){var k=new h('div',j);k.setHtml(i);return k.getFirst().remove();};h.setMarker=function(i,j,k,l){var m=j.getCustomData('list_marker_id')||j.setCustomData('list_marker_id',e.getNextNumber()).getCustomData('list_marker_id'),n=j.getCustomData('list_marker_names')||j.setCustomData('list_marker_names',{}).getCustomData('list_marker_names');i[m]=j;n[k]=1;return j.setCustomData(k,l);};h.clearAllMarkers=function(i){for(var j in i)h.clearMarkers(i,i[j],true);};h.clearMarkers=function(i,j,k){var l=j.getCustomData('list_marker_names'),m=j.getCustomData('list_marker_id');for(var n in l)j.removeCustomData(n);j.removeCustomData('list_marker_names');if(k){j.removeCustomData('list_marker_id');delete i[m];}};e.extend(h.prototype,{type:1,addClass:function(i){var j=this.$.className;if(j){var k=new RegExp('(?:^|\\s)'+i+'(?:\\s|$)','');if(!k.test(j))j+=' '+i;}this.$.className=j||i;},removeClass:function(i){var j=this.getAttribute('class');if(j){var k=new RegExp('(?:^|\\s+)'+i+'(?=\\s|$)','i');if(k.test(j)){j=j.replace(k,'').replace(/^\s+/,'');if(j)this.setAttribute('class',j);else this.removeAttribute('class');}}},hasClass:function(i){var j=new RegExp('(?:^|\\s+)'+i+'(?=\\s|$)','');return j.test(this.getAttribute('class'));},append:function(i,j){var k=this;if(typeof i=='string')i=k.getDocument().createElement(i);if(j)k.$.insertBefore(i.$,k.$.firstChild);else k.$.appendChild(i.$);return i;},appendHtml:function(i){var k=this;if(!k.$.childNodes.length)k.setHtml(i);else{var j=new h('div',k.getDocument());j.setHtml(i);j.moveChildren(k);}},appendText:function(i){if(this.$.text!=undefined)this.$.text+=i;else this.append(new d.text(i));},appendBogus:function(){var k=this;var i=k.getLast();while(i&&i.type==3&&!e.rtrim(i.getText()))i=i.getPrevious();if(!i||!i.is||!i.is('br')){var j=b.opera?k.getDocument().createText(''):k.getDocument().createElement('br');b.gecko&&j.setAttribute('type','_moz');k.append(j);}},breakParent:function(i){var l=this;var j=new d.range(l.getDocument());j.setStartAfter(l);j.setEndAfter(i);var k=j.extractContents();j.insertNode(l.remove());k.insertAfterNode(l);},contains:c||b.webkit?function(i){var j=this.$;return i.type!=1?j.contains(i.getParent().$):j!=i.$&&j.contains(i.$); }:function(i){return!!(this.$.compareDocumentPosition(i.$)&16);},focus:function(){try{this.$.focus();}catch(i){}},getHtml:function(){var i=this.$.innerHTML;return c?i.replace(/<\?[^>]*>/g,''):i;},getOuterHtml:function(){var j=this;if(j.$.outerHTML)return j.$.outerHTML.replace(/<\?[^>]*>/,'');var i=j.$.ownerDocument.createElement('div');i.appendChild(j.$.cloneNode(true));return i.innerHTML;},setHtml:function(i){return this.$.innerHTML=i;},setText:function(i){h.prototype.setText=this.$.innerText!=undefined?function(j){return this.$.innerText=j;}:function(j){return this.$.textContent=j;};return this.setText(i);},getAttribute:(function(){var i=function(j){return this.$.getAttribute(j,2);};if(c&&(b.ie7Compat||b.ie6Compat))return function(j){var n=this;switch(j){case 'class':j='className';break;case 'tabindex':var k=i.call(n,j);if(k!==0&&n.$.tabIndex===0)k=null;return k;break;case 'checked':var l=n.$.attributes.getNamedItem(j),m=l.specified?l.nodeValue:n.$.checked;return m?'checked':null;case 'hspace':return n.$.hspace;case 'style':return n.$.style.cssText;}return i.call(n,j);};else return i;})(),getChildren:function(){return new d.nodeList(this.$.childNodes);},getComputedStyle:c?function(i){return this.$.currentStyle[e.cssStyleToDomStyle(i)];}:function(i){return this.getWindow().$.getComputedStyle(this.$,'').getPropertyValue(i);},getDtd:function(){var i=f[this.getName()];this.getDtd=function(){return i;};return i;},getElementsByTag:g.prototype.getElementsByTag,getTabIndex:c?function(){var i=this.$.tabIndex;if(i===0&&!f.$tabIndex[this.getName()]&&parseInt(this.getAttribute('tabindex'),10)!==0)i=-1;return i;}:b.webkit?function(){var i=this.$.tabIndex;if(i==undefined){i=parseInt(this.getAttribute('tabindex'),10);if(isNaN(i))i=-1;}return i;}:function(){return this.$.tabIndex;},getText:function(){return this.$.textContent||this.$.innerText||'';},getWindow:function(){return this.getDocument().getWindow();},getId:function(){return this.$.id||null;},getNameAtt:function(){return this.$.name||null;},getName:function(){var i=this.$.nodeName.toLowerCase();if(c){var j=this.$.scopeName;if(j!='HTML')i=j.toLowerCase()+':'+i;}return(this.getName=function(){return i;})();},getValue:function(){return this.$.value;},getFirst:function(i){var j=this.$.firstChild,k=j&&new d.node(j);if(k&&i&&!i(k))k=k.getNext(i);return k;},getLast:function(i){var j=this.$.lastChild,k=j&&new d.node(j);if(k&&i&&!i(k))k=k.getPrevious(i);return k;},getStyle:function(i){return this.$.style[e.cssStyleToDomStyle(i)];
i.appendChild(j.$.cloneNode(true));return i.innerHTML;},setHtml:function(i){return this.$.innerHTML=i;},setText:function(i){h.prototype.setText=this.$.innerText!=undefined?function(j){return this.$.innerText=j;}:function(j){return this.$.textContent=j;};return this.setText(i);},getAttribute:(function(){var i=function(j){return this.$.getAttribute(j,2);};if(c&&(b.ie7Compat||b.ie6Compat))return function(j){var n=this;switch(j){case 'class':j='className';break;case 'tabindex':var k=i.call(n,j);if(k!==0&&n.$.tabIndex===0)k=null;return k;break;case 'checked':var l=n.$.attributes.getNamedItem(j),m=l.specified?l.nodeValue:n.$.checked;return m?'checked':null;case 'hspace':return n.$.hspace;case 'style':return n.$.style.cssText;}return i.call(n,j);};else return i;})(),getChildren:function(){return new d.nodeList(this.$.childNodes);},getComputedStyle:c?function(i){return this.$.currentStyle[e.cssStyleToDomStyle(i)];}:function(i){return this.getWindow().$.getComputedStyle(this.$,'').getPropertyValue(i);},getDtd:function(){var i=f[this.getName()];this.getDtd=function(){return i;};return i;},getElementsByTag:g.prototype.getElementsByTag,getTabIndex:c?function(){var i=this.$.tabIndex;if(i===0&&!f.$tabIndex[this.getName()]&&parseInt(this.getAttribute('tabindex'),10)!==0)i=-1;return i;}:b.webkit?function(){var i=this.$.tabIndex;if(i==undefined){i=parseInt(this.getAttribute('tabindex'),10);if(isNaN(i))i=-1;}return i;}:function(){return this.$.tabIndex;},getText:function(){return this.$.textContent||this.$.innerText||'';},getWindow:function(){return this.getDocument().getWindow();},getId:function(){return this.$.id||null;},getNameAtt:function(){return this.$.name||null;},getName:function(){var i=this.$.nodeName.toLowerCase();if(c){var j=this.$.scopeName;if(j!='HTML')i=j.toLowerCase()+':'+i;}return(this.getName=function(){return i;})();},getValue:function(){return this.$.value;},getFirst:function(i){var j=this.$.firstChild,k=j&&new d.node(j);if(k&&i&&!i(k))k=k.getNext(i);return k;},getLast:function(i){var j=this.$.lastChild,k=j&&new d.node(j);if(k&&i&&!i(k))k=k.getPrevious(i);return k;},getStyle:function(i){return this.$.style[e.cssStyleToDomStyle(i)];},is:function(){var i=this.getName();for(var j=0;j<arguments.length;j++){if(arguments[j]==i)return true;}return false;},isEditable:function(){var i=this.getName(),j=!f.$nonEditable[i]&&(f[i]||f.span);return j&&j['#'];},isIdentical:function(i){if(this.getName()!=i.getName())return false;var j=this.$.attributes,k=i.$.attributes,l=j.length,m=k.length;
ajax_timeout = window.setTimeout(function () { ajax.abort(); if (retry) { send_query(message, timeout, retry); } }, timeout);
BF.include = (function () { function evaler(code) { return eval(code); } return (function () { var files = {}; return function (path, context, timeout, retry) { var ajax = BF.create_simple_ajax(); ajax.query("GET", path, "", function (response) { files[path] = evaler(response); if (typeof files[path] == "function") { files[path](context); } }, null, timeout, retry); }; }()); }());
ajax_timeout = window.setTimeout(function () { ajax.abort(); if (retry) { send_query(message, timeout, retry); } }, timeout);
(function(c){var d=[];c.tools=c.tools||{};c.tools.tooltip={version:"1.1.3",conf:{effect:"toggle",fadeOutSpeed:"fast",tip:null,predelay:0,delay:30,opacity:1,lazy:undefined,position:["top","center"],offset:[0,0],cancelDefault:true,relative:false,oneInstance:true,events:{def:"mouseover,mouseout",input:"focus,blur",widget:"focus mouseover,blur mouseout",tooltip:"mouseover,mouseout"},api:false},addEffect:function(e,g,f){b[e]=[g,f]}};var b={toggle:[function(e){var f=this.getConf(),g=this.getTip(),h=f.opacity;if(h<1){g.css({opacity:h})}g.show();e.call()},function(e){this.getTip().hide();e.call()}],fade:[function(e){this.getTip().fadeIn(this.getConf().fadeInSpeed,e)},function(e){this.getTip().fadeOut(this.getConf().fadeOutSpeed,e)}]};function a(f,g){var p=this,k=c(this);f.data("tooltip",p);var l=f.next();if(g.tip){l=c(g.tip);if(l.length>1){l=f.nextAll(g.tip).eq(0);if(!l.length){l=f.parent().nextAll(g.tip).eq(0)}}}function o(u){var t=g.relative?f.position().top:f.offset().top,s=g.relative?f.position().left:f.offset().left,v=g.position[0];t-=l.outerHeight()-g.offset[0];s+=f.outerWidth()+g.offset[1];var q=l.outerHeight()+f.outerHeight();if(v=="center"){t+=q/2}if(v=="bottom"){t+=q}v=g.position[1];var r=l.outerWidth()+f.outerWidth();if(v=="center"){s-=r/2}if(v=="left"){s-=r}return{top:t,left:s}}var i=f.is(":input"),e=i&&f.is(":checkbox, :radio, select, :button"),h=f.attr("type"),n=g.events[h]||g.events[i?(e?"widget":"input"):"def"];n=n.split(/,\s*/);if(n.length!=2){throw"Tooltip: bad events configuration for "+h}f.bind(n[0],function(r){if(g.oneInstance){c.each(d,function(){this.hide()})}var q=l.data("trigger");if(q&&q[0]!=this){l.hide().stop(true,true)}r.target=this;p.show(r);n=g.events.tooltip.split(/,\s*/);l.bind(n[0],function(){p.show(r)});if(n[1]){l.bind(n[1],function(){p.hide(r)})}});f.bind(n[1],function(q){p.hide(q)});if(!c.browser.msie&&!i&&!g.predelay){f.mousemove(function(){if(!p.isShown()){f.triggerHandler("mouseover")}})}if(g.opacity<1){l.css("opacity",g.opacity)}var m=0,j=f.attr("title");if(j&&g.cancelDefault){f.removeAttr("title");f.data("title",j)}c.extend(p,{show:function(r){if(r){f=c(r.target)}clearTimeout(l.data("timer"));if(l.is(":animated")||l.is(":visible")){return p}function q(){l.data("trigger",f);var t=o(r);if(g.tip&&j){l.html(f.data("title"))}r=r||c.Event();r.type="onBeforeShow";k.trigger(r,[t]);if(r.isDefaultPrevented()){return p}t=o(r);l.css({position:"absolute",top:t.top,left:t.left});var s=b[g.effect];if(!s){throw'Nonexistent effect "'+g.effect+'"'}s[0].call(p,function(){r.type="onShow";k.trigger(r)})}if(g.predelay){clearTimeout(m);m=setTimeout(q,g.predelay)}else{q()}return p},hide:function(r){clearTimeout(l.data("timer"));clearTimeout(m);if(!l.is(":visible")){return}function q(){r=r||c.Event();r.type="onBeforeHide";k.trigger(r);if(r.isDefaultPrevented()){return}b[g.effect][1].call(p,function(){r.type="onHide";k.trigger(r)})}if(g.delay&&r){l.data("timer",setTimeout(q,g.delay))}else{q()}return p},isShown:function(){return l.is(":visible, :animated")},getConf:function(){return g},getTip:function(){return l},getTrigger:function(){return f},bind:function(q,r){k.bind(q,r);return p},onHide:function(q){return this.bind("onHide",q)},onBeforeShow:function(q){return this.bind("onBeforeShow",q)},onShow:function(q){return this.bind("onShow",q)},onBeforeHide:function(q){return this.bind("onBeforeHide",q)},unbind:function(q){k.unbind(q);return p}});c.each(g,function(q,r){if(c.isFunction(r)){p.bind(q,r)}})}c.prototype.tooltip=function(e){var f=this.eq(typeof e=="number"?e:0).data("tooltip");if(f){return f}var g=c.extend(true,{},c.tools.tooltip.conf);if(c.isFunction(e)){e={onBeforeShow:e}}else{if(typeof e=="string"){e={tip:e}}}e=c.extend(true,g,e);if(typeof e.position=="string"){e.position=e.position.split(/,?\s/)}if(e.lazy!==false&&(e.lazy===true||this.length>20)){this.one("mouseover",function(h){f=new a(c(this),e);f.show(h);d.push(f)})}else{this.each(function(){f=new a(c(this),e);d.push(f)})}return e.api?f:this}})(jQuery);
0,m=a.attr("title"),q=a.attr("data-tooltip"),r=o[b.effect],l,s=a.is(":input"),v=s&&a.is(":checkbox, :radio, select, :button, :submit"),t=a.attr("type"),k=b.events[t]||b.events[s?v?"widget":"input":"def"];if(!r)throw'Nonexistent effect "'+b.effect+'"';k=k.split(/,\s*/);if(k.length!=2)throw"Tooltip: bad events configuration for "+t;a.bind(k[0],function(e){clearTimeout(i);if(b.predelay)j=setTimeout(function(){c.show(e)},b.predelay);else c.show(e)}).bind(k[1],function(e){clearTimeout(j);if(b.delay)i= setTimeout(function(){c.hide(e)},b.delay);else c.hide(e)});if(m&&b.cancelDefault){a.removeAttr("title");a.data("title",m)}f.extend(c,{show:function(e){if(!d){if(q)d=f(q);else if(b.tip)d=f(b.tip).eq(0);else if(m)d=f(b.layout).addClass(b.tipClass).appendTo(document.body).hide().append(m);else{d=a.next();d.length||(d=a.parent().next())}if(!d.length)throw"Cannot find tooltip for "+a;}if(c.isShown())return c;d.stop(true,true);var g=p(a,d,b);b.tip&&d.html(a.data("title"));e=e||f.Event();e.type="onBeforeShow";
(function(c){var d=[];c.tools=c.tools||{};c.tools.tooltip={version:"1.1.3",conf:{effect:"toggle",fadeOutSpeed:"fast",tip:null,predelay:0,delay:30,opacity:1,lazy:undefined,position:["top","center"],offset:[0,0],cancelDefault:true,relative:false,oneInstance:true,events:{def:"mouseover,mouseout",input:"focus,blur",widget:"focus mouseover,blur mouseout",tooltip:"mouseover,mouseout"},api:false},addEffect:function(e,g,f){b[e]=[g,f]}};var b={toggle:[function(e){var f=this.getConf(),g=this.getTip(),h=f.opacity;if(h<1){g.css({opacity:h})}g.show();e.call()},function(e){this.getTip().hide();e.call()}],fade:[function(e){this.getTip().fadeIn(this.getConf().fadeInSpeed,e)},function(e){this.getTip().fadeOut(this.getConf().fadeOutSpeed,e)}]};function a(f,g){var p=this,k=c(this);f.data("tooltip",p);var l=f.next();if(g.tip){l=c(g.tip);if(l.length>1){l=f.nextAll(g.tip).eq(0);if(!l.length){l=f.parent().nextAll(g.tip).eq(0)}}}function o(u){var t=g.relative?f.position().top:f.offset().top,s=g.relative?f.position().left:f.offset().left,v=g.position[0];t-=l.outerHeight()-g.offset[0];s+=f.outerWidth()+g.offset[1];var q=l.outerHeight()+f.outerHeight();if(v=="center"){t+=q/2}if(v=="bottom"){t+=q}v=g.position[1];var r=l.outerWidth()+f.outerWidth();if(v=="center"){s-=r/2}if(v=="left"){s-=r}return{top:t,left:s}}var i=f.is(":input"),e=i&&f.is(":checkbox, :radio, select, :button"),h=f.attr("type"),n=g.events[h]||g.events[i?(e?"widget":"input"):"def"];n=n.split(/,\s*/);if(n.length!=2){throw"Tooltip: bad events configuration for "+h}f.bind(n[0],function(r){if(g.oneInstance){c.each(d,function(){this.hide()})}var q=l.data("trigger");if(q&&q[0]!=this){l.hide().stop(true,true)}r.target=this;p.show(r);n=g.events.tooltip.split(/,\s*/);l.bind(n[0],function(){p.show(r)});if(n[1]){l.bind(n[1],function(){p.hide(r)})}});f.bind(n[1],function(q){p.hide(q)});if(!c.browser.msie&&!i&&!g.predelay){f.mousemove(function(){if(!p.isShown()){f.triggerHandler("mouseover")}})}if(g.opacity<1){l.css("opacity",g.opacity)}var m=0,j=f.attr("title");if(j&&g.cancelDefault){f.removeAttr("title");f.data("title",j)}c.extend(p,{show:function(r){if(r){f=c(r.target)}clearTimeout(l.data("timer"));if(l.is(":animated")||l.is(":visible")){return p}function q(){l.data("trigger",f);var t=o(r);if(g.tip&&j){l.html(f.data("title"))}r=r||c.Event();r.type="onBeforeShow";k.trigger(r,[t]);if(r.isDefaultPrevented()){return p}t=o(r);l.css({position:"absolute",top:t.top,left:t.left});var s=b[g.effect];if(!s){throw'Nonexistent effect "'+g.effect+'"'}s[0].call(p,function(){r.type="onShow";k.trigger(r)})}if(g.predelay){clearTimeout(m);m=setTimeout(q,g.predelay)}else{q()}return p},hide:function(r){clearTimeout(l.data("timer"));clearTimeout(m);if(!l.is(":visible")){return}function q(){r=r||c.Event();r.type="onBeforeHide";k.trigger(r);if(r.isDefaultPrevented()){return}b[g.effect][1].call(p,function(){r.type="onHide";k.trigger(r)})}if(g.delay&&r){l.data("timer",setTimeout(q,g.delay))}else{q()}return p},isShown:function(){return l.is(":visible, :animated")},getConf:function(){return g},getTip:function(){return l},getTrigger:function(){return f},bind:function(q,r){k.bind(q,r);return p},onHide:function(q){return this.bind("onHide",q)},onBeforeShow:function(q){return this.bind("onBeforeShow",q)},onShow:function(q){return this.bind("onShow",q)},onBeforeHide:function(q){return this.bind("onBeforeHide",q)},unbind:function(q){k.unbind(q);return p}});c.each(g,function(q,r){if(c.isFunction(r)){p.bind(q,r)}})}c.prototype.tooltip=function(e){var f=this.eq(typeof e=="number"?e:0).data("tooltip");if(f){return f}var g=c.extend(true,{},c.tools.tooltip.conf);if(c.isFunction(e)){e={onBeforeShow:e}}else{if(typeof e=="string"){e={tip:e}}}e=c.extend(true,g,e);if(typeof e.position=="string"){e.position=e.position.split(/,?\s/)}if(e.lazy!==false&&(e.lazy===true||this.length>20)){this.one("mouseover",function(h){f=new a(c(this),e);f.show(h);d.push(f)})}else{this.each(function(){f=new a(c(this),e);d.push(f)})}return e.api?f:this}})(jQuery);
tokens.each(function(tok) { scratch += tok.token; });
key.accidentals.each(function(acc) { acc.verticalPos -= 7; });
tokens.each(function(tok) { scratch += tok.token; });
h,s,A;if(!C.contentWindow||!C.contentWindow.document)setTimeout(n,10);else{k=C.contentWindow.document;s=(h=k.getElementById("state"))?h.innerText:null;A=a();setInterval(function(){var H,E;k=C.contentWindow.document;H=(h=k.getElementById("state"))?h.innerText:null;E=a();if(H!==s){s=H;f(s);E=s?s:x;A=location.hash=E;b()}else if(E!==A){A=E;l(E)}},50);K=true;r!=null&&r()}}function o(){if(!q){var k=a(),h=history.length;M&&clearInterval(M);M=setInterval(function(){var s,A;s=a();A=history.length;if(s!==k){k=
!C.contentWindow.document)setTimeout(n,10);else{k=C.contentWindow.document;s=(h=k.getElementById("state"))?h.innerText:null;A=a();setInterval(function(){var H,E;k=C.contentWindow.document;H=(h=k.getElementById("state"))?h.innerText:null;E=a();if(H!==s){s=H;f(s);E=s?s:x;A=location.hash=E;b()}else if(E!==A){A=E;l(E)}},50);K=true;r!=null&&r()}}function o(){if(!q){var k=a(),h=history.length;M&&clearInterval(M);M=setInterval(function(){var s,A;s=a();A=history.length;if(s!==k){k=s;h=A;f(k);b()}else if(A!==
h,s,A;if(!C.contentWindow||!C.contentWindow.document)setTimeout(n,10);else{k=C.contentWindow.document;s=(h=k.getElementById("state"))?h.innerText:null;A=a();setInterval(function(){var H,E;k=C.contentWindow.document;H=(h=k.getElementById("state"))?h.innerText:null;E=a();if(H!==s){s=H;f(s);E=s?s:x;A=location.hash=E;b()}else if(E!==A){A=E;l(E)}},50);K=true;r!=null&&r()}}function o(){if(!q){var k=a(),h=history.length;M&&clearInterval(M);M=setInterval(function(){var s,A;s=a();A=history.length;if(s!==k){k=
$.post("/studydeck/my_decks/delete",{id:deckId},function(){$("#userDeckRow"+ deckId).hide("fast");});
$.post("/my_decks/delete",{id:deckId},function(){$("#userDeckRow"+ deckId).hide("fast");});
$.post("/studydeck/my_decks/delete",{id:deckId},function(){$("#userDeckRow"+ deckId).hide("fast");});
}).error(function(error, b) { console.error(img.data("src"), error, b); done.call();
}).error(function(error, b) { done.call(null, error);
function(img, done) { var p = this.getProgress(); if (p) { img.before(p); } img.load(function() { if (p) { p.remove(); } done.call(); }).error(function(error, b) { // TODO, call with error console.error(img.data("src"), error, b); done.call(); }).attr("src", img.data("src")); }
if (g_IsIE)
if (g_IsIE) {
GDownloadUrl(sStationDataUrl, function(xmlData, pResponseCode) { var xmlDoc = GXml.parse(xmlData); if (g_IsIE) xmlDoc.setProperty("SelectionLanguage", "XPath"); var rootNode = xmlDoc.documentElement; if (!rootNode) { return; } var geodesyMarker = oGeodesyMarker; // The checked state of the year should be propogated to all the dates belonging to the month var checkedState = false; if (yearChkObj) { checkedState = yearChkObj.checked; } // Parse the XML for "stations" or "geodesy:stations" var featureMembers = rootNode.selectNodes(".//*[local-name() = 'featureMember']"); for(var i=0; i < featureMembers.length; i++) { // Extract date and url from each featureMember var fullDate = GXml.value(featureMembers[i].selectSingleNode(".//*[local-name() = 'date']")); var url = GXml.value(featureMembers[i].selectSingleNode(".//*[local-name() = 'url']")); if (fullDate=="" || url=="") { continue; } else { // Extract month from the date element var adate = fullDate.split("-"); var date = parseInt(adate[2], 10); gmonth = parseInt(adate[1], 10); gmonth = gaMonths[gmonth]; // Add the url associated with the date to the array maStationDataForDate // This array maintains the list of all station data urls for updateCSWRecords given // station+year+month+date combo. var numRenixFiles = geodesyMarker.maStationDataForDate[year][gmonth][date].length; geodesyMarker.maStationDataForDate[year][gmonth][date][numRenixFiles] = url; // Propogate the checked state of the year to the checkbox associated with this date. geodesyMarker.maDataCheckedStateForDate[year][gmonth][date][numRenixFiles] = checkedState; } } for (var m=1; m<=12; m++) { // Create the arrays to hold the data urls for the dates of this year+month month = gaMonths[m]; geodesyMarker.maYearMonthWfsUrlQueried[year][month] = true; } // Now call the onclick function associated with the year href // This is so that the user can see the list of months for his currently checked year geodesyMarker.yearClicked(year, yearHrefId, monthsDivId, datesDivId, true); });
if (fullDate=="" || url=="") {
if (fullDate==="" || url==="") {
GDownloadUrl(sStationDataUrl, function(xmlData, pResponseCode) { var xmlDoc = GXml.parse(xmlData); if (g_IsIE) xmlDoc.setProperty("SelectionLanguage", "XPath"); var rootNode = xmlDoc.documentElement; if (!rootNode) { return; } var geodesyMarker = oGeodesyMarker; // The checked state of the year should be propogated to all the dates belonging to the month var checkedState = false; if (yearChkObj) { checkedState = yearChkObj.checked; } // Parse the XML for "stations" or "geodesy:stations" var featureMembers = rootNode.selectNodes(".//*[local-name() = 'featureMember']"); for(var i=0; i < featureMembers.length; i++) { // Extract date and url from each featureMember var fullDate = GXml.value(featureMembers[i].selectSingleNode(".//*[local-name() = 'date']")); var url = GXml.value(featureMembers[i].selectSingleNode(".//*[local-name() = 'url']")); if (fullDate=="" || url=="") { continue; } else { // Extract month from the date element var adate = fullDate.split("-"); var date = parseInt(adate[2], 10); gmonth = parseInt(adate[1], 10); gmonth = gaMonths[gmonth]; // Add the url associated with the date to the array maStationDataForDate // This array maintains the list of all station data urls for updateCSWRecords given // station+year+month+date combo. var numRenixFiles = geodesyMarker.maStationDataForDate[year][gmonth][date].length; geodesyMarker.maStationDataForDate[year][gmonth][date][numRenixFiles] = url; // Propogate the checked state of the year to the checkbox associated with this date. geodesyMarker.maDataCheckedStateForDate[year][gmonth][date][numRenixFiles] = checkedState; } } for (var m=1; m<=12; m++) { // Create the arrays to hold the data urls for the dates of this year+month month = gaMonths[m]; geodesyMarker.maYearMonthWfsUrlQueried[year][month] = true; } // Now call the onclick function associated with the year href // This is so that the user can see the list of months for his currently checked year geodesyMarker.yearClicked(year, yearHrefId, monthsDivId, datesDivId, true); });
contents.each(function(i,node){ var text = getABCText(node); if (inabc) { if (node.nodeType==3 && !text.match(/^\s*$/)) { abctext += text.replace(/\n$/,"").replace(/^\n/,""); brcount=0; } else if($(node).is("br") && brcount==0) { abctext += "\n"; brcount++; } else { inabc = false; brcount=0; insertScoreBefore(node,abctext); } } else { if (text.match(/^X:/m)) { inabc=true; abctext=text.replace(/\n$/,"").replace(/^\n/,""); } } });
var children = $(elem).children().filter(function() { var str = getABCText(this); return getABCText(this).match(/^\s*X:/m); });
contents.each(function(i,node){ var text = getABCText(node); if (inabc) { if (node.nodeType==3 && !text.match(/^\s*$/)) { abctext += text.replace(/\n$/,"").replace(/^\n/,""); brcount=0; } else if($(node).is("br") && brcount==0) { abctext += "\n"; brcount++; } else { inabc = false; brcount=0; insertScoreBefore(node,abctext); } } else { if (text.match(/^X:/m)) { inabc=true; abctext=text.replace(/\n$/,"").replace(/^\n/,""); } } });
!C.contentWindow.document)setTimeout(n,10);else{k=C.contentWindow.document;s=(h=k.getElementById("state"))?h.innerText:null;A=a();setInterval(function(){var H,E;k=C.contentWindow.document;H=(h=k.getElementById("state"))?h.innerText:null;E=a();if(H!==s){s=H;f(s);E=s?s:x;A=location.hash=E;b()}else if(E!==A){A=E;l(E)}},50);K=true;r!=null&&r()}}function o(){if(!q){var k=a(),h=history.length;M&&clearInterval(M);M=setInterval(function(){var s,A;s=a();A=history.length;if(s!==k){k=s;h=A;f(k);b()}else if(A!==
h.write(k);h.close();return true}catch(s){return false}}function n(){var k,h,s,A;if(!C.contentWindow||!C.contentWindow.document)setTimeout(n,10);else{k=C.contentWindow.document;s=(h=k.getElementById("state"))?h.innerText:null;A=a();setInterval(function(){var H,E;k=C.contentWindow.document;H=(h=k.getElementById("state"))?h.innerText:null;E=a();if(H!==s){s=H;f(s);E=s?s:x;A=location.hash=E;b()}else if(E!==A){A=E;l(E)}},50);K=true;r!=null&&r()}}function o(){if(!q){var k=a(),h=history.length;M&&clearInterval(M);
!C.contentWindow.document)setTimeout(n,10);else{k=C.contentWindow.document;s=(h=k.getElementById("state"))?h.innerText:null;A=a();setInterval(function(){var H,E;k=C.contentWindow.document;H=(h=k.getElementById("state"))?h.innerText:null;E=a();if(H!==s){s=H;f(s);E=s?s:x;A=location.hash=E;b()}else if(E!==A){A=E;l(E)}},50);K=true;r!=null&&r()}}function o(){if(!q){var k=a(),h=history.length;M&&clearInterval(M);M=setInterval(function(){var s,A;s=a();A=history.length;if(s!==k){k=s;h=A;f(k);b()}else if(A!==
if (addresses.some(function (recipient) !(/\S@\S+\.\S/.test(recipient))))
function (args) { let mailargs = {}; mailargs.to = args.join(", "); mailargs.subject = args["-subject"]; mailargs.bcc = args["-bcc"]; mailargs.cc = args["-cc"]; mailargs.body = args["-text"]; mailargs.attachments = args["-attachment"] || []; let addresses = args; if (mailargs.bcc) addresses = addresses.concat(mailargs.bcc); if (mailargs.cc) addresses = addresses.concat(mailargs.cc); if (addresses.some(function (recipient) !(/\S@\S+\.\S/.test(recipient)))) return void liberator.echoerr("Exxx: Invalid e-mail address"); mail.composeNewMail(mailargs); },
if (addresses.some(function (recipient) !(/\S@\S+\.\S/.test(recipient))))
trigger = $("<a/>").attr("href", "#").addClass(css.trigger).click(function(e) { self.show(); return e.preventDefault(); }).insertAfter(input);
$.each("name,readonly,disabled,value".split(","), function(i, attr) { tmp.attr(attr, input.attr(attr)); });
trigger = $("<a/>").attr("href", "#").addClass(css.trigger).click(function(e) { self.show(); return e.preventDefault(); }).insertAfter(input);
$('.contentBlock').each(function()
$('.linkedExtra input:hidden').each(function()
$('.contentBlock').each(function() { // hide if needed if(i >= current.num_blocks) $(this).hide(); // show the block and set the name else { $(this).show(); $('.blockName', this).html(current.data.names[i]); } // increment i++; });
if(i >= current.num_blocks) $(this).hide(); else { $(this).show(); $('.blockName', this).html(current.data.names[i]); } i++;
var id = $(this).val(); if(id != '' && typeof extrasById[id] != 'undefined' && extrasById[id].type == 'block') hasModules = true;
$('.contentBlock').each(function() { // hide if needed if(i >= current.num_blocks) $(this).hide(); // show the block and set the name else { $(this).show(); $('.blockName', this).html(current.data.names[i]); } // increment i++; });
MBchat.updateables.poller.init(pO); MBchat.updateables.whispers.init(response.lastid.toInt());
MBchat.updateables.whispers.init(response.lastid);
var loginReq = new ServerReq('login.php',function(response) { logged_in = true; MBchat.updateables.poller.init(pO); MBchat.updateables.whispers.init(response.lastid.toInt()); MBchat.updateables.online.show(0); //Show online list for entrance hall });
MBchat.updateables.poller.init(response.lastid,pO);
var loginReq = new ServerReq('login.php',function(response) { logged_in = true; MBchat.updateables.poller.init(pO); MBchat.updateables.whispers.init(response.lastid.toInt()); MBchat.updateables.online.show(0); //Show online list for entrance hall });
var val = (this.isGM ? GM_getValue : (function (name, def) { return localStorage.getItem(name) || def }))((store || this.storage), '{}'),
var val = (isGM ? GM_getValue : (function(name, def){ var s=localStorage.getItem(name); return s == null ? def : s }))((store||this.storage), ‘{}’), rval;
var val = (this.isGM ? GM_getValue : (function (name, def) { return localStorage.getItem(name) || def }))((store || this.storage), '{}'),
el.pitches.each(function(p) { p.duration = p.duration * chordDuration; });
tokens.each(function(tok) { if (tok.token === '-') scratch += ' '; else scratch += tok.token; });
el.pitches.each(function(p) { p.duration = p.duration * chordDuration; });
WT_DECLARE_WT_MEMBER(2,"WSuggestionPopupStdMatcher",function(s,f,x,C,q,y){function t(c){var g=c.value;c=c.selectionStart?c.selectionStart:g.length;for(var d=x?g.lastIndexOf(x,c-1)+1:0;d<c&&C.indexOf(g.charAt(d))!=-1;)++d;return{start:d,end:c}}this.match=function(c){var g=t(c),d=c.value.substring(g.start,g.end),m="^";if(q.length!=0)m="(^|(?:["+q+"]))";m+="("+d.replace(new RegExp("([\\^\\\\\\][\\-.$*+?()|{}])","g"),"\\$1")+")";m=new RegExp(m,"gi");return function(o){if(!o)return d;var u=false;if(d.length){var z= o.replace(m,"$1"+s+"$2"+f);if(z!=o){u=true;o=z}}return{match:u,suggestion:o}}};this.replace=function(c,g,d){g=t(c);var m=c.value.substring(0,g.start)+d+y;if(g.end<c.value.length)m+=c.value.substring(g.end,c.value.length);c.value=m;if(c.selectionStart){c.selectionStart=g.start+d.length+y.length;c.selectionEnd=c.selectionStart}}});
WT_DECLARE_WT_MEMBER(2,"WSuggestionPopupStdMatcher",function(s,f,w,C,q,x){function y(c){var g=c.value;c=c.selectionStart?c.selectionStart:g.length;for(var d=w?g.lastIndexOf(w,c-1)+1:0;d<c&&C.indexOf(g.charAt(d))!=-1;)++d;return{start:d,end:c}}this.match=function(c){var g=y(c),d=c.value.substring(g.start,g.end),m="^";if(q.length!=0)m="(^|(?:["+q+"]))";m+="("+d.replace(new RegExp("([\\^\\\\\\][\\-.$*+?()|{}])","g"),"\\$1")+")";m=new RegExp(m,"gi");return function(o){if(!o)return d;var t=false;if(d.length){var z= o.replace(m,"$1"+s+"$2"+f);if(z!=o){t=true;o=z}}return{match:t,suggestion:o}}};this.replace=function(c,g,d){g=y(c);var m=c.value.substring(0,g.start)+d+x;if(g.end<c.value.length)m+=c.value.substring(g.end,c.value.length);c.value=m;if(c.selectionStart){c.selectionStart=g.start+d.length+x.length;c.selectionEnd=c.selectionStart}}});
WT_DECLARE_WT_MEMBER(2,"WSuggestionPopupStdMatcher",function(s,f,x,C,q,y){function t(c){var g=c.value;c=c.selectionStart?c.selectionStart:g.length;for(var d=x?g.lastIndexOf(x,c-1)+1:0;d<c&&C.indexOf(g.charAt(d))!=-1;)++d;return{start:d,end:c}}this.match=function(c){var g=t(c),d=c.value.substring(g.start,g.end),m="^";if(q.length!=0)m="(^|(?:["+q+"]))";m+="("+d.replace(new RegExp("([\\^\\\\\\][\\-.$*+?()|{}])","g"),"\\$1")+")";m=new RegExp(m,"gi");return function(o){if(!o)return d;var u=false;if(d.length){var z=o.replace(m,"$1"+s+"$2"+f);if(z!=o){u=true;o=z}}return{match:u,suggestion:o}}};this.replace=function(c,g,d){g=t(c);var m=c.value.substring(0,g.start)+d+y;if(g.end<c.value.length)m+=c.value.substring(g.end,c.value.length);c.value=m;if(c.selectionStart){c.selectionStart=g.start+d.length+y.length;c.selectionEnd=c.selectionStart}}});
$("#importBt").click(function () { pleaseConfirm("formImport")
$("#lstNewTag").change(function () { checkValidity("lstNewTag", "valNewTag")
$("#importBt").click(function () { pleaseConfirm("formImport")}) ;
$('#languageTypeSingle').bind('click', function() { if($('#languageTypeSingle').is(':checked')) { $('#languages').hide(); $('#language').show(); $('#defaultLanguageContainer').hide(); } });
$('#languages input:checked').each(function() { $('#defaultLanguage option[value='+ $(this).val() +']').attr('disabled', ''); });
$('#languageTypeSingle').bind('click', function() { if($('#languageTypeSingle').is(':checked')) { $('#languages').hide(); $('#language').show(); $('#defaultLanguageContainer').hide(); } });
$("#loading").ajaxStart(function() { $(this).show(); });
$('#plugins ul li a').click(function(){ $('#plugins').data('selected_plugin', $(this).attr('rel')); });
$("#loading").ajaxStart(function() { $(this).show(); });
$.each(labels.shortDays, function(i, el) { days.append($("<span>/").text(el)); });
trigger = $("<a/>").attr("href", "#").addClass(css.trigger).click(function(e) { self.show(); return e.preventDefault(); }).insertAfter(input);
$.each(labels.shortDays, function(i, el) { days.append($("<span>/").text(el)); });
(function(){if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'A39E',version:'3.2.1',revision:'5372',_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f<e.length;f++){var g=e[f].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(g){d=g[1];break;}}}if(d.indexOf(': }};})();}if(!a.editor){a.ELEMENT_MODE_NONE=0;a.ELEMENT_MODE_REPLACE=1;a.ELEMENT_MODE_APPENDTO=2;a.editor=function(b,c,d,e){var f=this;f._={instanceConfig:b,element:c,data:e};f.elementMode=d||0;a.event.call(f);f._init();};a.editor.replace=function(b,c){var d=b;if(typeof d!='object'){d=document.getElementById(b);if(!d){var e=0,f=document.getElementsByName(b);while((d=f[e++])&&d.tagName.toLowerCase()!='textarea'){}}if(!d)throw '[CKEDITOR.editor.replace] The element with id or name "'+b+'" was not found.';}d.style.visibility='hidden';return new a.editor(c,d,1);};a.editor.appendTo=function(b,c,d){var e=b;if(typeof e!='object'){e=document.getElementById(b);if(!e)throw '[CKEDITOR.editor.appendTo] The element with id "'+b+'" was not found.';}return new a.editor(c,e,2,d);};a.editor.prototype={_init:function(){var b=a.editor._pending||(a.editor._pending=[]);b.push(this);},fire:function(b,c){return a.event.prototype.fire.call(this,b,c,this);},fireOnce:function(b,c){return a.event.prototype.fireOnce.call(this,b,c,this);}};a.event.implementOn(a.editor.prototype,true);}if(!a.env)a.env=(function(){var b=navigator.userAgent.toLowerCase(),c=window.opera,d={ie:/*@cc_on!@*/false,opera:!!c&&c.version,webkit:b.indexOf(' applewebkit/')>-1,air:b.indexOf(' adobeair/')>-1,mac:b.indexOf('macintosh')>-1,quirks:document.compatMode=='BackCompat',mobile:b.indexOf('mobile')>-1,isCustomDomain:function(){return this.ie&&document.domain!=window.location.hostname;}};d.gecko=navigator.product=='Gecko'&&!d.webkit&&!d.opera;var e=0;if(d.ie){e=parseFloat(b.match(/msie (\d+)/)[1]);d.ie8=!!document.documentMode;d.ie8Compat=document.documentMode==8;d.ie7Compat=e==7&&!document.documentMode||document.documentMode==7;d.ie6Compat=e<7||d.quirks;}if(d.gecko){var f=b.match(/rv:([\d\.]+)/);if(f){f=f[1].split('.');e=f[0]*10000+(f[1]||0)*100+ +(f[2]||0);}}if(d.opera)e=parseFloat(c.version());if(d.air)e=parseFloat(b.match(/ adobeair\/(\d+)/)[1]);if(d.webkit)e=parseFloat(b.match(/ applewebkit\/(\d+)/)[1]);d.version=e;d.isCompatible=!d.mobile&&(d.ie&&e>=6||d.gecko&&e>=10801||d.opera&&e>=9.5||d.air&&e>=1||d.webkit&&e>=522||false);d.cssClass='cke_browser_'+(d.ie?'ie':d.gecko?'gecko':d.opera?'opera':d.air?'air':d.webkit?'webkit':'unknown');if(d.quirks)d.cssClass+=' cke_browser_quirks';if(d.ie){d.cssClass+=' cke_browser_ie'+(d.version<7?'6':d.version>=8?'8':'7');if(d.quirks)d.cssClass+=' cke_browser_iequirks';}if(d.gecko&&e<10900)d.cssClass+=' cke_browser_gecko18';return d;})();var b=a.env;var c=b.ie;
(function(){if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'A8LE4JO',version:'3.4.1',revision:'5892',_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f<e.length;f++){var g=e[f].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(g){d=g[1];break;}}}if(d.indexOf(': return e&&e.listeners.length>0;}};})();}if(!a.editor){a.ELEMENT_MODE_NONE=0;a.ELEMENT_MODE_REPLACE=1;a.ELEMENT_MODE_APPENDTO=2;a.editor=function(b,c,d,e){var f=this;f._={instanceConfig:b,element:c,data:e};f.elementMode=d||0;a.event.call(f);f._init();};a.editor.replace=function(b,c){var d=b;if(typeof d!='object'){d=document.getElementById(b);if(!d){var e=0,f=document.getElementsByName(b);while((d=f[e++])&&d.tagName.toLowerCase()!='textarea'){}}if(!d)throw '[CKEDITOR.editor.replace] The element with id or name "'+b+'" was not found.';}d.style.visibility='hidden';return new a.editor(c,d,1);};a.editor.appendTo=function(b,c,d){var e=b;if(typeof e!='object'){e=document.getElementById(b);if(!e)throw '[CKEDITOR.editor.appendTo] The element with id "'+b+'" was not found.';}return new a.editor(c,e,2,d);};a.editor.prototype={_init:function(){var b=a.editor._pending||(a.editor._pending=[]);b.push(this);},fire:function(b,c){return a.event.prototype.fire.call(this,b,c,this);},fireOnce:function(b,c){return a.event.prototype.fireOnce.call(this,b,c,this);}};a.event.implementOn(a.editor.prototype,true);}if(!a.env)a.env=(function(){var b=navigator.userAgent.toLowerCase(),c=window.opera,d={ie:/*@cc_on!@*/false,opera:!!c&&c.version,webkit:b.indexOf(' applewebkit/')>-1,air:b.indexOf(' adobeair/')>-1,mac:b.indexOf('macintosh')>-1,quirks:document.compatMode=='BackCompat',mobile:b.indexOf('mobile')>-1,isCustomDomain:function(){if(!this.ie)return false;var g=document.domain,h=window.location.hostname;return g!=h&&g!='['+h+']';}};d.gecko=navigator.product=='Gecko'&&!d.webkit&&!d.opera;var e=0;if(d.ie){e=parseFloat(b.match(/msie (\d+)/)[1]);d.ie8=!!document.documentMode;d.ie8Compat=document.documentMode==8;d.ie7Compat=e==7&&!document.documentMode||document.documentMode==7;d.ie6Compat=e<7||d.quirks;}if(d.gecko){var f=b.match(/rv:([\d\.]+)/);if(f){f=f[1].split('.');e=f[0]*10000+(f[1]||0)*100+ +(f[2]||0);}}if(d.opera)e=parseFloat(c.version());if(d.air)e=parseFloat(b.match(/ adobeair\/(\d+)/)[1]);if(d.webkit)e=parseFloat(b.match(/ applewebkit\/(\d+)/)[1]);d.version=e;d.isCompatible=!d.mobile&&(d.ie&&e>=6||d.gecko&&e>=10801||d.opera&&e>=9.5||d.air&&e>=1||d.webkit&&e>=522||false);d.cssClass='cke_browser_'+(d.ie?'ie':d.gecko?'gecko':d.opera?'opera':d.air?'air':d.webkit?'webkit':'unknown');if(d.quirks)d.cssClass+=' cke_browser_quirks';if(d.ie){d.cssClass+=' cke_browser_ie'+(d.version<7?'6':d.version>=8?'8':'7');if(d.quirks)d.cssClass+=' cke_browser_iequirks';}if(d.gecko&&e<10900)d.cssClass+=' cke_browser_gecko18';
(function(){if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'A39E',version:'3.2.1',revision:'5372',_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f<e.length;f++){var g=e[f].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(g){d=g[1];break;}}}if(d.indexOf('://')==-1)if(d.indexOf('/')===0)d=location.href.match(/^.*?:\/\/[^\/]*/)[0]+d;else d=location.href.match(/^[^\?]*\/(?:)/)[0]+d;if(!d)throw 'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return d;})(),getUrl:function(d){if(d.indexOf('://')==-1&&d.indexOf('/')!==0)d=this.basePath+d;if(this.timestamp&&d.charAt(d.length-1)!='/')d+=(d.indexOf('?')>=0?'&':'?')+'t='+this.timestamp;return d;}},b=window.CKEDITOR_GETURL;if(b){var c=a.getUrl;a.getUrl=function(d){return b.call(a,d)||c.call(a,d);};}return a;})();var a=CKEDITOR;if(!a.event){a.event=function(){};a.event.implementOn=function(b,c){var d=a.event.prototype;for(var e in d){if(b[e]==undefined)b[e]=d[e];}};a.event.prototype=(function(){var b=function(d){var e=d.getPrivate&&d.getPrivate()||d._||(d._={});return e.events||(e.events={});},c=function(d){this.name=d;this.listeners=[];};c.prototype={getListenerIndex:function(d){for(var e=0,f=this.listeners;e<f.length;e++){if(f[e].fn==d)return e;}return-1;}};return{on:function(d,e,f,g,h){var i=b(this),j=i[d]||(i[d]=new c(d));if(j.getListenerIndex(e)<0){var k=j.listeners;if(!f)f=this;if(isNaN(h))h=10;var l=this,m=function(o,p,q,r){var s={name:d,sender:this,editor:o,data:p,listenerData:g,stop:q,cancel:r,removeListener:function(){l.removeListener(d,e);}};e.call(f,s);return s.data;};m.fn=e;m.priority=h;for(var n=k.length-1;n>=0;n--){if(k[n].priority<=h){k.splice(n+1,0,m);return;}}k.unshift(m);}},fire:(function(){var d=false,e=function(){d=true;},f=false,g=function(){f=true;};return function(h,i,j){var k=b(this)[h],l=d,m=f;d=f=false;if(k){var n=k.listeners;if(n.length){n=n.slice(0);for(var o=0;o<n.length;o++){var p=n[o].call(this,j,i,e,g);if(typeof p!='undefined')i=p;if(d||f)break;}}}var q=f||(typeof i=='undefined'?false:i);d=l;f=m;return q;};})(),fireOnce:function(d,e,f){var g=this.fire(d,e,f);delete b(this)[d];return g;},removeListener:function(d,e){var f=b(this)[d];if(f){var g=f.getListenerIndex(e);if(g>=0)f.listeners.splice(g,1);}},hasListeners:function(d){var e=b(this)[d];return e&&e.listeners.length>0;}};})();}if(!a.editor){a.ELEMENT_MODE_NONE=0;a.ELEMENT_MODE_REPLACE=1;a.ELEMENT_MODE_APPENDTO=2;a.editor=function(b,c,d,e){var f=this;f._={instanceConfig:b,element:c,data:e};f.elementMode=d||0;a.event.call(f);f._init();};a.editor.replace=function(b,c){var d=b;if(typeof d!='object'){d=document.getElementById(b);if(!d){var e=0,f=document.getElementsByName(b);while((d=f[e++])&&d.tagName.toLowerCase()!='textarea'){}}if(!d)throw '[CKEDITOR.editor.replace] The element with id or name "'+b+'" was not found.';}d.style.visibility='hidden';return new a.editor(c,d,1);};a.editor.appendTo=function(b,c,d){var e=b;if(typeof e!='object'){e=document.getElementById(b);if(!e)throw '[CKEDITOR.editor.appendTo] The element with id "'+b+'" was not found.';}return new a.editor(c,e,2,d);};a.editor.prototype={_init:function(){var b=a.editor._pending||(a.editor._pending=[]);b.push(this);},fire:function(b,c){return a.event.prototype.fire.call(this,b,c,this);},fireOnce:function(b,c){return a.event.prototype.fireOnce.call(this,b,c,this);}};a.event.implementOn(a.editor.prototype,true);}if(!a.env)a.env=(function(){var b=navigator.userAgent.toLowerCase(),c=window.opera,d={ie:/*@cc_on!@*/false,opera:!!c&&c.version,webkit:b.indexOf(' applewebkit/')>-1,air:b.indexOf(' adobeair/')>-1,mac:b.indexOf('macintosh')>-1,quirks:document.compatMode=='BackCompat',mobile:b.indexOf('mobile')>-1,isCustomDomain:function(){return this.ie&&document.domain!=window.location.hostname;}};d.gecko=navigator.product=='Gecko'&&!d.webkit&&!d.opera;var e=0;if(d.ie){e=parseFloat(b.match(/msie (\d+)/)[1]);d.ie8=!!document.documentMode;d.ie8Compat=document.documentMode==8;d.ie7Compat=e==7&&!document.documentMode||document.documentMode==7;d.ie6Compat=e<7||d.quirks;}if(d.gecko){var f=b.match(/rv:([\d\.]+)/);if(f){f=f[1].split('.');e=f[0]*10000+(f[1]||0)*100+ +(f[2]||0);}}if(d.opera)e=parseFloat(c.version());if(d.air)e=parseFloat(b.match(/ adobeair\/(\d+)/)[1]);if(d.webkit)e=parseFloat(b.match(/ applewebkit\/(\d+)/)[1]);d.version=e;d.isCompatible=!d.mobile&&(d.ie&&e>=6||d.gecko&&e>=10801||d.opera&&e>=9.5||d.air&&e>=1||d.webkit&&e>=522||false);d.cssClass='cke_browser_'+(d.ie?'ie':d.gecko?'gecko':d.opera?'opera':d.air?'air':d.webkit?'webkit':'unknown');if(d.quirks)d.cssClass+=' cke_browser_quirks';if(d.ie){d.cssClass+=' cke_browser_ie'+(d.version<7?'6':d.version>=8?'8':'7');if(d.quirks)d.cssClass+=' cke_browser_iequirks';}if(d.gecko&&e<10900)d.cssClass+=' cke_browser_gecko18';return d;})();var b=a.env;var c=b.ie;
abcdiv=$("<div class='"+this.text_classname+"'></div>");
abcdiv=$("<div class='"+self.text_classname+"'></div>");
contents.each(function(i,node){ if (node.nodeType==3 && !node.nodeValue.match(/^\s*$/)) { brcount=0; var text = node.nodeValue; if (text.match(/^\s*X:/m)) { inabc=true; abctext=""; abcdiv=$("<div class='"+this.text_classname+"'></div>"); $(node).before(abcdiv); if (self.hide_abc) { abcdiv.hide(); } } if (inabc) { abctext += text.replace(/\n$/,"").replace(/^\n/,""); abcdiv.append($(node)); } } else if (inabc && $(node).is("br") && brcount==0) { abctext += "\n"; abcdiv.append($(node)); brcount++; } else if (inabc) { // second br or whitespace textnode inabc = false; brcount=0; abcdiv.data("abctext",abctext); results = results.add(abcdiv); } });
item.complete();
item.abstractNote = abstractNote; item.complete();
trans.setHandler("itemDone", function(obj, item) { item.url = newurl; item.attachments = [{url:item.url, title:item.title + " Snapshot", mimeType:"text/html"}]; item.tags = tags; item.complete(); });
"paddingTop"),w=a.pxself(t.rows[t.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",u.offsetWidth,t.offsetHeight-v-w,n,r,"Wt-hsh",function(B){q(e,k,B)},u,l,m,0,-e.offsetTop+v-a.pxself(e,"paddingTop"))}function j(e,k,m){var n=e.parentNode.previousSibling;e=e.parentNode.nextSibling;var r=n.offsetHeight,u=e.offsetHeight;if(h.stretch[k]>0&&h.stretch[k+1]>0)h.stretch[k]=-1;if(h.stretch[k+1]==0)h.stretch[k+1]=-1;h.stretch[k]<=0&&d.adjustRow(n,r+m);h.stretch[k+1]<=0&&d.adjustRow(e,u-m);
"paddingTop"),w=a.pxself(t.rows[t.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",u.offsetWidth,t.offsetHeight-v-w,n,r,"Wt-hsh",function(B){q(e,k,B)},u,l,m,0,-e.offsetTop+v-a.pxself(e,"paddingTop"))}function j(e,k,m){var n=e.parentNode.previousSibling;e=e.parentNode.nextSibling;var r=n.offsetHeight,u=e.offsetHeight;if(i.stretch[k]>0&&i.stretch[k+1]>0)i.stretch[k]=-1;if(i.stretch[k+1]==0)i.stretch[k+1]=-1;i.stretch[k]<=0&&d.adjustRow(n,r+m);i.stretch[k+1]<=0&&d.adjustRow(e,u-m);
"paddingTop"),w=a.pxself(t.rows[t.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",u.offsetWidth,t.offsetHeight-v-w,n,r,"Wt-hsh",function(B){q(e,k,B)},u,l,m,0,-e.offsetTop+v-a.pxself(e,"paddingTop"))}function j(e,k,m){var n=e.parentNode.previousSibling;e=e.parentNode.nextSibling;var r=n.offsetHeight,u=e.offsetHeight;if(h.stretch[k]>0&&h.stretch[k+1]>0)h.stretch[k]=-1;if(h.stretch[k+1]==0)h.stretch[k+1]=-1;h.stretch[k]<=0&&d.adjustRow(n,r+m);h.stretch[k+1]<=0&&d.adjustRow(e,u-m);
} else if($(node).is("br")) {
brcount=0; } else if($(node).is("br") && brcount==0) {
contents.each(function(i,node){ var text = getABCText(node); if (inabc) { if (node.nodeType==3 && !text.match(/^\s*$/)) { abctext += text.replace(/\n$/,"").replace(/^\n/,""); } else if($(node).is("br")) { abctext += "\n"; } else { inabc = false; insertScoreBefore(node,abctext); } } else { if (text.match(/^X:/m)) { inabc=true; abctext=text.replace(/\n$/,"").replace(/^\n/,""); } } });
brcount=0;
contents.each(function(i,node){ var text = getABCText(node); if (inabc) { if (node.nodeType==3 && !text.match(/^\s*$/)) { abctext += text.replace(/\n$/,"").replace(/^\n/,""); } else if($(node).is("br")) { abctext += "\n"; } else { inabc = false; insertScoreBefore(node,abctext); } } else { if (text.match(/^X:/m)) { inabc=true; abctext=text.replace(/\n$/,"").replace(/^\n/,""); } } });
$(editor.getContainer()).removeClass('tinyActive');
editor.onDeactivate.add(function(editor, otherEditor) { // show click to edit $(editor.getContainer()).siblings('.clickToEdit').show(); // hide if($('#' + editor.id + '_external').is(':visible')) $('#' + editor.id + '_external').hide(); // check the content jsBackend.tinyMCE.checkContent(editor); });
"paddingTop"),w=a.pxself(t.rows[t.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",u.offsetWidth,t.offsetHeight-v-w,n,r,"Wt-hsh",function(B){q(e,k,B)},u,l,m,0,-e.offsetTop+v-a.pxself(e,"paddingTop"))}function j(e,k,m){var n=e.parentNode.previousSibling;e=e.parentNode.nextSibling;var r=n.offsetHeight,u=e.offsetHeight;if(i.stretch[k]>0&&i.stretch[k+1]>0)i.stretch[k]=-1;if(i.stretch[k+1]==0)i.stretch[k+1]=-1;i.stretch[k]<=0&&d.adjustRow(n,r+m);i.stretch[k+1]<=0&&d.adjustRow(e,u-m);
"paddingTop"),w=a.pxself(t.rows[t.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",u.offsetWidth,t.offsetHeight-v-w,n,r,"Wt-hsh",function(B){q(e,k,B)},u,l,m,0,-e.offsetTop+v-a.pxself(e,"paddingTop"))}function j(e,k,m){var n=e.parentNode.previousSibling;e=e.parentNode.nextSibling;var r=n.offsetHeight,u=e.offsetHeight;if(h.stretch[k]>0&&h.stretch[k+1]>0)h.stretch[k]=-1;if(h.stretch[k+1]==0)h.stretch[k+1]=-1;h.stretch[k]<=0&&d.adjustRow(n,r+m);h.stretch[k+1]<=0&&d.adjustRow(e,u-m);
"paddingTop"),w=a.pxself(t.rows[t.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",u.offsetWidth,t.offsetHeight-v-w,n,r,"Wt-hsh",function(B){q(e,k,B)},u,l,m,0,-e.offsetTop+v-a.pxself(e,"paddingTop"))}function j(e,k,m){var n=e.parentNode.previousSibling;e=e.parentNode.nextSibling;var r=n.offsetHeight,u=e.offsetHeight;if(i.stretch[k]>0&&i.stretch[k+1]>0)i.stretch[k]=-1;if(i.stretch[k+1]==0)i.stretch[k+1]=-1;i.stretch[k]<=0&&d.adjustRow(n,r+m);i.stretch[k+1]<=0&&d.adjustRow(e,u-m);
panel.showArtifact(null);
panel.showArtifact(null, artifactContainer);
Sonatype.Events.addListener('artifactContainerUpdate', function(artifactContainer, payload) { var panel = artifactContainer.find('name', 'artifactInformationPanel')[0]; if (payload == null || !payload.leaf) { panel.showArtifact(null); } else { panel.showArtifact(payload); } });
panel.showArtifact(payload);
panel.showArtifact(payload, artifactContainer);
Sonatype.Events.addListener('artifactContainerUpdate', function(artifactContainer, payload) { var panel = artifactContainer.find('name', 'artifactInformationPanel')[0]; if (payload == null || !payload.leaf) { panel.showArtifact(null); } else { panel.showArtifact(payload); } });
MBchat.updateables.poller.init(pO); MBchat.updateables.whispers.init(response.lastid.toInt());
MBchat.updateables.whispers.init(response.lastid);
var loginReq = new ServerReq('login.php',function(response) { logged_in = true; MBchat.updateables.poller.init(pO); //These haven't been initiated with normal init sequence, but await successful login MBchat.updateables.whispers.init(response.lastid.toInt()); MBchat.updateables.online.show(0); //Show online list for entrance hall });
MBchat.updateables.poller.init(response.lastid,pO);
var loginReq = new ServerReq('login.php',function(response) { logged_in = true; MBchat.updateables.poller.init(pO); //These haven't been initiated with normal init sequence, but await successful login MBchat.updateables.whispers.init(response.lastid.toInt()); MBchat.updateables.online.show(0); //Show online list for entrance hall });
liberator.execute(command);
liberator.trapErrors(function () liberator.execute(command));
this.registerCallback("submit", modes.EX, function (command) { commands.repeat = command; liberator.execute(command); });
$('#addValue-'+ id).bind('keyup', function(evt) { blockSubmit = true; var code = evt.which; if(code == 13 || String.fromCharCode(code) == options.splitChar) { evt.preventDefault(); evt.stopPropagation(); add(); } if($(this).val().replace(/^\s+|\s+$/g, '') == '') { blockSubmit = false; $('#addButton-'+ id).addClass('disabledButton'); } else $('#addButton-'+ id).removeClass('disabledButton'); });
$('#navigationTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#navigationTitle').val(element.val()); } });
$('#addValue-'+ id).bind('keyup', function(evt) { blockSubmit = true; // grab code var code = evt.which; // enter of splitchar should add an element if(code == 13 || String.fromCharCode(code) == options.splitChar) { // prevent default behaviour evt.preventDefault(); evt.stopPropagation(); // add element add(); } // disable or enable button if($(this).val().replace(/^\s+|\s+$/g, '') == '') { blockSubmit = false; $('#addButton-'+ id).addClass('disabledButton'); } else $('#addButton-'+ id).removeClass('disabledButton'); });
10);else{l=F.contentWindow.document;q=(p=l.getElementById("state"))?p.innerText:null;m=a();setInterval(function(){var N,J;l=F.contentWindow.document;N=(p=l.getElementById("state"))?p.innerText:null;J=a();if(N!==q){q=N;f(q);J=q?q:G;m=location.hash=J;b()}else if(J!==m){m=J;k(J)}},50);I=true;x!=null&&x()}}function o(){if(!s){var l=a(),p=history.length;U&&clearInterval(U);U=setInterval(function(){var q,m;q=a();m=history.length;if(q!==l){l=q;p=m;f(l);b()}else if(m!==p&&u){l=q;p=m;q=M[p-1];f(q);b()}},50)}}
function h(){var l,q,r,m;if(!F.contentWindow||!F.contentWindow.document)setTimeout(h,10);else{l=F.contentWindow.document;r=(q=l.getElementById("state"))?q.innerText:null;m=a();setInterval(function(){var N,J;l=F.contentWindow.document;N=(q=l.getElementById("state"))?q.innerText:null;J=a();if(N!==r){r=N;f(r);J=r?r:G;m=location.hash=J;b()}else if(J!==m){m=J;k(J)}},50);I=true;y!=null&&y()}}function o(){if(!s){var l=a(),q=history.length;V&&clearInterval(V);V=setInterval(function(){var r,m;r=a();m=history.length;
10);else{l=F.contentWindow.document;q=(p=l.getElementById("state"))?p.innerText:null;m=a();setInterval(function(){var N,J;l=F.contentWindow.document;N=(p=l.getElementById("state"))?p.innerText:null;J=a();if(N!==q){q=N;f(q);J=q?q:G;m=location.hash=J;b()}else if(J!==m){m=J;k(J)}},50);I=true;x!=null&&x()}}function o(){if(!s){var l=a(),p=history.length;U&&clearInterval(U);U=setInterval(function(){var q,m;q=a();m=history.length;if(q!==l){l=q;p=m;f(l);b()}else if(m!==p&&u){l=q;p=m;q=M[p-1];f(q);b()}},50)}}
uri = text.match(/&amp;url=([^']+)'/)
uri = text.match(/url=([^']+)'/)
Zotero.Utilities.HTTP.doPost(uri, poststring, function(text) { uri = text.match(/&amp;url=([^']+)'/) uri = decodeURIComponent(uri[1]); uri = uri.replace(/http:\/\/[^/]*\//, host+"/"); var uris = new Array(); uris.push(uri); Zotero.Utilities.processDocuments(uris, function(newDoc){ var elmts =newDoc.evaluate('//html', newDoc, nsResolver, XPathResult.ANY_TYPE, null); var elmt; while (elmt = elmts.iterateNext()){ var newItem = new Zotero.Item("newspaperArticle"); var title = newDoc.evaluate('.//div[@class="HEADLINE"]', elmt, nsResolver, XPathResult.ANY_TYPE, null).iterateNext(); if (title.textContent){ newItem.title = title.textContent; }else{ newItem.title = " "; } var date = newDoc.evaluate('.//meta[@name="_lndateissue"]/@content', elmt, nsResolver, XPathResult.ANY_TYPE, null).iterateNext(); if (date){ date = date.nodeValue; var m = date.match(/([^T]+)T/); date = m[1]; if (date.length == 8){ date = date.substr(0,4) + "-" + date.substr(4,2) + "-" + date.substr(6,2); } else if (date.length == 6){ date = date.substr(0,4) + "-" + date.substr(4,2); } newItem.date = date; } var publicationTitle = newDoc.evaluate('.//div[@class="PUB"]', elmt, nsResolver, XPathResult.ANY_TYPE, null).iterateNext(); if (publicationTitle){ newItem.publicationTitle = publicationTitle.textContent; } var section = newDoc.evaluate('.//div[@class="SECTION-INFO"]', elmt, nsResolver, XPathResult.ANY_TYPE, null).iterateNext(); if (section){ newItem.section = section.textContent; } var author = newDoc.evaluate('.//div[@class="BYLINE"]', elmt, nsResolver, XPathResult.ANY_TYPE, null).iterateNext(); if (author){ newItem.creators.push(Zotero.Utilities.cleanAuthor(author.textContent, "author")); } newItem.repository = "lexisnexis.com"; newItem.url = url; newItem.complete() } Zotero.done(); }); });
z()}}function m(){if(!t){var j=a(),o=history.length;P&&clearInterval(P);P=setInterval(function(){var p,w;p=a();w=history.length;if(p!==j){j=p;o=w;f(j);b()}else if(w!==o&&r){j=p;o=w;p=E[o-1];f(p);b()}},50)}}function x(){var j;j=I.value.split("|");if(j.length>1){D=j[0];y=j[1]}if(j.length>2)E=j[2].split(",");if(t)k();else{m();B=true;z!=null&&z()}}var r=false,t=false,A=false,z=null,F=null,I=null,B=false,P=null,E=[],D,y,J=function(){};return{onReady:function(j){if(B)setTimeout(function(){j()},0);else z=
z()}}function m(){if(!t){var j=a(),o=history.length;Q&&clearInterval(Q);Q=setInterval(function(){var p,w;p=a();w=history.length;if(p!==j){j=p;o=w;f(j);b()}else if(w!==o&&r){j=p;o=w;p=E[o-1];f(p);b()}},50)}}function x(){var j;j=I.value.split("|");if(j.length>1){D=j[0];y=j[1]}if(j.length>2)E=j[2].split(",");if(t)k();else{m();B=true;z!=null&&z()}}var r=false,t=false,A=false,z=null,F=null,I=null,B=false,Q=null,E=[],D,y,J=function(){};return{onReady:function(j){if(B)setTimeout(function(){j()},0);else z=
z()}}function m(){if(!t){var j=a(),o=history.length;P&&clearInterval(P);P=setInterval(function(){var p,w;p=a();w=history.length;if(p!==j){j=p;o=w;f(j);b()}else if(w!==o&&r){j=p;o=w;p=E[o-1];f(p);b()}},50)}}function x(){var j;j=I.value.split("|");if(j.length>1){D=j[0];y=j[1]}if(j.length>2)E=j[2].split(",");if(t)k();else{m();B=true;z!=null&&z()}}var r=false,t=false,A=false,z=null,F=null,I=null,B=false,P=null,E=[],D,y,J=function(){};return{onReady:function(j){if(B)setTimeout(function(){j()},0);else z=
for (var i = 0; i < countryId.length; i++) {
$( VMConfig.get('dependentSelector') ).each(function(){ var params = VMConfig.get('dependentExpr').exec( this.className ), //parse parent id that = this; this.className = this.className || ''; if( params && params[1]){ $('#'+ params[1]).change(function(){ var countries = $(this).val(), statesCache = VMCache.get('states'), //shortchut to [[this]] and scope solution country = 0, countriesSend = [], cStack = []; for (var i = 0; i < countryId.length; i++) { countries = countries.push ? countries : [countries]; $(that).attr('disabled', 'disabled'); for(var i = 0, n = countries.length; i < n; i++){ country = countries[i]; //use cache solution to speed up the process if( statesCache[country] ){ cStack.push( country ); } else{ countriesSend.push(country); } } if( countriesSend.length ){ $.ajax({ url: VMConfig.get('countryStateURL') + countriesSend.toString(), dataType: 'json', success: function(states){ for(var country in states){ cStack.push( country ); VMCache.add('states', states[country], country); } populateStates( that, cStack ); return true; } }); } else{ populateStates( that, cStack ); } }); } }); return this; }, add: function(props){ if(props.constructor === Object){ for(var i in props){ this[i] = props[i]; } } return this; }
}); return this; }, add: function(props){ if(props.constructor === Object){ for(var i in props){ this[i] = props[i]; } } return this; }
});
$( VMConfig.get('dependentSelector') ).each(function(){ var params = VMConfig.get('dependentExpr').exec( this.className ), //parse parent id that = this; this.className = this.className || ''; if( params && params[1]){ $('#'+ params[1]).change(function(){ var countries = $(this).val(), statesCache = VMCache.get('states'), //shortchut to [[this]] and scope solution country = 0, countriesSend = [], cStack = []; for (var i = 0; i < countryId.length; i++) { countries = countries.push ? countries : [countries]; $(that).attr('disabled', 'disabled'); for(var i = 0, n = countries.length; i < n; i++){ country = countries[i]; //use cache solution to speed up the process if( statesCache[country] ){ cStack.push( country ); } else{ countriesSend.push(country); } } if( countriesSend.length ){ $.ajax({ url: VMConfig.get('countryStateURL') + countriesSend.toString(), dataType: 'json', success: function(states){ for(var country in states){ cStack.push( country ); VMCache.add('states', states[country], country); } populateStates( that, cStack ); return true; } }); } else{ populateStates( that, cStack ); } }); } }); return this; }, add: function(props){ if(props.constructor === Object){ for(var i in props){ this[i] = props[i]; } } return this; }
if ( result.prime == null || result.prime == NULL_CHECKER ) {
if ( result.checker == null || result.checker == NULL_CHECKER ) {
function(result) { BigInteger.log( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime:" + result ); if ( result.prime == null || result.prime == NULL_CHECKER ) { BigInteger.err( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime: subparam.result == WARNING NULL " + result.prime ); } if ( result.prime ) return DONE( result); },
if ( result.prime ) return DONE( result);
if ( result.checker ) return DONE();
function(result) { BigInteger.log( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime:" + result ); if ( result.prime == null || result.prime == NULL_CHECKER ) { BigInteger.err( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime: subparam.result == WARNING NULL " + result.prime ); } if ( result.prime ) return DONE( result); },
"paddingTop"),w=a.pxself(q.rows[q.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",u.offsetWidth,q.offsetHeight-v-w,n,r,"Wt-hsh",function(B){k(e,j,B)},u,l,m,0,-e.offsetTop+v-a.pxself(e,"paddingTop"))}function d(e,j,m){var n=e.parentNode.previousSibling;e=e.parentNode.nextSibling;var r=n.offsetHeight,u=e.offsetHeight;if(h.stretch[j]>0&&h.stretch[j+1]>0)h.stretch[j]=-1;if(h.stretch[j+1]==0)h.stretch[j+1]=-1;h.stretch[j]<=0&&g.adjustRow(n,r+m);h.stretch[j+1]<=0&&g.adjustRow(e,u-m);
"paddingTop"),x=a.pxself(s.rows[s.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",u.offsetWidth,s.offsetHeight-w-x,n,r,"Wt-hsh",function(B){k(e,j,B)},u,l,m,0,-e.offsetTop+w-a.pxself(e,"paddingTop"))}function i(e,j,m){var n=e.parentNode.previousSibling;e=e.parentNode.nextSibling;var r=n.offsetHeight,u=e.offsetHeight;if(h.stretch[j]>0&&h.stretch[j+1]>0)h.stretch[j]=-1;if(h.stretch[j+1]==0)h.stretch[j+1]=-1;h.stretch[j]<=0&&g.adjustRow(n,r+m);h.stretch[j+1]<=0&&g.adjustRow(e,u-m);
"paddingTop"),w=a.pxself(q.rows[q.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",u.offsetWidth,q.offsetHeight-v-w,n,r,"Wt-hsh",function(B){k(e,j,B)},u,l,m,0,-e.offsetTop+v-a.pxself(e,"paddingTop"))}function d(e,j,m){var n=e.parentNode.previousSibling;e=e.parentNode.nextSibling;var r=n.offsetHeight,u=e.offsetHeight;if(h.stretch[j]>0&&h.stretch[j+1]>0)h.stretch[j]=-1;if(h.stretch[j+1]==0)h.stretch[j+1]=-1;h.stretch[j]<=0&&g.adjustRow(n,r+m);h.stretch[j+1]<=0&&g.adjustRow(e,u-m);
c=r(c.el);d=r(a);k=a.parentNode.childNodes.length;g=a.childNodes.length;switch(b.keyCode){case 39:if(i.hasTag(h,"INPUT")&&h.type=="text"){e=i.getSelectionRange(h);if(e.start!=h.value.length)return}d++;break;case 38:c--;break;case 37:if(i.hasTag(h,"INPUT")&&h.type=="text"){e=i.getSelectionRange(h);if(e.start!=0)return}d--;break;case 40:c++;break;default:return}i.cancelEvent(b);if(c>-1&&c<g&&d>-1&&d<k){a=a.parentNode.childNodes[d];o=$(a.childNodes[c]).find(":input");o.size()>0&&setTimeout(function(){o.focus()},
switch(b.keyCode){case 39:if(i.hasTag(j,"INPUT")&&j.type=="text"){e=i.getSelectionRange(j);if(e.start!=j.value.length)return}d++;break;case 38:c--;break;case 37:if(i.hasTag(j,"INPUT")&&j.type=="text"){e=i.getSelectionRange(j);if(e.start!=0)return}d--;break;case 40:c++;break;default:return}i.cancelEvent(b);if(c>-1&&c<g&&d>-1&&d<k){a=a.parentNode.childNodes[d];o=$(a.childNodes[c]).find(":input");o.size()>0&&setTimeout(function(){o.focus()},0)}}}}};this.autoJavaScript=function(){if(h.parentNode==null){h=
c=r(c.el);d=r(a);k=a.parentNode.childNodes.length;g=a.childNodes.length;switch(b.keyCode){case 39:if(i.hasTag(h,"INPUT")&&h.type=="text"){e=i.getSelectionRange(h);if(e.start!=h.value.length)return}d++;break;case 38:c--;break;case 37:if(i.hasTag(h,"INPUT")&&h.type=="text"){e=i.getSelectionRange(h);if(e.start!=0)return}d--;break;case 40:c++;break;default:return}i.cancelEvent(b);if(c>-1&&c<g&&d>-1&&d<k){a=a.parentNode.childNodes[d];o=$(a.childNodes[c]).find(":input");o.size()>0&&setTimeout(function(){o.focus()},
.each(function() { html.push('<link type="text/css" rel="stylesheet" href="' + $(this).attr("href") + '" >'); });
$(":checked", $element).each(function(){ this.setAttribute('checked', 'checked'); });
.each(function() { html.push('<link type="text/css" rel="stylesheet" href="' + $(this).attr("href") + '" >'); });
var text = $(node).text();
var text = getABCText(node);
contents.each(function(i,node){ var text = $(node).text(); if (inabc) { if (node.nodeType==3 && !text.match(/^\s*$/)) { abctext += text.replace(/\n$/,"").replace(/^\n/,""); } else if($(node).is("br")) { abctext += "\n"; } else { inabc = false; insertScoreBefore(node,abctext); } } else { if (text.match(/^X:/m)) { inabc=true; abctext=text.replace(/\n$/,"").replace(/^\n/,""); } } });
}).delay(100);
}).delay(200);
success.start("opacity", 1).chain(function(){ (function(){ success.start("opacity", 0); }).delay(100); });
$(":checked", $element).each(function(){ this.setAttribute('checked', 'checked'); });
setTimeout(function () { _callPrint(element); }, 50);
$(":checked", $element).each(function(){ this.setAttribute('checked', 'checked'); });
$("div#middle").corner(); $("div#bottom").corner();
$(document).ready( function() { // Toggle edit rating mode DeckInfoUI.init(); // Add card counts for each rating; // Disable checkboxes for ratings with no cards DeckInfoUI.refreshCheckboxCounts(); // Round corners $("div#middle").corner(); $("div#bottom").corner(); // Setup tabs $("#bottom").tabs(); // Auto-select the review tab if present $("#bottom").tabs('select',2); // Set on-click handlers for quiz/learn mode $("input#quiz_button").click(function() { DeckInfoUI.setQuizMode(); }); $("input#learn_button").click(function() { DeckInfoUI.setLearnMode(); }); // Set on-click handler for select 'All' checkbox $("input#select_all_checkbox").click(function() { DeckInfoUI.selectAllCheckboxes(); }); // Set onclick for rating selector $("div#cards_tab th.edit_rating button").click(function() { DeckInfoUI.toggleRatingEdit(this); }); $("div#results_tab th.edit_rating button").click(function() { DeckInfoUI.toggleRatingEdit(this, true); });});
try{p=A.contentWindow.document;p.open();p.write(l);p.close();return true}catch(r){return false}}function i(){var l,p,r,y;if(!A.contentWindow||!A.contentWindow.document)setTimeout(i,10);else{l=A.contentWindow.document;r=(p=l.getElementById("state"))?p.innerText:null;y=a();setInterval(function(){var o,H;l=A.contentWindow.document;o=(p=l.getElementById("state"))?p.innerText:null;H=a();if(o!==r){r=o;e(r);H=r?r:L;y=location.hash=H;b()}else if(H!==y){y=H;k(H)}},50);I=true;x!=null&&x()}}function n(){if(!q){var l=
l='<html><body><div id="state">'+l+"</div></body></html>";try{p=z.contentWindow.document;p.open();p.write(l);p.close();return true}catch(r){return false}}function i(){var l,p,r,x;if(!z.contentWindow||!z.contentWindow.document)setTimeout(i,10);else{l=z.contentWindow.document;r=(p=l.getElementById("state"))?p.innerText:null;x=a();setInterval(function(){var o,G;l=z.contentWindow.document;o=(p=l.getElementById("state"))?p.innerText:null;G=a();if(o!==r){r=o;e(r);G=r?r:K;x=location.hash=G;b()}else if(G!== x){x=G;j(G)}},50);H=true;w!=null&&w()}}function n(){if(!q){var l=a(),p=history.length;F&&clearInterval(F);F=setInterval(function(){var r,x;r=a();x=history.length;if(r!==l){l=r;p=x;e(l);b()}else if(x!==p&&u){l=r;p=x;r=L[p-1];e(r);b()}},50)}}function J(){var l;l=E.value.split("|");if(l.length>1){K=l[0];D=l[1]}if(l.length>2)L=l[2].split(",");if(q)i();else{n();H=true;w!=null&&w()}}var u=false,q=false,C=false,w=null,z=null,E=null,H=false,F=null,L=[],K,D,M=function(){};return{onReady:function(l){if(H)setTimeout(function(){l()},
try{p=A.contentWindow.document;p.open();p.write(l);p.close();return true}catch(r){return false}}function i(){var l,p,r,y;if(!A.contentWindow||!A.contentWindow.document)setTimeout(i,10);else{l=A.contentWindow.document;r=(p=l.getElementById("state"))?p.innerText:null;y=a();setInterval(function(){var o,H;l=A.contentWindow.document;o=(p=l.getElementById("state"))?p.innerText:null;H=a();if(o!==r){r=o;e(r);H=r?r:L;y=location.hash=H;b()}else if(H!==y){y=H;k(H)}},50);I=true;x!=null&&x()}}function n(){if(!q){var l=
}, function() {});
translator.setHandler("itemDone", function(obj, item) { if(item.notes && item.notes[0]) { item.extra = item.notes[0].note; delete item.notes; item.notes = undefined; } item.attachments.splice(0); item.attachments.push({document:doc, title:"Project MUSE Snapshot"}); if(getPDF) { item.attachments.push({title:"Project MUSE Full Text PDF", mimeType:"application/pdf", url:getPDF.href}); } if(DOI) { item.DOI = DOI.textContent.replace(/^DOI: /,""); } if(abstract) { item.abstract = abstract.textContent; } item.complete(); });
}, function() {});
if ( result.checker == null || result.checker == NULL_CHECKER ) { BigInteger.err( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime: subparam.result == WARNING NULL " + result.prime );
if ( result == null || result == NULL_CHECKER ) { BigInteger.err( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime: subparam.result == WARNING NULL " + result );
function(result) { BigInteger.log( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime:" + result ); if ( result.checker == null || result.checker == NULL_CHECKER ) { BigInteger.err( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime: subparam.result == WARNING NULL " + result.prime ); } if ( result.checker ) return DONE(); },
if ( result.checker ) return DONE();
if ( result ) return DONE();
function(result) { BigInteger.log( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime:" + result ); if ( result.checker == null || result.checker == NULL_CHECKER ) { BigInteger.err( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime: subparam.result == WARNING NULL " + result.prime ); } if ( result.checker ) return DONE(); },
for (var i in data._source.fields) { var value = data._source.fields[i];
for (var i in data._source["@fields"]) { var value = data._source["@fields"][i]
$("ul.results li.event").live("click", function() { var data = eval($(this).data("full")); /* Apply template to the dialog */ var query = $("#query").val().replace(/^\s+|\s+$/g, "") console.log(query) var sanitize = function(str) { if (!/^".*"$/.test(str)) { str = '"' + str + '"'; } return escape(str); }; console.log(sanitize("hello world")); var template = $.template("inspector", "<li>" + "<b>(${type}) ${field}</b>:" + "<a href='/search?q=" + query + " AND ${escape(field)}:${$item.sanitize(value)}'" + " data-field='${escape(field)}' data-value='${$item.sanitize(value)}'>" + "${value}" + "</a>" + "</li>"); var fields = new Array(); for (var i in data._source.fields) { var value = data._source.fields[i]; if (/^[, ]*$/.test(value)) { continue; } fields.push( { type: "field", field: i, value: value }) } for (var i in data._source) { if (i == "fields") { continue; } fields.push( { type: "metadata", field: i, value: data._source[i] }) } for (var i in data) { if (i == "_source") { continue; } fields.push( { type: "metadata", field: i, value: data[i] }) } fields.sort(function(a, b) { if (a.type+a.field < b.type+b.field) { return -1; } if (a.type+a.field > b.type+b.field) { return 1; } return 0; }); $("ul.results li.selected").removeClass("selected") $(this).addClass("selected"); var entry = this; $("#inspector li").remove() $("#inspector") .append($.tmpl("inspector", fields, { "sanitize": sanitize })) .dialog({ width: 400, title: "Fields for this log" , closeOnEscape: true, position: ["right", "top"], }); });
if (i == "fields") { continue;
if (i == "@fields") continue; var value = data._source[i] if (i.charAt(0) == "@") { fields.push( { type: "metadata", field: i, value: value }); } else { if (/^[, ]*$/.test(value)) { continue; } fields.push( { type: "field", field: i, value: value })
$("ul.results li.event").live("click", function() { var data = eval($(this).data("full")); /* Apply template to the dialog */ var query = $("#query").val().replace(/^\s+|\s+$/g, "") console.log(query) var sanitize = function(str) { if (!/^".*"$/.test(str)) { str = '"' + str + '"'; } return escape(str); }; console.log(sanitize("hello world")); var template = $.template("inspector", "<li>" + "<b>(${type}) ${field}</b>:" + "<a href='/search?q=" + query + " AND ${escape(field)}:${$item.sanitize(value)}'" + " data-field='${escape(field)}' data-value='${$item.sanitize(value)}'>" + "${value}" + "</a>" + "</li>"); var fields = new Array(); for (var i in data._source.fields) { var value = data._source.fields[i]; if (/^[, ]*$/.test(value)) { continue; } fields.push( { type: "field", field: i, value: value }) } for (var i in data._source) { if (i == "fields") { continue; } fields.push( { type: "metadata", field: i, value: data._source[i] }) } for (var i in data) { if (i == "_source") { continue; } fields.push( { type: "metadata", field: i, value: data[i] }) } fields.sort(function(a, b) { if (a.type+a.field < b.type+b.field) { return -1; } if (a.type+a.field > b.type+b.field) { return 1; } return 0; }); $("ul.results li.selected").removeClass("selected") $(this).addClass("selected"); var entry = this; $("#inspector li").remove() $("#inspector") .append($.tmpl("inspector", fields, { "sanitize": sanitize })) .dialog({ width: 400, title: "Fields for this log" , closeOnEscape: true, position: ["right", "top"], }); });
fields.push( { type: "metadata", field: i, value: data._source[i] })
$("ul.results li.event").live("click", function() { var data = eval($(this).data("full")); /* Apply template to the dialog */ var query = $("#query").val().replace(/^\s+|\s+$/g, "") console.log(query) var sanitize = function(str) { if (!/^".*"$/.test(str)) { str = '"' + str + '"'; } return escape(str); }; console.log(sanitize("hello world")); var template = $.template("inspector", "<li>" + "<b>(${type}) ${field}</b>:" + "<a href='/search?q=" + query + " AND ${escape(field)}:${$item.sanitize(value)}'" + " data-field='${escape(field)}' data-value='${$item.sanitize(value)}'>" + "${value}" + "</a>" + "</li>"); var fields = new Array(); for (var i in data._source.fields) { var value = data._source.fields[i]; if (/^[, ]*$/.test(value)) { continue; } fields.push( { type: "field", field: i, value: value }) } for (var i in data._source) { if (i == "fields") { continue; } fields.push( { type: "metadata", field: i, value: data._source[i] }) } for (var i in data) { if (i == "_source") { continue; } fields.push( { type: "metadata", field: i, value: data[i] }) } fields.sort(function(a, b) { if (a.type+a.field < b.type+b.field) { return -1; } if (a.type+a.field > b.type+b.field) { return 1; } return 0; }); $("ul.results li.selected").removeClass("selected") $(this).addClass("selected"); var entry = this; $("#inspector li").remove() $("#inspector") .append($.tmpl("inspector", fields, { "sanitize": sanitize })) .dialog({ width: 400, title: "Fields for this log" , closeOnEscape: true, position: ["right", "top"], }); });
l.offsetWidth,-c.parentNode.previousSibling.offsetHeight,c.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(q){f(c,g,q)},l,n,j,0,0)}function m(c,g,j){var l=-c.previousSibling.offsetWidth,q=c.nextSibling.offsetWidth,s=c.firstChild,v=a.pxself(u.rows[0].childNodes[0],"paddingTop"),w=a.pxself(u.rows[u.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",s.offsetWidth,u.offsetHeight-v-w,l,q,"Wt-hsh",function(B){b(c,g,B)},s,n,j,0,-c.offsetTop+v-a.pxself(c,"paddingTop"))}function f(c,
"paddingTop"),w=a.pxself(t.rows[t.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",u.offsetWidth,t.offsetHeight-v-w,n,r,"Wt-hsh",function(B){q(e,k,B)},u,l,m,0,-e.offsetTop+v-a.pxself(e,"paddingTop"))}function j(e,k,m){var n=e.parentNode.previousSibling;e=e.parentNode.nextSibling;var r=n.offsetHeight,u=e.offsetHeight;if(i.stretch[k]>0&&i.stretch[k+1]>0)i.stretch[k]=-1;if(i.stretch[k+1]==0)i.stretch[k+1]=-1;i.stretch[k]<=0&&d.adjustRow(n,r+m);i.stretch[k+1]<=0&&d.adjustRow(e,u-m);
l.offsetWidth,-c.parentNode.previousSibling.offsetHeight,c.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(q){f(c,g,q)},l,n,j,0,0)}function m(c,g,j){var l=-c.previousSibling.offsetWidth,q=c.nextSibling.offsetWidth,s=c.firstChild,v=a.pxself(u.rows[0].childNodes[0],"paddingTop"),w=a.pxself(u.rows[u.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",s.offsetWidth,u.offsetHeight-v-w,l,q,"Wt-hsh",function(B){b(c,g,B)},s,n,j,0,-c.offsetTop+v-a.pxself(c,"paddingTop"))}function f(c,
C!==l){C=l||G;H(unescape(C))}}else{C=G;H(unescape(C))}}function h(l){var p;l='<html><body><div id="state">'+l+"</div></body></html>";try{p=F.contentWindow.document;p.open();p.write(l);p.close();return true}catch(q){return false}}function k(){var l,p,q,n;if(!F.contentWindow||!F.contentWindow.document)setTimeout(k,10);else{l=F.contentWindow.document;q=(p=l.getElementById("state"))?p.innerText:null;n=a();setInterval(function(){var N,J;l=F.contentWindow.document;N=(p=l.getElementById("state"))?p.innerText: null;J=a();if(N!==q){q=N;f(q);J=q?q:G;n=location.hash=J;b()}else if(J!==n){n=J;h(J)}},50);I=true;x!=null&&x()}}function o(){if(!r){var l=a(),p=history.length;U&&clearInterval(U);U=setInterval(function(){var q,n;q=a();n=history.length;if(q!==l){l=q;p=n;f(l);b()}else if(n!==p&&u){l=q;p=n;q=M[p-1];f(q);b()}},50)}}function E(){var l;l=v.value.split("|");if(l.length>1){G=l[0];C=l[1]}if(l.length>2)M=l[2].split(",");if(r)k();else{o();I=true;x!=null&&x()}}var u=false,r=false,y=false,x=null,F=null,v=null,
10);else{l=F.contentWindow.document;q=(p=l.getElementById("state"))?p.innerText:null;n=a();setInterval(function(){var N,J;l=F.contentWindow.document;N=(p=l.getElementById("state"))?p.innerText:null;J=a();if(N!==q){q=N;f(q);J=q?q:G;n=location.hash=J;b()}else if(J!==n){n=J;h(J)}},50);I=true;x!=null&&x()}}function o(){if(!r){var l=a(),p=history.length;U&&clearInterval(U);U=setInterval(function(){var q,n;q=a();n=history.length;if(q!==l){l=q;p=n;f(l);b()}else if(n!==p&&u){l=q;p=n;q=M[p-1];f(q);b()}},50)}}
C!==l){C=l||G;H(unescape(C))}}else{C=G;H(unescape(C))}}function h(l){var p;l='<html><body><div id="state">'+l+"</div></body></html>";try{p=F.contentWindow.document;p.open();p.write(l);p.close();return true}catch(q){return false}}function k(){var l,p,q,n;if(!F.contentWindow||!F.contentWindow.document)setTimeout(k,10);else{l=F.contentWindow.document;q=(p=l.getElementById("state"))?p.innerText:null;n=a();setInterval(function(){var N,J;l=F.contentWindow.document;N=(p=l.getElementById("state"))?p.innerText:null;J=a();if(N!==q){q=N;f(q);J=q?q:G;n=location.hash=J;b()}else if(J!==n){n=J;h(J)}},50);I=true;x!=null&&x()}}function o(){if(!r){var l=a(),p=history.length;U&&clearInterval(U);U=setInterval(function(){var q,n;q=a();n=history.length;if(q!==l){l=q;p=n;f(l);b()}else if(n!==p&&u){l=q;p=n;q=M[p-1];f(q);b()}},50)}}function E(){var l;l=v.value.split("|");if(l.length>1){G=l[0];C=l[1]}if(l.length>2)M=l[2].split(",");if(r)k();else{o();I=true;x!=null&&x()}}var u=false,r=false,y=false,x=null,F=null,v=null,
t&&t.setup&&t.setup(r,true);}};var n={},o=[];return{title:d.lang.div.title,minWidth:400,minHeight:165,contents:[{id:'info',label:d.lang.common.generalTab,title:d.lang.common.generalTab,elements:[{type:'hbox',widths:['50%','50%'],children:[{id:'elementStyle',type:'select',style:'width: 100%;',label:d.lang.div.styleSelectLabel,'default':'',items:[[d.lang.common.notSet,'']],onChange:function(){m.call(this,['info:class','advanced:dir','advanced:style']);},setup:function(p){for(var q in n)n[q].checkElementRemovable(p,true)&&this.setValue(q);},commit:function(p){var q;if(q=this.getValue())n[q].applyToObject(p);}},{id:'class',type:'text',label:d.lang.common.cssClass,'default':''}]}]},{id:'advanced',label:d.lang.common.advancedTab,title:d.lang.common.advancedTab,elements:[{type:'vbox',padding:1,children:[{type:'hbox',widths:['50%','50%'],children:[{type:'text',id:'id',label:d.lang.common.id,'default':''},{type:'text',id:'lang',label:d.lang.link.langCode,'default':''}]},{type:'hbox',children:[{type:'text',id:'style',style:'width: 100%;',label:d.lang.common.cssStyle,'default':'',commit:function(p){var q=this.getValue(),r=[q,p.getAttribute('style')].join(';');q&&p.setAttribute('style',r);}}]},{type:'hbox',children:[{type:'text',id:'title',style:'width: 100%;',label:d.lang.common.advisoryTitle,'default':''}]},{type:'select',id:'dir',style:'width: 100%;',label:d.lang.common.langDir,'default':'',items:[[d.lang.common.notSet,''],[d.lang.common.langDirLtr,'ltr'],[d.lang.common.langDirRtl,'rtl']]}]}]}],onLoad:function(){i.call(this);var p=this,q=this.getContentElement('info','elementStyle');d.getStylesSet(function(r){var s;if(r)for(var t=0;t<r.length;t++){var u=r[t];if(u.element&&u.element=='div'){s=u.name;n[s]=new CKEDITOR.style(u);q.items.push([s,s]);q.add(s,s);}}q[q.items.length>1?'enable':'disable']();setTimeout(function(){q.setup(p._element);},0);});},onShow:function(){if(e=='editdiv'){var p=k(d);p&&this.setupContent(this._element=p);}},onOk:function(){d.fire('saveSnapshot');if(e=='editdiv')o=[this._element];else o=j(d,true);var p=o.length;for(var q=0;q<p;q++){this.commitContent(o[q]);!o[q].getAttribute('style')&&o[q].removeAttribute('style');}d.fire('saveSnapshot');this.hide();},onHide:function(){delete this._element;}};};CKEDITOR.dialog.add('creatediv',function(d){return c(d,'creatediv');});CKEDITOR.dialog.add('editdiv',function(d){return c(d,'editdiv');});})();
t&&t.setup&&t.setup(r,true);}};var n={},o=[];return{title:d.lang.div.title,minWidth:400,minHeight:165,contents:[{id:'info',label:d.lang.common.generalTab,title:d.lang.common.generalTab,elements:[{type:'hbox',widths:['50%','50%'],children:[{id:'elementStyle',type:'select',style:'width: 100%;',label:d.lang.div.styleSelectLabel,'default':'',items:[[d.lang.common.notSet,'']],onChange:function(){m.call(this,['info:class','advanced:dir','advanced:style']);},setup:function(p){for(var q in n)n[q].checkElementRemovable(p,true)&&this.setValue(q);},commit:function(p){var q;if(q=this.getValue()){var r=n[q],s=p.getCustomData('elementStyle')||'';r.applyToObject(p);p.setCustomData('elementStyle',s+r._.definition.attributes.style);}}},{id:'class',type:'text',label:d.lang.common.cssClass,'default':''}]}]},{id:'advanced',label:d.lang.common.advancedTab,title:d.lang.common.advancedTab,elements:[{type:'vbox',padding:1,children:[{type:'hbox',widths:['50%','50%'],children:[{type:'text',id:'id',label:d.lang.common.id,'default':''},{type:'text',id:'lang',label:d.lang.link.langCode,'default':''}]},{type:'hbox',children:[{type:'text',id:'style',style:'width: 100%;',label:d.lang.common.cssStyle,'default':'',commit:function(p){var q=this.getValue()+(p.getCustomData('elementStyle')||'');p.setAttribute('style',q);}}]},{type:'hbox',children:[{type:'text',id:'title',style:'width: 100%;',label:d.lang.common.advisoryTitle,'default':''}]},{type:'select',id:'dir',style:'width: 100%;',label:d.lang.common.langDir,'default':'',items:[[d.lang.common.notSet,''],[d.lang.common.langDirLtr,'ltr'],[d.lang.common.langDirRtl,'rtl']]}]}]}],onLoad:function(){i.call(this);var p=this,q=this.getContentElement('info','elementStyle');d.getStylesSet(function(r){var s;if(r)for(var t=0;t<r.length;t++){var u=r[t];if(u.element&&u.element=='div'){s=u.name;n[s]=new CKEDITOR.style(u);q.items.push([s,s]);q.add(s,s);}}q[q.items.length>1?'enable':'disable']();setTimeout(function(){q.setup(p._element);},0);});},onShow:function(){if(e=='editdiv'){var p=k(d);p&&this.setupContent(this._element=p);}},onOk:function(){if(e=='editdiv')o=[this._element];else o=j(d,true);var p=o.length;for(var q=0;q<p;q++){this.commitContent(o[q]);!o[q].getAttribute('style')&&o[q].removeAttribute('style');}this.hide();},onHide:function(){if(e=='editdiv')this._element.removeCustomData('elementStyle');delete this._element;}};};CKEDITOR.dialog.add('creatediv',function(d){return c(d,'creatediv');});CKEDITOR.dialog.add('editdiv',function(d){return c(d,'editdiv');
t&&t.setup&&t.setup(r,true);}};var n={},o=[];return{title:d.lang.div.title,minWidth:400,minHeight:165,contents:[{id:'info',label:d.lang.common.generalTab,title:d.lang.common.generalTab,elements:[{type:'hbox',widths:['50%','50%'],children:[{id:'elementStyle',type:'select',style:'width: 100%;',label:d.lang.div.styleSelectLabel,'default':'',items:[[d.lang.common.notSet,'']],onChange:function(){m.call(this,['info:class','advanced:dir','advanced:style']);},setup:function(p){for(var q in n)n[q].checkElementRemovable(p,true)&&this.setValue(q);},commit:function(p){var q;if(q=this.getValue())n[q].applyToObject(p);}},{id:'class',type:'text',label:d.lang.common.cssClass,'default':''}]}]},{id:'advanced',label:d.lang.common.advancedTab,title:d.lang.common.advancedTab,elements:[{type:'vbox',padding:1,children:[{type:'hbox',widths:['50%','50%'],children:[{type:'text',id:'id',label:d.lang.common.id,'default':''},{type:'text',id:'lang',label:d.lang.link.langCode,'default':''}]},{type:'hbox',children:[{type:'text',id:'style',style:'width: 100%;',label:d.lang.common.cssStyle,'default':'',commit:function(p){var q=this.getValue(),r=[q,p.getAttribute('style')].join(';');q&&p.setAttribute('style',r);}}]},{type:'hbox',children:[{type:'text',id:'title',style:'width: 100%;',label:d.lang.common.advisoryTitle,'default':''}]},{type:'select',id:'dir',style:'width: 100%;',label:d.lang.common.langDir,'default':'',items:[[d.lang.common.notSet,''],[d.lang.common.langDirLtr,'ltr'],[d.lang.common.langDirRtl,'rtl']]}]}]}],onLoad:function(){i.call(this);var p=this,q=this.getContentElement('info','elementStyle');d.getStylesSet(function(r){var s;if(r)for(var t=0;t<r.length;t++){var u=r[t];if(u.element&&u.element=='div'){s=u.name;n[s]=new CKEDITOR.style(u);q.items.push([s,s]);q.add(s,s);}}q[q.items.length>1?'enable':'disable']();setTimeout(function(){q.setup(p._element);},0);});},onShow:function(){if(e=='editdiv'){var p=k(d);p&&this.setupContent(this._element=p);}},onOk:function(){d.fire('saveSnapshot');if(e=='editdiv')o=[this._element];else o=j(d,true);var p=o.length;for(var q=0;q<p;q++){this.commitContent(o[q]);!o[q].getAttribute('style')&&o[q].removeAttribute('style');}d.fire('saveSnapshot');this.hide();},onHide:function(){delete this._element;}};};CKEDITOR.dialog.add('creatediv',function(d){return c(d,'creatediv');});CKEDITOR.dialog.add('editdiv',function(d){return c(d,'editdiv');});})();
z!==g){z=g||I;Q(unescape(z))}}else{z=I;Q(unescape(z))}}function m(g){var p;g='<html><body><div id="state">'+g+"</div></body></html>";try{p=K.contentWindow.document;p.open();p.write(g);p.close();return true}catch(n){return false}}function l(){var g,p,n,y;if(!K.contentWindow||!K.contentWindow.document)setTimeout(l,10);else{g=K.contentWindow.document;n=(p=g.getElementById("state"))?p.innerText:null;y=a();setInterval(function(){var M,w;g=K.contentWindow.document;M=(p=g.getElementById("state"))?p.innerText: null;w=a();if(M!==n){n=M;f(n);w=n?n:I;y=location.hash=w;b()}else if(w!==y){y=w;m(w)}},50);E=true;D!=null&&D()}}function o(){if(!t){var g=a(),p=history.length;R&&clearInterval(R);R=setInterval(function(){var n,y;n=a();y=history.length;if(n!==g){g=n;p=y;f(g);b()}else if(y!==p&&r){g=n;p=y;n=A[p-1];f(n);b()}},50)}}function B(){var g;g=H.value.split("|");if(g.length>1){I=g[0];z=g[1]}if(g.length>2)A=g[2].split(",");if(t)l();else{o();E=true;D!=null&&D()}}var r=false,t=false,C=false,D=null,K=null,H=null,
g+"</div></body></html>";try{o=F.contentWindow.document;o.open();o.write(g);o.close();return true}catch(p){return false}}function l(){var g,o,p,s;if(!F.contentWindow||!F.contentWindow.document)setTimeout(l,10);else{g=F.contentWindow.document;p=(o=g.getElementById("state"))?o.innerText:null;s=a();setInterval(function(){var J,B;g=F.contentWindow.document;J=(o=g.getElementById("state"))?o.innerText:null;B=a();if(J!==p){p=J;f(p);B=p?p:I;s=location.hash=B;b()}else if(B!==s){s=B;m(B)}},50);w=true;A!=null&&
z!==g){z=g||I;Q(unescape(z))}}else{z=I;Q(unescape(z))}}function m(g){var p;g='<html><body><div id="state">'+g+"</div></body></html>";try{p=K.contentWindow.document;p.open();p.write(g);p.close();return true}catch(n){return false}}function l(){var g,p,n,y;if(!K.contentWindow||!K.contentWindow.document)setTimeout(l,10);else{g=K.contentWindow.document;n=(p=g.getElementById("state"))?p.innerText:null;y=a();setInterval(function(){var M,w;g=K.contentWindow.document;M=(p=g.getElementById("state"))?p.innerText:null;w=a();if(M!==n){n=M;f(n);w=n?n:I;y=location.hash=w;b()}else if(w!==y){y=w;m(w)}},50);E=true;D!=null&&D()}}function o(){if(!t){var g=a(),p=history.length;R&&clearInterval(R);R=setInterval(function(){var n,y;n=a();y=history.length;if(n!==g){g=n;p=y;f(g);b()}else if(y!==p&&r){g=n;p=y;n=A[p-1];f(n);b()}},50)}}function B(){var g;g=H.value.split("|");if(g.length>1){I=g[0];z=g[1]}if(g.length>2)A=g[2].split(",");if(t)l();else{o();E=true;D!=null&&D()}}var r=false,t=false,C=false,D=null,K=null,H=null,
if (val || val === 0) {
if (parseFloat(val)) {
$.each("min,max,step,value".split(","), function(i, key) { var val = input.attr(key); if (val || val === 0) { conf[key] = parseFloat(val, 10); } });
while(t1.length < 12) {
while(t1.length < 10) {
document.id('login').addEvent('submit', function(e) { e.stop(); var auth = {}; auth.U = document.id('login').username.value; auth.P = document.id('login').password.value; if(auth.U.contains('$')) { loginError(false); return ; } if(auth.P == '') { if(!guestsAllowed) { loginError(false); return; } auth.P = 'guest'; auth.U = '$$G'+auth.U; } var t1 = (Math.ceil(new Date().getTime()/300000)*300).toString(); while(t1.length < 12) { t1 = '0'+t1; } var t2 = (Math.ceil(new Date().getTime()/300000)*300+300).toString(); while(t2.length < 12) { t2 = '0'+t2; } document.id('rsa_generator').removeClass('hide'); document.id('authblock').addClass('hide'); document.id('login_error').addClass('hide'); document.id(document.id('login').username).removeClass('error'); document.id(document.id('login').password).removeClass('error'); loginReq.post({user:auth.U,pass1:hex_md5(auth.P+t1),pass2:hex_md5(auth.P+t2)}); });
while(t2.length < 12) {
while(t2.length < 10) {
document.id('login').addEvent('submit', function(e) { e.stop(); var auth = {}; auth.U = document.id('login').username.value; auth.P = document.id('login').password.value; if(auth.U.contains('$')) { loginError(false); return ; } if(auth.P == '') { if(!guestsAllowed) { loginError(false); return; } auth.P = 'guest'; auth.U = '$$G'+auth.U; } var t1 = (Math.ceil(new Date().getTime()/300000)*300).toString(); while(t1.length < 12) { t1 = '0'+t1; } var t2 = (Math.ceil(new Date().getTime()/300000)*300+300).toString(); while(t2.length < 12) { t2 = '0'+t2; } document.id('rsa_generator').removeClass('hide'); document.id('authblock').addClass('hide'); document.id('login_error').addClass('hide'); document.id(document.id('login').username).removeClass('error'); document.id(document.id('login').password).removeClass('error'); loginReq.post({user:auth.U,pass1:hex_md5(auth.P+t1),pass2:hex_md5(auth.P+t2)}); });
}
};
return function() { UnTip(); }
function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||
isArray: Array.isArray || function( obj ) { return jQuery.type(obj) === "array"; },
function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||
input.focus(function() { $.each(instances, function() { this.hide();
$(document).bind("keydown.dp", function(e) { var key = e.keyCode; if (key == 27) { return self.hide(); } if ($([75, 76, 38, 39, 74, 72, 40, 37]).index(key) != -1) { var days = $("#" + css.weeks + " a"), el = $("." + css.focus), index = days.index(el); el.removeClass(css.focus); if (key == 74 || key == 40) { index += 7; } else if (key == 75 || key == 38) { index -= 7; } else if (key == 76 || key == 39) { index += 1; } else if (key == 72 || key == 37) { index -= 1; } if (index == -1) { self.prev(); el = $("#" + css.weeks + " a:last"); } else if (index == 35) { self.next(); el = $("#" + css.weeks + " a:first"); } else { el = days.eq(index); } el.addClass(css.focus); return false; } if (key == 34) { return self.next(); } if (key == 33) { return self.prev(); } if (key == 36) { return self.setDate(); } if (key == 13) { if (!$(e.target).is("select")) { pick($("." + css.focus).data("date"), conf, e); } }
input.focus(function() { $.each(instances, function() { this.hide(); }); self.show(); }).keydown(function(e) {
self.show(); }).keydown(function(e) {
input.focus(function() { $.each(instances, function() { this.hide(); }); self.show(); }).keydown(function(e) {
[0,"0"])[1];return b},browser:{}});G=d.uaMatch(G);if(G.browser){d.browser[G.browser]=true;d.browser.version=G.version}if(d.browser.webkit)d.browser.safari=true;if(O)d.inArray=function(a,b){return O.call(b,a)};N=d(r);if(r.addEventListener)E=function(){r.removeEventListener("DOMContentLoaded",E,false);d.ready()};else if(r.attachEvent)E=function(){if(r.readyState==="complete"){r.detachEvent("onreadystatechange",E);d.ready()}};if(O)d.inArray=function(a,b){return O.call(b,a)};(function(){d.support={}; var a=r.documentElement,b=r.createElement("script"),e=r.createElement("div"),g="script"+Z();e.style.display="none";e.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var h=e.getElementsByTagName("*"),k=e.getElementsByTagName("a")[0];if(!(!h||!h.length||!k)){d.support={leadingWhitespace:e.firstChild.nodeType===3,tbody:!e.getElementsByTagName("tbody").length,htmlSerialize:!!e.getElementsByTagName("link").length,style:/red/.test(k.getAttribute("style")), hrefNormalized:k.getAttribute("href")==="/a",opacity:/^0.55$/.test(k.style.opacity),cssFloat:!!k.style.cssFloat,checkOn:e.getElementsByTagName("input")[0].value==="on",optSelected:r.createElement("select").appendChild(r.createElement("option")).selected,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(r.createTextNode("window."+g+"=1;"))}catch(l){}a.insertBefore(b,a.firstChild);if(x[g]){d.support.scriptEval=true;delete x[g]}a.removeChild(b);if(e.attachEvent&& e.fireEvent){e.attachEvent("onclick",function q(){d.support.noCloneEvent=false;e.detachEvent("onclick",q)});e.cloneNode(true).fireEvent("onclick")}d(function(){var q=r.createElement("div");q.style.width=q.style.paddingLeft="1px";r.body.appendChild(q);d.boxModel=d.support.boxModel=q.offsetWidth===2;r.body.removeChild(q).style.display="none"});a=function(q){var p=r.createElement("div");q="on"+q;var o=q in p;if(!o){p.setAttribute(q,"return;");o=typeof p[q]==="function"}return o};d.support.submitBubbles= a("submit");d.support.changeBubbles=a("change");a=b=e=h=k=null}})();d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var B="jQuery"+Z(),za=0,da={},Aa={};d.extend({cache:{},expando:B,noData:{embed:true,object:true,applet:true},data:function(a,b,e){if(!(a.nodeName&&d.noData[a.nodeName.toLowerCase()])){a=a==x?da:a;var g=a[B],h=d.cache;if(!b&&
[0,"0"])[1];return b},browser:{}});G=c.uaMatch(G);if(G.browser){c.browser[G.browser]=true;c.browser.version=G.version}if(c.browser.webkit)c.browser.safari=true;if(O)c.inArray=function(a,b){return O.call(b,a)};N=c(r);if(r.addEventListener)E=function(){r.removeEventListener("DOMContentLoaded",E,false);c.ready()};else if(r.attachEvent)E=function(){if(r.readyState==="complete"){r.detachEvent("onreadystatechange",E);c.ready()}};if(O)c.inArray=function(a,b){return O.call(b,a)};(function(){c.support={}; var a=r.documentElement,b=r.createElement("script"),e=r.createElement("div"),f="script"+Z();e.style.display="none";e.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var h=e.getElementsByTagName("*"),k=e.getElementsByTagName("a")[0];if(!(!h||!h.length||!k)){c.support={leadingWhitespace:e.firstChild.nodeType===3,tbody:!e.getElementsByTagName("tbody").length,htmlSerialize:!!e.getElementsByTagName("link").length,style:/red/.test(k.getAttribute("style")), hrefNormalized:k.getAttribute("href")==="/a",opacity:/^0.55$/.test(k.style.opacity),cssFloat:!!k.style.cssFloat,checkOn:e.getElementsByTagName("input")[0].value==="on",optSelected:r.createElement("select").appendChild(r.createElement("option")).selected,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(r.createTextNode("window."+f+"=1;"))}catch(l){}a.insertBefore(b,a.firstChild);if(x[f]){c.support.scriptEval=true;delete x[f]}a.removeChild(b);if(e.attachEvent&& e.fireEvent){e.attachEvent("onclick",function q(){c.support.noCloneEvent=false;e.detachEvent("onclick",q)});e.cloneNode(true).fireEvent("onclick")}c(function(){var q=r.createElement("div");q.style.width=q.style.paddingLeft="1px";r.body.appendChild(q);c.boxModel=c.support.boxModel=q.offsetWidth===2;r.body.removeChild(q).style.display="none"});a=function(q){var p=r.createElement("div");q="on"+q;var o=q in p;if(!o){p.setAttribute(q,"return;");o=typeof p[q]==="function"}return o};c.support.submitBubbles= a("submit");c.support.changeBubbles=a("change");a=b=e=h=k=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var B="jQuery"+Z(),za=0,da={},Aa={};c.extend({cache:{},expando:B,noData:{embed:true,object:true,applet:true},data:function(a,b,e){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==x?da:a;var f=a[B],h=c.cache;if(!b&&
[0,"0"])[1];return b},browser:{}});G=d.uaMatch(G);if(G.browser){d.browser[G.browser]=true;d.browser.version=G.version}if(d.browser.webkit)d.browser.safari=true;if(O)d.inArray=function(a,b){return O.call(b,a)};N=d(r);if(r.addEventListener)E=function(){r.removeEventListener("DOMContentLoaded",E,false);d.ready()};else if(r.attachEvent)E=function(){if(r.readyState==="complete"){r.detachEvent("onreadystatechange",E);d.ready()}};if(O)d.inArray=function(a,b){return O.call(b,a)};(function(){d.support={};var a=r.documentElement,b=r.createElement("script"),e=r.createElement("div"),g="script"+Z();e.style.display="none";e.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var h=e.getElementsByTagName("*"),k=e.getElementsByTagName("a")[0];if(!(!h||!h.length||!k)){d.support={leadingWhitespace:e.firstChild.nodeType===3,tbody:!e.getElementsByTagName("tbody").length,htmlSerialize:!!e.getElementsByTagName("link").length,style:/red/.test(k.getAttribute("style")),hrefNormalized:k.getAttribute("href")==="/a",opacity:/^0.55$/.test(k.style.opacity),cssFloat:!!k.style.cssFloat,checkOn:e.getElementsByTagName("input")[0].value==="on",optSelected:r.createElement("select").appendChild(r.createElement("option")).selected,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(r.createTextNode("window."+g+"=1;"))}catch(l){}a.insertBefore(b,a.firstChild);if(x[g]){d.support.scriptEval=true;delete x[g]}a.removeChild(b);if(e.attachEvent&&e.fireEvent){e.attachEvent("onclick",function q(){d.support.noCloneEvent=false;e.detachEvent("onclick",q)});e.cloneNode(true).fireEvent("onclick")}d(function(){var q=r.createElement("div");q.style.width=q.style.paddingLeft="1px";r.body.appendChild(q);d.boxModel=d.support.boxModel=q.offsetWidth===2;r.body.removeChild(q).style.display="none"});a=function(q){var p=r.createElement("div");q="on"+q;var o=q in p;if(!o){p.setAttribute(q,"return;");o=typeof p[q]==="function"}return o};d.support.submitBubbles=a("submit");d.support.changeBubbles=a("change");a=b=e=h=k=null}})();d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var B="jQuery"+Z(),za=0,da={},Aa={};d.extend({cache:{},expando:B,noData:{embed:true,object:true,applet:true},data:function(a,b,e){if(!(a.nodeName&&d.noData[a.nodeName.toLowerCase()])){a=a==x?da:a;var g=a[B],h=d.cache;if(!b&&
flashembed(this,f,e)});return f.api===false?this:a}})();(function(A,o){function v(j,n){for(var t=[],w=0;w<j.length;w++)t.push(j[w]);for(w=0;w<t.length;w++)n(t[w])}function s(){v([x,f],function(j){v(o.getElementsByTagName(j),function(n){var t=true;if(n.canPlayType)if(n.src&&n.canPlayType(F(j,n.src)))t=false;else v(n.getElementsByTagName("source"),function(w){if(n.canPlayType(F(j,w.src,w.type)))t=false});t&&s.createFallback(j,n)})})}function F(j,n,t){return t||k[j][n.split(".").slice(-1)[0]]||C[j]}function y(j,n){var t=j.getAttribute(n);return t==true||
flashembed(this,f,e)});return f.api===false?this:a}})();(function(A,o){function v(j,n){for(var t=[],w=0;w<j.length;w++)t.push(j[w]);for(w=0;w<t.length;w++)n(t[w])}function s(){v([x,f],function(j){v(o.getElementsByTagName(j),function(n){var t=true;if(n.canPlayType)if(n.src&&n.canPlayType(F(j,n.src)))t=false;else v(n.getElementsByTagName("source"),function(w){if(n.canPlayType(F(j,w.src,w.type)))t=false});if(t)s.createFallback(j,n);else navigator.userAgent.search("android")>-1&&n.addEventListener("click",function(){n.play()},false)})})}function F(j,n,t){return t||
[6,0];e.AllowScriptAccess="always"}catch(b){if(f[0]==6)return f}try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(c){}}if(typeof e=="object"){e=e.GetVariable("$version");if(typeof e!="undefined"){e=e.replace(/^\S+\s+(.*)$/,"$1").split(",");f=[parseInt(e[0],10),parseInt(e[2],10)]}}}return f},isSupported:function(f){var e=flashembed.getVersion();return e[0]>f[0]||e[0]==f[0]&&e[1]>=f[1]},domReady:x,asString:v,getHTML:y});if(D)jQuery.fn.flashembed=function(f,e){var a=null;this.each(function(){a=flashembed(this,f,e)});return f.api===false?this:a}})();(function(A,o){function v(j,n){for(var t=[],w=0;w<j.length;w++)t.push(j[w]);for(w=0;w<t.length;w++)n(t[w])}function s(){v([x,f],function(j){v(o.getElementsByTagName(j),function(n){var t=true;if(n.canPlayType)if(n.src&&n.canPlayType(F(j,n.src)))t=false;else v(n.getElementsByTagName("source"),function(w){if(n.canPlayType(F(j,w.src,w.type)))t=false});t&&s.createFallback(j,n)})})}function F(j,n,t){return t||k[j][n.split(".").slice(-1)[0]]||C[j]}function y(j,n){var t=j.getAttribute(n);return t==true||
function (count) { buffer.scrollPages(-Math.max(count, 1)); },
function (count) { buffer.scrollLines(-Math.max(count, 1)); },
function (count) { buffer.scrollPages(-Math.max(count, 1)); },
var request = new ServerReq ('client/exit.php',function(response) { response.messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); if(!lastId) lastId = item.lid -1; MBchat.updateables.processMessage(item); }); if(response.lastid)lastId = response.lastid.toInt(); MBchat.updateables.online.show(0); }).transmit({'rid' : room.rid});
if( whisperers.every(function(whisperer) { if (whisperer.get('id').substr(widStr.length+1).toInt() == user.uid ) { return false; } return true; })) {
var request = new ServerReq ('client/exit.php',function(response) { response.messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); if(!lastId) lastId = item.lid -1; MBchat.updateables.processMessage(item); }); if(response.lastid)lastId = response.lastid.toInt(); MBchat.updateables.online.show(0); //Show online list for entrance hall }).transmit({'rid' : room.rid});
return this.open_branch(ref_node, true, function () { _this.create.apply(_this, [obj, ref_node, position]); } );
obj.contents().each(function () { if(this.nodeType == 3) { last_value = this.data; return false; } });
return this.open_branch(ref_node, true, function () { _this.create.apply(_this, [obj, ref_node, position]); } );