code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'button', function( editor )
{
return {
title : editor.lang.button.title,
minWidth : 350,
minHeight : 150,
onShow : function()
{
... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'form', function( editor )
{
var autoAttributes =
{
action : 1,
id : 1,
method : 1,
enctype : 1,
target : 1
};
return {
... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'textarea', function( editor )
{
return {
title : editor.lang.textarea.title,
minWidth : 350,
minHeight : 150,
onShow : function()
... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'radio', function( editor )
{
return {
title : editor.lang.checkboxAndRadio.radioTitle,
minWidth : 350,
minHeight : 140,
onShow : func... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'checkbox', function( editor )
{
return {
title : editor.lang.checkboxAndRadio.checkboxTitle,
minWidth : 350,
minHeight : 140,
onShow ... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
// Register a plugin named "sample".
CKEDITOR.plugins.add( 'keystrokes',
{
beforeInit : function( editor )
{
/**
* Controls keystrokes typing in this edito... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file DOM iterator, which iterates over list items, lines and paragraphs.
*/
CKEDITOR.plugins.add( 'domiterator' );
(function()
{
var iterator = fu... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'table',
{
init : function( editor )
{
var table = CKEDITOR.plugins.table,
lang = editor.lang.table;
editor.addCommand( 'table', ... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
var widthPattern = /^(\d+(?:\.\d+)?)(px|%)$/,
heightPattern = /^(\d+(?:\.\d+)?)px$/;
var commitValue = function( data )
{
var id = this.id;... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file Horizontal Page Break
*/
// Register a plugin named "newpage".
CKEDITOR.plugins.add( 'newpage',
{
init : function( editor )
{
editor.addComm... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'format',
{
requires : [ 'richcombo', 'styles' ],
init : function( editor )
{
var config = editor.config,
lang = editor.lang.forma... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file Special Character plugin
*/
CKEDITOR.plugins.add( 'specialchar',
{
init : function( editor )
{
var pluginName = 'specialchar';
// Regist... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'specialchar', function( editor )
{
/**
* Simulate "this" of a dialog for non-dialog events.
* @type {CKEDITOR.dialog}
*/
var dialog;... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file Spell checker
*/
// Register a plugin named "wsc".
CKEDITOR.plugins.add( 'wsc',
{
init : function( editor )
{
var commandName = 'checkspell'... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'checkspell', function( editor )
{
var number = CKEDITOR.tools.getNextNumber(),
iframeId = 'cke_frame_' + number,
textareaId = 'cke_data_'... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview The "filebrowser" plugin, it adds support for file uploads and
* browsing.
*
* When file is selected inside of the file browse... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Spell Check As You Type (SCAYT).
* Button name : Scayt.
*/
(function()
{
var commandName = 'scaytcheck',
openPage = '';
var onE... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'scaytcheck', function( editor )
{
var firstLoad = true,
captions,
doc = CKEDITOR.document,
tags = [],
i,
contents = [],
userD... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'listblock',
{
requires : [ 'panel' ],
onLoad : function()
{
CKEDITOR.ui.panel.prototype.addListBlock = function( name, multiSelect )
... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file Paste as plain text plugin
*/
(function()
{
// The pastetext command definition.
var pasteTextCmd =
{
exec : function( editor )
{
//... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
CKEDITOR.dialog.add( 'pastetext', function( editor )
{
return {
title : editor.lang.pasteText.title,
minWidth : CKEDITOR.env.ie && C... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'resize',
{
init : function( editor )
{
var config = editor.config;
if ( config.resize_enabled )
{
var container = null;
v... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
var entities =
// Base HTML entities.
'nbsp,gt,lt,quot,' +
// Latin-1 Entities
'iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,l... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'richcombo',
{
requires : [ 'floatpanel', 'listblock', 'button' ],
beforeInit : function( editor )
{
editor.ui.addHandler( CKEDITOR.UI... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file Print Plugin
*/
CKEDITOR.plugins.add( 'print',
{
init : function( editor )
{
var pluginName = 'print';
// Register the command.
var c... | JavaScript |
( function()
{
CKEDITOR.plugins.colordialog =
{
init : function( editor )
{
editor.addCommand( 'colordialog', new CKEDITOR.dialogCommand( 'colordialog' ) );
CKEDITOR.dialog.add( 'colordialog', this.path + 'dialogs/colordialog.js' );
}
};
CKEDITOR.plugins.add( 'colordialog', CKEDITOR.plugins... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'colordialog', function( editor )
{
// Define some shorthands.
var $el = CKEDITOR.dom.element,
$doc = CKEDITOR.document,
$tools = C... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @file Justify commands.
*/
(function()
{
var alignRemoveRegex = /(-moz-|-webkit-|start|auto)/i;
function getState( editor, path )
{
var firstBl... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.themes.add( 'default', (function()
{
return {
build : function( editor, themePath )
{
var name = editor.name,
element = editor.element,
... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
// Compressed version of core/ckeditor_base.js. See original for instructions.
/*jsl:ignore*/
if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',vers... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function(){var a={exec:function(c){c.insertElement(c.document.createElement('hr'));}},b='horizontalrule';CKEDITOR.plugins.add(b,{init:function(c){c.addCommand(b,a);c.u... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add('uicolor',{requires:['dialog'],lang:['en'],init:function(a){if(CKEDITOR.env.ie6Compat)return;a.addCommand('uicolor',new CKEDITOR.dialogCommand('uic... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('uicolor','en',{uicolor:{title:'UI Color Picker',preview:'Live preview',config:'Paste this string into your config.js file',predefined:'Predefi... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function(){var a={modes:{wysiwyg:1,source:1},exec:function(c){var d=c.element.$.form;if(d)try{d.submit();}catch(e){if(d.submit.click)d.submit.click();}}},b='save';CKED... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
| JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add('pastefromword',{init:function(a){a.addCommand('pastefromword',new CKEDITOR.dialogCommand('pastefromword'));a.ui.addButton('PasteFromWord',{label:a... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add('newpage',{init:function(a){a.addCommand('newpage',{modes:{wysiwyg:1,source:1},exec:function(b){var c=this;b.setData(b.config.newpage_html,function... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add('specialchar',{init:function(a){var b='specialchar';CKEDITOR.dialog.add(b,this.path+'dialogs/specialchar.js');a.addCommand(b,new CKEDITOR.dialogCom... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add('print',{init:function(a){var b='print',c=a.addCommand(b,CKEDITOR.plugins.print);a.ui.addButton('Print',{label:a.lang.print,command:b});}});CKEDITO... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function(){CKEDITOR.plugins.colordialog={init:function(a){a.addCommand('colordialog',new CKEDITOR.dialogCommand('colordialog'));CKEDITOR.dialog.add('colordialog',this.... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
// Compressed version of core/ckeditor_base.js. See original for instructions.
/*jsl:ignore*/
if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',vers... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'myDialog', function( editor )
{
return {
title : 'My Dialog',
minWidth : 400,
minHeight : 200,
contents : [
{
id : 'tab1',... | JavaScript |
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
// This file is not required by CKEditor and may be safely ignored.
// It is just a helper file that displays a red message about browser compatibility
// at the top ... | JavaScript |
var BG = chrome.extension.getBackgroundPage();
// Set menu entries appropriately for the selected tab.
function customize_for_this_tab() {
$(".menu-entry, .separator").hide();
BG.getCurrentTabInfo(function(info) {
var shown = {};
function show(L) { L.forEach(function(x) { shown[x] = true; }); }
funct... | JavaScript |
// Return the ElementType element type of the given element.
function typeForElement(el) {
// TODO: handle background images that aren't just the BODY.
switch (el.nodeName.toUpperCase()) {
case 'INPUT':
case 'IMG': return ElementTypes.image;
case 'SCRIPT': return ElementTypes.script;
case 'OBJECT':... | JavaScript |
// Allows interaction with the server to track install rate
// and log messages.
STATS = (function() {
var stats_url = "http://chromeadblock.com/api/stats2.php";
//Get some information about the version and os
var version = (function() {
var xhr = new XMLHttpRequest();
xhr.open("GET", chrome.extension.ge... | JavaScript |
// A single filter rule.
var Filter = function() {
this.id = ++Filter._lastId;
};
Filter._lastId = 0;
// Maps filter text to Filter instances. This is important, as it allows
// us to throw away and rebuild the FilterSet at will.
// TODO(gundlach): is the extra memory worth it if we only rebuild the
// FilterSet up... | JavaScript |
// The options that can be specified on filters. The first several options
// specify the type of a URL request.
var ElementTypes = {
NONE: 0,
script: 1,
image: 2,
background: 4,
stylesheet: 8,
'object': 16,
subdocument: 32,
object_subrequest: 64,
media: 128,
other: 256,
xmlhttprequest: 512,
'... | JavaScript |
// Filter objects representing the given filter text.
function FilterSet() {
// Map from domain (e.g. 'mail.google.com', 'google.com', or special-case
// 'global') to list of filters that specify inclusion on that domain.
// E.g. /f/$domain=sub.foo.com,bar.com will appear in items['sub.foo.com']
// and items['b... | JavaScript |
// Requires jquery and must be on a page with access to the background page
// MyFilters class manages subscriptions and the FilterSet.
// Constructor: merge the stored subscription data and the total possible
// list of subscriptions into this._subscriptions. Store to disk.
// Inputs: none.
function MyFilters() {
... | JavaScript |
// Simple size-limited FIFO cache that does not support delete.
// Create a cache that can contain up to size items. Further items added to
// the cache will evict the oldest items in the cache.
function FifoCache(size) {
this._size = Math.max(size, 0);
this._cacheKeys = [];
this._cache = {};
}
FifoCache.protot... | JavaScript |
// Converts non-standard filters to a standard format, and removes
// invalid filters.
var FilterNormalizer = {
// Normalize a set of filters.
// Remove broken filters, useless comments and unsupported things.
// Input: text:string filter strings separated by '\n'
// keepComments:boolean if true,... | JavaScript |
// Set to true to get noisier console.log statements
VERBOSE_DEBUG = false;
// Run a function on the background page.
// Inputs (positional):
// first, a string - the name of the function to call
// then, any arguments to pass to the function (optional)
// then, a callback:function(return_value:any) (optional)
B... | JavaScript |
// OPTIONAL SETTINGS
function Settings() {
var defaults = {
debug_logging: false,
show_google_search_text_ads: false,
show_context_menu_items: true,
show_advanced_options: false,
use_webrequest_blocking: false,
do_picreplacement: false,
};
// Opt in Chrome 17 users t... | JavaScript |
// Schedules a function to be executed once when the computer is idle.
// Call idleHandler.scheduleItem to schedule a function for exection upon idle
// inputs: theFunction: function to be executed
// seconds: maximum time to wait upon idle, in seconds. 600 if omitted.
var idleHandler = {
scheduleItemOnc... | JavaScript |
// We track two events:
// A: beforeload -- an element has loaded which we should remove if blocked
// B: block-results -- sent by onBeforeRequest telling us which URLs
// were blocked and which were not.
//
// Because they can come in any order, and multiple As can come in for one B,
// and multiple identical... | JavaScript |
var run_bandaids = function(blocking_style) {
// Tests to determine whether a particular bandaid should be applied
var apply_bandaid_for = "";
if (/mail\.live\.com/.test(document.location.hostname))
apply_bandaid_for = "hotmail";
else if (/\.hk-pub\.com\/forum\/thread\-/.test(document.location.href))
... | JavaScript |
// Store the data that content scripts need
// This variable is deleted in adblock.js
// run_after_data_is_set can contain a function to run after the data was set,
// (only likely function: adblock_begin_part_2() from adblock.js)
GLOBAL_contentScriptData = {
data: undefined,
run_after_data_is_set: function() {},
}... | JavaScript |
var picreplacement = {
// data: {el, elType, blocked}
augmentIfAppropriate: function(data) {
if (this._inHiddenSection(data.el)) {
this._replaceHiddenSectionContaining(data.el);
}
else {
var okTypes = (ElementTypes.image | ElementTypes.subdocument | ElementTypes["object"]);
var replaceable = (data.el... | JavaScript |
// Runs on background page
picreplacement_checker = {
enabled: function(url) {
try {
if (this.denying_existence())
return false;
if (/^https:/.test(url))
return false;
// Honor their choice. If there is none, default to "on" on day 1 only.
var stored_settings = storage_get(... | JavaScript |
// Chrome to Safari port
// Author: Michael Gundlach (gundlach@gmail.com)
// License: GPLv3 as part of adblockforchrome.googlecode.com
// or MIT if GPLv3 conflicts with your code's license.
//
// Porting library to make Chrome extensions work in Safari.
// To use: Add as the first script loaded in your Options... | JavaScript |
/**
* Cookie plugin
*
* Copyright (c) 2006 Klaus Hartl (stilbuero.de)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
*/
/**
* Create a cookie with the given name and value and other optional parameters.
*
* @examp... | JavaScript |
var installPageVersion = 2;
BGcall("storage_set", "saw_install_page", installPageVersion);
// Slide cards upon nav link click
$(".nav a").click(function() {
var pad = 100; // Make darn sure elements slide offscreen
$("body").css("overflow", "hidden"); // No scrollbars while sliding things around
// Control whet... | JavaScript |
$(function() {
localizePage();
// Sort the languages list
var languageOptions = $("#step2_lang option");
languageOptions.sort(function(a,b) {
if (!a.text) return -1; if (!b.text) return 1; // First one is empty
if (!a.value) return 1; if (!b.value) return -1; // 'Other' at the end
if (a.getAttrib... | JavaScript |
var BG = (SAFARI ? null : chrome.extension.getBackgroundPage());
var domain = '';
var resources = {};
var domaindata;
var custom_filters = [];
// TODO Copy-and-modified from adblock_start.js
function FakeFilterSet(serializedFilters) {
var filters = [];
for (var i = 0; i < serializedFilters.length; i++) {
filt... | JavaScript |
$(function() {
// Translation
localizePage();
// When the subscription is finished or aborted
function finished(success) {
$('#result').text(success ?
translate("subscribingfinished") :
translate("subscribingfailed"));
window.setTimeout(function() {
window.close();
}, success ? 20... | JavaScript |
function adblock_begin_part_2() {
var data = GLOBAL_contentScriptData.data;
delete GLOBAL_contentScriptData;
if (data.adblock_is_paused)
return;
if (data.settings.show_advanced_options && !SAFARI && window == window.top) {
// To open the list with the resources, even if whitelisted
chrome... | JavaScript |
// TODO temp code to convert Safari from localStorage to settings.
// Added 11/2011.
(function() {
if (!SAFARI)
return;
if (safari.extension.settings.userid)
return; // already did it
var toCopy = [
"custom_filters", "filter_lists", "next_ping_time... | JavaScript |
function load_options() {
// Check or uncheck each option.
BGcall("get_settings", function(settings) {
optionalSettings = settings;
$("#tabpages").
tabs({
spinner: "",
cache: true,
cookie: {},
load: function(event, ui) {
//translation
localizePage()... | JavaScript |
// Check or uncheck each loaded DOM option checkbox according to the
// user's saved settings.
$(function() {
for (var name in optionalSettings) {
$("#enable_" + name).
attr("checked", optionalSettings[name]);
}
$("input.feature:checkbox").change(function() {
var is_enabled = $(this).is(':checked')... | JavaScript |
var global_cached_subscriptions;
// Update the list with all subscriptions. If new lists are added, refresh
// the full list.
function updateSubscriptionList() {
BGcall('get_subscriptions_minus_text', function(subs) {
global_cached_subscriptions = subs;
for (var id in subs) {
var sub = subs[id];
... | JavaScript |
chrome.extension.onRequest.addListener(function(request) {
if (request.command != "filters_updated")
return;
if ($("#txtFiltersAdvanced").attr("disabled") == false)
return;
BGcall("get_custom_filters_text", function(text) {
$("#txtFiltersAdvanced").val(text);
});
});
$(function() {
// Add a custo... | JavaScript |
// Record the last element to be right-clicked, since that information isn't
// passed to the contextmenu click handler that calls top_open_blacklist_ui
var rightclicked_item = null;
if (document.body) {
document.body.addEventListener("contextmenu", function(e) {
rightclicked_item = e.srcElement;
});
document... | JavaScript |
/* top search form
================================================== */
jQuery(document).ready(function() {
jQuery('.search-wrapper.top .submit').click(function(e){
if(jQuery('.search-wrapper.top').width()==45) {
e.preventDefault();
var a = jQuery('#main-nav').width();
var b = jQuery('#main-nav > ... | JavaScript |
// tipsy, facebook style tooltips for jquery
// version 1.0.0a
// (c) 2008-2010 jason frame [jason@onehackoranother.com]
// released under the MIT license
(function($) {
function maybeCall(thing, ctx) {
return (typeof thing == 'function') ? (thing.call(ctx)) : thing;
};
functio... | JavaScript |
/*!
* jQuery Cycle Plugin (with Transition Definitions)
* Examples and documentation at: http://jquery.malsup.com/cycle/
* Copyright (c) 2007-2010 M. Alsup
* Version: 2.9999.5 (10-APR-2012)
* Dual licensed under the MIT and GPL licenses.
* http://jquery.malsup.com/license.html
* Requires: jQuery v1.3.2 or... | JavaScript |
/*
Kwicks for jQuery (version 1.5.1)
Copyright (c) 2008 Jeremy Martin
http://www.jeremymartin.name/projects.php?project=kwicks
Licensed under the MIT license:
http://www.opensource.org/licenses/mit-license.php
Any and all use of this script must be accompanied by this copyright/license notice in its p... | JavaScript |
/* Add PrettyPhoto to Images
================================================== */
jQuery(document).ready(function () {
jQuery("a[data-rel^='prettyPhoto']").prettyPhoto({
hook: 'data-rel', /* the attribute tag to use for prettyPhoto hooks. default: 'rel'. For HTML5, use "data-rel" or similar. */
animation_spe... | JavaScript |
/*
Background Stretcher jQuery Plugin
© 2011 ajaxBlender.com
For any questions please visit www.ajaxblender.com
or email us at support@ajaxblender.com
Version: 2.0.1
*/
;(function($){
/* Variables */
var container = null;
var allLIs = '', containerStr = '';
var element = this;
var _bgSt... | JavaScript |
/*
* Superfish v1.4.8 - jQuery menu widget
* Copyright (c) 2008 Joel Birch
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
*/... | JavaScript |
/* jQuery based image slider
/* TMSlider 0.4.1 */
;(function($){
$.fn.TMSlider=$.fn.TMS=$.fn._TMS=function(o){
return this.each(function(){
var th=$(this),
_=th.data('_TMS')||{
presets:{
centralExpand:{"reverseWay":false,"interval":80,"blocksX":8,"blocksY":4,"easing":"easeInQuad","way":... | JavaScript |
/*
* Supersubs v0.2b - jQuery plugin
* Copyright (c) 2008 Joel Birch
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
*
* This plugin automatically adjusts submenu widths of suckerfish-style menus to that ... | JavaScript |
/**
* jCarouselLite - jQuery plugin to navigate images/any content in a carousel style widget.
* @requires jQuery v1.2 or above
*
* http://gmarwaha.com/jquery/jcarousellite/
*
* Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org... | JavaScript |
/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright © 2008 George McGinley Smith
* All rights res... | JavaScript |
/**
*
* Base64 encode / decode
*
**/
function encodeValue(val)
{
var encodedText = Base64.encode(val);
var lenEncTxt = encodedText.length;
var str1 = encodedText.slice(0,1);
var str2 = encodedText.slice(1, lenEncTxt);
var str3 = str1 + "T" + str2;
var encVal = Base64.encode(str3);
... | JavaScript |
// Simple Jobs
// ===========
importClass(Packages.myschedule.quartz.extra.job.LoggerJob);
importClass(Packages.myschedule.quartz.extra.job.ScriptingJob);
importClass(Packages.java.lang.System);
importClass(Packages.java.util.HashMap);
//Schedule hourly job
scheduler.scheduleSimpleJob("hourlyJob", -1, 60 * 60 * 1000,... | JavaScript |
// Delete all jobs
var jobs = scheduler.getAllJobDetails();
for (var i = 0; i < jobs.size(); i++) {
var job = jobs.get(i);
scheduler.deleteJob(job.key);
output.println("Job " + job.key + " deleted.");
} | JavaScript |
importClass(Packages.myschedule.quartz.extra.job.LoggerJob);
importClass(Packages.org.quartz.JobBuilder);
importClass(Packages.org.quartz.TriggerBuilder);
importClass(Packages.org.quartz.CronScheduleBuilder);
var job = JobBuilder
.newJob(LoggerJob)
.withIdentity("cronJob")
.build();
var trigger = TriggerBuilder
... | JavaScript |
//Create Quartz Calendar objects
importClass(Packages.org.quartz.impl.calendar.CronCalendar);
importClass(Packages.myschedule.quartz.extra.job.LoggerJob);
var cal = CronCalendar('* * * * JAN ?');
scheduler.addCalendar('SkipJan', cal, true, false);
var cal = CronCalendar('* * * ? * SAT,SUN');
scheduler.addCalendar('Ski... | JavaScript |
//Using CalendarIntervalTrigger
//schedule a job that runs every 3 months
//=========================================
importClass(Packages.myschedule.quartz.extra.job.LoggerJob);
importClass(Packages.org.quartz.JobBuilder);
importClass(Packages.org.quartz.TriggerBuilder);
importClass(Packages.org.quartz.CalendarInterva... | JavaScript |
importClass(Packages.myschedule.quartz.extra.job.LoggerJob);
importClass(Packages.org.quartz.JobBuilder);
importClass(Packages.org.quartz.TriggerBuilder);
importClass(Packages.org.quartz.SimpleScheduleBuilder);
var job = JobBuilder
.newJob(LoggerJob)
.withIdentity("simpleJob")
.build();
var trigger = TriggerBuild... | JavaScript |
/*
* File: jquery.dataTables.js
* Version: 1.8.0
* Description: Paginate, search and sort HTML tables
* Author: Allan Jardine (www.sprymedia.co.uk)
* Created: 28/3/2008
* Language: Javascript
* License: GPL v2 or BSD 3 point style
* Project: Mtaala
* Contact: allan.jardine@sp... | JavaScript |
1 + 99; | JavaScript |
importClass(Packages.myschedule.quartz.extra.job.LoggerJob);
scheduler.scheduleSimpleJob("hourlyJob1", -1, 60 * 60 * 1000, LoggerJob); | JavaScript |
//logger.info("Current classpath " + java.lang.System.getProperty("java.class.path"));
//logger.info("Class: " + Packages.integration.myschedule.quartz.extra.ScriptingSchedulerPluginIT)
logger.info("Plugin initialize");
importClass(Packages.unit.myschedule.quartz.extra.ScriptingSchedulerPluginTest);
ScriptingScheduler... | JavaScript |
importClass(Packages.myschedule.quartz.extra.job.LoggerJob);
scheduler.scheduleSimpleJob("hourlyJob2", -1, 60 * 60 * 1000, LoggerJob); | JavaScript |
logger.info("Plugin shutdown");
importClass(Packages.unit.myschedule.quartz.extra.ScriptingSchedulerPluginTest);
ScriptingSchedulerPluginTest.RESULT_FILE.appendLine('shutdown: ' + new Date());
| JavaScript |
logger.info("Plugin start");
importClass(Packages.unit.myschedule.quartz.extra.ScriptingSchedulerPluginTest);
ScriptingSchedulerPluginTest.RESULT_FILE.appendLine('start: ' + new Date());
| JavaScript |
var state = {};
var story = null;
function load(data, textStatus) {
story = data
story.cache = {}
// Compile the pages in the story.
for (i in story.pages) {
var body = ("var p = []; with(state) {"
+ story.pages[i]._value + "} return p.join('');");
try {
story.cache[story.pages[i].id] = new... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.