rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
panel.showArtifact(data);
panel.showArtifact(data, artifactContainer);
Sonatype.Events.addListener('fileContainerUpdate', function(artifactContainer, data) { var panel = artifactContainer.find('name', 'artifactInformationPanel')[0]; if (data == null || !data.leaf) { panel.showArtifact(null); } else { panel.showArtifact(data); } });
width: oWidth}, opts.speed, function() {
width: oWidth}, conf.speed, function() {
width: oWidth}, opts.speed, function() { // set close button and content over the image overlay.css("zIndex", opts.zIndex + 1).fadeIn(opts.fadeInSpeed, function() { if (self.isOpened() && !$(this).index(overlay)) { onLoad.call(); } else { overlay.hide(); } }); });
overlay.css("zIndex", opts.zIndex + 1).fadeIn(opts.fadeInSpeed, function() {
overlay.css("zIndex", conf.zIndex + 1).fadeIn(conf.fadeInSpeed, function() {
width: oWidth}, opts.speed, function() { // set close button and content over the image overlay.css("zIndex", opts.zIndex + 1).fadeIn(opts.fadeInSpeed, function() { if (self.isOpened() && !$(this).index(overlay)) { onLoad.call(); } else { overlay.hide(); } }); });
var id = $(this).attr('id'); var elements = get(); var blockSubmit = false;
var element = $(this); calculateMeta(null, $(this)); $(this).bind('keyup', calculateMeta); if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { $('#pageTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#pageTitle').val(element.val()); } }); } if($('#navigationTitle').leng...
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; }) // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ '...
$(this.form).submit(function() { return !blockSubmit; }) var html = '<div class="tagsWrapper">'+ ' <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="but...
function calculateMeta(evt, element) { if(typeof element != 'undefined') var title = element.val(); else var title = $(this).val();
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; }) // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ '...
build(); 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) { var realData = []; if(data.code != 200 && jsBackend...
if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { if(!$('#pageTitleOverwrite').is(':checked')) { $('#pageTitle').val(title);
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; }) // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ '...
} function build() { var html = ''; if(elements.length == 0 && options.emptyMessage != '') html = '<p class="helpTxt">'+ options.emptyMessage +'</p>'; else { html = '<ul>'; for(var i in elements) { html += ' <li><span><strong>'+ elements[i] +'</strong>'+ ' <a href="#" class="deleteButton-'+ id +'" rel="'+ e...
if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { if(!$('#navigationTitleOverwrite').is(':checked')) { $('#navigationTitle').val(title);
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; }) // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ '...
html += '</ul>';
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; }) // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ '...
$('#elementList-'+ id).html(html); } function get() { var chunks = $('#'+ id).val().split(options.splitChar); var elements = []; for(var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g,''); if(value != '') elements.push(value)
if(!$('#metaDescriptionOverwrite').is(':checked')) { $('#metaDescription').val(title);
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; }) // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ '...
return elements; } function remove(value) { var index = elements.indexOf(value); if(index > -1) elements.splice(index, 1); $('#'+ id).val(elements.join(options.splitChar)); build();
if(!$('#metaKeywordsOverwrite').is(':checked')) { $('#metaKeywords').val(title); } if(!$('#urlOverwrite').is(':checked')) { $('#url').val(utils.string.urlise(title)); $('#generatedUrl').html(utils.string.urlise(title)); }
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; }) // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ '...
function(a,b){if(m(a))if(c.widgetCoordinates(a,b).x>a.offsetWidth-16)if(f!=a.id){k();f=a.id;n.refilter()}else{f=null;k()}};this.editKeyDown=function(a,b){if(!m(a))return true;if(f!=a.id)if($(a).hasClass("Wt-suggest-onedit"))f=a.id;else if($(a).hasClass("Wt-suggest-dropdown")&&b.keyCode==40)f=a.id;else{f=null;return tru...
40)f=a.id;else{f=null;return true}var h=k?c.getElement(k):null;if(t()&&h)if(b.keyCode==13||b.keyCode==9){u(h);c.cancelEvent(b);setTimeout(function(){a.focus()},0);return false}else if(b.keyCode==40||b.keyCode==38||b.keyCode==34||b.keyCode==33){if(b.type.toUpperCase()=="KEYDOWN"){w=true;c.cancelEvent(b,c.CancelDefaultAc...
function(a,b){if(m(a))if(c.widgetCoordinates(a,b).x>a.offsetWidth-16)if(f!=a.id){k();f=a.id;n.refilter()}else{f=null;k()}};this.editKeyDown=function(a,b){if(!m(a))return true;if(f!=a.id)if($(a).hasClass("Wt-suggest-onedit"))f=a.id;else if($(a).hasClass("Wt-suggest-dropdown")&&b.keyCode==40)f=a.id;else{f=null;return tru...
function b(c,f,j){c=o(f);var l=d(c,f),q=o(f+1),s=d(q,f+1);if(a.pctself(c,"width")>0&&a.pctself(q,"width")>0){c.style.width="";k()}a.pctself(c,"width")==0&&e(f,l+j);a.pctself(q,"width")==0&&e(f+1,s-j);window.onresize()}var r=this,n=a.getElement(t);if(n)if(!r.resizeInitialized){var u=n.firstChild,p,x,z,y;x=p=0;for(z=u.ro...
function b(c,f,j){c=o(f);var l=d(c,f),q=o(f+1),s=d(q,f+1);if(a.pctself(c,"width")>0&&a.pctself(q,"width")>0){c.style.width="";k()}a.pctself(c,"width")==0&&e(f,l+j);a.pctself(q,"width")==0&&e(f+1,s-j);window.onresize()}var r=this,n=a.getElement(t);if(n)if(!r.resizeInitialized){var u=n.firstChild,p,y,A,z;y=p=0;for(A=u.ro...
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,t,i){function o(c){var f,j,l,q=a.getElement(t).firstChild.childNodes;j=f=0;for(l=q.length;j<l;j++){var s=q[j];if(a.hasTag(s,"COLGROUP")){j=-1;q=s.childNodes;l=q.length}if(a.hasTag(s,"COL"))if(s.className!="Wt-vrh")if(f==c)return s;else++f}return null}fu...
item.url = false;
downloadString, function(text) { // get marked records as RIS Zotero.debug(text); // load translator for RIS var test = text.match(/UR\s+\-(.*)/g); if (text.match(/AB\s\s\-/)) text = text.replace(/AB\s\s\-/, "N2 -"); if (!text.match(/TY\s\s-/)) text = text+"\nTY - JOUR\n"; // load translator for RIS ...
panel.show();
Sonatype.Events.addListener('artifactContainerUpdate', function(artifactContainer, payload) { var panel = artifactContainer.find('name', 'maven2InformationPanel')[0]; if (payload == null || !payload.leaf) { panel.showArtifact(null); } else { Ext.Ajax.request({ ...
panel.hide();
artifactContainer.tabPanel.setActiveTab(1);
Sonatype.Events.addListener('artifactContainerUpdate', function(artifactContainer, payload) { var panel = artifactContainer.find('name', 'maven2InformationPanel')[0]; if (payload == null || !payload.leaf) { panel.showArtifact(null); } else { Ext.Ajax.request({ ...
hp.pitches.each(function(p) { p.verticalPos = p.pitch - mid; });
usedNums.each(function(x) { if (nextNum === x) ++nextNum; })
hp.pitches.each(function(p) { p.verticalPos = p.pitch - mid; });
return;
element.observe("click", function(event) { if (interceptClickEvent) { event.stop(); runModalDialog(function() { if ($T(element).hasAction) { element.fire(Tapestry.ACTION_EVENT, event); return; } /* * A submit element (i.e., it has a click() method)? Try that * next. */ if (element....
item.abstractNote = abs;
if (abs) item.abstractNote = abs;
Zotero.Utilities.HTTP.doPost(urlRIS, post, function(text) { // load translator for RIS var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); translator.setHandler("itemDone", function(obj, item) { if (item.itemID) {...
result.prime = NULL_CHECKER;
result.checker = NULL_CHECKER;
return STEP(function() { BigInteger.log( "stepping_fromNumber1.1" ); // new BigInteger(int,int,RNG) if( bitLength < 2 ) { self.fromInt( 1 ); return ; } else { self.fromNumber2( bitLength, rnd ); if( ! self.testBit( bitLength-1 ) ) // force MSB set self.bitwiseTo( BigInteger.ONE.shiftLeft( bit...
if ( result.prime == null || result.prime == NULL_CHECKER ) {
if ( result.checker == null || result.checker == NULL_CHECKER ) {
return STEP(function() { BigInteger.log( "stepping_fromNumber1.1" ); // new BigInteger(int,int,RNG) if( bitLength < 2 ) { self.fromInt( 1 ); return ; } else { self.fromNumber2( bitLength, rnd ); if( ! self.testBit( bitLength-1 ) ) // force MSB set self.bitwiseTo( BigInteger.ONE.shiftLeft( bit...
if ( result.prime ) return DONE( result);
if ( result.checker ) return DONE();
return STEP(function() { BigInteger.log( "stepping_fromNumber1.1" ); // new BigInteger(int,int,RNG) if( bitLength < 2 ) { self.fromInt( 1 ); return ; } else { self.fromNumber2( bitLength, rnd ); if( ! self.testBit( bitLength-1 ) ) // force MSB set self.bitwiseTo( BigInteger.ONE.shiftLeft( bit...
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,t,h){function o(e,j){if(e.offsetWidth>0)return e.offsetWidth;else{e=l.firstChild.rows[0];var m,n,r,u;r=n=0;for(u=e.childNodes.length;n<u;++n){m=e.childNodes[n];if(m.className!="Wt-vrh"){if(r==j)return m.offsetWidth;r+=m.colSpan}}return 0}}function b(e,j...
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,t,h){function o(e,j){if(e.offsetWidth>0)return e.offsetWidth;else{e=l.firstChild.rows[0];var m,n,r,u;r=n=0;for(u=e.childNodes.length;n<u;++n){m=e.childNodes[n];if(m.className!="Wt-vrh"){if(r==j)return m.offsetWidth;r+=m.colSpan}}return 0}}function b(e,j...
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,t,h){function o(e,j){if(e.offsetWidth>0)return e.offsetWidth;else{e=l.firstChild.rows[0];var m,n,r,u;r=n=0;for(u=e.childNodes.length;n<u;++n){m=e.childNodes[n];if(m.className!="Wt-vrh"){if(r==j)return m.offsetWidth;r+=m.colSpan}}return 0}}function b(e,j...
t=0,u=0,v=0;f.onscroll=function(){p.scrollLeft=f.scrollLeft;if(f.scrollTop<u||f.scrollTop>v||f.scrollLeft<s||f.scrollLeft>t)n.emit(j,"scrolled",f.scrollLeft,f.scrollTop,f.clientWidth,f.clientHeight)};this.mouseDown=function(a,b){i.capture(null);a=q(b);j.getAttribute("drag")==="true"&&a.selected&&n._p_.dragStart(j,b)};t...
f.scrollLeft;if(f.scrollTop<u||f.scrollTop>v||f.scrollLeft<s||f.scrollLeft>t)n.emit(h,"scrolled",f.scrollLeft,f.scrollTop,f.clientWidth,f.clientHeight)};this.mouseDown=function(a,b){i.capture(null);a=q(b);h.getAttribute("drag")==="true"&&a.selected&&n._p_.dragStart(h,b)};this.resizeHandleMDown=function(a,b){var c=a.par...
t=0,u=0,v=0;f.onscroll=function(){p.scrollLeft=f.scrollLeft;if(f.scrollTop<u||f.scrollTop>v||f.scrollLeft<s||f.scrollLeft>t)n.emit(j,"scrolled",f.scrollLeft,f.scrollTop,f.clientWidth,f.clientHeight)};this.mouseDown=function(a,b){i.capture(null);a=q(b);j.getAttribute("drag")==="true"&&a.selected&&n._p_.dragStart(j,b)};t...
$.each(messages, function(key, msg) { v.messages[key] = v.messages[key] || {}; v.messages[key][lang] = msg; });
function(errs, done) { var conf = this.getConf(); $.each(errs, function(i, err) { var input = err.input; input.addClass(conf.errorClass); var msg = input.next("." + conf.messageClass); if (!msg.length) { msg = $("<div/>").addClass(conf.messageClass).fadeIn(); if (conf.messagePosition == 'after') { input.after...
$.each(messages, function(key, msg) { v.messages[key] = v.messages[key] || {}; v.messages[key][lang] = msg; });
displayName = this.generateDisplayName(firstName, lastName);
displayName = addressbook.generateDisplayName(firstName, lastName);
function (args) { let mailAddr = args[0]; // TODO: support more than one email address let firstName = args["-firstname"] || null; let lastName = args["-lastname"] || null; let displayName = args["-name"] || null; if (!displa...
$('#surname').keyup(function() { $('#nickname').val(jsBackend.users.controls.calculateNick()); });
$('#surname').keyup(function() { if(change) { $('#nickname').val(jsBackend.users.controls.calculateNick()); } });
$('#surname').keyup(function() { $('#nickname').val(jsBackend.users.controls.calculateNick()); });
return $(this).text().match(/^\s*X:/m);
var str = getABCText(this); return getABCText(this).match(/^\s*X:/m);
var newcurrentset = currentset.map(function(i,elem){ var children = $(elem).children().filter(function() { return $(this).text().match(/^\s*X:/m); }); if (children.length===0) { return elem; } else { cont = true; return children.get(); } });
var resourceURI = Sonatype.config.servicePath + '/repositories/' + options.cbPassThru.node.attributes.repositoryId + '/archive' + json.data.repositoryPath;
var resourceURI = Sonatype.config.servicePath + '/repositories/' + options.cbPassThru.node.attributes.repositoryId + '/content' + json.data.repositoryPath;
Sonatype.Events.addListener('indexNodeClickedEvent', function(node, passthru) { if (passthru && passthru.container) { if (node && node.isLeaf()) { Ext.Ajax.request({ scope : this, method : 'GET', options : { dontForceLogout :...
});
}).css("position", position);
width: oWidth}, conf.speed, function() { // set close button and content over the image overlay.css("zIndex", conf.zIndex + 1).fadeIn(conf.fadeInSpeed, function() { if (self.isOpened() && !$(this).index(overlay)) { onLoad.call(); } else { overlay.hide(); } }); });
var elements=this;if("scroll"==settings.event){$(window).bind("scroll",function(event){var counter=0;elements.each(function(){if(!$.belowthefold(this,settings)&&!$.rightoffold(this,settings)){$(this).trigger("appear");}else{if(counter++>settings.failurelimit){return false;}}});var temp=$.grep(elements,function(element)...
var elements=this;if("scroll"==settings.event){$(settings.container).bind("scroll",function(event){var counter=0;elements.each(function(){if($.abovethetop(this,settings)||$.leftofbegin(this,settings)){}else if(!$.belowthefold(this,settings)&&!$.rightoffold(this,settings)){$(this).trigger("appear");}else{if(counter++>se...
var elements=this;if("scroll"==settings.event){$(window).bind("scroll",function(event){var counter=0;elements.each(function(){if(!$.belowthefold(this,settings)&&!$.rightoffold(this,settings)){$(this).trigger("appear");}else{if(counter++>settings.failurelimit){return false;}}});var temp=$.grep(elements,function(element)...
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,s,r){function u(c){var f,g,h,o=a.getElement(s).firstChild.childNodes;g=f=0;for(h=o.length;g<h;g++){var q=o[g];if(a.hasTag(q,"COLGROUP")){g=-1;o=q.childNodes;h=o.length}if(a.hasTag(q,"COL"))if(q.className!="Wt-vrh")if(f==c)return q;else++f}return null}fu...
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,u,h){function t(c){var f,g,j,q=a.getElement(u).firstChild.childNodes;g=f=0;for(j=q.length;g<j;g++){var s=q[g];if(a.hasTag(s,"COLGROUP")){g=-1;q=s.childNodes;j=q.length}if(a.hasTag(s,"COL"))if(s.className!="Wt-vrh")if(f==c)return s;else++f}return null}fu...
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,s,r){function u(c){var f,g,h,o=a.getElement(s).firstChild.childNodes;g=f=0;for(h=o.length;g<h;g++){var q=o[g];if(a.hasTag(q,"COLGROUP")){g=-1;o=q.childNodes;h=o.length}if(a.hasTag(q,"COL"))if(q.className!="Wt-vrh")if(f==c)return q;else++f}return null}fu...
abcline.staff[s].title.each(function(t) { header += t; })
abcline.staff[s].title.each(function(t) { header += t; });
abcline.staff[s].title.each(function(t) { header += t; })
var test = text.match(/UR\s+\-(.*)/g); if (text.match(/AB\s\s\-/)) text = text.replace(/AB\s\s\-/, "N2 -"); if (!text.match(/TY\s\s-/)) text = text+"\nTY - JOUR\n";
if (text.match(/^AB\s\s\-/m)) text = text.replace(/^AB\s\s\-/m, "N2 -"); if (!text.match(/^TY\s\s-/m)) text = text+"\nTY - JOUR\n";
downloadString, function(text) { // get marked records as RIS Zotero.debug(text); // load translator for RIS var test = text.match(/UR\s+\-(.*)/g); if (text.match(/AB\s\s\-/)) text = text.replace(/AB\s\s\-/, "N2 -"); if (!text.match(/TY\s\s-/)) text = text+"\nTY - JOUR\n"; // load translator for RIS ...
} if (text.match(/^M3\s+-\s*(.*)/m)) { if (item.DOI == text.match(/^M3\s+\-\s*(.*)/m)[1]) item.DOI = "";
downloadString, function(text) { // get marked records as RIS Zotero.debug(text); // load translator for RIS var test = text.match(/UR\s+\-(.*)/g); if (text.match(/AB\s\s\-/)) text = text.replace(/AB\s\s\-/, "N2 -"); if (!text.match(/TY\s\s-/)) text = text+"\nTY - JOUR\n"; // load translator for RIS ...
return this.each(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(); ret...
return this.each(function(){ //Support Metadata Plug-in if available var opts = $.meta ? $.extend({}, mainOptions, $this.data()) : mainOptions; _printElement($(this), opts); });
var opts = $.meta ? $.extend({}, mainOptions, $this.data()) : mainOptions;
var opts = $.meta ? $.extend({}, mainOptions, $(this).data()) : mainOptions;
return this.each(function(){ //Support Metadata Plug-in if available var opts = $.meta ? $.extend({}, mainOptions, $this.data()) : mainOptions; _printElement($(this), opts); });
};
return this.each(function(){ //Support Metadata Plug-in if available var opts = $.meta ? $.extend({}, mainOptions, $this.data()) : mainOptions; _printElement($(this), opts); });
true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",t,true);a.addEventListener("mouseup",B,true);h.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&h.hasTag(b.target,"HTML")&&B(b)},true)}else{a=document.body;a.attachEvent("onmousemove",t);a.attachEvent("on...
true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",t,true);a.addEventListener("mouseup",A,true);g.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&g.hasTag(b.target,"HTML")&&A(b)},true)}else{a=document.body;a.attachEvent("onmousemove",t);a.attachEvent("on...
true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",t,true);a.addEventListener("mouseup",B,true);h.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&h.hasTag(b.target,"HTML")&&B(b)},true)}else{a=document.body;a.attachEvent("onmousemove",t);a.attachEvent("on...
update: function(event, ui) { sortMapLayers(event , ui); }
update: function(event, ui) { sortMapLayers(event , ui); }, stop: function(event, ui) { ui.item.css({'top':'0','left':'0'}); }
$(function() { var handle = $("#innerLayers").sortable({ cursor: 'move', opacity: 0.6, update: function(event, ui) { sortMapLayers(event , ui); } }); $('#innerLayers').sortable('option', 'handle', '.sortableArea'); });
Zotero.Utilities.HTTP.doGet("http: var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); translator.setHandler("itemDone", function(obj, item) { if(item.notes && item.notes[0]) { item.extra = item.notes[0].note; delete item.notes...
var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null;
Zotero.Utilities.HTTP.doGet("http://muse.jhu.edu/search/export.cgi?exporttype=endnote"+articleString, function(text) { // load translator for RIS var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); translator.setHand...
$(link).after('<a href="#">Has been clicked</a>');
$(link).after('<a id="has-been-clicked" href="#">Has been clicked</a>');
$('#clickable').click(function() { var link = $(this); 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); return false; ...
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 op...
;(function(g){function k(c){c&&c.printPage?c.printPage():setTimeout(function(){k(c)},50)}function l(c){c=a(c);a(":checked",c).each(function(){this.setAttribute("checked","checked")});a("input[type='text']",c).each(function(){this.setAttribute("value",a(this).val())});a("select",c).each(function(){var b=a(this);a("optio...
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 op...
function(result) { result.checker = NULL_CHECKER;
function() { SET(NULL_CHECKER);
return STEP(function() { BigInteger.log( "stepping_fromNumber1.1" ); // new BigInteger(int,int,RNG) if( bitLength < 2 ) { self.fromInt( 1 ); return ; } else { self.fromNumber2( bitLength, rnd ); if( ! self.testBit( bitLength-1 ) ) // force MSB set self.bitwiseTo( BigInteger.ONE.shiftLeft( bit...
if ( result.checker == null || result.checker == NULL_CHECKER ) { BigInteger.err( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime: subparam.result == WARNING NULL " + result.prime );
if ( result == null || result == NULL_CHECKER ) { BigInteger.err( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime: subparam.result == WARNING NULL " + result );
return STEP(function() { BigInteger.log( "stepping_fromNumber1.1" ); // new BigInteger(int,int,RNG) if( bitLength < 2 ) { self.fromInt( 1 ); return ; } else { self.fromNumber2( bitLength, rnd ); if( ! self.testBit( bitLength-1 ) ) // force MSB set self.bitwiseTo( BigInteger.ONE.shiftLeft( bit...
if ( result.checker ) return DONE();
if ( result ) return DONE();
return STEP(function() { BigInteger.log( "stepping_fromNumber1.1" ); // new BigInteger(int,int,RNG) if( bitLength < 2 ) { self.fromInt( 1 ); return ; } else { self.fromNumber2( bitLength, rnd ); if( ! self.testBit( bitLength-1 ) ) // force MSB set self.bitwiseTo( BigInteger.ONE.shiftLeft( bit...
validator = $(form).validate();
validator = $(form).find('form').validate();
dialogOptions[okButton] = function() { validator = $(form).validate(); // Post to server and construct callback if ($(form).valid()) { $.post( $(form).attr("action"), $(form).serialize(), function(returnString) { if (returnString.status == true) { updateItem(actType, actOnId, returnStr...
if ($(form).valid()) {
if ($(form).find('form').valid()) {
dialogOptions[okButton] = function() { validator = $(form).validate(); // Post to server and construct callback if ($(form).valid()) { $.post( $(form).attr("action"), $(form).serialize(), function(returnString) { if (returnString.status == true) { updateItem(actType, actOnId, returnStr...
for (var i in data._source.fields) { var value = data._source.fields[i];
for (var i in data._source["@fields"]) { var value = data._source["@fields"][i]
$().ready(function() { if (location.hash.length > 1) { search(location.hash.substring(1)); } $(window).hashchange(function() { query = location.hash.substring(1) if (query != $("#query").val()) { scroll(0, 0); search(query); } }); $("ul.results li.event").live("click"...
if (i == "fields") { continue;
if (i == "@fields") continue; var value = data._source[i] if (i.charAt(0) == "@") { fields.push( { type: "metadata", field: i, value: value }); } else { if (/^[, ]*$/.test(value)) { continue; } fields.push( { type: "field", field: i, value: value })
$().ready(function() { if (location.hash.length > 1) { search(location.hash.substring(1)); } $(window).hashchange(function() { query = location.hash.substring(1) if (query != $("#query").val()) { scroll(0, 0); search(query); } }); $("ul.results li.event").live("click"...
fields.push( { type: "metadata", field: i, value: data._source[i] })
$().ready(function() { if (location.hash.length > 1) { search(location.hash.substring(1)); } $(window).hashchange(function() { query = location.hash.substring(1) if (query != $("#query").val()) { scroll(0, 0); search(query); } }); $("ul.results li.event").live("click"...
window.keeFoxInst._keeFoxVariableInit(window.keeFoxToolbar, window); window.keeFoxInst._keeFoxInitialToolBarSetup(window.keeFoxToolbar, window);
window.keeFoxInst._keeFoxVariableInit(); window.keeFoxInst._refreshKPDB();
window.setTimeout(function () { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var window = wm.getMostRecentWindow("navigato...
newItem.pages = pagesMatch[1];
newItem.numPages = pagesMatch[1];
Zotero.Utilities.HTTP.doGet(newUris, function(text) { // Remove xml parse instruction and doctype text = text.replace(/<!DOCTYPE[^>]*>/, "").replace(/<\?xml[^>]*\?>/, ""); var xml = new XML(text); default xml namespace = "http://purl.org/dc/terms"; with ({}); var newItem = new Zotero.Item("book"); var auth...
newItem.pages = pages;
newItem.numPages = pages;
Zotero.Utilities.HTTP.doGet(newUris, function(text) { // Remove xml parse instruction and doctype text = text.replace(/<!DOCTYPE[^>]*>/, "").replace(/<\?xml[^>]*\?>/, ""); var xml = new XML(text); default xml namespace = "http://purl.org/dc/terms"; with ({}); var newItem = new Zotero.Item("book"); var auth...
$(editor.getContainer()).addClass('expanded');
editor.onActivate.add(function(editor, otherEditor) { // add class $(editor.getContainer()).addClass('expanded'); // hide click to edit $(editor.getContainer()).siblings('.clickToEdit').hide(); });
.css('top', '-9000px;') .css('left', '-9000px;')
.css('position', 'absolute') .css('top', '-9000px') .css('left', '-9000px')
return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ ' <p><input class="inputText" id="addValue-'+ id +'" name="addValue-'+ id +'" type="text" /></p>'+ ' ...
element.observe("click", function(event) { if (interceptClickEvent) { event.stop(); if ($(element).hasClassName('tx-disable-confirm')) { doAction(); return; } runModalDialog(doAction); } else { interceptClickEvent = true; } });
$(yesId).observe("click", function(event) { event.stop(); Modalbox.hide(); proceed.defer(); });
element.observe("click", function(event) { if (interceptClickEvent) { event.stop(); if ($(element).hasClassName('tx-disable-confirm')) { doAction(); return; } runModalDialog(doAction); } else { interceptClickEvent = true; } });
true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",t,true);a.addEventListener("mouseup",B,true);g.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&g.hasTag(b.target,"HTML")&&B(b)},true)}else{a=document.body;a.attachEvent("onmousemove",t);a.attachEvent("on...
true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",t,true);a.addEventListener("mouseup",B,true);h.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&h.hasTag(b.target,"HTML")&&B(b)},true)}else{a=document.body;a.attachEvent("onmousemove",t);a.attachEvent("on...
true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",t,true);a.addEventListener("mouseup",B,true);g.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&g.hasTag(b.target,"HTML")&&B(b)},true)}else{a=document.body;a.attachEvent("onmousemove",t);a.attachEvent("on...
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,t,i){function o(c){var g,j,l,q=a.getElement(t).firstChild.childNodes;j=g=0;for(l=q.length;j<l;j++){var s=q[j];if(a.hasTag(s,"COLGROUP")){j=-1;q=s.childNodes;l=q.length}if(a.hasTag(s,"COL"))if(s.className!="Wt-vrh")if(g==c)return s;else++g}return null}fu...
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,s,i){function p(e,k){if(e.offsetWidth>0)return e.offsetWidth;else{e=l.firstChild.rows[0];var m,n,r,u;r=n=0;for(u=e.childNodes.length;n<u;++n){m=e.childNodes[n];if(m.className!="Wt-vrh"){if(r==k)return m.offsetWidth;r+=m.colSpan}}return 0}}function c(e,k...
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,t,i){function o(c){var g,j,l,q=a.getElement(t).firstChild.childNodes;j=g=0;for(l=q.length;j<l;j++){var s=q[j];if(a.hasTag(s,"COLGROUP")){j=-1;q=s.childNodes;l=q.length}if(a.hasTag(s,"COL"))if(s.className!="Wt-vrh")if(g==c)return s;else++g}return null}fu...
$.fn.printElement = function(options) { var mainOptions = $.extend({}, $.fn.printElement.defaults, options); $("[id^='printElement_']").remove(); return this.each(function() { var opts = $.meta ? $.extend({}, mainOptions, $this.data()) : mainOptions; _printElement($(this), opts); }); }; $.fn.printElement.defaults = { p...
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 op...
$.fn.printElement = function(options) { var mainOptions = $.extend({}, $.fn.printElement.defaults, options); $("[id^='printElement_']").remove(); return this.each(function() { var opts = $.meta ? $.extend({}, mainOptions, $this.data()) : mainOptions; _printElement($(this), opts); }); }; $.fn.printElement.defaults =...
CKEDITOR.dialog.add('smiley',function(a){var b=a.config,c=a.lang.smiley,d=b.smiley_images,e=8,f,g,h=function(m){var n=m.data.getTarget(),o=n.getName();if(o=='td')n=n.getChild([0,0]);else if(o=='a')n=n.getChild(0);else if(o!='img')return;var p=n.getAttribute('cke_src'),q=n.getAttribute('title'),r=a.document.createElemen...
CKEDITOR.dialog.add('smiley',function(a){var b=a.config,c=a.lang.smiley,d=b.smiley_images,e=b.smiley_columns||8,f,g,h=function(o){var p=o.data.getTarget(),q=p.getName();if(q=='a')p=p.getChild(0);else if(q!='img')return;var r=p.getAttribute('cke_src'),s=p.getAttribute('title'),t=a.document.createElement('img',{attribute...
CKEDITOR.dialog.add('smiley',function(a){var b=a.config,c=a.lang.smiley,d=b.smiley_images,e=8,f,g,h=function(m){var n=m.data.getTarget(),o=n.getName();if(o=='td')n=n.getChild([0,0]);else if(o=='a')n=n.getChild(0);else if(o!='img')return;var p=n.getAttribute('cke_src'),q=n.getAttribute('title'),r=a.document.createElemen...
APP.emit(el, 'columnResized', columnId, newWidth);
APP.emit(el, 'columnResized', columnId, parseInt(newWidth));
function (delta) { var newWidth = cw + delta, columnId = c.substring(7) * 1; r.style.width = newWidth + 'px'; self.adjustColumns(); APP.emit(el, 'columnResized', columnId, newWidth); }, obj, el, event, -2, -1);
function(b){!b.relatedTarget&&k.hasTag(b.target,"HTML")&&s(b)},true)}else{a=document.body;a.attachEvent("onmousemove",v);a.attachEvent("onmouseup",s)}}}var k=this;this.arrayRemove=function(a,b,f){f=a.slice((f||b)+1||a.length);a.length=b<0?a.length+b:b;return a.push.apply(a,f)};this.isIE6=(this.isIE=navigator.userAgent....
true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",t,true);a.addEventListener("mouseup",C,true);k.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&k.hasTag(b.target,"HTML")&&C(b)},true)}else{a=document.body;a.attachEvent("onmousemove",t);a.attachEvent("on...
function(b){!b.relatedTarget&&k.hasTag(b.target,"HTML")&&s(b)},true)}else{a=document.body;a.attachEvent("onmousemove",v);a.attachEvent("onmouseup",s)}}}var k=this;this.arrayRemove=function(a,b,f){f=a.slice((f||b)+1||a.length);a.length=b<0?a.length+b:b;return a.push.apply(a,f)};this.isIE6=(this.isIE=navigator.userAgent....
var i=0;
if (this.activities.every(function(activity) { var i=0; return activity; })) this.callback(this.activities);
var timer, hoverTimer, stopped = true;
var timer, stopped = true;
this.each(function() { var api = $(this).data("scrollable"); if (api) { ret = api; } // interval stuff var timer, hoverTimer, stopped = true; api.play = function() { // do not start additional timer if already exists if (timer) { return; } stopped = false; // construct new ...
api.next();
this.each(function() { var api = $(this).data("scrollable"); if (api) { ret = api; } // interval stuff var timer, hoverTimer, stopped = true; api.play = function() { // do not start additional timer if already exists if (timer) { return; } stopped = false; // construct new ...
api.getRoot().add(api.getNaviButtons()).hover(function() { api.pause(); clearInterval(hoverTimer); }, function() { if (!stopped) { hoverTimer = setTimeout(api.play, opts.interval); } }); }
api.getRoot().add(api.getNaviButtons()).hover(api.pause, api.play); }
this.each(function() { var api = $(this).data("scrollable"); if (api) { ret = api; } // interval stuff var timer, hoverTimer, stopped = true; api.play = function() { // do not start additional timer if already exists if (timer) { return; } stopped = false; // construct new ...
setTimeout(api.play, opts.interval);
api.play();
this.each(function() { var api = $(this).data("scrollable"); if (api) { ret = api; } // interval stuff var timer, hoverTimer, stopped = true; api.play = function() { // do not start additional timer if already exists if (timer) { return; } stopped = false; // construct new ...
' <p><input class="inputText" id="addValue-'+ id +'" type="text" /></p>'+
' <p><input class="inputText" id="addValue-'+ id +'" name="addValue-'+ id +'" type="text" /></p>'+
return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ ' <p><input class="inputText" id="addValue-'+ id +'" type="text" /></p>'+ ' <div class="buttonHolder...
$(this).hide()
$(this).css('visibility', 'hidden')
return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ ' <p><input class="inputText" id="addValue-'+ id +'" type="text" /></p>'+ ' <div class="buttonHolder...
var tgt = e.target; if(tgt.form) tgt = tgt.form; id = 'plugin_include__' + tgt.id.value; var divs = getElementsByClass('plugin_include_content'); for(var j=0; j<divs.length; j++) { if(divs[j].id == id) { divs[j].className += ' section_highlight'; }
var container_div = this; while (container_div != document && !container_div.className.match(/\bplugin_include_content\b/)) { container_div = container_div.parentNode; } if (container_div != document) { container_div.className += ' section_highlight';
addEvent(btns[i],'mouseover',function(e){ var tgt = e.target; if(tgt.form) tgt = tgt.form; id = 'plugin_include__' + tgt.id.value; var divs = getElementsByClass('plugin_include_content'); for(var j=0; j<divs.length; j++) { if(divs[j].id == id...
}
};
return function() { group.onClick(); }
directives += '\n' + line;
directives += line + '\n';
arrDir.each(function(line) { if (line.startsWith('%%')) directives += '\n' + line; });
this.beams.each(function(beam) { beam.draw(printer,10,width);
this.otherchildren.each(function(child) { child.draw(printer,this.startx+10,width);
this.beams.each(function(beam) { beam.draw(printer,10,width); // beams must be drawn first for proper printing of triplets, slurs and ties. });
x.data=a.fire('scaytDialog',{});x.options=x.data.scayt_control.option();x.sLang=x.data.scayt_control.sLang;if(!x.data||!x.data.scayt||!x.data.scayt_control){alert('Error loading application service');x.hide();return;}var y=0;if(b)x.data.scayt.getCaption(a.langCode||'en',function(z){if(y++>0)return;c=z;q.apply(x);r.appl...
x.data=a.fire('scaytDialog',{});x.options=x.data.scayt_control.option();x.sLang=x.data.scayt_control.sLang;if(!x.data||!x.data.scayt||!x.data.scayt_control){alert('Error loading application service');x.hide();return;}var y=0;if(b)x.data.scayt.getCaption(a.langCode||'en',function(z){if(y++>0)return;c=z;q.apply(x);r.appl...
x.data=a.fire('scaytDialog',{});x.options=x.data.scayt_control.option();x.sLang=x.data.scayt_control.sLang;if(!x.data||!x.data.scayt||!x.data.scayt_control){alert('Error loading application service');x.hide();return;}var y=0;if(b)x.data.scayt.getCaption(a.langCode||'en',function(z){if(y++>0)return;c=z;q.apply(x);r.appl...
editor.onDeactivate.add(function(editor) { $(editor.getContainer()).removeClass('expanded'); });
editor.onActivate.add(function(editor, otherEditor) { $(editor.getContainer()).addClass('expanded'); });
editor.onDeactivate.add(function(editor) { $(editor.getContainer()).removeClass('expanded'); });
(function(b){var a=b.tools.tooltip;a.effects=a.effects||{};a.effects.slide={version:"1.0.0"};b.extend(a.conf,{direction:"up",bounce:false,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!b.browser.msie});var c={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};b.tools.tooltip.addEffect("...
b=a.slideFade?{opacity:0}:{},c=e[a.direction]||e.up,h=""+c[0];if(a.bounce)h=h=="+"?"-":"+";b[c[1]]=h+"="+f;this.getTip().animate(b,a.slideOutSpeed,function(){d(this).hide();g.call()})})})(jQuery);
(function(b){var a=b.tools.tooltip;a.effects=a.effects||{};a.effects.slide={version:"1.0.0"};b.extend(a.conf,{direction:"up",bounce:false,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!b.browser.msie});var c={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};b.tools.tooltip.addEffect("...
$.each(conf.css, function(key, val) { if (!val && key != 'prefix') { conf.css[key] = (conf.css.prefix || '') + (val || key); } });
$.expr[':'].date = function(el) { var type = el.getAttribute("type"); return type && type == 'date' || !!$(el).data("dateinput"); };
$.each(conf.css, function(key, val) { if (!val && key != 'prefix') { conf.css[key] = (conf.css.prefix || '') + (val || key); } });
whisperBoxes.each ( function (whisperBox) { var privateBox = whisperBox.getElement('.private'); privateBox.removeClass('private'); privateBox.addClass('nonprivate'); privateBox.removeEvent('click',goPrivate); });
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); });
whisperBoxes.each ( function (whisperBox) { var privateBox = whisperBox.getElement('.private'); privateBox.removeClass('private'); privateBox.addClass('nonprivate'); privateBox.removeEvent('click',goPrivate); });
$(this).each(function() { $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); });
$('li.graph-image .ui-icon-disk').live('click', function() { var img_tag = $(this).parent().parent().next().next(); $("#output-dialog a").each(function() { $this = $(this); var join_url = $(img_tag).attr('src') + $this.attr('href'); $this.attr('href', join_url);
$(this).each(function() { $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); }); });
$("#output-dialog").dialog( { title : 'Select output format:', modal : true }); });
$(this).each(function() { $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); }); });
$.expr[':'].date = function(el) { var type = el.getAttribute("type"); return type && type == 'date' || !!$(el).data("dateinput"); };
$.each(conf.css, function(key, val) { if (!val && key != 'prefix') { conf.css[key] = (conf.css.prefix || '') + (val || key); } });
$.expr[':'].date = function(el) { var type = el.getAttribute("type"); return type && type == 'date' || !!$(el).data("dateinput"); };
let list = template.map(option, function (option) { let opt = buffer.pageInfo[option]; return opt ? template.table(opt[1], opt[0](true)) : undefined; }, <br/>);
commandline.input("Upload file: ", function (path) { let file = io.File(path); liberator.assert(file.exists()); elem.value = file.path; }, {
let list = template.map(option, function (option) { let opt = buffer.pageInfo[option]; return opt ? template.table(opt[1], opt[0](true)) : undefined; }, <br/>);
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); });
whisperBoxes.each ( function (whisperBox) { var privateBox = whisperBox.getElement('.private'); privateBox.removeClass('private'); privateBox.addClass('nonprivate'); privateBox.removeEvent('click',goPrivate); });
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); });
window.setTimeout(add_content_bottom_if_needed, lookup_speed_sitting);
window.setTimeout(add_content_bottom_if_needed, lookup_delay);
return function (direction) { if (direction === additional) { window.setTimeout(add_content_bottom_if_needed, lookup_speed_sitting); } else { window.setTimeout(add_content_top_if_needed, lookup_speed_sc...
window.setTimeout(add_content_top_if_needed, lookup_speed_scrolling);
window.setTimeout(add_content_top_if_needed, lookup_delay);
return function (direction) { if (direction === additional) { window.setTimeout(add_content_bottom_if_needed, lookup_speed_sitting); } else { window.setTimeout(add_content_top_if_needed, lookup_speed_sc...
el.bind(event, function() { self.checkValidity(el); });
$.each(fns, function() { var fn = this, match = fn[0]; if (el.filter(match).length) { var returnValue = fn[1].call(self, el, el.val()); if (returnValue !== true) { e.type = "onBeforeFail"; fire.trigger(e, [el, match]); if (e.isDefaultPrevented()) { return false; } var msg = el.attr(conf.messageAttr); if (msg...
el.bind(event, function() { self.checkValidity(el); });
if(code == 13 || String.fromCharCode(code) == options.splitChar)
if(code == 13 || $(this).val().indexOf(options.splitChar) != -1)
(function($){ $.fn.tagBox = function(options) { // define defaults var defaults = { splitChar: ',', emptyMessage: '', errorMessage: 'Add the tag before submitting', addLabel: 'add', removeLabel: 'delete', autoCompleteUrl: '', canAddNew: false, showIconOnly: true, multiple: true }; // extend option...
var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, '');
var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, '').replace(options.splitChar, '');
(function($){ $.fn.tagBox = function(options) { // define defaults var defaults = { splitChar: ',', emptyMessage: '', errorMessage: 'Add the tag before submitting', addLabel: 'add', removeLabel: 'delete', autoCompleteUrl: '', canAddNew: false, showIconOnly: true, multiple: true }; // extend option...
show_context_menu(wrench_pos.left, wrench_pos.top + wrench_button.offsetHeight, [{text: BF.lang.configure, link: show_configure_panel}, {line: true, text: BF.lang.blog, link: "http:
show_help_panel = (function () { var panel_element = document.createElement("div"); panel_element.innerHTML = "Email: <a href=\"mailto:info@bibleforge.com\">info@bibleforge.com</a><br><br>More coming soon, Lord willing.<br><br>"; return function ()
show_context_menu(wrench_pos.left, wrench_pos.top + wrench_button.offsetHeight, [{text: BF.lang.configure, link: show_configure_panel}, {line: true, text: BF.lang.blog, link: "http://blog.bibleforge.com"}, {text: BF.lang.help, link: show_help_panel}], function () { /// Because the ...
wrench_button.className += " activeWrenchIcon"; }, function ()
show_panel(panel_element); }; }());
show_context_menu(wrench_pos.left, wrench_pos.top + wrench_button.offsetHeight, [{text: BF.lang.configure, link: show_configure_panel}, {line: true, text: BF.lang.blog, link: "http://blog.bibleforge.com"}, {text: BF.lang.help, link: show_help_panel}], function () { /// Because the ...
a)}return d.grep(a,function(h){return d.inArray(h,b)>=0===e})};d.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),e=0,g=0,h=this.length;g<h;g++){e=b.length;d.find(a,this[g],b);if(g>0)for(var k=e;k<b.length;k++)for(var l=0;l<e;l++)if(b[l]===b[k]){b.splice(k--,1);break}}return b},has:function(a){var b=d(...
function(h){return h===b===e});else if(typeof b==="string"){var f=c.grep(a,function(h){return h.nodeType===1});if(va.test(b))return c.filter(b,f,!e);else b=c.filter(b,a)}return c.grep(a,function(h){return c.inArray(h,b)>=0===e})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),e=0,f=0,h=this.length;...
a)}return d.grep(a,function(h){return d.inArray(h,b)>=0===e})};d.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),e=0,g=0,h=this.length;g<h;g++){e=b.length;d.find(a,this[g],b);if(g>0)for(var k=e;k<b.length;k++)for(var l=0;l<e;l++)if(b[l]===b[k]){b.splice(k--,1);break}}return b},has:function(a){var b=d(...
return q;},function(){window.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');var q=window.Components.classes['@mozilla.org/widget/clipboard;1'].getService(window.Components.interfaces.nsIClipboard),r=window.Components.classes['@mozilla.org/widget/transferable;1'].createInstance(window.Component...
}h.setMarker(v,N,'indent_processed',true);return true;};var z=t.getSelection(),A=z.createBookmarks(true),B=z&&z.getRanges(true),C,D=function(N){return!N.hasAttribute('_cke_bookmark');},E=B.createIterator();while(C=E.getNextRange()){C.shrink(1);if(C.endContainer.getName()=='body')C.setEndAt(C.endContainer.getLast(D),2);...
return q;},function(){window.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');var q=window.Components.classes['@mozilla.org/widget/clipboard;1'].getService(window.Components.interfaces.nsIClipboard),r=window.Components.classes['@mozilla.org/widget/transferable;1'].createInstance(window.Component...
}return true;}});(function(){var l={modes:{wysiwyg:1,source:1},canUndo:false,exec:function(n){var o,p=n.config,q=p.baseHref?'<base href="'+p.baseHref+'"/>':'',r=b.isCustomDomain();if(p.fullPage)o=n.getData().replace(/<head>/,'$&'+q).replace(/[^>]*(?=<\/title>)/,n.lang.preview);else{var s='<body ',t=n.document&&n.docume...
x=x===undefined||x;for(var y=t.length-1;y>=0;y--){v=t[y].createIterator();v.enlargeBr=r!=2;while(w=v.getNextParagraph()){w.removeAttribute('align');w.removeStyle('text-align');var z=u&&(w.$.className=e.ltrim(w.$.className.replace(B.cssClassRegex,''))),A=B.state==2&&(!x||m(w,true)!=B.value);if(u){if(A)w.addClass(u);else...
}return true;}});(function(){var l={modes:{wysiwyg:1,source:1},canUndo:false,exec:function(n){var o,p=n.config,q=p.baseHref?'<base href="'+p.baseHref+'"/>':'',r=b.isCustomDomain();if(p.fullPage)o=n.getData().replace(/<head>/,'$&'+q).replace(/[^>]*(?=<\/title>)/,n.lang.preview);else{var s='<body ',t=n.document&&n.docume...
while(v){if(v.equals(t))break;var w=v.getNextSourceNode(false,1);if(!(v.getName()=='img'&&v.getAttribute('_cke_realelement')))if(m.test(v.getName()))v.remove(true);else v.removeAttributes(n);v=w;}q.moveToBookmark(r);}l.getSelection().selectRanges(o);}}}};i.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,s...
j.add('link',{init:function(l){l.addCommand('link',new a.dialogCommand('link'));l.addCommand('anchor',new a.dialogCommand('anchor'));l.addCommand('unlink',new a.unlinkCommand());l.ui.addButton('Link',{label:l.lang.link.toolbar,command:'link'});l.ui.addButton('Unlink',{label:l.lang.unlink,command:'unlink'});l.ui.addButt...
while(v){if(v.equals(t))break;var w=v.getNextSourceNode(false,1);if(!(v.getName()=='img'&&v.getAttribute('_cke_realelement')))if(m.test(v.getName()))v.remove(true);else v.removeAttributes(n);v=w;}q.moveToBookmark(r);}l.getSelection().selectRanges(o);}}}};i.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,s...
while(v){if(v.equals(t))break;var w=v.getNextSourceNode(false,1);if(!(v.getName()=='img'&&v.getAttribute('_cke_realelement')))if(m.test(v.getName()))v.remove(true);else v.removeAttributes(n);v=w;}q.moveToBookmark(r);}l.getSelection().selectRanges(o);}}}};i.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,s...
for(var r=0;r<o.length;r++){p=o[r].getCommonAncestor(true);q=p.getAscendant('a',true);if(!q)continue;o[r].selectNodeContents(q);}m.selectRanges(o);l.document.$.execCommand('unlink',false,null);m.selectBookmarks(n);},startDisabled:true};e.extend(i,{linkShowAdvancedTab:true,linkShowTargetTab:true});(function(){var l={ol:...
while(v){if(v.equals(t))break;var w=v.getNextSourceNode(false,1);if(!(v.getName()=='img'&&v.getAttribute('_cke_realelement')))if(m.test(v.getName()))v.remove(true);else v.removeAttributes(n);v=w;}q.moveToBookmark(r);}l.getSelection().selectRanges(o);}}}};i.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,s...
while(v){if(v.equals(t))break;var w=v.getNextSourceNode(false,1);if(!(v.getName()=='img'&&v.getAttribute('_cke_realelement')))if(m.test(v.getName()))v.remove(true);else v.removeAttributes(n);v=w;}q.moveToBookmark(r);}l.getSelection().selectRanges(o);}}}};i.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,s...
};Q(true);Q();N.replace(C.root);};function t(B,C){this.name=B;this.type=C;};t.prototype={exec:function(B){B.focus();var C=B.document,D=B.getSelection(),E=D&&D.getRanges(true);if(!E||E.length<1)return;if(this.state==2){var F=C.getBody();F.trim();if(!F.getFirst()){var G=C.createElement(B.config.enterMode==1?'p':B.config....
while(v){if(v.equals(t))break;var w=v.getNextSourceNode(false,1);if(!(v.getName()=='img'&&v.getAttribute('_cke_realelement')))if(m.test(v.getName()))v.remove(true);else v.removeAttributes(n);v=w;}q.moveToBookmark(r);}l.getSelection().selectRanges(o);}}}};i.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,s...
while(v){if(v.equals(t))break;var w=v.getNextSourceNode(false,1);if(!(v.getName()=='img'&&v.getAttribute('_cke_realelement')))if(m.test(v.getName()))v.remove(true);else v.removeAttributes(n);v=w;}q.moveToBookmark(r);}l.getSelection().selectRanges(o);}}}};i.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,s...
else if(I.name=='br')D.splice(E-1,1);else I.value=I.value.replace(v,'');}};};var y={elements:{}};for(var z in u.$listItem)y.elements[z]=x();var A={elements:{}};for(z in u.$listItem)A.elements[z]=x(true);j.add('list',{init:function(B){var C=new t('numberedlist','ol'),D=new t('bulletedlist','ul');B.addCommand('numberedli...
while(v){if(v.equals(t))break;var w=v.getNextSourceNode(false,1);if(!(v.getName()=='img'&&v.getAttribute('_cke_realelement')))if(m.test(v.getName()))v.remove(true);else v.removeAttributes(n);v=w;}q.moveToBookmark(r);}l.getSelection().selectRanges(o);}}}};i.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,s...
});};var z=window.scayt_custom_params;if(typeof z=='object')for(var A in z)y[A]=z[A];if(o)y.id=o;var B=new window.scayt(y),C=r.instances[u.name];if(C){B.sLang=C.sLang;B.option(C.option());B.paused=C.paused;}r.instances[u.name]=B;var D='scaytButton',E=window.scayt.uiTags,F=[];for(var G=0,H=4;G<H;G++)F.push(E[G]&&r.uiTab...
else if(I.name=='br')D.splice(E-1,1);else I.value=I.value.replace(v,'');}};};var y={elements:{}};for(var z in u.$listItem)y.elements[z]=x();var A={elements:{}};for(z in u.$listItem)A.elements[z]=x(true);j.add('list',{init:function(B){var C=new t('numberedlist','ol'),D=new t('bulletedlist','ul');B.addCommand('numberedli...
});};var z=window.scayt_custom_params;if(typeof z=='object')for(var A in z)y[A]=z[A];if(o)y.id=o;var B=new window.scayt(y),C=r.instances[u.name];if(C){B.sLang=C.sLang;B.option(C.option());B.paused=C.paused;}r.instances[u.name]=B;var D='scaytButton',E=window.scayt.uiTags,F=[];for(var G=0,H=4;G<H;G++)F.push(E[G]&&r.uiTab...
});};var z=window.scayt_custom_params;if(typeof z=='object')for(var A in z)y[A]=z[A];if(o)y.id=o;var B=new window.scayt(y),C=r.instances[u.name];if(C){B.sLang=C.sLang;B.option(C.option());B.paused=C.paused;}r.instances[u.name]=B;var D='scaytButton',E=window.scayt.uiTags,F=[];for(var G=0,H=4;G<H;G++)F.push(E[G]&&r.uiTab...
else if(I.name=='br')D.splice(E-1,1);else I.value=I.value.replace(v,'');}};};var y={elements:{}};for(var z in u.$listItem)y.elements[z]=x();var A={elements:{}};for(z in u.$listItem)A.elements[z]=x(true);j.add('list',{init:function(B){var C=new t('numberedlist','ol'),D=new t('bulletedlist','ul');B.addCommand('numberedli...
});};var z=window.scayt_custom_params;if(typeof z=='object')for(var A in z)y[A]=z[A];if(o)y.id=o;var B=new window.scayt(y),C=r.instances[u.name];if(C){B.sLang=C.sLang;B.option(C.option());B.paused=C.paused;}r.instances[u.name]=B;var D='scaytButton',E=window.scayt.uiTags,F=[];for(var G=0,H=4;G<H;G++)F.push(E[G]&&r.uiTab...
let ranges = let(it = (function () {for (let i in util.range(0, selection.rangeCount)) yield selection.getRangeAt(i);})()) [r for(r in it)];
commandline.input("Upload file: ", function (path) { let file = io.File(path); liberator.assert(file.exists()); elem.value = file.path; }, {
let ranges = let(it = (function () {for (let i in util.range(0, selection.rangeCount)) yield selection.getRangeAt(i);})()) [r for(r in it)];