rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 15
136k
|
---|---|---|
} if (text.match(/^M3\s+-\s*(.*)/m)) { if (item.DOI == text.match(/^M3\s+\-\s*(.*)/m)[1]) item.DOI = ""; | translator.setHandler("itemDone", function(obj, item) { if (text.match(/^L3\s+-\s*(.*)/m)) { item.DOI = text.match(/^L3\s+\-\s*(.*)/m)[1]; } if (text.match(/^DO\s+-\s*(.*)/m)) { item.DOI = text.match(/^DO\s+-\s*(.*)/m)[1]; } if (text.match(/^T1\s+-/m)) { item.title = text.match(/^T1\s+-\s*(.*)/m)[1]; } //item.itemType = "journalArticle"; item.url = false; // RIS translator tries to download the link in "UR" this leads to unhappyness item.attachments = []; item.complete(); }); |
|
setTimeout(function(){ _callPrint(element); }, 50); | return this.each(function () { var opts = $.meta ? $.extend({}, mainOptions, $(this).data()) : mainOptions; _printElement($(this), opts); }); | setTimeout(function(){ _callPrint(element); }, 50); |
function(a,b){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15);else{var e=document.createElement("link");e.setAttribute("type","text/css");e.setAttribute("href",a);e.setAttribute("type","text/css");e.setAttribute("rel","stylesheet");b!=""&&b!="all"&&e.setAttribute("media",b);document.getElementsByTagName("head")[0].appendChild(e)}};this.windowSize=function(){var a,b;if(typeof window.innerWidth==="number"){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth; | this.addStyleSheet=function(a,b){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15);else{var e=document.createElement("link");e.setAttribute("type","text/css");e.setAttribute("href",a);e.setAttribute("type","text/css");e.setAttribute("rel","stylesheet");b!=""&&b!="all"&&e.setAttribute("media",b);document.getElementsByTagName("head")[0].appendChild(e)}};this.windowSize=function(){var a,b;if(typeof window.innerWidth==="number"){a=window.innerWidth;b=window.innerHeight}else{a= | function(a,b){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15);else{var e=document.createElement("link");e.setAttribute("type","text/css");e.setAttribute("href",a);e.setAttribute("type","text/css");e.setAttribute("rel","stylesheet");b!=""&&b!="all"&&e.setAttribute("media",b);document.getElementsByTagName("head")[0].appendChild(e)}};this.windowSize=function(){var a,b;if(typeof window.innerWidth==="number"){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth; |
var title = Zotero.Utilities.cleanString(xml..title[0].text().toString()); | var title = Zotero.Utilities.trimInternal(xml..title[0].text().toString()); | Zotero.Utilities.HTTP.doGet(uris, function(text) { text = text.replace(/<\?xml[^>]*\?>/, ""); var xml = new XML(text); var newItem = new Zotero.Item("artwork"); var title = ""; if (xml..title.length()){ var title = Zotero.Utilities.cleanString(xml..title[0].text().toString()); if (title == ""){ title = " "; } newItem.title = title; } |
translator.setHandler("itemDone", function(obj, item) { | Zotero.Utilities.HTTP.doGet(newUrl, function(text) { var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); Zotero.debug(text); translator.setHandler("itemDone", function(obj, item) { | 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 = newAttachments.shift(); item.complete(); }); |
item.attachments = newAttachments.shift(); | 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; } | 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 = newAttachments.shift(); item.complete(); }); |
translator.translate(); }); | 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 = newAttachments.shift(); item.complete(); }); |
|
$(link).after('<a href="#">Has been clicked</a>'); | $(link).after('<a id="has-been-clicked" href="#">Has been clicked</a>'); | setTimeout(function() { $(link).after('<a href="#">Has been clicked</a>'); $(link).after('<input type="submit" value="New Here">'); $(link).after('<input type="text" id="new_field">'); $('#change').remove(); }, 500); |
function(result) { result.checker = NULL_CHECKER; | function() { SET(NULL_CHECKER); | function(result) { result.checker = NULL_CHECKER; BigInteger.log( "stepping_fromNumber1.2.1.1: calling stepping_isProbablePrime" ); return self.stepping_isProbablePrime( certainty ); }, |
$(editor.getContainer()).removeClass('expanded'); | editor.onDeactivate.add(function(editor, otherEditor) { // remove the class $(editor.getContainer()).removeClass('expanded'); // show click to edit $(editor.getContainer()).siblings('.clickToEdit').show(); // check the content jsBackend.tinyMCE.checkContent(editor); }); |
|
if(document.styleSheets)for(var e=0;e<document.styleSheets.length;e++){var k=document.styleSheets[e],i=0,n=false;do{if((n=k.cssRules?k.cssRules[i]:k.rules[i])&&n.selectorText)if(n.selectorText.toLowerCase()==a)if(b=="delete"){k.cssRules?k.deleteRule(i):k.removeRule(i);return true}else return n;++i}while(n)}return false};this.removeCssRule=function(a){return g.getCssRule(a,"delete")};this.addStyleSheet=function(a,b){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15); | if(document.styleSheets)for(var e=0;e<document.styleSheets.length;e++){var k=document.styleSheets[e],i=0,n=false;do{if((n=k.cssRules?k.cssRules[i]:k.rules[i])&&n.selectorText)if(n.selectorText.toLowerCase()==a)if(b=="delete"){k.cssRules?k.deleteRule(i):k.removeRule(i);return true}else return n;++i}while(n)}return false};this.removeCssRule=function(a){return h.getCssRule(a,"delete")};this.addStyleSheet=function(a,b){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15); | if(document.styleSheets)for(var e=0;e<document.styleSheets.length;e++){var k=document.styleSheets[e],i=0,n=false;do{if((n=k.cssRules?k.cssRules[i]:k.rules[i])&&n.selectorText)if(n.selectorText.toLowerCase()==a)if(b=="delete"){k.cssRules?k.deleteRule(i):k.removeRule(i);return true}else return n;++i}while(n)}return false};this.removeCssRule=function(a){return g.getCssRule(a,"delete")};this.addStyleSheet=function(a,b){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15); |
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, | F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=k-d.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function h(e,k,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){j(e,k,r)},n,l,m,0,0)}function g(e,k,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(t.rows[0].childNodes[0], | 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, |
document.addEventListener("DOMNodeInserted", (function () { findTextAreas(); | document.addEventListener("DOMNodeInserted", (function (ev) { findTextAreasIn(ev.target); | document.addEventListener("DOMNodeInserted", (function () { findTextAreas(); return true;}), false); |
else { $(document).find("link ").filter(function() { return $(this).attr("rel").toLowerCase() == "stylesheet"; }).each(function() { html.push('<link type="text/css" rel="stylesheet" href="' + $(this).attr("href") + '" >'); }); } | function($){$.fn.printElement=function(options){var mainOptions=$.extend({},$.fn.printElement.defaults,options);if(mainOptions.printMode=='iframe'){if($.browser.opera||(/chrome/.test(navigator.userAgent.toLowerCase())))mainOptions.printMode='popup';}$("[id^='printElement_']").remove();return this.each(function(){var opts=$.meta?$.extend({},mainOptions,$this.data()):mainOptions;_printElement($(this),opts);});};$.fn.printElement.defaults={printMode:'iframe',pageTitle:'',overrideElementCSS:null,printBodyOptions:{styleToAdd:'padding:10px;margin:10px;',classNameToAdd:''},leaveOpen:false,iframeElementOptions:{styleToAdd:'border:none;position:absolute;width:0px;height:0px;bottom:0px;left:0px;',classNameToAdd:''}};$.fn.printElement.cssElement={href:'',media:''};function _printElement(element,opts){var html=_getMarkup(element,opts);var popupOrIframe=null;var documentToWriteTo=null;if(opts.printMode.toLowerCase()=='popup'){popupOrIframe=window.open('about:blank','printElementWindow','width=650,height=440,scrollbars=yes');documentToWriteTo=popupOrIframe.document;}else{var printElementID="printElement_"+(Math.round(Math.random()*99999)).toString();var iframe=document.createElement('IFRAME');$(iframe).attr({style:opts.iframeElementOptions.styleToAdd,id:printElementID,className:opts.iframeElementOptions.classNameToAdd,frameBorder:0,scrolling:'no',src:'about:blank'});document.body.appendChild(iframe);documentToWriteTo=(iframe.contentWindow||iframe.contentDocument);if(documentToWriteTo.document)documentToWriteTo=documentToWriteTo.document;iframe=document.frames?document.frames[printElementID]:document.getElementById(printElementID);popupOrIframe=iframe.contentWindow||iframe;}focus();documentToWriteTo.open();documentToWriteTo.write(html);documentToWriteTo.close();_callPrint(popupOrIframe);};function _callPrint(element){if(element&&element.printPage)element.printPage();else setTimeout(function(){_callPrint(element);},50);}function _getElementHTMLIncludingFormElements(element){var $element=$(element);$(":checked",$element).each(function(){this.setAttribute('checked','checked');});$("input[type='text']",$element).each(function(){this.setAttribute('value',$(this).val());});$("select",$element).each(function(){var $select=$(this);$("option",$select).each(function(){if($select.val()==$(this).val())this.setAttribute('selected','selected');});});$("textarea",$element).each(function(){var value=$(this).attr('value');if($.browser.mozilla)this.firstChild.textContent=value;else this.innerHTML=value;});var elementHtml=$('<div></div>').append($element.clone()).html();return elementHtml;}function _getBaseHref(){return window.location.protocol+" | else { $(document).find("link ").filter(function() { return $(this).attr("rel").toLowerCase() == "stylesheet"; }).each(function() { html.push('<link type="text/css" rel="stylesheet" href="' + $(this).attr("href") + '" >'); }); } |
++k}while(o)}return false};this.removeCssRule=function(a){return g.getCssRule(a,"delete")};this.addStyleSheet=function(a,b){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15);else{var f=document.createElement("link");f.setAttribute("type","text/css");f.setAttribute("href",a);f.setAttribute("type","text/css");f.setAttribute("rel","stylesheet");b!=""&&b!="all"&&f.setAttribute("media",b);document.getElementsByTagName("head")[0].appendChild(f)}};this.windowSize=function(){var a, | do{o=null;if(h.cssRules)o=h.cssRules[k];else if(h.rules)o=h.rules[k];if(o&&o.selectorText)if(o.selectorText.toLowerCase()==a)if(b=="delete"){h.cssRules?h.deleteRule(k):h.removeRule(k);return true}else return o;++k}while(o)}return false};this.removeCssRule=function(a){return g.getCssRule(a,"delete")};this.addStyleSheet=function(a,b){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15);else{var f=document.createElement("link");f.setAttribute("type","text/css");f.setAttribute("href", | ++k}while(o)}return false};this.removeCssRule=function(a){return g.getCssRule(a,"delete")};this.addStyleSheet=function(a,b){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15);else{var f=document.createElement("link");f.setAttribute("type","text/css");f.setAttribute("href",a);f.setAttribute("type","text/css");f.setAttribute("rel","stylesheet");b!=""&&b!="all"&&f.setAttribute("media",b);document.getElementsByTagName("head")[0].appendChild(f)}};this.windowSize=function(){var a, |
false;do{if((o=m.cssRules?m.cssRules[l]:m.rules[l])&&o.selectorText)if(o.selectorText.toLowerCase()==a)if(b=="delete"){m.cssRules?m.deleteRule(l):m.removeRule(l);return true}else return o;++l}while(o)}return false};this.removeCssRule=function(a){return k.getCssRule(a,"delete")};this.addStyleSheet=function(a){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15);else{var b=document.createElement("link");b.setAttribute("type","text/css");b.setAttribute("href",a);b.setAttribute("type", | m.deleteRule(l):m.removeRule(l);return true}else return n;++l}while(n)}return false};this.removeCssRule=function(a){return k.getCssRule(a,"delete")};this.addStyleSheet=function(a){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15);else{var b=document.createElement("link");b.setAttribute("type","text/css");b.setAttribute("href",a);b.setAttribute("type","text/css");b.setAttribute("rel","stylesheet");document.getElementsByTagName("head")[0].appendChild(b)}};this.windowSize= | false;do{if((o=m.cssRules?m.cssRules[l]:m.rules[l])&&o.selectorText)if(o.selectorText.toLowerCase()==a)if(b=="delete"){m.cssRules?m.deleteRule(l):m.removeRule(l);return true}else return o;++l}while(o)}return false};this.removeCssRule=function(a){return k.getCssRule(a,"delete")};this.addStyleSheet=function(a){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15);else{var b=document.createElement("link");b.setAttribute("type","text/css");b.setAttribute("href",a);b.setAttribute("type", |
while(t1.length < 12) { | while(t1.length < 10) { | window.addEvent('domready',function () { 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)}); }); // This initial request will see if it can authenticate without needing to put up the form - we also want to verify the server loginReq.post({user:'$$$',pass1:hex_md5(remoteKey1),pass2:hex_md5(remoteKey2),trial:encCheckNo.toString(10)}); confirmTimeout.delay(30000); //give server 30 seconds to come back with correct response. }); |
while(t2.length < 12) { | while(t2.length < 10) { | window.addEvent('domready',function () { 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)}); }); // This initial request will see if it can authenticate without needing to put up the form - we also want to verify the server loginReq.post({user:'$$$',pass1:hex_md5(remoteKey1),pass2:hex_md5(remoteKey2),trial:encCheckNo.toString(10)}); confirmTimeout.delay(30000); //give server 30 seconds to come back with correct response. }); |
} | }; | return function() { Tip(group.msDescription); } |
tune.abc += directives; | tune.abc = directives + tune.abc; | This.tunes.each(function(tune) { var end = tune.abc.indexOf('\n\n'); if (end > 0) tune.abc = tune.abc.substring(0, end); tune.abc += directives; }); |
this.otherchildren.each(function(child) { child.draw(printer,10,width); | this.elemset.mouseup(function (e) { printer.notifySelect(self); | this.otherchildren.each(function(child) { child.draw(printer,10,width); }); |
b){return d.each(this,a,b)},ready:function(a){d.bindReady();if(d.isReady)a.call(r,d);else H&&H.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(I.apply(this,arguments),"slice",I.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,e){return a.call(b,e,b)}))},end:function(){return this.prevObject||d(null)},push:V,sort:[].sort, | b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(r,c);else H&&H.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(I.apply(this,arguments),"slice",I.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(b,e){return a.call(b,e,b)}))},end:function(){return this.prevObject||c(null)},push:V,sort:[].sort, | b){return d.each(this,a,b)},ready:function(a){d.bindReady();if(d.isReady)a.call(r,d);else H&&H.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(I.apply(this,arguments),"slice",I.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,e){return a.call(b,e,b)}))},end:function(){return this.prevObject||d(null)},push:V,sort:[].sort, |
mail.selectMessage(function (msg) msg.mime2DecodedAuthor.toLowerCase().indexOf(author) == 0, true, true, true, count); | function (count) { try { let author = gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor.toLowerCase(); mail.selectMessage(function (msg) msg.mime2DecodedAuthor.toLowerCase().indexOf(author) == 0, true, true, true, count); } catch (e) { liberator.beep(); } }, | mail.selectMessage(function (msg) msg.mime2DecodedAuthor.toLowerCase().indexOf(author) == 0, true, true, true, count); |
whisper.getElement('form').addEvent('submit', function(e) { e.stop(); whisperSubmit(whisper,wid); | closeBox.addEvent('click', function(e) { leaveWhisper.transmit({'wid': wid}); | whisper.getElement('form').addEvent('submit', function(e) { e.stop(); whisperSubmit(whisper,wid); }); |
div.addEvent('keydown', function(e) { if(!e.control) return; if(e.key == 'w') { e.stop(); var whisperBoxes = $$('.whisperBox'); if (whisperBoxes.every(function(whisperBox,i) { var widStr = whisperBox.get('id'); var whisperers = whisperBox.getElement('.whisperList').getChildren(); if (whisperers.length == 1) { if (whisperers[0].get('id').substr(widStr.length+1).toInt() == user.uid) { return false; } } return true; })){ var getNewWhisperReq = new ServerReq('client/newwhisper.php',function(response) { if(response.wid != 0) { var user = response.user user.uid = user.uid.toInt(); var whisper = createWhisperBox(response.wid.toInt(),user); } }); getNewWhisperReq.transmit({'wuid':user.uid}); } } | users.each(function(user) { user.uid = user.uid.toInt(); addUser(user); | div.addEvent('keydown', function(e) { if(!e.control) return; if(e.key == 'w') { e.stop(); var whisperBoxes = $$('.whisperBox'); if (whisperBoxes.every(function(whisperBox,i) { var widStr = whisperBox.get('id'); var whisperers = whisperBox.getElement('.whisperList').getChildren(); //gets users in whisper if (whisperers.length == 1) { //we only want to worry about this if only other person if (whisperers[0].get('id').substr(widStr.length+1).toInt() == user.uid) { return false; } } return true; })){ //If we get here we have not found that we already in a one on one whisper with this person, so now we have to create a new Whisper var getNewWhisperReq = new ServerReq('client/newwhisper.php',function(response) { if(response.wid != 0) { var user = response.user user.uid = user.uid.toInt(); var whisper = createWhisperBox(response.wid.toInt(),user); } }); getNewWhisperReq.transmit({'wuid':user.uid}); } } }); |
lazy_check(); | function() { $("#timespan-menu li").each(function() { $(this).removeClass("selected"); }); var timespan = $(this).html(); if (!$("li.graph-image").hasClass(timespan)) { create_graph_list(timespan, $graph_json[timespan]); } $("li.graph-image").hide(); $("li.graph-image." + timespan).show(); $("#timespan-menu li:contains(" + timespan + ")").addClass("selected"); }); |
|
$('#graph-view').change(function() { var selected_view = $(this).val(); if (selected_view == "grid") { $('#graph-container .sortable').css( { 'list-style-type' : 'none' | function() { $("#timespan-menu li").each(function() { $(this).removeClass("selected"); }); var timespan = $(this).html(); if (!$("li.graph-image").hasClass(timespan)) { create_graph_list(timespan, $graph_json[timespan]); } $("li.graph-image").hide(); $("li.graph-image." + timespan).show(); $("#timespan-menu li:contains(" + timespan + ")").addClass("selected"); | $('#graph-view').change(function() { var selected_view = $(this).val(); if (selected_view == "grid") { $('#graph-container .sortable').css( { 'list-style-type' : 'none' }); $('#graph-container .sortable li').css( { 'float' : 'left', 'width' : '200px' }); $('#graph-container .sortable li img').css('width', '200px'); $('li.gc .gc-menu').css( { 'height' : '60px', 'width' : '120px' }); } else { // selected_view == 'list' $('#graph-container .sortable li').css( { 'float' : 'none', 'width' : '100%' }); $('#graph-container .sortable li img').css('width', ''); $('li.gc .gc-menu').css( { 'height' : '120px', 'width' : '60px' }); } }); |
$('#graph-container .sortable li').css( { 'float' : 'left', 'width' : '200px' }); $('#graph-container .sortable li img').css('width', '200px'); $('li.gc .gc-menu').css( { 'height' : '60px', 'width' : '120px' }); } else { $('#graph-container .sortable li').css( { 'float' : 'none', 'width' : '100%' }); $('#graph-container .sortable li img').css('width', ''); $('li.gc .gc-menu').css( { 'height' : '120px', 'width' : '60px' }); } }); | $('#graph-view').change(function() { var selected_view = $(this).val(); if (selected_view == "grid") { $('#graph-container .sortable').css( { 'list-style-type' : 'none' }); $('#graph-container .sortable li').css( { 'float' : 'left', 'width' : '200px' }); $('#graph-container .sortable li img').css('width', '200px'); $('li.gc .gc-menu').css( { 'height' : '60px', 'width' : '120px' }); } else { // selected_view == 'list' $('#graph-container .sortable li').css( { 'float' : 'none', 'width' : '100%' }); $('#graph-container .sortable li img').css('width', ''); $('li.gc .gc-menu').css( { 'height' : '120px', 'width' : '60px' }); } }); |
|
closeBox.addEvent('click', function(e) { leaveWhisper.transmit({'wid': wid}); | whisper.getElement('form').addEvent('submit', function(e) { e.stop(); whisperSubmit(whisper,wid); | closeBox.addEvent('click', function(e) { leaveWhisper.transmit({'wid': wid}); }); |
div.addEvent('keydown', function(e) { if(!e.control) return; if(e.key == 'w') { e.stop(); var whisperBoxes = $$('.whisperBox'); if (whisperBoxes.every(function(whisperBox,i) { var widStr = whisperBox.get('id'); var whisperers = whisperBox.getElement('.whisperList').getChildren(); if (whisperers.length == 1) { if (whisperers[0].get('id').substr(widStr.length+1).toInt() == user.uid) { return false; } } return true; })){ var getNewWhisperReq = new ServerReq('newwhisper.php',function(response) { if(response.wid != 0) { var user = response.user user.uid = user.uid.toInt(); var whisper = createWhisperBox(response.wid.toInt(),user); } }); getNewWhisperReq.transmit({'wuid':user.uid}); } } | span.addEvent('mousedown',function (e) { MBchat.updateables.whispers.whisperWith(user,span,e); | div.addEvent('keydown', function(e) { if(!e.control) return; if(e.key == 'w') { e.stop(); var whisperBoxes = $$('.whisperBox'); if (whisperBoxes.every(function(whisperBox,i) { var widStr = whisperBox.get('id'); var whisperers = whisperBox.getElement('.whisperList').getChildren(); //gets users in whisper if (whisperers.length == 1) { //we only want to worry about this if only other person if (whisperers[0].get('id').substr(widStr.length+1).toInt() == user.uid) { return false; } } return true; })){ //If we get here we have not found that we already in a one on one whisper with this person, so now we have to create a new Whisper var getNewWhisperReq = new ServerReq('newwhisper.php',function(response) { if(response.wid != 0) { var user = response.user user.uid = user.uid.toInt(); var whisper = createWhisperBox(response.wid.toInt(),user); } }); getNewWhisperReq.transmit({'wuid':user.uid}); } } }); |
function (args) { let doc = window.content.document; let chosenData = null; let filename = args[0]; if (filename) { let file = io.File(filename); liberator.assert(!file.exists() || args.bang, "E13: File exists (add ! to override)"); chosenData = { file: file, uri: window.makeURI(doc.location.href, doc.characterSet) }; } options.setPref("browser.download.lastDir", io.getCurrentDirectory().path); try { var contentDisposition = window.content .QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci.nsIDOMWindowUtils) .getDocumentMetadata("content-disposition"); } catch (e) {} window.internalSave(doc.location.href, doc, null, contentDisposition, doc.contentType, false, null, chosenData, doc.referrer ? window.makeURI(doc.referrer) : null, true); }, | function () { tabs.stop(config.browser.mCurrentTab); }, | function (args) { let doc = window.content.document; let chosenData = null; let filename = args[0]; if (filename) { let file = io.File(filename); liberator.assert(!file.exists() || args.bang, "E13: File exists (add ! to override)"); chosenData = { file: file, uri: window.makeURI(doc.location.href, doc.characterSet) }; } // if browser.download.useDownloadDir = false then the "Save As" // dialog is used with this as the default directory // TODO: if we're going to do this shouldn't it be done in setCWD or the value restored? options.setPref("browser.download.lastDir", io.getCurrentDirectory().path); try { var contentDisposition = window.content .QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci.nsIDOMWindowUtils) .getDocumentMetadata("content-disposition"); } catch (e) {} window.internalSave(doc.location.href, doc, null, contentDisposition, doc.contentType, false, null, chosenData, doc.referrer ? window.makeURI(doc.referrer) : null, true); }, |
this._load_branch(obj, function () { _this.open_branch(obj, disable_animation, callback); }); | _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:eq(0)").replaceWith($("<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"); _this.open_branch.apply(_this, [obj]); if(callback) callback.call(); }); }); | this._load_branch(obj, function () { _this.open_branch(obj, disable_animation, callback); }); |
},isArray:function(f){return!!f&&f instanceof Array;},isEmpty:function(f){for(var g in f){if(f.hasOwnProperty(g))return false;}return true;},cssStyleToDomStyle:(function(){var f=document.createElement('div').style,g=typeof f.cssFloat!='undefined'?'cssFloat':typeof f.styleFloat!='undefined'?'styleFloat':'float';return function(h){if(h=='float')return g;else return h.replace(/-./g,function(i){return i.substr(1).toUpperCase();});};})(),buildStyleHtml:function(f){f=[].concat(f);var g,h=[];for(var i=0;i<f.length;i++){g=f[i];if(/@import|[{}]/.test(g))h.push('<style>'+g+'</style>');else h.push('<link type="text/css" rel=stylesheet href="'+g+'">');}return h.join('');},htmlEncode:function(f){var g=function(k){var l=new d.element('span');l.setText(k);return l.getHtml();},h=g('\n').toLowerCase()=='<br>'?function(k){return g(k).replace(/<br>/gi,'\n');}:g,i=g('>')=='>'?function(k){return h(k).replace(/>/g,'>');}:h,j=g(' ')==' '?function(k){return i(k).replace(/ /g,' ');}:i;this.htmlEncode=j;return this.htmlEncode(f);},htmlEncodeAttr:function(f){return f.replace(/"/g,'"').replace(/</g,'<').replace(/>/,'>');},escapeCssSelector:function(f){return f.replace(/[\s#:.,$*^\[\]()~=+>]/g,'\\$&');},getNextNumber:(function(){var f=0;return function(){return++f;};})(),override:function(f,g){return g(f);},setTimeout:function(f,g,h,i,j){if(!j)j=window;if(!h)h=j;return j.setTimeout(function(){if(i)f.apply(h,[].concat(i));else f.apply(h);},g||0);},trim:(function(){var f=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(g){return g.replace(f,'');};})(),ltrim:(function(){var f=/^[ \t\n\r]+/g;return function(g){return g.replace(f,'');};})(),rtrim:(function(){var f=/[ \t\n\r]+$/g;return function(g){return g.replace(f,'');};})(),indexOf:Array.prototype.indexOf?function(f,g){return f.indexOf(g);}:function(f,g){for(var h=0,i=f.length;h<i;h++){if(f[h]===g)return h;}return-1;},bind:function(f,g){return function(){return f.apply(g,arguments);};},createClass:function(f){var g=f.$,h=f.base,i=f.privates||f._,j=f.proto,k=f.statics;if(i){var l=g;g=function(){var p=this;var m=p._||(p._={});for(var n in i){var o=i[n];m[n]=typeof o=='function'?a.tools.bind(o,p):o;}l.apply(p,arguments);};}if(h){g.prototype=this.prototypedCopy(h.prototype);g.prototype['constructor']=g;g.prototype.base=function(){this.base=h.prototype.base;h.apply(this,arguments);this.base=arguments.callee;};}if(j)this.extend(g.prototype,j,true);if(k)this.extend(g,k,true);return g;},addFunction:function(f,g){return e.push(function(){f.apply(g||this,arguments); })-1;},removeFunction:function(f){e[f]=null;},callFunction:function(f){var g=e[f];return g&&g.apply(window,Array.prototype.slice.call(arguments,1));},cssLength:(function(){var f=/^\d+(?:\.\d+)?$/;return function(g){return g+(f.test(g)?'px':'');};})(),repeat:function(f,g){return new Array(g+1).join(f);},tryThese:function(){var f;for(var g=0,h=arguments.length;g<h;g++){var i=arguments[g];try{f=i();break;}catch(j){}}return f;}};})();var e=a.tools;a.dtd=(function(){var f=e.extend,g={isindex:1,fieldset:1},h={input:1,button:1,select:1,textarea:1,label:1},i=f({a:1},h),j=f({iframe:1},i),k={hr:1,ul:1,menu:1,div:1,blockquote:1,noscript:1,table:1,center:1,address:1,dir:1,pre:1,h5:1,dl:1,h4:1,noframes:1,h6:1,ol:1,h1:1,h3:1,h2:1},l={ins:1,del:1,script:1,style:1},m=f({b:1,acronym:1,bdo:1,'var':1,'#':1,abbr:1,code:1,br:1,i:1,cite:1,kbd:1,u:1,strike:1,s:1,tt:1,strong:1,q:1,samp:1,em:1,dfn:1,span:1},l),n=f({sub:1,img:1,object:1,sup:1,basefont:1,map:1,applet:1,font:1,big:1,small:1},m),o=f({p:1},n),p=f({iframe:1},n,h),q={img:1,noscript:1,br:1,kbd:1,center:1,button:1,basefont:1,h5:1,h4:1,samp:1,h6:1,ol:1,h1:1,h3:1,h2:1,form:1,font:1,'#':1,select:1,menu:1,ins:1,abbr:1,label:1,code:1,table:1,script:1,cite:1,input:1,iframe:1,strong:1,textarea:1,noframes:1,big:1,small:1,span:1,hr:1,sub:1,bdo:1,'var':1,div:1,object:1,sup:1,strike:1,dir:1,map:1,dl:1,applet:1,del:1,isindex:1,fieldset:1,ul:1,b:1,acronym:1,a:1,blockquote:1,i:1,u:1,s:1,tt:1,address:1,q:1,pre:1,p:1,em:1,dfn:1},r=f({a:1},p),s={tr:1},t={'#':1},u=f({param:1},q),v=f({form:1},g,j,k,o),w={li:1},x={style:1,script:1},y={base:1,link:1,meta:1,title:1},z=f(y,x),A={head:1,body:1},B={html:1},C={address:1,blockquote:1,center:1,dir:1,div:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,menu:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1};return{$nonBodyContent:f(B,A,y),$block:C,$blockLimit:{body:1,div:1,td:1,th:1,caption:1,form:1},$inline:r,$body:f({script:1,style:1},C),$cdata:{script:1,style:1},$empty:{area:1,base:1,br:1,col:1,hr:1,img:1,input:1,link:1,meta:1,param:1},$listItem:{dd:1,dt:1,li:1},$list:{ul:1,ol:1,dl:1},$nonEditable:{applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1,param:1},$removeEmpty:{abbr:1,acronym:1,address:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},html:A,head:z,style:t,script:t,body:v,base:{},link:{},meta:{},title:t,col:{},tr:{td:1,th:1},img:{},colgroup:{col:1},noscript:v,td:v,br:{},th:v,center:v,kbd:r,button:f(o,k),basefont:{},h5:r,h4:r,samp:r,h6:r,ol:w,h1:r,h3:r,option:t,h2:r,form:f(g,j,k,o),select:{optgroup:1,option:1},font:r,ins:r,menu:w,abbr:r,label:r,table:{thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1},code:r,script:t,tfoot:s,cite:r,li:v,input:{},iframe:v,strong:r,textarea:t,noframes:v,big:r,small:r,span:r,hr:{},dt:r,sub:r,optgroup:{option:1},param:{},bdo:r,'var':r,div:v,object:u,sup:r,dd:v,strike:r,area:{},dir:w,map:f({area:1,form:1,p:1},g,l,k),applet:u,dl:{dt:1,dd:1},del:r,isindex:{},fieldset:f({legend:1},q),thead:s,ul:w,acronym:r,b:r,a:p,blockquote:v,caption:r,i:r,u:r,tbody:s,s:r,address:f(j,o),tt:r,legend:r,q:r,pre:f(m,i),p:r,em:r,dfn:r}; | g.prototype=f;return new g();},isArray:function(f){return!!f&&f instanceof Array;},isEmpty:function(f){for(var g in f){if(f.hasOwnProperty(g))return false;}return true;},cssStyleToDomStyle:(function(){var f=document.createElement('div').style,g=typeof f.cssFloat!='undefined'?'cssFloat':typeof f.styleFloat!='undefined'?'styleFloat':'float';return function(h){if(h=='float')return g;else return h.replace(/-./g,function(i){return i.substr(1).toUpperCase();});};})(),buildStyleHtml:function(f){f=[].concat(f);var g,h=[];for(var i=0;i<f.length;i++){g=f[i];if(/@import|[{}]/.test(g))h.push('<style>'+g+'</style>');else h.push('<link type="text/css" rel=stylesheet href="'+g+'">');}return h.join('');},htmlEncode:function(f){var g=function(k){var l=new d.element('span');l.setText(k);return l.getHtml();},h=g('\n').toLowerCase()=='<br>'?function(k){return g(k).replace(/<br>/gi,'\n');}:g,i=g('>')=='>'?function(k){return h(k).replace(/>/g,'>');}:h,j=g(' ')==' '?function(k){return i(k).replace(/ /g,' ');}:i;this.htmlEncode=j;return this.htmlEncode(f);},htmlEncodeAttr:function(f){return f.replace(/"/g,'"').replace(/</g,'<').replace(/>/g,'>');},escapeCssSelector:function(f){return f.replace(/[\s#:.,$*^\[\]()~=+>]/g,'\\$&');},getNextNumber:(function(){var f=0;return function(){return++f;};})(),getNextId:function(){return 'cke_'+this.getNextNumber();},override:function(f,g){return g(f);},setTimeout:function(f,g,h,i,j){if(!j)j=window;if(!h)h=j;return j.setTimeout(function(){if(i)f.apply(h,[].concat(i));else f.apply(h);},g||0);},trim:(function(){var f=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(g){return g.replace(f,'');};})(),ltrim:(function(){var f=/^[ \t\n\r]+/g;return function(g){return g.replace(f,'');};})(),rtrim:(function(){var f=/[ \t\n\r]+$/g;return function(g){return g.replace(f,'');};})(),indexOf:Array.prototype.indexOf?function(f,g){return f.indexOf(g);}:function(f,g){for(var h=0,i=f.length;h<i;h++){if(f[h]===g)return h;}return-1;},bind:function(f,g){return function(){return f.apply(g,arguments);};},createClass:function(f){var g=f.$,h=f.base,i=f.privates||f._,j=f.proto,k=f.statics;if(i){var l=g;g=function(){var p=this;var m=p._||(p._={});for(var n in i){var o=i[n];m[n]=typeof o=='function'?a.tools.bind(o,p):o;}l.apply(p,arguments);};}if(h){g.prototype=this.prototypedCopy(h.prototype);g.prototype['constructor']=g;g.prototype.base=function(){this.base=h.prototype.base;h.apply(this,arguments);this.base=arguments.callee;};}if(j)this.extend(g.prototype,j,true); | },isArray:function(f){return!!f&&f instanceof Array;},isEmpty:function(f){for(var g in f){if(f.hasOwnProperty(g))return false;}return true;},cssStyleToDomStyle:(function(){var f=document.createElement('div').style,g=typeof f.cssFloat!='undefined'?'cssFloat':typeof f.styleFloat!='undefined'?'styleFloat':'float';return function(h){if(h=='float')return g;else return h.replace(/-./g,function(i){return i.substr(1).toUpperCase();});};})(),buildStyleHtml:function(f){f=[].concat(f);var g,h=[];for(var i=0;i<f.length;i++){g=f[i];if(/@import|[{}]/.test(g))h.push('<style>'+g+'</style>');else h.push('<link type="text/css" rel=stylesheet href="'+g+'">');}return h.join('');},htmlEncode:function(f){var g=function(k){var l=new d.element('span');l.setText(k);return l.getHtml();},h=g('\n').toLowerCase()=='<br>'?function(k){return g(k).replace(/<br>/gi,'\n');}:g,i=g('>')=='>'?function(k){return h(k).replace(/>/g,'>');}:h,j=g(' ')==' '?function(k){return i(k).replace(/ /g,' ');}:i;this.htmlEncode=j;return this.htmlEncode(f);},htmlEncodeAttr:function(f){return f.replace(/"/g,'"').replace(/</g,'<').replace(/>/,'>');},escapeCssSelector:function(f){return f.replace(/[\s#:.,$*^\[\]()~=+>]/g,'\\$&');},getNextNumber:(function(){var f=0;return function(){return++f;};})(),override:function(f,g){return g(f);},setTimeout:function(f,g,h,i,j){if(!j)j=window;if(!h)h=j;return j.setTimeout(function(){if(i)f.apply(h,[].concat(i));else f.apply(h);},g||0);},trim:(function(){var f=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(g){return g.replace(f,'');};})(),ltrim:(function(){var f=/^[ \t\n\r]+/g;return function(g){return g.replace(f,'');};})(),rtrim:(function(){var f=/[ \t\n\r]+$/g;return function(g){return g.replace(f,'');};})(),indexOf:Array.prototype.indexOf?function(f,g){return f.indexOf(g);}:function(f,g){for(var h=0,i=f.length;h<i;h++){if(f[h]===g)return h;}return-1;},bind:function(f,g){return function(){return f.apply(g,arguments);};},createClass:function(f){var g=f.$,h=f.base,i=f.privates||f._,j=f.proto,k=f.statics;if(i){var l=g;g=function(){var p=this;var m=p._||(p._={});for(var n in i){var o=i[n];m[n]=typeof o=='function'?a.tools.bind(o,p):o;}l.apply(p,arguments);};}if(h){g.prototype=this.prototypedCopy(h.prototype);g.prototype['constructor']=g;g.prototype.base=function(){this.base=h.prototype.base;h.apply(this,arguments);this.base=arguments.callee;};}if(j)this.extend(g.prototype,j,true);if(k)this.extend(g,k,true);return g;},addFunction:function(f,g){return e.push(function(){f.apply(g||this,arguments);})-1;},removeFunction:function(f){e[f]=null;},callFunction:function(f){var g=e[f];return g&&g.apply(window,Array.prototype.slice.call(arguments,1));},cssLength:(function(){var f=/^\d+(?:\.\d+)?$/;return function(g){return g+(f.test(g)?'px':'');};})(),repeat:function(f,g){return new Array(g+1).join(f);},tryThese:function(){var f;for(var g=0,h=arguments.length;g<h;g++){var i=arguments[g];try{f=i();break;}catch(j){}}return f;}};})();var e=a.tools;a.dtd=(function(){var f=e.extend,g={isindex:1,fieldset:1},h={input:1,button:1,select:1,textarea:1,label:1},i=f({a:1},h),j=f({iframe:1},i),k={hr:1,ul:1,menu:1,div:1,blockquote:1,noscript:1,table:1,center:1,address:1,dir:1,pre:1,h5:1,dl:1,h4:1,noframes:1,h6:1,ol:1,h1:1,h3:1,h2:1},l={ins:1,del:1,script:1,style:1},m=f({b:1,acronym:1,bdo:1,'var':1,'#':1,abbr:1,code:1,br:1,i:1,cite:1,kbd:1,u:1,strike:1,s:1,tt:1,strong:1,q:1,samp:1,em:1,dfn:1,span:1},l),n=f({sub:1,img:1,object:1,sup:1,basefont:1,map:1,applet:1,font:1,big:1,small:1},m),o=f({p:1},n),p=f({iframe:1},n,h),q={img:1,noscript:1,br:1,kbd:1,center:1,button:1,basefont:1,h5:1,h4:1,samp:1,h6:1,ol:1,h1:1,h3:1,h2:1,form:1,font:1,'#':1,select:1,menu:1,ins:1,abbr:1,label:1,code:1,table:1,script:1,cite:1,input:1,iframe:1,strong:1,textarea:1,noframes:1,big:1,small:1,span:1,hr:1,sub:1,bdo:1,'var':1,div:1,object:1,sup:1,strike:1,dir:1,map:1,dl:1,applet:1,del:1,isindex:1,fieldset:1,ul:1,b:1,acronym:1,a:1,blockquote:1,i:1,u:1,s:1,tt:1,address:1,q:1,pre:1,p:1,em:1,dfn:1},r=f({a:1},p),s={tr:1},t={'#':1},u=f({param:1},q),v=f({form:1},g,j,k,o),w={li:1},x={style:1,script:1},y={base:1,link:1,meta:1,title:1},z=f(y,x),A={head:1,body:1},B={html:1},C={address:1,blockquote:1,center:1,dir:1,div:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,menu:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1};return{$nonBodyContent:f(B,A,y),$block:C,$blockLimit:{body:1,div:1,td:1,th:1,caption:1,form:1},$inline:r,$body:f({script:1,style:1},C),$cdata:{script:1,style:1},$empty:{area:1,base:1,br:1,col:1,hr:1,img:1,input:1,link:1,meta:1,param:1},$listItem:{dd:1,dt:1,li:1},$list:{ul:1,ol:1,dl:1},$nonEditable:{applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1,param:1},$removeEmpty:{abbr:1,acronym:1,address:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},html:A,head:z,style:t,script:t,body:v,base:{},link:{},meta:{},title:t,col:{},tr:{td:1,th:1},img:{},colgroup:{col:1},noscript:v,td:v,br:{},th:v,center:v,kbd:r,button:f(o,k),basefont:{},h5:r,h4:r,samp:r,h6:r,ol:w,h1:r,h3:r,option:t,h2:r,form:f(g,j,k,o),select:{optgroup:1,option:1},font:r,ins:r,menu:w,abbr:r,label:r,table:{thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1},code:r,script:t,tfoot:s,cite:r,li:v,input:{},iframe:v,strong:r,textarea:t,noframes:v,big:r,small:r,span:r,hr:{},dt:r,sub:r,optgroup:{option:1},param:{},bdo:r,'var':r,div:v,object:u,sup:r,dd:v,strike:r,area:{},dir:w,map:f({area:1,form:1,p:1},g,l,k),applet:u,dl:{dt:1,dd:1},del:r,isindex:{},fieldset:f({legend:1},q),thead:s,ul:w,acronym:r,b:r,a:p,blockquote:v,caption:r,i:r,u:r,tbody:s,s:r,address:f(j,o),tt:r,legend:r,q:r,pre:f(m,i),p:r,em:r,dfn:r}; |
d(l).val();if(b)return a;g.push(a)}}return g}if(ja.test(b.type)&&!d.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Ea,"")}return v}var q=d.isFunction(a);return this.each(function(p){var o=d(this),w=a;if(this.nodeType===1){if(q)w=a.call(this,p,o.val());if(typeof w==="number")w+="";if(d.isArray(w)&&ja.test(this.type))this.checked=d.inArray(o.val(),w)>=0;else if(d.nodeName(this,"select")){var A=d.makeArray(w);d("option",this).each(function(){this.selected= d.inArray(d(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=w}})}});d.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,e,g){if(!a||a.nodeType===3||a.nodeType===8)return v;if(g&&b in d.attrFn)return d(a)[b](e);g=a.nodeType!==1||!d.isXMLDoc(a);var h=e!==v;b=g&&d.props[b]||b;if(a.nodeType===1){var k=Fa.test(b);if(b in a&&g&&!k){if(h){if(b==="type"&&Ga.test(a.nodeName)&&a.parentNode)throw"type property can't be changed"; | this[e];if(h.nodeType===1&&h.className)if(a){for(var k=(" "+h.className+" ").replace(ia," "),l=0,q=b.length;l<q;l++)k=k.replace(" "+b[l]+" "," ");h.className=k.substring(1,k.length-1)}else h.className=""}return this},toggleClass:function(a,b){var e=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(h){var k=c(this);k.toggleClass(a.call(this,h,k.attr("class"),b),b)});return this.each(function(){if(e==="string")for(var h,k=0,l=c(this),q=b,p=a.split(W);h=p[k++];){q=f?q:!l.hasClass(h); l[q?"addClass":"removeClass"](h)}else if(e==="undefined"||e==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,e=this.length;b<e;b++)if((" "+this[b].className+" ").replace(ia," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===v){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b, | d(l).val();if(b)return a;g.push(a)}}return g}if(ja.test(b.type)&&!d.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Ea,"")}return v}var q=d.isFunction(a);return this.each(function(p){var o=d(this),w=a;if(this.nodeType===1){if(q)w=a.call(this,p,o.val());if(typeof w==="number")w+="";if(d.isArray(w)&&ja.test(this.type))this.checked=d.inArray(o.val(),w)>=0;else if(d.nodeName(this,"select")){var A=d.makeArray(w);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=w}})}});d.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,e,g){if(!a||a.nodeType===3||a.nodeType===8)return v;if(g&&b in d.attrFn)return d(a)[b](e);g=a.nodeType!==1||!d.isXMLDoc(a);var h=e!==v;b=g&&d.props[b]||b;if(a.nodeType===1){var k=Fa.test(b);if(b in a&&g&&!k){if(h){if(b==="type"&&Ga.test(a.nodeName)&&a.parentNode)throw"type property can't be changed"; |
$('#messaging .formMessage .iconClose').live('click', function(evt) { evt.preventDefault(); jsBackend.messages.hide($($(this).parents('.formMessage'))); | $('.datafilter tbody .options').each(function() { if($(this).height() > tallest) tallest = $(this).height(); | $('#messaging .formMessage .iconClose').live('click', function(evt) { evt.preventDefault(); jsBackend.messages.hide($($(this).parents('.formMessage'))); }); |
function () { commandline.open(":", "mail -subject=", modes.EX); }); | mail.selectMessage(function (msg) msg.mime2DecodedAuthor.toLowerCase().indexOf(author) == 0, true, true, true, count); | function () { commandline.open(":", "mail -subject=", modes.EX); }); |
whisper.addEvent('keydown',function(e) { if(!e.alt) return; switch (e.key) { case 'p' : if (room.type != 'M' || (me.mod != 'M' && me.role != 'H' && me.role != 'G' && me.role !='S')) { e.stop(); var boundPrivateBox = goPrivate.bind(privateBox); boundPrivateBox(); } break; case 's' : e.stop(); whisperSubmit(whisper,wid); break; case 'x' : e.stop(); leaveWhisper.transmit({'wid': wid}); break; default: break; } | whisper.getElement('form').addEvent('submit', function(e) { e.stop(); whisperSubmit(whisper,wid); | whisper.addEvent('keydown',function(e) { if(!e.alt) return; switch (e.key) { case 'p' : if (room.type != 'M' || (me.mod != 'M' && me.role != 'H' && me.role != 'G' && me.role !='S')) { e.stop(); var boundPrivateBox = goPrivate.bind(privateBox); boundPrivateBox(); } break; case 's' : e.stop(); whisperSubmit(whisper,wid); break; case 'x' : e.stop(); leaveWhisper.transmit({'wid': wid}); break; default: break; } }); |
if (whisperBoxes.every(function(whisperBox,i) { var widStr = whisperBox.get('id'); var whisperers = whisperBox.getElement('.whisperList').getChildren(); if (whisperers.length == 1) { if (whisperers[0].get('id').substr(widStr.length+1).toInt() == user.uid) { return false; } } return true; })){ | users.each( function(user) { if (fellowWhisperers.some(function(item){ return this.get('id').substr(1) == item.get('id').substr(whisperBox.get('id').length+1); },user)) { user.addClass('priv'); } }); | if (whisperBoxes.every(function(whisperBox,i) { var widStr = whisperBox.get('id'); var whisperers = whisperBox.getElement('.whisperList').getChildren(); //gets users in whisper if (whisperers.length == 1) { //we only want to worry about this if only other person if (whisperers[0].get('id').substr(widStr.length+1).toInt() == user.uid) { return false; } } return true; })){ |
whisper.getElement('form').addEvent('submit', function(e) { e.stop(); whisperSubmit(whisper,wid); | whisper.addEvent('keydown',function(e) { if(!e.alt) return; switch (e.key) { case 'p' : if (room.type != 'M' || (me.mod != 'M' && me.role != 'H' && me.role != 'G' && me.role !='S')) { e.stop(); var boundPrivateBox = goPrivate.bind(privateBox); boundPrivateBox(); } break; case 's' : e.stop(); whisperSubmit(whisper,wid); break; case 'x' : e.stop(); leaveWhisper.transmit({'wid': wid}); break; default: break; } | whisper.getElement('form').addEvent('submit', function(e) { e.stop(); whisperSubmit(whisper,wid); }); |
function () { tabs.stop(config.browser.mCurrentTab); }, | function (args) { buffer.viewSource(args[0], args.bang); }, | function () { tabs.stop(config.browser.mCurrentTab); }, |
obj.children("ul:eq(0)").slideDown(parseInt(this.settings.ui.animation), function() { $(this).css("display",""); if(callback) callback.call(); }); | _datastore.parse(data,_this,_this.settings.data.opts,function(str){ str = _this.callback("onparse", [str, _this]); obj.children("ul:eq(0)").replaceWith($("<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"); _this.open_branch.apply(_this, [obj]); if(callback) callback.call(); }); | obj.children("ul:eq(0)").slideDown(parseInt(this.settings.ui.animation), function() { $(this).css("display",""); if(callback) callback.call(); }); |
d(l).val();if(b)return a;g.push(a)}}return g}if(ja.test(b.type)&&!d.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Ea,"")}return v}var q=d.isFunction(a);return this.each(function(p){var o=d(this),w=a;if(this.nodeType===1){if(q)w=a.call(this,p,o.val());if(typeof w==="number")w+="";if(d.isArray(w)&&ja.test(this.type))this.checked=d.inArray(o.val(),w)>=0;else if(d.nodeName(this,"select")){var A=d.makeArray(w);d("option",this).each(function(){this.selected= d.inArray(d(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=w}})}});d.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,e,g){if(!a||a.nodeType===3||a.nodeType===8)return v;if(g&&b in d.attrFn)return d(a)[b](e);g=a.nodeType!==1||!d.isXMLDoc(a);var h=e!==v;b=g&&d.props[b]||b;if(a.nodeType===1){var k=Fa.test(b);if(b in a&&g&&!k){if(h){if(b==="type"&&Ga.test(a.nodeName)&&a.parentNode)throw"type property can't be changed"; | "select")){var e=b.selectedIndex,f=[],h=b.options;b=b.type==="select-one";if(e<0)return null;var k=b?e:0;for(e=b?e+1:h.length;k<e;k++){var l=h[k];if(l.selected){a=c(l).val();if(b)return a;f.push(a)}}return f}if(ja.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Ea,"")}return v}var q=c.isFunction(a);return this.each(function(p){var o=c(this),w=a;if(this.nodeType===1){if(q)w=a.call(this,p,o.val());if(typeof w==="number")w+="";if(c.isArray(w)&& ja.test(this.type))this.checked=c.inArray(o.val(),w)>=0;else if(c.nodeName(this,"select")){var A=c.makeArray(w);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=w}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,e,f){if(!a||a.nodeType===3||a.nodeType===8)return v;if(f&&b in c.attrFn)return c(a)[b](e);f=a.nodeType!==1||!c.isXMLDoc(a);var h=e!== | d(l).val();if(b)return a;g.push(a)}}return g}if(ja.test(b.type)&&!d.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Ea,"")}return v}var q=d.isFunction(a);return this.each(function(p){var o=d(this),w=a;if(this.nodeType===1){if(q)w=a.call(this,p,o.val());if(typeof w==="number")w+="";if(d.isArray(w)&&ja.test(this.type))this.checked=d.inArray(o.val(),w)>=0;else if(d.nodeName(this,"select")){var A=d.makeArray(w);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=w}})}});d.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,e,g){if(!a||a.nodeType===3||a.nodeType===8)return v;if(g&&b in d.attrFn)return d(a)[b](e);g=a.nodeType!==1||!d.isXMLDoc(a);var h=e!==v;b=g&&d.props[b]||b;if(a.nodeType===1){var k=Fa.test(b);if(b in a&&g&&!k){if(h){if(b==="type"&&Ga.test(a.nodeName)&&a.parentNode)throw"type property can't be changed"; |
$('.tabs .ui-tabs-panel').each(function() { if($(this).find('.formError:visible').length > 0) { $($('.ui-tabs-nav a[href="#'+ $(this).attr('id') +'"]').parent()).addClass('ui-state-error'); } }); | $('#messaging .formMessage .iconClose').live('click', function(evt) { evt.preventDefault(); jsBackend.messages.hide($($(this).parents('.formMessage'))); }); | $('.tabs .ui-tabs-panel').each(function() { if($(this).find('.formError:visible').length > 0) { $($('.ui-tabs-nav a[href="#'+ $(this).attr('id') +'"]').parent()).addClass('ui-state-error'); } }); |
function () { try { let to = this._escapeRecipient(gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor); commandline.open(":", "mail " + to + " -subject=", modes.EX); } catch (e) { liberator.beep(); } }); | function () { commandline.open(":", "mail -subject=", modes.EX); }); | function () { try { let to = this._escapeRecipient(gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor); commandline.open(":", "mail " + to + " -subject=", modes.EX); } catch (e) { liberator.beep(); } }); |
if ($$('.whisperBox').every(function(whisperBox) { var whisperStr = whisperBox.get('id'); if(whisperStr.substr(1).toInt() == msg.rid) { if (me.uid != msg.user.uid) { addUser(msg.user,whisperBox); } return false; } return true; })) { | whisper.addEvent('keydown',function(e) { if(!e.alt) return; switch (e.key) { case 'p' : if (room.type != 'M' || (me.mod != 'M' && me.role != 'H' && me.role != 'G' && me.role !='S')) { e.stop(); var boundPrivateBox = goPrivate.bind(privateBox); boundPrivateBox(); } break; case 's' : e.stop(); whisperSubmit(whisper,wid); break; case 'x' : e.stop(); leaveWhisper.transmit({'wid': wid}); break; default: break; } }); | if ($$('.whisperBox').every(function(whisperBox) { var whisperStr = whisperBox.get('id'); if(whisperStr.substr(1).toInt() == msg.rid) { if (me.uid != msg.user.uid) { addUser(msg.user,whisperBox); } return false; } return true; })) { |
var highlight_re = BF.lang.prepare_highlighter(query); | var highlight_re; if (options.type == standard_search) { highlight_re = BF.lang.prepare_highlighter(options.query); } | options.highlight = (function () { var highlight_re = BF.lang.prepare_highlighter(query); return function (html, word_ids) { ///TODO: Implement highlighting. }; }()); |
var getNewWhisperReq = new ServerReq('client/newwhisper.php',function(response) { if(response.wid != 0) { var user = response.user user.uid = user.uid.toInt(); var whisper = createWhisperBox(response.wid.toInt(),user); } }); | if (fellowWhisperers.some(function(item){ return this.get('id').substr(1) == item.get('id').substr(whisperBox.get('id').length+1); },user)) { | var getNewWhisperReq = new ServerReq('client/newwhisper.php',function(response) { if(response.wid != 0) { var user = response.user user.uid = user.uid.toInt(); var whisper = createWhisperBox(response.wid.toInt(),user); } }); |
var highlight_re; | var highlight_re, highlight_re_length; | options.highlight = (function () { var highlight_re; /// TODO: Handle mixed searches. if (options.type == standard_search) { highlight_re = BF.lang.prepare_highlighter(options.query); } return function (html, word_ids) { ///TODO: Implement highlighting. }; }()); |
highlight_re = BF.lang.prepare_highlighter(options.query); | highlight_re = BF.lang.prepare_highlighter(standard_terms); highlight_re_length = highlight_re.length; | options.highlight = (function () { var highlight_re; /// TODO: Handle mixed searches. if (options.type == standard_search) { highlight_re = BF.lang.prepare_highlighter(options.query); } return function (html, word_ids) { ///TODO: Implement highlighting. }; }()); |
var i, ids, re_id, tmp_found_ids = []; if (options.type == standard_search) { re_id = 0; while (re_id < highlight_re_length) { tmp_found_ids = html.split(highlight_re[re_id]); ids = tmp_found_ids.length; for (i = 1; i < ids; i += 2) { document.getElementById(tmp_found_ids[i]).className += " f" + (re_id + 1); } ++re_id; } } | options.highlight = (function () { var highlight_re; /// TODO: Handle mixed searches. if (options.type == standard_search) { highlight_re = BF.lang.prepare_highlighter(options.query); } return function (html, word_ids) { ///TODO: Implement highlighting. }; }()); |
|
whisper.addEvent('keydown',function(e) { if(!e.alt) return; switch (e.key) { case 'p' : if (room.type != 'M' || (me.mod != 'M' && me.role != 'H' && me.role != 'G' && me.role !='S')) { e.stop(); var boundPrivateBox = goPrivate.bind(privateBox); boundPrivateBox(); } break; case 's' : e.stop(); whisperSubmit(whisper,wid); break; case 'x' : e.stop(); leaveWhisper.transmit({'wid': wid}); break; default: break; } }); | if ($$('.whisperBox').every(function(whisperBox) { var whisperStr = whisperBox.get('id'); if(whisperStr.substr(1).toInt() == msg.rid) { if (me.uid != msg.user.uid) { addUser(msg.user,whisperBox); } return false; } return true; })) { | whisper.addEvent('keydown',function(e) { if(!e.alt) return; switch (e.key) { case 'p' : if (room.type != 'M' || (me.mod != 'M' && me.role != 'H' && me.role != 'G' && me.role !='S')) { e.stop(); var boundPrivateBox = goPrivate.bind(privateBox); boundPrivateBox(); } break; case 's' : e.stop(); whisperSubmit(whisper,wid); break; case 'x' : e.stop(); leaveWhisper.transmit({'wid': wid}); break; default: break; } }); |
if($(this).find('.formError').length > 0) { | if($(this).find('.formError:visible').length > 0) { | $('.tabs .ui-tabs-panel').each(function() { if($(this).find('.formError').length > 0) { $($('.ui-tabs-nav a[href="#'+ $(this).attr('id') +'"]').parent()).addClass('ui-state-error'); } }); |
var highlight_re = BF.prepare_highlighter(query); | var highlight_re = BF.lang.prepare_highlighter(query); | options.highlight = (function () { var highlight_re = BF.prepare_highlighter(query); return function (html, word_ids) { ///TODO: Implement highlighting. }; }()); |
if(code == 13 || String.fromCharCode(code) == options.splitChar) | if(code == 13 || $(this).val().indexOf(options.splitChar) != -1) | (function($){ $.fn.multipleTextbox = function(options) { // define defaults var defaults = { splitChar: ',', emptyMessage: '', addLabel: 'add', removeLabel: 'delete', autoCompleteUrl: '', canAddNew: false, showIconOnly: false, afterBuild: null }; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; // bind submit $(this.form).submit(function() { return !blockSubmit; }); // remove previous HTML if($('#elementList-' + id).length > 0) { $('#elementList-' + id).parent('.multipleTextWrapper').remove(); } // build replace html var html = '<div class="multipleTextWrapper">' + ' <div id="elementList-' + id + '" class="multipleTextList">' + ' </div>' + ' <div class="oneLiner">' + ' <p><input class="inputText dontSubmit" id="addValue-' + id + '" name="addValue-' + id + '" type="text" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" id="addButton-' + id + '" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">' + ' <span>' + options.addLabel + '</span>' + ' </a>' + ' </div>' + ' </div>' + '</div>'; // hide current element $(this).css('visibility', 'hidden').css('position', 'absolute').css('top', '-9000px').css('left', '-9000px').attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-' + id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for( var i in data.data) { realData.push({ label: data.data[i].name, value: data.data[i].name }); } } // set response response(realData); } }); } }); } // bind keypress on value-field $('#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'); }); // bind click on add-button $('#addButton-' + id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-' + id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // bind blur event on inputfields $('.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)); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-' + id).val('').focus(); $('#addButton-' + id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for( var i in elements) { if(value == elements[i]) inElements = true; } // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list function build() { // init var var html = ''; // no items and message given? if(elements.length == 0 && options.emptyMessage != '') html = '<p class="helpTxt">' + options.emptyMessage + '</p>'; // items available else { // start html html = '<ul>'; // loop elements for( var i in elements) { html += ' <li class="oneLiner">' + ' <p><input class="inputText dontSubmit inputField-' + id + '" name="inputField-' + id + '[]" type="text" value="' + elements[i] + '" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" class="button icon iconDelete iconOnly deleteButton-' + id + '" rel="' + elements[i] + '" title="' + options.removeLabel + '"><span>' + options.removeLabel + '</span></a>' + ' </div>' + ' </li>'; } // end html html += '</ul>'; } // set html $('#elementList-' + id).html(html); // call callback if specified if(options.afterBuild != null){ options.afterBuild(id); } } // get all items function get() { // get chunks var chunks = $('#' + id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for( var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g, ''); if(value != '') elements.push(value); } return elements; } // remove an item function remove(value) { // get index for element var index = $.inArray(value, elements); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } }); };})(jQuery); |
$('#addValue-' + id).bind('blur', function(evt){ blockSubmit = false; }); | (function($){ $.fn.multipleTextbox = function(options) { // define defaults var defaults = { splitChar: ',', emptyMessage: '', addLabel: 'add', removeLabel: 'delete', autoCompleteUrl: '', canAddNew: false, showIconOnly: false, afterBuild: null }; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; // bind submit $(this.form).submit(function() { return !blockSubmit; }); // remove previous HTML if($('#elementList-' + id).length > 0) { $('#elementList-' + id).parent('.multipleTextWrapper').remove(); } // build replace html var html = '<div class="multipleTextWrapper">' + ' <div id="elementList-' + id + '" class="multipleTextList">' + ' </div>' + ' <div class="oneLiner">' + ' <p><input class="inputText dontSubmit" id="addValue-' + id + '" name="addValue-' + id + '" type="text" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" id="addButton-' + id + '" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">' + ' <span>' + options.addLabel + '</span>' + ' </a>' + ' </div>' + ' </div>' + '</div>'; // hide current element $(this).css('visibility', 'hidden').css('position', 'absolute').css('top', '-9000px').css('left', '-9000px').attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-' + id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for( var i in data.data) { realData.push({ label: data.data[i].name, value: data.data[i].name }); } } // set response response(realData); } }); } }); } // bind keypress on value-field $('#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'); }); // bind click on add-button $('#addButton-' + id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-' + id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // bind blur event on inputfields $('.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)); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-' + id).val('').focus(); $('#addButton-' + id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for( var i in elements) { if(value == elements[i]) inElements = true; } // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list function build() { // init var var html = ''; // no items and message given? if(elements.length == 0 && options.emptyMessage != '') html = '<p class="helpTxt">' + options.emptyMessage + '</p>'; // items available else { // start html html = '<ul>'; // loop elements for( var i in elements) { html += ' <li class="oneLiner">' + ' <p><input class="inputText dontSubmit inputField-' + id + '" name="inputField-' + id + '[]" type="text" value="' + elements[i] + '" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" class="button icon iconDelete iconOnly deleteButton-' + id + '" rel="' + elements[i] + '" title="' + options.removeLabel + '"><span>' + options.removeLabel + '</span></a>' + ' </div>' + ' </li>'; } // end html html += '</ul>'; } // set html $('#elementList-' + id).html(html); // call callback if specified if(options.afterBuild != null){ options.afterBuild(id); } } // get all items function get() { // get chunks var chunks = $('#' + id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for( var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g, ''); if(value != '') elements.push(value); } return elements; } // remove an item function remove(value) { // get index for element var index = $.inArray(value, elements); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } }); };})(jQuery); |
|
$('.inputField-' + id).live('blur', function(evt) | $('.inputField-' + id).live('keyup', function(evt) | (function($){ $.fn.multipleTextbox = function(options) { // define defaults var defaults = { splitChar: ',', emptyMessage: '', addLabel: 'add', removeLabel: 'delete', autoCompleteUrl: '', canAddNew: false, showIconOnly: false, afterBuild: null }; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; // bind submit $(this.form).submit(function() { return !blockSubmit; }); // remove previous HTML if($('#elementList-' + id).length > 0) { $('#elementList-' + id).parent('.multipleTextWrapper').remove(); } // build replace html var html = '<div class="multipleTextWrapper">' + ' <div id="elementList-' + id + '" class="multipleTextList">' + ' </div>' + ' <div class="oneLiner">' + ' <p><input class="inputText dontSubmit" id="addValue-' + id + '" name="addValue-' + id + '" type="text" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" id="addButton-' + id + '" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">' + ' <span>' + options.addLabel + '</span>' + ' </a>' + ' </div>' + ' </div>' + '</div>'; // hide current element $(this).css('visibility', 'hidden').css('position', 'absolute').css('top', '-9000px').css('left', '-9000px').attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-' + id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for( var i in data.data) { realData.push({ label: data.data[i].name, value: data.data[i].name }); } } // set response response(realData); } }); } }); } // bind keypress on value-field $('#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'); }); // bind click on add-button $('#addButton-' + id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-' + id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // bind blur event on inputfields $('.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)); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-' + id).val('').focus(); $('#addButton-' + id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for( var i in elements) { if(value == elements[i]) inElements = true; } // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list function build() { // init var var html = ''; // no items and message given? if(elements.length == 0 && options.emptyMessage != '') html = '<p class="helpTxt">' + options.emptyMessage + '</p>'; // items available else { // start html html = '<ul>'; // loop elements for( var i in elements) { html += ' <li class="oneLiner">' + ' <p><input class="inputText dontSubmit inputField-' + id + '" name="inputField-' + id + '[]" type="text" value="' + elements[i] + '" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" class="button icon iconDelete iconOnly deleteButton-' + id + '" rel="' + elements[i] + '" title="' + options.removeLabel + '"><span>' + options.removeLabel + '</span></a>' + ' </div>' + ' </li>'; } // end html html += '</ul>'; } // set html $('#elementList-' + id).html(html); // call callback if specified if(options.afterBuild != null){ options.afterBuild(id); } } // get all items function get() { // get chunks var chunks = $('#' + id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for( var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g, ''); if(value != '') elements.push(value); } return elements; } // remove an item function remove(value) { // get index for element var index = $.inArray(value, elements); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } }); };})(jQuery); |
var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, ''); | var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, '').replace(options.splitChar, ''); | (function($){ $.fn.multipleTextbox = function(options) { // define defaults var defaults = { splitChar: ',', emptyMessage: '', addLabel: 'add', removeLabel: 'delete', autoCompleteUrl: '', canAddNew: false, showIconOnly: false, afterBuild: null }; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; // bind submit $(this.form).submit(function() { return !blockSubmit; }); // remove previous HTML if($('#elementList-' + id).length > 0) { $('#elementList-' + id).parent('.multipleTextWrapper').remove(); } // build replace html var html = '<div class="multipleTextWrapper">' + ' <div id="elementList-' + id + '" class="multipleTextList">' + ' </div>' + ' <div class="oneLiner">' + ' <p><input class="inputText dontSubmit" id="addValue-' + id + '" name="addValue-' + id + '" type="text" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" id="addButton-' + id + '" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">' + ' <span>' + options.addLabel + '</span>' + ' </a>' + ' </div>' + ' </div>' + '</div>'; // hide current element $(this).css('visibility', 'hidden').css('position', 'absolute').css('top', '-9000px').css('left', '-9000px').attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-' + id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for( var i in data.data) { realData.push({ label: data.data[i].name, value: data.data[i].name }); } } // set response response(realData); } }); } }); } // bind keypress on value-field $('#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'); }); // bind click on add-button $('#addButton-' + id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-' + id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // bind blur event on inputfields $('.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)); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-' + id).val('').focus(); $('#addButton-' + id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for( var i in elements) { if(value == elements[i]) inElements = true; } // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list function build() { // init var var html = ''; // no items and message given? if(elements.length == 0 && options.emptyMessage != '') html = '<p class="helpTxt">' + options.emptyMessage + '</p>'; // items available else { // start html html = '<ul>'; // loop elements for( var i in elements) { html += ' <li class="oneLiner">' + ' <p><input class="inputText dontSubmit inputField-' + id + '" name="inputField-' + id + '[]" type="text" value="' + elements[i] + '" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" class="button icon iconDelete iconOnly deleteButton-' + id + '" rel="' + elements[i] + '" title="' + options.removeLabel + '"><span>' + options.removeLabel + '</span></a>' + ' </div>' + ' </li>'; } // end html html += '</ul>'; } // set html $('#elementList-' + id).html(html); // call callback if specified if(options.afterBuild != null){ options.afterBuild(id); } } // get all items function get() { // get chunks var chunks = $('#' + id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for( var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g, ''); if(value != '') elements.push(value); } return elements; } // remove an item function remove(value) { // get index for element var index = $.inArray(value, elements); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } }); };})(jQuery); |
function (args) { buffer.viewSource(args[0], args.bang); }, | function (args) { let arg = args[0]; let level; if (!arg) level = 100; else if (/^\d+$/.test(arg)) level = parseInt(arg, 10); else if (/^[+-]\d+$/.test(arg)) { if (args.bang) level = buffer.fullZoom + parseInt(arg, 10); else level = buffer.textZoom + parseInt(arg, 10); level = util.Math.constrain(level, Buffer.ZOOM_MIN, Buffer.ZOOM_MAX); } else liberator.assert(false, "E488: Trailing characters"); if (args.bang) buffer.fullZoom = level; else buffer.textZoom = level; }, | function (args) { buffer.viewSource(args[0], args.bang); }, |
obj.children("ul:eq(0)").slideUp(parseInt(this.settings.ui.animation), function() { if(obj.hasClass("open")) obj.removeClass("open").addClass("closed"); $(this).css("display",""); _this.callback("onclose", [obj.get(0), _this]); }); | obj.children("ul:eq(0)").slideDown(parseInt(this.settings.ui.animation), function() { $(this).css("display",""); if(callback) callback.call(); }); | obj.children("ul:eq(0)").slideUp(parseInt(this.settings.ui.animation), function() { if(obj.hasClass("open")) obj.removeClass("open").addClass("closed"); $(this).css("display",""); _this.callback("onclose", [obj.get(0), _this]); }); |
_default:[0,"",""]};y.optgroup=y.option;y.tbody=y.tfoot=y.colgroup=y.caption=y.thead;y.th=y.td;if(!d.support.htmlSerialize)y._default=[1,"div<div>","</div>"];d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var e=d(this);return e.text(a.call(this,b,e.text()))});if(typeof a!=="object"&&a!==v)return this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(a));return d.getText(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(e){d(this).wrapAll(a.call(this, | ja.test(this.type))this.checked=c.inArray(o.val(),w)>=0;else if(c.nodeName(this,"select")){var A=c.makeArray(w);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=w}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,e,f){if(!a||a.nodeType===3||a.nodeType===8)return v;if(f&&b in c.attrFn)return c(a)[b](e);f=a.nodeType!==1||!c.isXMLDoc(a);var h=e!== | _default:[0,"",""]};y.optgroup=y.option;y.tbody=y.tfoot=y.colgroup=y.caption=y.thead;y.th=y.td;if(!d.support.htmlSerialize)y._default=[1,"div<div>","</div>"];d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var e=d(this);return e.text(a.call(this,b,e.text()))});if(typeof a!=="object"&&a!==v)return this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(a));return d.getText(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(e){d(this).wrapAll(a.call(this, |
$('.tabSelect').live('click', function(evt) { evt.preventDefault(); $('.tabs').tabs('select', $(this).attr('href')); | $('.tabs .ui-tabs-panel').each(function() { if($(this).find('.formError:visible').length > 0) { $($('.ui-tabs-nav a[href="#'+ $(this).attr('id') +'"]').parent()).addClass('ui-state-error'); } | $('.tabSelect').live('click', function(evt) { // prevent default evt.preventDefault(); $('.tabs').tabs('select', $(this).attr('href')); }); |
function () { window.goDoCommand("cmd_reply"); }); | function () { try { let to = this._escapeRecipient(gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor); commandline.open(":", "mail " + to + " -subject=", modes.EX); } catch (e) { liberator.beep(); } }); | function () { window.goDoCommand("cmd_reply"); }); |
let to = this._escapeRecipient(gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor); | let to = mail._escapeRecipient(gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor); | function () { try { let to = this._escapeRecipient(gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor); commandline.open(":", "mail " + to + " -subject=", modes.EX); } catch (e) { liberator.beep(); } }); |
whisperBoxes.each(function(whisperBox) { removeUser(whisperBox,msg.user.uid); }); | if ($$('.whisperBox').every(function(whisperBox) { var whisperStr = whisperBox.get('id'); if(whisperStr.substr(1).toInt() == msg.rid) { if (me.uid != msg.user.uid) { addUser(msg.user,whisperBox); } return false; } return true; })) { | whisperBoxes.each(function(whisperBox) { removeUser(whisperBox,msg.user.uid); }); |
onlineReq = new ServerReq('client/online.php',function(response) { onlineList.removeClass('loading'); onlineList.addClass(room.type); currentRid = loadingRid; loadingRid = -1; onlineList.empty(); var users = response.online; if (users.length > 0 ) { users.each(function(user) { user.uid = user.uid.toInt(); addUser(user); }); } lastId = response.lastid; }); | 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) { 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(); 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}); | onlineReq = new ServerReq('client/online.php',function(response) { onlineList.removeClass('loading'); onlineList.addClass(room.type); currentRid = loadingRid; loadingRid = -1; onlineList.empty(); var users = response.online; if (users.length > 0 ) { users.each(function(user) { user.uid = user.uid.toInt(); addUser(user); }); } lastId = response.lastid; }); |
var i, ids, re_id, tmp_found_ids = []; if (options.type == standard_search) { re_id = 0; while (re_id < highlight_re_length) { tmp_found_ids = html.split(highlight_re[re_id]); ids = tmp_found_ids.length; for (i = 1; i < ids; i += 2) { document.getElementById(tmp_found_ids[i]).className += " f" + (re_id + 1); } ++re_id; } } | return function (html, word_ids) { ///TODO: Implement highlighting. }; |
|
if ($$('.whisperBox').every(function(whisperBox) { var whisperStr = whisperBox.get('id'); if(whisperStr.substr(1).toInt() == msg.rid) { if (me.uid != msg.user.uid) { addUser(msg.user,whisperBox); } return false; } return true; })) { | whisperBoxes.each(function(whisperBox) { removeUser(whisperBox,msg.user.uid); }); | if ($$('.whisperBox').every(function(whisperBox) { var whisperStr = whisperBox.get('id'); if(whisperStr.substr(1).toInt() == msg.rid) { if (me.uid != msg.user.uid) { addUser(msg.user,whisperBox); } return false; } return true; })) { |
if(code == 13 || String.fromCharCode(code) == options.splitChar) | if(code == 13 || $(this).val().indexOf(options.splitChar) != -1) | return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; // bind submit $(this.form).submit(function() { return !blockSubmit; }); // remove previous HTML if($('#elementList-' + id).length > 0) { $('#elementList-' + id).parent('.multipleTextWrapper').remove(); } // build replace html var html = '<div class="multipleTextWrapper">' + ' <div id="elementList-' + id + '" class="multipleTextList">' + ' </div>' + ' <div class="oneLiner">' + ' <p><input class="inputText dontSubmit" id="addValue-' + id + '" name="addValue-' + id + '" type="text" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" id="addButton-' + id + '" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">' + ' <span>' + options.addLabel + '</span>' + ' </a>' + ' </div>' + ' </div>' + '</div>'; // hide current element $(this).css('visibility', 'hidden').css('position', 'absolute').css('top', '-9000px').css('left', '-9000px').attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-' + id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for( var i in data.data) { realData.push({ label: data.data[i].name, value: data.data[i].name }); } } // set response response(realData); } }); } }); } // bind keypress on value-field $('#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'); }); // bind click on add-button $('#addButton-' + id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-' + id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // bind blur event on inputfields $('.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)); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-' + id).val('').focus(); $('#addButton-' + id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for( var i in elements) { if(value == elements[i]) inElements = true; } // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list function build() { // init var var html = ''; // no items and message given? if(elements.length == 0 && options.emptyMessage != '') html = '<p class="helpTxt">' + options.emptyMessage + '</p>'; // items available else { // start html html = '<ul>'; // loop elements for( var i in elements) { html += ' <li class="oneLiner">' + ' <p><input class="inputText dontSubmit inputField-' + id + '" name="inputField-' + id + '[]" type="text" value="' + elements[i] + '" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" class="button icon iconDelete iconOnly deleteButton-' + id + '" rel="' + elements[i] + '" title="' + options.removeLabel + '"><span>' + options.removeLabel + '</span></a>' + ' </div>' + ' </li>'; } // end html html += '</ul>'; } // set html $('#elementList-' + id).html(html); // call callback if specified if(options.afterBuild != null){ options.afterBuild(id); } } // get all items function get() { // get chunks var chunks = $('#' + id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for( var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g, ''); if(value != '') elements.push(value); } return elements; } // remove an item function remove(value) { // get index for element var index = $.inArray(value, elements); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } }); |
$('#addValue-' + id).bind('blur', function(evt){ blockSubmit = false; }); | return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; // bind submit $(this.form).submit(function() { return !blockSubmit; }); // remove previous HTML if($('#elementList-' + id).length > 0) { $('#elementList-' + id).parent('.multipleTextWrapper').remove(); } // build replace html var html = '<div class="multipleTextWrapper">' + ' <div id="elementList-' + id + '" class="multipleTextList">' + ' </div>' + ' <div class="oneLiner">' + ' <p><input class="inputText dontSubmit" id="addValue-' + id + '" name="addValue-' + id + '" type="text" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" id="addButton-' + id + '" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">' + ' <span>' + options.addLabel + '</span>' + ' </a>' + ' </div>' + ' </div>' + '</div>'; // hide current element $(this).css('visibility', 'hidden').css('position', 'absolute').css('top', '-9000px').css('left', '-9000px').attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-' + id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for( var i in data.data) { realData.push({ label: data.data[i].name, value: data.data[i].name }); } } // set response response(realData); } }); } }); } // bind keypress on value-field $('#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'); }); // bind click on add-button $('#addButton-' + id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-' + id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // bind blur event on inputfields $('.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)); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-' + id).val('').focus(); $('#addButton-' + id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for( var i in elements) { if(value == elements[i]) inElements = true; } // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list function build() { // init var var html = ''; // no items and message given? if(elements.length == 0 && options.emptyMessage != '') html = '<p class="helpTxt">' + options.emptyMessage + '</p>'; // items available else { // start html html = '<ul>'; // loop elements for( var i in elements) { html += ' <li class="oneLiner">' + ' <p><input class="inputText dontSubmit inputField-' + id + '" name="inputField-' + id + '[]" type="text" value="' + elements[i] + '" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" class="button icon iconDelete iconOnly deleteButton-' + id + '" rel="' + elements[i] + '" title="' + options.removeLabel + '"><span>' + options.removeLabel + '</span></a>' + ' </div>' + ' </li>'; } // end html html += '</ul>'; } // set html $('#elementList-' + id).html(html); // call callback if specified if(options.afterBuild != null){ options.afterBuild(id); } } // get all items function get() { // get chunks var chunks = $('#' + id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for( var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g, ''); if(value != '') elements.push(value); } return elements; } // remove an item function remove(value) { // get index for element var index = $.inArray(value, elements); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } }); |
|
$('.inputField-' + id).live('blur', function(evt) | $('.inputField-' + id).live('keyup', function(evt) | return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; // bind submit $(this.form).submit(function() { return !blockSubmit; }); // remove previous HTML if($('#elementList-' + id).length > 0) { $('#elementList-' + id).parent('.multipleTextWrapper').remove(); } // build replace html var html = '<div class="multipleTextWrapper">' + ' <div id="elementList-' + id + '" class="multipleTextList">' + ' </div>' + ' <div class="oneLiner">' + ' <p><input class="inputText dontSubmit" id="addValue-' + id + '" name="addValue-' + id + '" type="text" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" id="addButton-' + id + '" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">' + ' <span>' + options.addLabel + '</span>' + ' </a>' + ' </div>' + ' </div>' + '</div>'; // hide current element $(this).css('visibility', 'hidden').css('position', 'absolute').css('top', '-9000px').css('left', '-9000px').attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-' + id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for( var i in data.data) { realData.push({ label: data.data[i].name, value: data.data[i].name }); } } // set response response(realData); } }); } }); } // bind keypress on value-field $('#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'); }); // bind click on add-button $('#addButton-' + id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-' + id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // bind blur event on inputfields $('.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)); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-' + id).val('').focus(); $('#addButton-' + id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for( var i in elements) { if(value == elements[i]) inElements = true; } // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list function build() { // init var var html = ''; // no items and message given? if(elements.length == 0 && options.emptyMessage != '') html = '<p class="helpTxt">' + options.emptyMessage + '</p>'; // items available else { // start html html = '<ul>'; // loop elements for( var i in elements) { html += ' <li class="oneLiner">' + ' <p><input class="inputText dontSubmit inputField-' + id + '" name="inputField-' + id + '[]" type="text" value="' + elements[i] + '" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" class="button icon iconDelete iconOnly deleteButton-' + id + '" rel="' + elements[i] + '" title="' + options.removeLabel + '"><span>' + options.removeLabel + '</span></a>' + ' </div>' + ' </li>'; } // end html html += '</ul>'; } // set html $('#elementList-' + id).html(html); // call callback if specified if(options.afterBuild != null){ options.afterBuild(id); } } // get all items function get() { // get chunks var chunks = $('#' + id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for( var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g, ''); if(value != '') elements.push(value); } return elements; } // remove an item function remove(value) { // get index for element var index = $.inArray(value, elements); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } }); |
var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, ''); | var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, '').replace(options.splitChar, ''); | return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; // bind submit $(this.form).submit(function() { return !blockSubmit; }); // remove previous HTML if($('#elementList-' + id).length > 0) { $('#elementList-' + id).parent('.multipleTextWrapper').remove(); } // build replace html var html = '<div class="multipleTextWrapper">' + ' <div id="elementList-' + id + '" class="multipleTextList">' + ' </div>' + ' <div class="oneLiner">' + ' <p><input class="inputText dontSubmit" id="addValue-' + id + '" name="addValue-' + id + '" type="text" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" id="addButton-' + id + '" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">' + ' <span>' + options.addLabel + '</span>' + ' </a>' + ' </div>' + ' </div>' + '</div>'; // hide current element $(this).css('visibility', 'hidden').css('position', 'absolute').css('top', '-9000px').css('left', '-9000px').attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-' + id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for( var i in data.data) { realData.push({ label: data.data[i].name, value: data.data[i].name }); } } // set response response(realData); } }); } }); } // bind keypress on value-field $('#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'); }); // bind click on add-button $('#addButton-' + id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-' + id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // bind blur event on inputfields $('.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)); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-' + id).val('').focus(); $('#addButton-' + id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for( var i in elements) { if(value == elements[i]) inElements = true; } // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list function build() { // init var var html = ''; // no items and message given? if(elements.length == 0 && options.emptyMessage != '') html = '<p class="helpTxt">' + options.emptyMessage + '</p>'; // items available else { // start html html = '<ul>'; // loop elements for( var i in elements) { html += ' <li class="oneLiner">' + ' <p><input class="inputText dontSubmit inputField-' + id + '" name="inputField-' + id + '[]" type="text" value="' + elements[i] + '" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" class="button icon iconDelete iconOnly deleteButton-' + id + '" rel="' + elements[i] + '" title="' + options.removeLabel + '"><span>' + options.removeLabel + '</span></a>' + ' </div>' + ' </li>'; } // end html html += '</ul>'; } // set html $('#elementList-' + id).html(html); // call callback if specified if(options.afterBuild != null){ options.afterBuild(id); } } // get all items function get() { // get chunks var chunks = $('#' + id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for( var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g, ''); if(value != '') elements.push(value); } return elements; } // remove an item function remove(value) { // get index for element var index = $.inArray(value, elements); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } }); |
function (args) { let arg = args[0]; let level; | buffer.alternateStyleSheets.forEach(function (style) { if (!(style.title in styles)) styles[style.title] = []; | function (args) { let arg = args[0]; let level; if (!arg) level = 100; else if (/^\d+$/.test(arg)) level = parseInt(arg, 10); else if (/^[+-]\d+$/.test(arg)) { if (args.bang) level = buffer.fullZoom + parseInt(arg, 10); else level = buffer.textZoom + parseInt(arg, 10); // relative args shouldn't take us out of range level = util.Math.constrain(level, Buffer.ZOOM_MIN, Buffer.ZOOM_MAX); } else liberator.assert(false, "E488: Trailing characters"); if (args.bang) buffer.fullZoom = level; else buffer.textZoom = level; }, |
if (!arg) level = 100; else if (/^\d+$/.test(arg)) level = parseInt(arg, 10); else if (/^[+-]\d+$/.test(arg)) { if (args.bang) level = buffer.fullZoom + parseInt(arg, 10); else level = buffer.textZoom + parseInt(arg, 10); level = util.Math.constrain(level, Buffer.ZOOM_MIN, Buffer.ZOOM_MAX); } else liberator.assert(false, "E488: Trailing characters"); if (args.bang) buffer.fullZoom = level; else buffer.textZoom = level; }, | styles[style.title].push(style.href || "inline"); }); | function (args) { let arg = args[0]; let level; if (!arg) level = 100; else if (/^\d+$/.test(arg)) level = parseInt(arg, 10); else if (/^[+-]\d+$/.test(arg)) { if (args.bang) level = buffer.fullZoom + parseInt(arg, 10); else level = buffer.textZoom + parseInt(arg, 10); // relative args shouldn't take us out of range level = util.Math.constrain(level, Buffer.ZOOM_MIN, Buffer.ZOOM_MAX); } else liberator.assert(false, "E488: Trailing characters"); if (args.bang) buffer.fullZoom = level; else buffer.textZoom = level; }, |
obj.find("li:has(a.clicked)").each(function() { _this.deselect_branch(this); | obj.children("ul:eq(0)").slideUp(parseInt(this.settings.ui.animation), function() { if(obj.hasClass("open")) obj.removeClass("open").addClass("closed"); $(this).css("display",""); | obj.find("li:has(a.clicked)").each(function() { _this.deselect_branch(this); }); |
})-1;},removeFunction:function(f){e[f]=null;},callFunction:function(f){var g=e[f];return g&&g.apply(window,Array.prototype.slice.call(arguments,1));},cssLength:(function(){var f=/^\d+(?:\.\d+)?$/;return function(g){return g+(f.test(g)?'px':'');};})(),repeat:function(f,g){return new Array(g+1).join(f);},tryThese:function(){var f;for(var g=0,h=arguments.length;g<h;g++){var i=arguments[g];try{f=i();break;}catch(j){}}return f;}};})();var e=a.tools;a.dtd=(function(){var f=e.extend,g={isindex:1,fieldset:1},h={input:1,button:1,select:1,textarea:1,label:1},i=f({a:1},h),j=f({iframe:1},i),k={hr:1,ul:1,menu:1,div:1,blockquote:1,noscript:1,table:1,center:1,address:1,dir:1,pre:1,h5:1,dl:1,h4:1,noframes:1,h6:1,ol:1,h1:1,h3:1,h2:1},l={ins:1,del:1,script:1,style:1},m=f({b:1,acronym:1,bdo:1,'var':1,'#':1,abbr:1,code:1,br:1,i:1,cite:1,kbd:1,u:1,strike:1,s:1,tt:1,strong:1,q:1,samp:1,em:1,dfn:1,span:1},l),n=f({sub:1,img:1,object:1,sup:1,basefont:1,map:1,applet:1,font:1,big:1,small:1},m),o=f({p:1},n),p=f({iframe:1},n,h),q={img:1,noscript:1,br:1,kbd:1,center:1,button:1,basefont:1,h5:1,h4:1,samp:1,h6:1,ol:1,h1:1,h3:1,h2:1,form:1,font:1,'#':1,select:1,menu:1,ins:1,abbr:1,label:1,code:1,table:1,script:1,cite:1,input:1,iframe:1,strong:1,textarea:1,noframes:1,big:1,small:1,span:1,hr:1,sub:1,bdo:1,'var':1,div:1,object:1,sup:1,strike:1,dir:1,map:1,dl:1,applet:1,del:1,isindex:1,fieldset:1,ul:1,b:1,acronym:1,a:1,blockquote:1,i:1,u:1,s:1,tt:1,address:1,q:1,pre:1,p:1,em:1,dfn:1},r=f({a:1},p),s={tr:1},t={'#':1},u=f({param:1},q),v=f({form:1},g,j,k,o),w={li:1},x={style:1,script:1},y={base:1,link:1,meta:1,title:1},z=f(y,x),A={head:1,body:1},B={html:1},C={address:1,blockquote:1,center:1,dir:1,div:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,menu:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1};return{$nonBodyContent:f(B,A,y),$block:C,$blockLimit:{body:1,div:1,td:1,th:1,caption:1,form:1},$inline:r,$body:f({script:1,style:1},C),$cdata:{script:1,style:1},$empty:{area:1,base:1,br:1,col:1,hr:1,img:1,input:1,link:1,meta:1,param:1},$listItem:{dd:1,dt:1,li:1},$list:{ul:1,ol:1,dl:1},$nonEditable:{applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1,param:1},$removeEmpty:{abbr:1,acronym:1,address:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},html:A,head:z,style:t,script:t,body:v,base:{},link:{},meta:{},title:t,col:{},tr:{td:1,th:1},img:{},colgroup:{col:1},noscript:v,td:v,br:{},th:v,center:v,kbd:r,button:f(o,k),basefont:{},h5:r,h4:r,samp:r,h6:r,ol:w,h1:r,h3:r,option:t,h2:r,form:f(g,j,k,o),select:{optgroup:1,option:1},font:r,ins:r,menu:w,abbr:r,label:r,table:{thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1},code:r,script:t,tfoot:s,cite:r,li:v,input:{},iframe:v,strong:r,textarea:t,noframes:v,big:r,small:r,span:r,hr:{},dt:r,sub:r,optgroup:{option:1},param:{},bdo:r,'var':r,div:v,object:u,sup:r,dd:v,strike:r,area:{},dir:w,map:f({area:1,form:1,p:1},g,l,k),applet:u,dl:{dt:1,dd:1},del:r,isindex:{},fieldset:f({legend:1},q),thead:s,ul:w,acronym:r,b:r,a:p,blockquote:v,caption:r,i:r,u:r,tbody:s,s:r,address:f(j,o),tt:r,legend:r,q:r,pre:f(m,i),p:r,em:r,dfn:r}; })();var f=a.dtd;d.event=function(g){this.$=g;};d.event.prototype={getKey:function(){return this.$.keyCode||this.$.which;},getKeystroke:function(){var h=this;var g=h.getKey();if(h.$.ctrlKey||h.$.metaKey)g+=1000;if(h.$.shiftKey)g+=2000;if(h.$.altKey)g+=4000;return g;},preventDefault:function(g){var h=this.$;if(h.preventDefault)h.preventDefault();else h.returnValue=false;if(g)this.stopPropagation();},stopPropagation:function(){var g=this.$;if(g.stopPropagation)g.stopPropagation();else g.cancelBubble=true;},getTarget:function(){var g=this.$.target||this.$.srcElement;return g?new d.node(g):null;}};a.CTRL=1000;a.SHIFT=2000;a.ALT=4000;d.domObject=function(g){if(g)this.$=g;};d.domObject.prototype=(function(){var g=function(h,i){return function(j){if(typeof a!='undefined')h.fire(i,new d.event(j));};};return{getPrivate:function(){var h;if(!(h=this.getCustomData('_')))this.setCustomData('_',h={});return h;},on:function(h){var k=this;var i=k.getCustomData('_cke_nativeListeners');if(!i){i={};k.setCustomData('_cke_nativeListeners',i);}if(!i[h]){var j=i[h]=g(k,h);if(k.$.addEventListener)k.$.addEventListener(h,j,!!a.event.useCapture);else if(k.$.attachEvent)k.$.attachEvent('on'+h,j);}return a.event.prototype.on.apply(k,arguments);},removeListener:function(h){var k=this;a.event.prototype.removeListener.apply(k,arguments);if(!k.hasListeners(h)){var i=k.getCustomData('_cke_nativeListeners'),j=i&&i[h];if(j){if(k.$.removeEventListener)k.$.removeEventListener(h,j,false);else if(k.$.detachEvent)k.$.detachEvent('on'+h,j);delete i[h];}}},removeAllListeners:function(){var k=this;var h=k.getCustomData('_cke_nativeListeners');for(var i in h){var j=h[i];if(k.$.removeEventListener)k.$.removeEventListener(i,j,false);else if(k.$.detachEvent)k.$.detachEvent('on'+i,j);delete h[i];}}};})();(function(g){var h={};g.equals=function(i){return i&&i.$===this.$;};g.setCustomData=function(i,j){var k=this.getUniqueId(),l=h[k]||(h[k]={});l[i]=j;return this;};g.getCustomData=function(i){var j=this.$._cke_expando,k=j&&h[j];return k&&k[i];};g.removeCustomData=function(i){var j=this.$._cke_expando,k=j&&h[j],l=k&&k[i];if(typeof l!='undefined')delete k[i];return l||null;};g.clearCustomData=function(){this.removeAllListeners();var i=this.$._cke_expando;i&&delete h[i];};g.getUniqueId=function(){return this.$._cke_expando||(this.$._cke_expando=e.getNextNumber());};a.event.implementOn(g);})(d.domObject.prototype);d.window=function(g){d.domObject.call(this,g);};d.window.prototype=new d.domObject();e.extend(d.window.prototype,{focus:function(){if(b.webkit&&this.$.parent)this.$.parent.focus(); | if(k)this.extend(g,k,true);return g;},addFunction:function(f,g){return e.push(function(){f.apply(g||this,arguments);})-1;},removeFunction:function(f){e[f]=null;},callFunction:function(f){var g=e[f];return g&&g.apply(window,Array.prototype.slice.call(arguments,1));},cssLength:(function(){var f=/^\d+(?:\.\d+)?$/;return function(g){return g+(f.test(g)?'px':'');};})(),repeat:function(f,g){return new Array(g+1).join(f);},tryThese:function(){var f;for(var g=0,h=arguments.length;g<h;g++){var i=arguments[g];try{f=i();break;}catch(j){}}return f;},genKey:function(){return Array.prototype.slice.call(arguments).join('-');}};})();var e=a.tools;a.dtd=(function(){var f=e.extend,g={isindex:1,fieldset:1},h={input:1,button:1,select:1,textarea:1,label:1},i=f({a:1},h),j=f({iframe:1},i),k={hr:1,ul:1,menu:1,div:1,blockquote:1,noscript:1,table:1,center:1,address:1,dir:1,pre:1,h5:1,dl:1,h4:1,noframes:1,h6:1,ol:1,h1:1,h3:1,h2:1},l={ins:1,del:1,script:1,style:1},m=f({b:1,acronym:1,bdo:1,'var':1,'#':1,abbr:1,code:1,br:1,i:1,cite:1,kbd:1,u:1,strike:1,s:1,tt:1,strong:1,q:1,samp:1,em:1,dfn:1,span:1},l),n=f({sub:1,img:1,object:1,sup:1,basefont:1,map:1,applet:1,font:1,big:1,small:1},m),o=f({p:1},n),p=f({iframe:1},n,h),q={img:1,noscript:1,br:1,kbd:1,center:1,button:1,basefont:1,h5:1,h4:1,samp:1,h6:1,ol:1,h1:1,h3:1,h2:1,form:1,font:1,'#':1,select:1,menu:1,ins:1,abbr:1,label:1,code:1,table:1,script:1,cite:1,input:1,iframe:1,strong:1,textarea:1,noframes:1,big:1,small:1,span:1,hr:1,sub:1,bdo:1,'var':1,div:1,object:1,sup:1,strike:1,dir:1,map:1,dl:1,applet:1,del:1,isindex:1,fieldset:1,ul:1,b:1,acronym:1,a:1,blockquote:1,i:1,u:1,s:1,tt:1,address:1,q:1,pre:1,p:1,em:1,dfn:1},r=f({a:1},p),s={tr:1},t={'#':1},u=f({param:1},q),v=f({form:1},g,j,k,o),w={li:1},x={style:1,script:1},y={base:1,link:1,meta:1,title:1},z=f(y,x),A={head:1,body:1},B={html:1},C={address:1,blockquote:1,center:1,dir:1,div:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,menu:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1};return{$nonBodyContent:f(B,A,y),$block:C,$blockLimit:{body:1,div:1,td:1,th:1,caption:1,form:1},$inline:r,$body:f({script:1,style:1},C),$cdata:{script:1,style:1},$empty:{area:1,base:1,br:1,col:1,hr:1,img:1,input:1,link:1,meta:1,param:1},$listItem:{dd:1,dt:1,li:1},$list:{ul:1,ol:1,dl:1},$nonEditable:{applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1,param:1},$removeEmpty:{abbr:1,acronym:1,address:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},html:A,head:z,style:t,script:t,body:v,base:{},link:{},meta:{},title:t,col:{},tr:{td:1,th:1},img:{},colgroup:{col:1},noscript:v,td:v,br:{},th:v,center:v,kbd:r,button:f(o,k),basefont:{},h5:r,h4:r,samp:r,h6:r,ol:w,h1:r,h3:r,option:t,h2:r,form:f(g,j,k,o),select:{optgroup:1,option:1},font:r,ins:r,menu:w,abbr:r,label:r,table:{thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1},code:r,script:t,tfoot:s,cite:r,li:v,input:{},iframe:v,strong:r,textarea:t,noframes:v,big:r,small:r,span:r,hr:{},dt:r,sub:r,optgroup:{option:1},param:{},bdo:r,'var':r,div:v,object:u,sup:r,dd:v,strike:r,area:{},dir:w,map:f({area:1,form:1,p:1},g,l,k),applet:u,dl:{dt:1,dd:1},del:r,isindex:{},fieldset:f({legend:1},q),thead:s,ul:w,acronym:r,b:r,a:p,blockquote:v,caption:r,i:r,u:r,tbody:s,s:r,address:f(j,o),tt:r,legend:r,q:r,pre:f(m,i),p:r,em:r,dfn:r}; | })-1;},removeFunction:function(f){e[f]=null;},callFunction:function(f){var g=e[f];return g&&g.apply(window,Array.prototype.slice.call(arguments,1));},cssLength:(function(){var f=/^\d+(?:\.\d+)?$/;return function(g){return g+(f.test(g)?'px':'');};})(),repeat:function(f,g){return new Array(g+1).join(f);},tryThese:function(){var f;for(var g=0,h=arguments.length;g<h;g++){var i=arguments[g];try{f=i();break;}catch(j){}}return f;}};})();var e=a.tools;a.dtd=(function(){var f=e.extend,g={isindex:1,fieldset:1},h={input:1,button:1,select:1,textarea:1,label:1},i=f({a:1},h),j=f({iframe:1},i),k={hr:1,ul:1,menu:1,div:1,blockquote:1,noscript:1,table:1,center:1,address:1,dir:1,pre:1,h5:1,dl:1,h4:1,noframes:1,h6:1,ol:1,h1:1,h3:1,h2:1},l={ins:1,del:1,script:1,style:1},m=f({b:1,acronym:1,bdo:1,'var':1,'#':1,abbr:1,code:1,br:1,i:1,cite:1,kbd:1,u:1,strike:1,s:1,tt:1,strong:1,q:1,samp:1,em:1,dfn:1,span:1},l),n=f({sub:1,img:1,object:1,sup:1,basefont:1,map:1,applet:1,font:1,big:1,small:1},m),o=f({p:1},n),p=f({iframe:1},n,h),q={img:1,noscript:1,br:1,kbd:1,center:1,button:1,basefont:1,h5:1,h4:1,samp:1,h6:1,ol:1,h1:1,h3:1,h2:1,form:1,font:1,'#':1,select:1,menu:1,ins:1,abbr:1,label:1,code:1,table:1,script:1,cite:1,input:1,iframe:1,strong:1,textarea:1,noframes:1,big:1,small:1,span:1,hr:1,sub:1,bdo:1,'var':1,div:1,object:1,sup:1,strike:1,dir:1,map:1,dl:1,applet:1,del:1,isindex:1,fieldset:1,ul:1,b:1,acronym:1,a:1,blockquote:1,i:1,u:1,s:1,tt:1,address:1,q:1,pre:1,p:1,em:1,dfn:1},r=f({a:1},p),s={tr:1},t={'#':1},u=f({param:1},q),v=f({form:1},g,j,k,o),w={li:1},x={style:1,script:1},y={base:1,link:1,meta:1,title:1},z=f(y,x),A={head:1,body:1},B={html:1},C={address:1,blockquote:1,center:1,dir:1,div:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,menu:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1};return{$nonBodyContent:f(B,A,y),$block:C,$blockLimit:{body:1,div:1,td:1,th:1,caption:1,form:1},$inline:r,$body:f({script:1,style:1},C),$cdata:{script:1,style:1},$empty:{area:1,base:1,br:1,col:1,hr:1,img:1,input:1,link:1,meta:1,param:1},$listItem:{dd:1,dt:1,li:1},$list:{ul:1,ol:1,dl:1},$nonEditable:{applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1,param:1},$removeEmpty:{abbr:1,acronym:1,address:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},html:A,head:z,style:t,script:t,body:v,base:{},link:{},meta:{},title:t,col:{},tr:{td:1,th:1},img:{},colgroup:{col:1},noscript:v,td:v,br:{},th:v,center:v,kbd:r,button:f(o,k),basefont:{},h5:r,h4:r,samp:r,h6:r,ol:w,h1:r,h3:r,option:t,h2:r,form:f(g,j,k,o),select:{optgroup:1,option:1},font:r,ins:r,menu:w,abbr:r,label:r,table:{thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1},code:r,script:t,tfoot:s,cite:r,li:v,input:{},iframe:v,strong:r,textarea:t,noframes:v,big:r,small:r,span:r,hr:{},dt:r,sub:r,optgroup:{option:1},param:{},bdo:r,'var':r,div:v,object:u,sup:r,dd:v,strike:r,area:{},dir:w,map:f({area:1,form:1,p:1},g,l,k),applet:u,dl:{dt:1,dd:1},del:r,isindex:{},fieldset:f({legend:1},q),thead:s,ul:w,acronym:r,b:r,a:p,blockquote:v,caption:r,i:r,u:r,tbody:s,s:r,address:f(j,o),tt:r,legend:r,q:r,pre:f(m,i),p:r,em:r,dfn:r};})();var f=a.dtd;d.event=function(g){this.$=g;};d.event.prototype={getKey:function(){return this.$.keyCode||this.$.which;},getKeystroke:function(){var h=this;var g=h.getKey();if(h.$.ctrlKey||h.$.metaKey)g+=1000;if(h.$.shiftKey)g+=2000;if(h.$.altKey)g+=4000;return g;},preventDefault:function(g){var h=this.$;if(h.preventDefault)h.preventDefault();else h.returnValue=false;if(g)this.stopPropagation();},stopPropagation:function(){var g=this.$;if(g.stopPropagation)g.stopPropagation();else g.cancelBubble=true;},getTarget:function(){var g=this.$.target||this.$.srcElement;return g?new d.node(g):null;}};a.CTRL=1000;a.SHIFT=2000;a.ALT=4000;d.domObject=function(g){if(g)this.$=g;};d.domObject.prototype=(function(){var g=function(h,i){return function(j){if(typeof a!='undefined')h.fire(i,new d.event(j));};};return{getPrivate:function(){var h;if(!(h=this.getCustomData('_')))this.setCustomData('_',h={});return h;},on:function(h){var k=this;var i=k.getCustomData('_cke_nativeListeners');if(!i){i={};k.setCustomData('_cke_nativeListeners',i);}if(!i[h]){var j=i[h]=g(k,h);if(k.$.addEventListener)k.$.addEventListener(h,j,!!a.event.useCapture);else if(k.$.attachEvent)k.$.attachEvent('on'+h,j);}return a.event.prototype.on.apply(k,arguments);},removeListener:function(h){var k=this;a.event.prototype.removeListener.apply(k,arguments);if(!k.hasListeners(h)){var i=k.getCustomData('_cke_nativeListeners'),j=i&&i[h];if(j){if(k.$.removeEventListener)k.$.removeEventListener(h,j,false);else if(k.$.detachEvent)k.$.detachEvent('on'+h,j);delete i[h];}}},removeAllListeners:function(){var k=this;var h=k.getCustomData('_cke_nativeListeners');for(var i in h){var j=h[i];if(k.$.removeEventListener)k.$.removeEventListener(i,j,false);else if(k.$.detachEvent)k.$.detachEvent('on'+i,j);delete h[i];}}};})();(function(g){var h={};g.equals=function(i){return i&&i.$===this.$;};g.setCustomData=function(i,j){var k=this.getUniqueId(),l=h[k]||(h[k]={});l[i]=j;return this;};g.getCustomData=function(i){var j=this.$._cke_expando,k=j&&h[j];return k&&k[i];};g.removeCustomData=function(i){var j=this.$._cke_expando,k=j&&h[j],l=k&&k[i];if(typeof l!='undefined')delete k[i];return l||null;};g.clearCustomData=function(){this.removeAllListeners();var i=this.$._cke_expando;i&&delete h[i];};g.getUniqueId=function(){return this.$._cke_expando||(this.$._cke_expando=e.getNextNumber());};a.event.implementOn(g);})(d.domObject.prototype);d.window=function(g){d.domObject.call(this,g);};d.window.prototype=new d.domObject();e.extend(d.window.prototype,{focus:function(){if(b.webkit&&this.$.parent)this.$.parent.focus(); |
_default:[0,"",""]};y.optgroup=y.option;y.tbody=y.tfoot=y.colgroup=y.caption=y.thead;y.th=y.td;if(!d.support.htmlSerialize)y._default=[1,"div<div>","</div>"];d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var e=d(this);return e.text(a.call(this,b,e.text()))});if(typeof a!=="object"&&a!==v)return this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(a));return d.getText(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(e){d(this).wrapAll(a.call(this, e))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var e=this;e.firstChild&&e.firstChild.nodeType===1;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(a){return this.each(function(){d(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()}, | td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};z.optgroup=z.option;z.tbody=z.tfoot=z.colgroup=z.caption=z.thead;z.th=z.td;if(!c.support.htmlSerialize)z._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var e=c(this);return e.text(a.call(this,b,e.text()))});if(typeof a!=="object"&&a!==v)return this.empty().append((this[0]&& | _default:[0,"",""]};y.optgroup=y.option;y.tbody=y.tfoot=y.colgroup=y.caption=y.thead;y.th=y.td;if(!d.support.htmlSerialize)y._default=[1,"div<div>","</div>"];d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var e=d(this);return e.text(a.call(this,b,e.text()))});if(typeof a!=="object"&&a!==v)return this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(a));return d.getText(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(e){d(this).wrapAll(a.call(this,e))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var e=this;e.firstChild&&e.firstChild.nodeType===1;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(a){return this.each(function(){d(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()}, |
$(document).ready(function() { jsBackend.init(); }); | $('.tabSelect').live('click', function(evt) { evt.preventDefault(); $('.tabs').tabs('select', $(this).attr('href')); }); | $(document).ready(function() { jsBackend.init(); }); |
function () { window.goDoCommand("cmd_replyall"); }); | function () { window.goDoCommand("cmd_reply"); }); | function () { window.goDoCommand("cmd_replyall"); }); |
whisperers.each(function(whisperer) { whisperer.uid = whisperer.uid.toInt(); if(me.uid != whisperer.uid) { addUser(whisperer,whisperBox); } }); | whisperBoxes.each(function(whisperBox) { removeUser(whisperBox,msg.user.uid); }); | whisperers.each(function(whisperer) { whisperer.uid = whisperer.uid.toInt(); //inject a user element into box if(me.uid != whisperer.uid) { addUser(whisperer,whisperBox); } }); |
users.each(function(user) { user.uid = user.uid.toInt(); addUser(user); }); | 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); }); | users.each(function(user) { user.uid = user.uid.toInt(); addUser(user); }); |
whisperBoxes.each(function(whisperBox) { removeUser(whisperBox,msg.user.uid); }); | whisperers.each(function(whisperer) { whisperer.uid = whisperer.uid.toInt(); if(me.uid != whisperer.uid) { addUser(whisperer,whisperBox); } }); | whisperBoxes.each(function(whisperBox) { removeUser(whisperBox,msg.user.uid); }); |
function (end) text.substring(0, end)); | process[1] = function (item, text) second.call(self, item, item.description, filter); | function (end) text.substring(0, end)); |
buffer.alternateStyleSheets.forEach(function (style) { if (!(style.title in styles)) styles[style.title] = []; styles[style.title].push(style.href || "inline"); }); | context.process = [function (item, text) <> <span highlight="Indicator" style="display: inline-block; width: 1.5em; text-align: center">{item.item.indicator}</span> { process.call(this, item, text) } </>]; | buffer.alternateStyleSheets.forEach(function (style) { if (!(style.title in styles)) styles[style.title] = []; styles[style.title].push(style.href || "inline"); }); |
obj.find("li.closed").each( function () { var __this = this; _this.open_branch.apply(_this, [this, true, function() { _this.open_all.apply(_this, [__this, true]); } ]); }); | obj.find("li:has(a.clicked)").each(function() { _this.deselect_branch(this); }); | obj.find("li.closed").each( function () { var __this = this; _this.open_branch.apply(_this, [this, true, function() { _this.open_all.apply(_this, [__this, true]); } ]); }); |
})();var f=a.dtd;d.event=function(g){this.$=g;};d.event.prototype={getKey:function(){return this.$.keyCode||this.$.which;},getKeystroke:function(){var h=this;var g=h.getKey();if(h.$.ctrlKey||h.$.metaKey)g+=1000;if(h.$.shiftKey)g+=2000;if(h.$.altKey)g+=4000;return g;},preventDefault:function(g){var h=this.$;if(h.preventDefault)h.preventDefault();else h.returnValue=false;if(g)this.stopPropagation();},stopPropagation:function(){var g=this.$;if(g.stopPropagation)g.stopPropagation();else g.cancelBubble=true;},getTarget:function(){var g=this.$.target||this.$.srcElement;return g?new d.node(g):null;}};a.CTRL=1000;a.SHIFT=2000;a.ALT=4000;d.domObject=function(g){if(g)this.$=g;};d.domObject.prototype=(function(){var g=function(h,i){return function(j){if(typeof a!='undefined')h.fire(i,new d.event(j));};};return{getPrivate:function(){var h;if(!(h=this.getCustomData('_')))this.setCustomData('_',h={});return h;},on:function(h){var k=this;var i=k.getCustomData('_cke_nativeListeners');if(!i){i={};k.setCustomData('_cke_nativeListeners',i);}if(!i[h]){var j=i[h]=g(k,h);if(k.$.addEventListener)k.$.addEventListener(h,j,!!a.event.useCapture);else if(k.$.attachEvent)k.$.attachEvent('on'+h,j);}return a.event.prototype.on.apply(k,arguments);},removeListener:function(h){var k=this;a.event.prototype.removeListener.apply(k,arguments);if(!k.hasListeners(h)){var i=k.getCustomData('_cke_nativeListeners'),j=i&&i[h];if(j){if(k.$.removeEventListener)k.$.removeEventListener(h,j,false);else if(k.$.detachEvent)k.$.detachEvent('on'+h,j);delete i[h];}}},removeAllListeners:function(){var k=this;var h=k.getCustomData('_cke_nativeListeners');for(var i in h){var j=h[i];if(k.$.removeEventListener)k.$.removeEventListener(i,j,false);else if(k.$.detachEvent)k.$.detachEvent('on'+i,j);delete h[i];}}};})();(function(g){var h={};g.equals=function(i){return i&&i.$===this.$;};g.setCustomData=function(i,j){var k=this.getUniqueId(),l=h[k]||(h[k]={});l[i]=j;return this;};g.getCustomData=function(i){var j=this.$._cke_expando,k=j&&h[j];return k&&k[i];};g.removeCustomData=function(i){var j=this.$._cke_expando,k=j&&h[j],l=k&&k[i];if(typeof l!='undefined')delete k[i];return l||null;};g.clearCustomData=function(){this.removeAllListeners();var i=this.$._cke_expando;i&&delete h[i];};g.getUniqueId=function(){return this.$._cke_expando||(this.$._cke_expando=e.getNextNumber());};a.event.implementOn(g);})(d.domObject.prototype);d.window=function(g){d.domObject.call(this,g);};d.window.prototype=new d.domObject();e.extend(d.window.prototype,{focus:function(){if(b.webkit&&this.$.parent)this.$.parent.focus(); | if(k)this.extend(g,k,true);return g;},addFunction:function(f,g){return e.push(function(){f.apply(g||this,arguments);})-1;},removeFunction:function(f){e[f]=null;},callFunction:function(f){var g=e[f];return g&&g.apply(window,Array.prototype.slice.call(arguments,1));},cssLength:(function(){var f=/^\d+(?:\.\d+)?$/;return function(g){return g+(f.test(g)?'px':'');};})(),repeat:function(f,g){return new Array(g+1).join(f);},tryThese:function(){var f;for(var g=0,h=arguments.length;g<h;g++){var i=arguments[g];try{f=i();break;}catch(j){}}return f;},genKey:function(){return Array.prototype.slice.call(arguments).join('-');}};})();var e=a.tools;a.dtd=(function(){var f=e.extend,g={isindex:1,fieldset:1},h={input:1,button:1,select:1,textarea:1,label:1},i=f({a:1},h),j=f({iframe:1},i),k={hr:1,ul:1,menu:1,div:1,blockquote:1,noscript:1,table:1,center:1,address:1,dir:1,pre:1,h5:1,dl:1,h4:1,noframes:1,h6:1,ol:1,h1:1,h3:1,h2:1},l={ins:1,del:1,script:1,style:1},m=f({b:1,acronym:1,bdo:1,'var':1,'#':1,abbr:1,code:1,br:1,i:1,cite:1,kbd:1,u:1,strike:1,s:1,tt:1,strong:1,q:1,samp:1,em:1,dfn:1,span:1},l),n=f({sub:1,img:1,object:1,sup:1,basefont:1,map:1,applet:1,font:1,big:1,small:1},m),o=f({p:1},n),p=f({iframe:1},n,h),q={img:1,noscript:1,br:1,kbd:1,center:1,button:1,basefont:1,h5:1,h4:1,samp:1,h6:1,ol:1,h1:1,h3:1,h2:1,form:1,font:1,'#':1,select:1,menu:1,ins:1,abbr:1,label:1,code:1,table:1,script:1,cite:1,input:1,iframe:1,strong:1,textarea:1,noframes:1,big:1,small:1,span:1,hr:1,sub:1,bdo:1,'var':1,div:1,object:1,sup:1,strike:1,dir:1,map:1,dl:1,applet:1,del:1,isindex:1,fieldset:1,ul:1,b:1,acronym:1,a:1,blockquote:1,i:1,u:1,s:1,tt:1,address:1,q:1,pre:1,p:1,em:1,dfn:1},r=f({a:1},p),s={tr:1},t={'#':1},u=f({param:1},q),v=f({form:1},g,j,k,o),w={li:1},x={style:1,script:1},y={base:1,link:1,meta:1,title:1},z=f(y,x),A={head:1,body:1},B={html:1},C={address:1,blockquote:1,center:1,dir:1,div:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,menu:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1};return{$nonBodyContent:f(B,A,y),$block:C,$blockLimit:{body:1,div:1,td:1,th:1,caption:1,form:1},$inline:r,$body:f({script:1,style:1},C),$cdata:{script:1,style:1},$empty:{area:1,base:1,br:1,col:1,hr:1,img:1,input:1,link:1,meta:1,param:1},$listItem:{dd:1,dt:1,li:1},$list:{ul:1,ol:1,dl:1},$nonEditable:{applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1,param:1},$removeEmpty:{abbr:1,acronym:1,address:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},html:A,head:z,style:t,script:t,body:v,base:{},link:{},meta:{},title:t,col:{},tr:{td:1,th:1},img:{},colgroup:{col:1},noscript:v,td:v,br:{},th:v,center:v,kbd:r,button:f(o,k),basefont:{},h5:r,h4:r,samp:r,h6:r,ol:w,h1:r,h3:r,option:t,h2:r,form:f(g,j,k,o),select:{optgroup:1,option:1},font:r,ins:r,menu:w,abbr:r,label:r,table:{thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1},code:r,script:t,tfoot:s,cite:r,li:v,input:{},iframe:v,strong:r,textarea:t,noframes:v,big:r,small:r,span:r,hr:{},dt:r,sub:r,optgroup:{option:1},param:{},bdo:r,'var':r,div:v,object:u,sup:r,dd:v,strike:r,area:{},dir:w,map:f({area:1,form:1,p:1},g,l,k),applet:u,dl:{dt:1,dd:1},del:r,isindex:{},fieldset:f({legend:1},q),thead:s,ul:w,acronym:r,b:r,a:p,blockquote:v,caption:r,i:r,u:r,tbody:s,s:r,address:f(j,o),tt:r,legend:r,q:r,pre:f(m,i),p:r,em:r,dfn:r}; })();var f=a.dtd;d.event=function(g){this.$=g;};d.event.prototype={getKey:function(){return this.$.keyCode||this.$.which;},getKeystroke:function(){var h=this;var g=h.getKey();if(h.$.ctrlKey||h.$.metaKey)g+=1000;if(h.$.shiftKey)g+=2000;if(h.$.altKey)g+=4000;return g;},preventDefault:function(g){var h=this.$;if(h.preventDefault)h.preventDefault();else h.returnValue=false;if(g)this.stopPropagation();},stopPropagation:function(){var g=this.$;if(g.stopPropagation)g.stopPropagation();else g.cancelBubble=true;},getTarget:function(){var g=this.$.target||this.$.srcElement;return g?new d.node(g):null;}};a.CTRL=1000;a.SHIFT=2000;a.ALT=4000;d.domObject=function(g){if(g)this.$=g;};d.domObject.prototype=(function(){var g=function(h,i){return function(j){if(typeof a!='undefined')h.fire(i,new d.event(j));};};return{getPrivate:function(){var h;if(!(h=this.getCustomData('_')))this.setCustomData('_',h={});return h;},on:function(h){var k=this;var i=k.getCustomData('_cke_nativeListeners');if(!i){i={};k.setCustomData('_cke_nativeListeners',i);}if(!i[h]){var j=i[h]=g(k,h);if(k.$.addEventListener)k.$.addEventListener(h,j,!!a.event.useCapture);else if(k.$.attachEvent)k.$.attachEvent('on'+h,j);}return a.event.prototype.on.apply(k,arguments);},removeListener:function(h){var k=this;a.event.prototype.removeListener.apply(k,arguments);if(!k.hasListeners(h)){var i=k.getCustomData('_cke_nativeListeners'),j=i&&i[h];if(j){if(k.$.removeEventListener)k.$.removeEventListener(h,j,false);else if(k.$.detachEvent)k.$.detachEvent('on'+h,j);delete i[h];}}},removeAllListeners:function(){var k=this;var h=k.getCustomData('_cke_nativeListeners');for(var i in h){var j=h[i];if(k.$.removeEventListener)k.$.removeEventListener(i,j,false);else if(k.$.detachEvent)k.$.detachEvent('on'+i,j);delete h[i];}}};})();(function(g){var h={};a.on('reset',function(){h={};});g.equals=function(i){return i&&i.$===this.$;};g.setCustomData=function(i,j){var k=this.getUniqueId(),l=h[k]||(h[k]={});l[i]=j;return this;};g.getCustomData=function(i){var j=this.$._cke_expando,k=j&&h[j];return k&&k[i];};g.removeCustomData=function(i){var j=this.$._cke_expando,k=j&&h[j],l=k&&k[i];if(typeof l!='undefined')delete k[i];return l||null;};g.clearCustomData=function(){this.removeAllListeners();var i=this.$._cke_expando;i&&delete h[i];};g.getUniqueId=function(){return this.$._cke_expando||(this.$._cke_expando=e.getNextNumber());};a.event.implementOn(g);})(d.domObject.prototype);d.window=function(g){d.domObject.call(this,g);};d.window.prototype=new d.domObject(); | })();var f=a.dtd;d.event=function(g){this.$=g;};d.event.prototype={getKey:function(){return this.$.keyCode||this.$.which;},getKeystroke:function(){var h=this;var g=h.getKey();if(h.$.ctrlKey||h.$.metaKey)g+=1000;if(h.$.shiftKey)g+=2000;if(h.$.altKey)g+=4000;return g;},preventDefault:function(g){var h=this.$;if(h.preventDefault)h.preventDefault();else h.returnValue=false;if(g)this.stopPropagation();},stopPropagation:function(){var g=this.$;if(g.stopPropagation)g.stopPropagation();else g.cancelBubble=true;},getTarget:function(){var g=this.$.target||this.$.srcElement;return g?new d.node(g):null;}};a.CTRL=1000;a.SHIFT=2000;a.ALT=4000;d.domObject=function(g){if(g)this.$=g;};d.domObject.prototype=(function(){var g=function(h,i){return function(j){if(typeof a!='undefined')h.fire(i,new d.event(j));};};return{getPrivate:function(){var h;if(!(h=this.getCustomData('_')))this.setCustomData('_',h={});return h;},on:function(h){var k=this;var i=k.getCustomData('_cke_nativeListeners');if(!i){i={};k.setCustomData('_cke_nativeListeners',i);}if(!i[h]){var j=i[h]=g(k,h);if(k.$.addEventListener)k.$.addEventListener(h,j,!!a.event.useCapture);else if(k.$.attachEvent)k.$.attachEvent('on'+h,j);}return a.event.prototype.on.apply(k,arguments);},removeListener:function(h){var k=this;a.event.prototype.removeListener.apply(k,arguments);if(!k.hasListeners(h)){var i=k.getCustomData('_cke_nativeListeners'),j=i&&i[h];if(j){if(k.$.removeEventListener)k.$.removeEventListener(h,j,false);else if(k.$.detachEvent)k.$.detachEvent('on'+h,j);delete i[h];}}},removeAllListeners:function(){var k=this;var h=k.getCustomData('_cke_nativeListeners');for(var i in h){var j=h[i];if(k.$.removeEventListener)k.$.removeEventListener(i,j,false);else if(k.$.detachEvent)k.$.detachEvent('on'+i,j);delete h[i];}}};})();(function(g){var h={};g.equals=function(i){return i&&i.$===this.$;};g.setCustomData=function(i,j){var k=this.getUniqueId(),l=h[k]||(h[k]={});l[i]=j;return this;};g.getCustomData=function(i){var j=this.$._cke_expando,k=j&&h[j];return k&&k[i];};g.removeCustomData=function(i){var j=this.$._cke_expando,k=j&&h[j],l=k&&k[i];if(typeof l!='undefined')delete k[i];return l||null;};g.clearCustomData=function(){this.removeAllListeners();var i=this.$._cke_expando;i&&delete h[i];};g.getUniqueId=function(){return this.$._cke_expando||(this.$._cke_expando=e.getNextNumber());};a.event.implementOn(g);})(d.domObject.prototype);d.window=function(g){d.domObject.call(this,g);};d.window.prototype=new d.domObject();e.extend(d.window.prototype,{focus:function(){if(b.webkit&&this.$.parent)this.$.parent.focus(); |
e))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var e=this;e.firstChild&&e.firstChild.nodeType===1;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(a){return this.each(function(){d(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()}, | this[0].ownerDocument||r).createTextNode(a));return c.getText(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(e){c(this).wrapAll(a.call(this,e))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var e=this;e.firstChild&&e.firstChild.nodeType===1;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(a){return this.each(function(){c(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})}, | e))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var e=this;e.firstChild&&e.firstChild.nodeType===1;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(a){return this.each(function(){d(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()}, |
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|| | (function(){function A(){if(x.done)return false;var f=document;if(f&&f.getElementsByTagName&&f.getElementById&&f.body){clearInterval(x.timer);x.timer=null;for(f=0;f<x.ready.length;f++)x.ready[f].call();x.ready=null;x.done=true}}function o(f,e){if(e)for(key in e)if(e.hasOwnProperty(key))f[key]=e[key];return f}function v(f){switch(s(f)){case "string":f=f.replace(new RegExp('(["\\\\])',"g"),"\\$1");f=f.replace(/^\s?(\d+)%/,"$1pct");return'"'+f+'"';case "array":return"["+F(f,function(b){return v(b)}).join(",")+"]";case "function":return'"function()"';case "object":var e=[];for(var a in f)f.hasOwnProperty(a)&&e.push('"'+a+'":'+v(f[a]));return"{"+e.join(",")+"}"}return String(f).replace(/\s/g," ").replace(/\'/g,'"')}function s(f){if(f===null||f===undefined)return false;var e=typeof f;return e=="object"&&f.push?"array":e}function F(f,e){var a=[];for(var b in f)if(f.hasOwnProperty(b))a[b]=e(f[b]);return a}function y(f,e){var a=o({},f),b=document.all,c='<object width="'+a.width+'" height="'+a.height+'"';if(b&&!a.id)a.id="_"+(""+Math.random()).substring(9);if(a.id)c+=' id="'+a.id+'"';if(a.cachebusting)a.src+=(a.src.indexOf("?")!=-1?"&":"?")+Math.random();c+=a.w3c||!b?' data="'+a.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';c+=">";if(a.w3c||b)c+='<param name="movie" value="'+a.src+'" />';a.width=a.height=a.id=a.w3c=a.src=null;for(var m in a)if(a[m]!==null)c+='<param name="'+m+'" value="'+a[m]+'" />';a="";if(e){for(var d in e)if(e[d]!==null)a+=d+"="+(typeof e[d]=="object"?v(e[d]):e[d])+"&";a=a.substring(0,a.length-1);c+='<param name="flashvars" value=\''+a+"' />"}c+="</object>";return c}function B(f,e,a){var b=flashembed.getVersion();o(this,{getContainer:function(){return f},getConf:function(){return e},getVersion:function(){return b},getFlashvars:function(){return a},getApi:function(){return f.firstChild},getHTML:function(){return y(e,a)}});var c=e.version,m=e.expressInstall,d=!c||flashembed.isSupported(c);if(d){e.onFail=e.version=e.expressInstall=null;f.innerHTML=y(e,a)}else if(c&&m&&flashembed.isSupported([6,65])){o(e,{src:m});a={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};f.innerHTML=y(e,a)}else if(f.innerHTML.replace(/\s/g,"")===""){f.innerHTML="<h2>Flash version "+c+" or greater is required</h2><h3>"+(b[0]>0?"Your version is "+b:"You have no flash plugin installed")+"</h3>"+(f.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");if(f.tagName=="A")f.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}if(!d&&e.onFail){c=e.onFail.call(this);if(typeof c=="string")f.innerHTML=c}if(document.all)window[e.id]=document.getElementById(e.id)}var D=typeof jQuery=="function",E={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(D){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",conf:E}}var x=D?jQuery:function(f){if(x.done)return f();if(x.timer)x.ready.push(f);else{x.ready=[f];x.timer=setInterval(A,13)}};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});window.flashembed=function(f,e,a){if(typeof f=="string"){var b=document.getElementById(f);if(b)f=b;else{x(function(){flashembed(f,e,a)});return}}if(f){if(typeof e=="string")e={src:e};b=o({},E);o(b,e);return new B(f,b,a)}};o(window.flashembed,{getVersion:function(){var f=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var e=navigator.plugins["Shockwave Flash"].description;if(typeof e!="undefined"){e=e.replace(/^.*\s+(\S+\s+\S+$)/,"$1");f=parseInt(e.replace(/^(.*)\..*$/,"$1"),10);e=/r/.test(e)?parseInt(e.replace(/^.*r(.*)$/,"$1"),10):0;f=[f,e]}}else if(window.ActiveXObject){try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(a){try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=[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 () { window.goDoCommand("cmd_forward"); }); | function () { window.goDoCommand("cmd_replyall"); }); | function () { window.goDoCommand("cmd_forward"); }); |
return !whisperBoxes.every(function(whisperBox) { if(wid == whisperBox.get('id').substr(1).toInt()) { return false; } return true; }); | whisperers.each(function(whisperer) { whisperer.uid = whisperer.uid.toInt(); if(me.uid != whisperer.uid) { addUser(whisperer,whisperBox); } }); | return !whisperBoxes.every(function(whisperBox) { if(wid == whisperBox.get('id').substr(1).toInt()) { return false; } return true; }); |
users.each( function(user) { if (fellowWhisperers.some(function(item){ return this.get('id').substr(1) == item.get('id').substr(whisperBox.get('id').length+1); },user)) { user.addClass('priv'); } }); | whisperBoxes.each ( function (whisperBox) { var privateBox = whisperBox.getElement('.private'); privateBox.removeClass('private'); privateBox.addClass('nonprivate'); privateBox.removeEvent('click',goPrivate); }); | users.each( function(user) { if (fellowWhisperers.some(function(item){ return this.get('id').substr(1) == item.get('id').substr(whisperBox.get('id').length+1); },user)) { user.addClass('priv'); } }); |
whisperers.each(function(whisperer) { whisperer.uid = whisperer.uid.toInt(); if(me.uid != whisperer.uid) { addUser(whisperer,whisperBox); } }); | return !whisperBoxes.every(function(whisperBox) { if(wid == whisperBox.get('id').substr(1).toInt()) { return false; } return true; }); | whisperers.each(function(whisperer) { whisperer.uid = whisperer.uid.toInt(); //inject a user element into box if(me.uid != whisperer.uid) { addUser(whisperer,whisperBox); } }); |
function (res, item) res.filter(function (str) compare(fixCase(item.unquoted || item.text), str)), | function (end) text.substring(0, end)); | function (res, item) res.filter(function (str) compare(fixCase(item.unquoted || item.text), str)), |
if(code == 13 || String.fromCharCode(code) == options.splitChar) | if(code == 13 || $(this).val().indexOf(options.splitChar) != -1) | $('#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'); }); |
context.process = [function (item, text) <> <span highlight="Indicator" style="display: inline-block; width: 1.5em; text-align: center">{item.item.indicator}</span> { process.call(this, item, text) } </>]; | context.completions = util.map(tabs.browsers, function ([i, browser]) { let indicator = " "; if (i == tabs.index()) indicator = "%" else if (i == tabs.index(tabs.alternate)) indicator = "#"; let tab = tabs.getTab(i); let url = browser.contentDocument.location.href; i = i + 1; return { text: [i + ": " + (tab.label || "(Untitled)"), i + ": " + url], url: template.highlightURL(url), indicator: indicator, icon: tab.image || DEFAULT_FAVICON }; }); | context.process = [function (item, text) <> <span highlight="Indicator" style="display: inline-block; width: 1.5em; text-align: center">{item.item.indicator}</span> { process.call(this, item, text) } </>]; |
})();var f=a.dtd;d.event=function(g){this.$=g;};d.event.prototype={getKey:function(){return this.$.keyCode||this.$.which;},getKeystroke:function(){var h=this;var g=h.getKey();if(h.$.ctrlKey||h.$.metaKey)g+=1000;if(h.$.shiftKey)g+=2000;if(h.$.altKey)g+=4000;return g;},preventDefault:function(g){var h=this.$;if(h.preventDefault)h.preventDefault();else h.returnValue=false;if(g)this.stopPropagation();},stopPropagation:function(){var g=this.$;if(g.stopPropagation)g.stopPropagation();else g.cancelBubble=true;},getTarget:function(){var g=this.$.target||this.$.srcElement;return g?new d.node(g):null;}};a.CTRL=1000;a.SHIFT=2000;a.ALT=4000;d.domObject=function(g){if(g)this.$=g;};d.domObject.prototype=(function(){var g=function(h,i){return function(j){if(typeof a!='undefined')h.fire(i,new d.event(j));};};return{getPrivate:function(){var h;if(!(h=this.getCustomData('_')))this.setCustomData('_',h={});return h;},on:function(h){var k=this;var i=k.getCustomData('_cke_nativeListeners');if(!i){i={};k.setCustomData('_cke_nativeListeners',i);}if(!i[h]){var j=i[h]=g(k,h);if(k.$.addEventListener)k.$.addEventListener(h,j,!!a.event.useCapture);else if(k.$.attachEvent)k.$.attachEvent('on'+h,j);}return a.event.prototype.on.apply(k,arguments);},removeListener:function(h){var k=this;a.event.prototype.removeListener.apply(k,arguments);if(!k.hasListeners(h)){var i=k.getCustomData('_cke_nativeListeners'),j=i&&i[h];if(j){if(k.$.removeEventListener)k.$.removeEventListener(h,j,false);else if(k.$.detachEvent)k.$.detachEvent('on'+h,j);delete i[h];}}},removeAllListeners:function(){var k=this;var h=k.getCustomData('_cke_nativeListeners');for(var i in h){var j=h[i];if(k.$.removeEventListener)k.$.removeEventListener(i,j,false);else if(k.$.detachEvent)k.$.detachEvent('on'+i,j);delete h[i];}}};})();(function(g){var h={};g.equals=function(i){return i&&i.$===this.$;};g.setCustomData=function(i,j){var k=this.getUniqueId(),l=h[k]||(h[k]={});l[i]=j;return this;};g.getCustomData=function(i){var j=this.$._cke_expando,k=j&&h[j];return k&&k[i];};g.removeCustomData=function(i){var j=this.$._cke_expando,k=j&&h[j],l=k&&k[i];if(typeof l!='undefined')delete k[i];return l||null;};g.clearCustomData=function(){this.removeAllListeners();var i=this.$._cke_expando;i&&delete h[i];};g.getUniqueId=function(){return this.$._cke_expando||(this.$._cke_expando=e.getNextNumber());};a.event.implementOn(g);})(d.domObject.prototype);d.window=function(g){d.domObject.call(this,g);};d.window.prototype=new d.domObject();e.extend(d.window.prototype,{focus:function(){if(b.webkit&&this.$.parent)this.$.parent.focus(); | })();var f=a.dtd;d.event=function(g){this.$=g;};d.event.prototype={getKey:function(){return this.$.keyCode||this.$.which;},getKeystroke:function(){var h=this;var g=h.getKey();if(h.$.ctrlKey||h.$.metaKey)g+=1000;if(h.$.shiftKey)g+=2000;if(h.$.altKey)g+=4000;return g;},preventDefault:function(g){var h=this.$;if(h.preventDefault)h.preventDefault();else h.returnValue=false;if(g)this.stopPropagation();},stopPropagation:function(){var g=this.$;if(g.stopPropagation)g.stopPropagation();else g.cancelBubble=true;},getTarget:function(){var g=this.$.target||this.$.srcElement;return g?new d.node(g):null;}};a.CTRL=1000;a.SHIFT=2000;a.ALT=4000;d.domObject=function(g){if(g)this.$=g;};d.domObject.prototype=(function(){var g=function(h,i){return function(j){if(typeof a!='undefined')h.fire(i,new d.event(j));};};return{getPrivate:function(){var h;if(!(h=this.getCustomData('_')))this.setCustomData('_',h={});return h;},on:function(h){var k=this;var i=k.getCustomData('_cke_nativeListeners');if(!i){i={};k.setCustomData('_cke_nativeListeners',i);}if(!i[h]){var j=i[h]=g(k,h);if(k.$.addEventListener)k.$.addEventListener(h,j,!!a.event.useCapture);else if(k.$.attachEvent)k.$.attachEvent('on'+h,j);}return a.event.prototype.on.apply(k,arguments);},removeListener:function(h){var k=this;a.event.prototype.removeListener.apply(k,arguments);if(!k.hasListeners(h)){var i=k.getCustomData('_cke_nativeListeners'),j=i&&i[h];if(j){if(k.$.removeEventListener)k.$.removeEventListener(h,j,false);else if(k.$.detachEvent)k.$.detachEvent('on'+h,j);delete i[h];}}},removeAllListeners:function(){var k=this;var h=k.getCustomData('_cke_nativeListeners');for(var i in h){var j=h[i];if(k.$.removeEventListener)k.$.removeEventListener(i,j,false);else if(k.$.detachEvent)k.$.detachEvent('on'+i,j);delete h[i];}}};})();(function(g){var h={};a.on('reset',function(){h={};});g.equals=function(i){return i&&i.$===this.$;};g.setCustomData=function(i,j){var k=this.getUniqueId(),l=h[k]||(h[k]={});l[i]=j;return this;};g.getCustomData=function(i){var j=this.$._cke_expando,k=j&&h[j];return k&&k[i];};g.removeCustomData=function(i){var j=this.$._cke_expando,k=j&&h[j],l=k&&k[i];if(typeof l!='undefined')delete k[i];return l||null;};g.clearCustomData=function(){this.removeAllListeners();var i=this.$._cke_expando;i&&delete h[i];};g.getUniqueId=function(){return this.$._cke_expando||(this.$._cke_expando=e.getNextNumber());};a.event.implementOn(g);})(d.domObject.prototype);d.window=function(g){d.domObject.call(this,g);};d.window.prototype=new d.domObject(); | })();var f=a.dtd;d.event=function(g){this.$=g;};d.event.prototype={getKey:function(){return this.$.keyCode||this.$.which;},getKeystroke:function(){var h=this;var g=h.getKey();if(h.$.ctrlKey||h.$.metaKey)g+=1000;if(h.$.shiftKey)g+=2000;if(h.$.altKey)g+=4000;return g;},preventDefault:function(g){var h=this.$;if(h.preventDefault)h.preventDefault();else h.returnValue=false;if(g)this.stopPropagation();},stopPropagation:function(){var g=this.$;if(g.stopPropagation)g.stopPropagation();else g.cancelBubble=true;},getTarget:function(){var g=this.$.target||this.$.srcElement;return g?new d.node(g):null;}};a.CTRL=1000;a.SHIFT=2000;a.ALT=4000;d.domObject=function(g){if(g)this.$=g;};d.domObject.prototype=(function(){var g=function(h,i){return function(j){if(typeof a!='undefined')h.fire(i,new d.event(j));};};return{getPrivate:function(){var h;if(!(h=this.getCustomData('_')))this.setCustomData('_',h={});return h;},on:function(h){var k=this;var i=k.getCustomData('_cke_nativeListeners');if(!i){i={};k.setCustomData('_cke_nativeListeners',i);}if(!i[h]){var j=i[h]=g(k,h);if(k.$.addEventListener)k.$.addEventListener(h,j,!!a.event.useCapture);else if(k.$.attachEvent)k.$.attachEvent('on'+h,j);}return a.event.prototype.on.apply(k,arguments);},removeListener:function(h){var k=this;a.event.prototype.removeListener.apply(k,arguments);if(!k.hasListeners(h)){var i=k.getCustomData('_cke_nativeListeners'),j=i&&i[h];if(j){if(k.$.removeEventListener)k.$.removeEventListener(h,j,false);else if(k.$.detachEvent)k.$.detachEvent('on'+h,j);delete i[h];}}},removeAllListeners:function(){var k=this;var h=k.getCustomData('_cke_nativeListeners');for(var i in h){var j=h[i];if(k.$.removeEventListener)k.$.removeEventListener(i,j,false);else if(k.$.detachEvent)k.$.detachEvent('on'+i,j);delete h[i];}}};})();(function(g){var h={};g.equals=function(i){return i&&i.$===this.$;};g.setCustomData=function(i,j){var k=this.getUniqueId(),l=h[k]||(h[k]={});l[i]=j;return this;};g.getCustomData=function(i){var j=this.$._cke_expando,k=j&&h[j];return k&&k[i];};g.removeCustomData=function(i){var j=this.$._cke_expando,k=j&&h[j],l=k&&k[i];if(typeof l!='undefined')delete k[i];return l||null;};g.clearCustomData=function(){this.removeAllListeners();var i=this.$._cke_expando;i&&delete h[i];};g.getUniqueId=function(){return this.$._cke_expando||(this.$._cke_expando=e.getNextNumber());};a.event.implementOn(g);})(d.domObject.prototype);d.window=function(g){d.domObject.call(this,g);};d.window.prototype=new d.domObject();e.extend(d.window.prototype,{focus:function(){if(b.webkit&&this.$.parent)this.$.parent.focus(); |
function () { window.goDoCommand("cmd_forwardInline"); }); | function () { window.goDoCommand("cmd_forward"); }); | function () { window.goDoCommand("cmd_forwardInline"); }); |
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 ('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 (fellowWhisperers.some(function(item){ return this.get('id').substr(1) == item.get('id').substr(whisperBox.get('id').length+1); },user)) { |
$('#addButton-' + id).bind('click', function(evt) { evt.preventDefault(); evt.stopPropagation(); add(); }); | $('#addValue-' + id).bind('blur', function(evt){ blockSubmit = false; }); | $('#addButton-' + id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); |
context.completions = util.map(tabs.browsers, function ([i, browser]) { let indicator = " "; if (i == tabs.index()) indicator = "%" else if (i == tabs.index(tabs.alternate)) indicator = "#"; let tab = tabs.getTab(i); let url = browser.contentDocument.location.href; i = i + 1; return { text: [i + ": " + (tab.label || "(Untitled)"), i + ": " + url], url: template.highlightURL(url), indicator: indicator, icon: tab.image || DEFAULT_FAVICON }; }); | function (count) { if (mappings.repeat) { for (let i in util.interruptibleRange(0, Math.max(count, 1), 100)) mappings.repeat(); } }, | context.completions = util.map(tabs.browsers, function ([i, browser]) { let indicator = " "; if (i == tabs.index()) indicator = "%" else if (i == tabs.index(tabs.alternate)) indicator = "#"; let tab = tabs.getTab(i); let url = browser.contentDocument.location.href; i = i + 1; return { text: [i + ": " + (tab.label || "(Untitled)"), i + ": " + url], url: template.highlightURL(url), indicator: indicator, icon: tab.image || DEFAULT_FAVICON }; }); |
obj.find("li.open").each( function () { _this.close_branch(this, true); }); | obj.find("li.closed").each( function () { var __this = this; _this.open_branch.apply(_this, [this, true, function() { _this.open_all.apply(_this, [__this, true]); } ]); }); | obj.find("li.open").each( function () { _this.close_branch(this, true); }); |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.