code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
jQuery( function ($){
if( typeof codepeople_theme_switch != 'undefined' )
{
function getWidth()
{
var myWidth = 0;
if( typeof( window.innerWidth ) == 'number' ) {
//Non-IE
myWidth = window.innerWidth;
} else if( document.do... | JavaScript |
(function ($){
function empty( v )
{
return typeof v != 'undefined' && /^\s*$/.test( v );
};
function clear()
{
// Clear
$( '#cpts_screen_width' ).val( '' );
$( '#cpts_predefined_screen option:first' ).prop( 'selected', true );
};
window[ 'cptsDisplayPreview' ] = function()
{
var t ... | JavaScript |
//socket javascript
jQuery(document).ready(function(){
//tao doi tuong websocket
// var wsUri = "ws://localhost:9070/server.php";
//wsocket = new WebSocket(wsUri);
//khi ket noi duoc mo
// wsocket.onopen = function(ev) {
// alert('đã kết nối');
// }
//khi nha... | JavaScript |
jQuery(document).ready(function($){
function evaluate(){
var item = $(this);
var relatedItem = $('.checktoshow');
if(item.is(":checked")){
relatedItem.fadeIn();
}else{
relatedItem.fadeOut();
}
}
$('#wp_ulike_style').click(evaluate).each(evaluate);
$('.my-color-field').wpColorPicker();... | JavaScript |
var ak_js = document.getElementById( "ak_js" );
if ( ! ak_js ) {
ak_js = document.createElement( 'input' );
ak_js.setAttribute( 'id', 'ak_js' );
ak_js.setAttribute( 'name', 'ak_js' );
ak_js.setAttribute( 'type', 'hidden' );
}
else {
ak_js.parentNode.removeChild( ak_js );
}
ak_js.setAttribute( 'value', ( new Date... | JavaScript |
jQuery( function ( $ ) {
$( 'a.activate-option' ).click( function(){
var link = $( this );
if ( link.hasClass( 'clicked' ) ) {
link.removeClass( 'clicked' );
}
else {
link.addClass( 'clicked' );
}
$( '.toggle-have-key' ).slideToggle( 'slow', function() {});
return false;
});
$('.akismet-status').... | JavaScript |
jQuery(function(){
//hover states on the static widgets
jQuery('#dialog_link, ul#icons li').hover(
function() { jQuery(this).addClass('ui-state-hover'); },
function() { jQuery(this).removeClass('ui-state-hover'); }
);
});
/* initialize datepicker */
jQuery(function(){
// Datepicker
jQuery('.wppb_... | JavaScript |
function wppb_insertAtCursor(myField,value) {
//IE support
if (document.selection) {
myField.focus();
sel = document.selection.createRange();
sel.text = value;
}
//MOZILLA/NETSCAPE support
else if (myField.selectionStart || myField.selectionStart == '0') {
var startPos = myField.selection... | JavaScript |
/**
*
* Delay
*
* Creates a way to delay events
* Dependencies: jQuery
*
*/
/*
Original Plugin Name: OptionTree
Original Plugin URI: http://wp.envato.com
Original Author: Derek Herman
Original Author URI: http://valendesigns.com
*/
(function ($) {
$.fn.delay = function(time,func){
r... | JavaScript |
/*
Original Plugin Name: OptionTree
Original Plugin URI: http://wp.envato.com
Original Author: Derek Herman
Original Author URI: http://valendesigns.com
*/
/**
* TableDnD plug-in for JQuery, allows you to drag and drop table rows
* You can set up various options to control how the system will work
* Copyri... | JavaScript |
/**
*
* Delay
*
* Creates a way to delay events
* Dependencies: jQuery
*
*/
/*
Original Plugin Name: OptionTree
Original Plugin URI: http://wp.envato.com
Original Author: Derek Herman
Original Author URI: http://valendesigns.com
*/
(function ($) {
$.fn.delay = function(time,func){
r... | JavaScript |
var map;
var markers = [];
var infowindow = new google.maps.InfoWindow();
var current_latLng;
var current_address;
function initialize() {
var map_lat = 1;
var map_lng=1;
var image_latLgns_array = map_object.image_latLgns.split(';');
for(var i=0;i<image_latLgns_array.length-1;i++)
{
var latL... | JavaScript |
/*
* @package WP Admin Bar Removal
* @subpackage External JS Enqueue Script
* @branche 2014
* @build 2014-08-15
* @since 3.7+
* @tested 3.9+
* @version 2014.0816.0392
* @target 2014.1210.0410
* @status STABLE (trunk) release
* @development Code in Becoming!
* @author slangjis
* @license ... | JavaScript |
jQuery(document).ready(function(){
jQuery('.btn_comment').click(function(){
var counter = jQuery('.comment_counter');
var val = parseInt(counter.text());
val++;
jQuery('.comment_counter').css({opacity: 0});
jQuery('.comment_counter').text(val);
jQuery('.comment_co... | JavaScript |
jQuery(function(){
//hover states on the static widgets
jQuery('#dialog_link, ul#icons li').hover(
function() { jQuery(this).addClass('ui-state-hover'); },
function() { jQuery(this).removeClass('ui-state-hover'); }
);
});
/* initialize datepicker */
jQuery(function(){
// Datepicker
jQuery('.wppb_... | JavaScript |
function wppb_insertAtCursor(myField,value) {
//IE support
if (document.selection) {
myField.focus();
sel = document.selection.createRange();
sel.text = value;
}
//MOZILLA/NETSCAPE support
else if (myField.selectionStart || myField.selectionStart == '0') {
var startPos = myField.selection... | JavaScript |
/**
*
* Delay
*
* Creates a way to delay events
* Dependencies: jQuery
*
*/
/*
Original Plugin Name: OptionTree
Original Plugin URI: http://wp.envato.com
Original Author: Derek Herman
Original Author URI: http://valendesigns.com
*/
(function ($) {
$.fn.delay = function(time,func){
r... | JavaScript |
/*
Original Plugin Name: OptionTree
Original Plugin URI: http://wp.envato.com
Original Author: Derek Herman
Original Author URI: http://valendesigns.com
*/
/**
* TableDnD plug-in for JQuery, allows you to drag and drop table rows
* You can set up various options to control how the system will work
* Copyri... | JavaScript |
jQuery(function(){
//hover states on the static widgets
jQuery('#dialog_link, ul#icons li').hover(
function() { jQuery(this).addClass('ui-state-hover'); },
function() { jQuery(this).removeClass('ui-state-hover'); }
);
});
/* initialize datepicker */
jQuery(function(){
// Datepicker
jQuery('.wppb_... | JavaScript |
function wppb_insertAtCursor(myField,value) {
//IE support
if (document.selection) {
myField.focus();
sel = document.selection.createRange();
sel.text = value;
}
//MOZILLA/NETSCAPE support
else if (myField.selectionStart || myField.selectionStart == '0') {
var startPos = myField.selection... | JavaScript |
/**
*
* Delay
*
* Creates a way to delay events
* Dependencies: jQuery
*
*/
/*
Original Plugin Name: OptionTree
Original Plugin URI: http://wp.envato.com
Original Author: Derek Herman
Original Author URI: http://valendesigns.com
*/
(function ($) {
$.fn.delay = function(time,func){
r... | JavaScript |
/*
Original Plugin Name: OptionTree
Original Plugin URI: http://wp.envato.com
Original Author: Derek Herman
Original Author URI: http://valendesigns.com
*/
/**
* TableDnD plug-in for JQuery, allows you to drag and drop table rows
* You can set up various options to control how the system will work
* Copyri... | JavaScript |
/**
*
* Delay
*
* Creates a way to delay events
* Dependencies: jQuery
*
*/
/*
Original Plugin Name: OptionTree
Original Plugin URI: http://wp.envato.com
Original Author: Derek Herman
Original Author URI: http://valendesigns.com
*/
(function ($) {
$.fn.delay = function(time,func){
r... | JavaScript |
function wppb_display_page_select( value ) {
if ( value == 'yes' )
jQuery ( '#framework_wrap #content #general_settings_registration_page_div' ).show();
else
jQuery ( '#framework_wrap #content #general_settings_registration_page_div' ).hide();
}
jQuery(function() {
if ( ( jQuery( '#framework_wrap #content .wp... | JavaScript |
jQuery( document ).ready( function( $ ) {
// Don't ever cache ajax requests
$.ajaxSetup( { 'cache' : false } );
// Remove the loading class when ajax requests complete
$( document ).ajaxComplete( function() {
$( '.hmbkp-ajax-loading' ).removeClass( 'hmbkp-ajax-loading' ).removeAttr( 'disabled' );
} );
$( doc... | JavaScript |
/**
* Theme Customizer enhancements for a better user experience.
*
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
* Things like site title, description, and background color changes.
*/
( function( $ ) {
// Site title and description.
wp.customize( 'blogname', function( val... | JavaScript |
/**
* Handles toggling the navigation menu for small screens and
* accessibility for submenu items.
*/
( function() {
var nav = document.getElementById( 'site-navigation' ), button, menu;
if ( ! nav ) {
return;
}
button = nav.getElementsByTagName( 'h3' )[0];
menu = nav.getElementsByTagName( 'ul' )[0];
if ... | JavaScript |
/**
* Theme functions file
*
* Contains handlers for navigation, accessibility, header sizing
* footer widgets and Featured Content slider
*
*/
( function( $ ) {
var body = $( 'body' ),
_window = $( window );
// Enable menu toggle for small screens.
( function() {
var nav = $( '#primary-navigation' ), ... | JavaScript |
/**
* Twenty Fourteen keyboard support for image navigation.
*/
( function( $ ) {
$( document ).on( 'keydown.twentyfourteen', function( e ) {
var url = false;
// Left arrow key code.
if ( e.which === 37 ) {
url = $( '.previous-image a' ).attr( 'href' );
// Right arrow key code.
} else if ( e.which ===... | JavaScript |
/*
* Twenty Fourteen Featured Content Slider
*
* Adapted from FlexSlider v2.2.0, copyright 2012 WooThemes
* @link http://www.woothemes.com/flexslider/
*/
/* global DocumentTouch:true,setImmediate:true,featuredSliderDefaults:true,MSGesture:true */
( function( $ ) {
// FeaturedSlider: object instance.
$.featuredsl... | JavaScript |
/**
* Twenty Fourteen Featured Content admin behavior: add a tag suggestion
* when changing the tag.
*/
/* global ajaxurl:true */
jQuery( document ).ready( function( $ ) {
$( '#customize-control-featured-content-tag-name input' ).suggest( ajaxurl + '?action=ajax-tag-search&tax=post_tag', { delay: 500, minchars: 2 ... | JavaScript |
/**
* Twenty Fourteen Theme Customizer enhancements for a better user experience.
*
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
*/
( function( $ ) {
// Site title and description.
wp.customize( 'blogname', function( value ) {
value.bind( function( to ) {
$( '.site-titl... | JavaScript |
$(function() {
$("<div id='tweet'>adsa</div>").appendTo("#tweeter").lastTwitterMessage('chriscoyier');
}); | JavaScript |
$(function() {
$("<div id='tweet'></div>").hide().appendTo("#footer")
.lastTwitterMessage('chriscoyier');
}); | JavaScript |
$(
function($){
$.fn.lastTwitterMessage = function(username){
var $base = this;
if(!username || username == "") return this;
var url = "http://twitter.com/statuses/user_timeline.json?callback=?";
$.getJSON(url,{count:10,screen_name:username
},
function(data){
if(data && data.length >= 1){
try{
var item = nu... | JavaScript |
/*!
* imagesLoaded PACKAGED v3.1.8
* JavaScript is all like "You images are done yet or what?"
* MIT License
*/
/*!
* EventEmitter v4.2.6 - git.io/ee
* Oliver Caldwell
* MIT license
* @preserve
*/
(function () {
/**
* Class for managing events.
* Can be extended to provide event functionality in oth... | JavaScript |
/**
* This file adds some LIVE to the Theme Customizer live preview. To leverage
* this, set your custom settings to 'postMessage' and then add your handling
* here. Your javascript should grab settings from customizer controls, and
* then make any necessary changes to the page using jQuery.
*/
( function( $ ) {
... | JavaScript |
jQuery(document).ready(function($) {
//Masonry blocks
$blocks = $(".posts");
$blocks.imagesLoaded(function(){
$blocks.masonry({
itemSelector: '.post-container'
});
// Fade blocks in after images are ready (prevents jumping and re-rendering)
$(".post-container").fadeIn();
});
$(document).ready( f... | JavaScript |
jQuery(window).load(function() {
/* Navigation */
jQuery('#submenu ul.sfmenu').superfish({
delay: 500, // 0.1 second delay on mouseout
animation: { opacity:'show',height:'show'}, // fade-in and slide-down animation
dropShadows: true // disable drop shadows
});
/* Hover block */
... | JavaScript |
jQuery(document).ready(function () {
// Установка реального цвета с учётом прозрачности
function setIColor(fake_i, color, opacity) {
var id = fake_i.attr("id");
var name = id.substring(5);
jQuery('#' + name).val(color);
jQuery('#' + name + '_opacity').val(opacity);
}
function setColorPicker() {
jQue... | JavaScript |
/**
* Custom scripts needed for the colorpicker, image button selectors,
* and navigation tabs.
*/
jQuery(document).ready(function($) {
// Loads the color pickers
$('.of-color').wpColorPicker();
// Image Options
$('.of-radio-img-img').click(function(){
$(this).parent().parent().find('.of-radio-img-img').rem... | JavaScript |
jQuery(document).ready(function($){
var optionsframework_upload;
var optionsframework_selector;
function optionsframework_add_file(event, selector) {
var upload = $(".uploaded-file"), frame;
var $el = $(this);
optionsframework_selector = selector;
event.preventDefault();
// If the media frame already ... | JavaScript |
jQuery(window).load(function() {
/* Navigation */
jQuery('#submenu ul.sfmenu').superfish({
delay: 500, // 0.1 second delay on mouseout
animation: { opacity:'show',height:'show'}, // fade-in and slide-down animation
dropShadows: true // disable drop shadows
});
/* Hover block */
j... | JavaScript |
jQuery(document).ready(function () {
// Установка реального цвета с учётом прозрачности
function setIColor(fake_i, color, opacity) {
var id = fake_i.attr("id");
var name = id.substring(5);
jQuery('#' + name).val(color);
jQuery('#' + name + '_opacity').val(opacity);
}
function setColorPicker() {
jQue... | JavaScript |
/**
* Custom scripts needed for the colorpicker, image button selectors,
* and navigation tabs.
*/
jQuery(document).ready(function($) {
// Loads the color pickers
$('.of-color').wpColorPicker();
// Image Options
$('.of-radio-img-img').click(function(){
$(this).parent().parent().find('.of-radio-img-img').rem... | JavaScript |
jQuery(document).ready(function($){
var optionsframework_upload;
var optionsframework_selector;
function optionsframework_add_file(event, selector) {
var upload = $(".uploaded-file"), frame;
var $el = $(this);
optionsframework_selector = selector;
event.preventDefault();
// If the media frame already ... | JavaScript |
/**
* Functionality specific to Twenty Thirteen.
*
* Provides helper functions to enhance the theme experience.
*/
( function( $ ) {
var body = $( 'body' ),
_window = $( window );
/**
* Adds a top margin to the footer if the sidebar widget area is higher
* than the rest of the page, to help the foot... | JavaScript |
/**
* Theme Customizer enhancements for a better user experience.
*
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
* Things like site title and description changes.
*/
( function( $ ) {
// Site title and description.
wp.customize( 'blogname', function( value ) {
value.bind... | JavaScript |
/**
* AJAX Upload ( http://valums.com/ajax-upload/ )
* Copyright (c) Andrew Valums
* Licensed under the MIT license
*/
(function () {
/**
* Attaches event to a dom element.
* @param {Element} el
* @param type event name
* @param fn callback This refers to the passed element
... | JavaScript |
/**
*
* Color picker
* Author: Stefan Petre www.eyecon.ro
*
* Dependencies: jQuery
*
*/
(function ($) {
var ColorPicker = function () {
var
ids = {},
inAction,
charMin = 65,
visible,
tpl = '<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div ... | JavaScript |
/// <reference path="../../../lib/jquery-1.2.6.js" />
/*
Masked Input plugin for jQuery
Copyright (c) 2007-2009 Josh Bush (digitalbush.com)
Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license)
Version: 1.2.2 (03/09/2009 22:39:06)
*/
(function($) {
var pasteEventNa... | JavaScript |
/**
* jQuery Masonry v2.0.110927
* A dynamic layout plugin for jQuery
* The flip-side of CSS Floats
* http://masonry.desandro.com
*
* Licensed under the MIT license.
* Copyright 2011 David DeSandro
*/
(function( window, $, undefined ){
/*
* smartresize: debounced resize event for jQuery
... | JavaScript |
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Larave... | JavaScript |
// Improvements/bug-fixes since book publication.
//
// Use of the 'backgroundColor' property has been replaced with
// 'background' because it works exactly the same way when used
// with a color, and is therefore shorter and faster.
//
// In Initialize() the mouse is also captured by the onscroll
// event (and... | JavaScript |
/************************************/
/* PC.js: Version 1.0 */
/* From Plug-in CSS, by Robin Nixon */
/* McGraw-Hill 2011 */
/* */
/* Plug-ins 58-100: Dynamic classes */
/* and Superclasses */
/************************************/
... | JavaScript |
// JavaScript Document
// 꼭 필요한 HTML5 그리고 HTML5 API #pubple p.71
// pro jquery 제이쿼리 완벽마스터 #apress/길벗 p.284
// 접근성을 유지하며 팝업창 뛰우기
// <a href=' ' class='popup' data-height=100 data-width=200 data-winName='kongji' >공지사항</a>
$(function() {
$('a.popup' ).click(function(e) {
e.preventDefault();
var hre... | JavaScript |
if(typeof Object.create!=="function"){
Object.create=function(o){
function F(){
};
F.prototype=o;
return new F();
};
}
var ua={toString:function(){
return navigator.userAgent;
},test:function(s){
return this.toString().toLowerCase().indexOf(s.toLowerCase())>-1;
}};
ua.version=(ua.toString().toLowerCase().m... | JavaScript |
// JavaScript Document
// ### googleAnalystics ###
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-36372185-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.p... | JavaScript |
// JavaScript Document
// var storage_support = window.sessionStorage || window.localStorage;
//
//
//
//
var isSupport = {
// #### html5 관련
// 꼭 필요한 HTML5 그리고 HTML5 API #pubple p.247, p.262
webDB: function()
{
var indexedDB = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB;
... | JavaScript |
// jQueryFallback.js
/**
* 폼검증
* 열혈강의 자바스크립트 #프리렉 p.280
* 1차 cdn 이용 실패시 즉시 적용 할 수 있도록
* 바로 뒤에서 지원여부 체크한뒤 2차 cdn경로, 최종으로 웹경로를 위치 시킨다.
* <script>window.jQuery || document.write("<script src='사이트내 jquery가 위치한 경로'>\x3C/script>")</script>
*/
// jQueryFallback // todo: 1.서비스 할 홈 페이지 경로를 환경에 맞게 조정하세요.
if ... | JavaScript |
// JavaScript Document
// 가비아 모마일 리다이렉트 v 1.22
evt.add('body', 'load', 'checkScreen');
var mdomain = "http://m.printer79.com"; // 모바일용 도메인 설정
function checkScreen()
{
var vref = document.referrer;
var vfrom="", qstring="";
// Daum, Nate등은 레퍼가 없는 상태로 넘어오기때문에 레퍼가 있는 경우에만 체크
if (vref) {
if (vref.inde... | 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 |
/*
json2.js
2012-10-08
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 TO LOAD CODE FROM S... | JavaScript |
// Improvements/bug-fixes since book publication.
//
// Use of the 'backgroundColor' property has been replaced with
// 'background' because it works exactly the same way when used
// with a color, and is therefore shorter and faster.
//
// In Initialize() the mouse is also captured by the onscroll
// event (and... | JavaScript |
/************************************/
/* PC.js: Version 1.0 */
/* From Plug-in CSS, by Robin Nixon */
/* McGraw-Hill 2011 */
/* */
/* Plug-ins 58-100: Dynamic classes */
/* and Superclasses */
/************************************/
... | JavaScript |
// JavaScript Document
/*
TODO:
로컬스토리지 저장 목록
- 최근 검색기록
- 관심품목 & 관련메모 : User Key가 동일한 경우 모든 웹브라우저 && 로그인 한 각 PC 마다 동기화 필수
- 광고내용 & 업체정보 : 웹소켓을 이용한 비동기 server-push 방식으로 저장 후 검색에 연동한 광고노출 또는 랜덤 노출
초기화싯점에서 기능탐지, 브라우저탐지,.... (페이지수준으로 분기)
자바스크립트 패턴 #인사이트 p.92
자바스크립트 패턴 #인사이트 p.245
var is... | JavaScript |
// JavaScript Document
/*
자바스크립트 파일에서 외부 자바스크립트 병렬임포트 지원
jquery-ui는 jquery에 의존적이므로 다운로드를 지연시킨다.
var labjs = $LAB
.script("js/libs/jquery.min.js").wait()
.script("js/libs/jquery-ui.min.js")
.script("js/global.js");
labjs.wait(function(){
$('header').effect("pulsate", { times:3 }, 2000);
});
var l... | JavaScript |
// JavaScript Document
$LAB
.script("/2013p79/common/class/search/js/sharing.js");
| JavaScript |
// JavaScript Document
/*
TODO:
로컬스토리지 저장 목록
- 최근 검색기록
- 관심품목 & 관련메모 : User Key가 동일한 경우 모든 웹브라우저 && 로그인 한 각 PC 마다 동기화 필수
- 광고내용 & 업체정보 : 웹소켓을 이용한 비동기 server-push 방식으로 저장 후 검색에 연동한 광고노출 또는 랜덤 노출
Cr, FF에서는 SQlite를 사용하여 localStorage 동작
초기화싯점에서 기능탐지, 브라우저탐지,.... (페이지수준으로 분기)
자바스크립트 패턴 #인사이트 ... | JavaScript |
// JavaScript Document | JavaScript |
// JavaScript Document
window.onorientationchange = function() { // 자바스크립트쿡북 #한빛미디어 p.187 Sa.
var ori = window.orientation;
switch(ori) {
case 0: // 세로방향
break;
case 90:
case -90: // 가로방향
break;
}
} | JavaScript |
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and ... | 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 |
/**
* TextAreaExpander plugin for jQuery
* v1.0
* Expands or contracts a textarea height depending on the
* quatity of content entered by the user in the box.
*
* By Craig Buckler, Optimalworks.net
*
* As featured on SitePoint.com:
* http://www.sitepoint.com/blogs/2009/07/29/build-auto-expanding-texta... | 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 |
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and delta... | JavaScript |
/*
* FancyBox - jQuery Plugin
* Simple and fancy lightbox alternative
*
* Examples and documentation at: http://fancybox.net
*
* Copyright (c) 2008 - 2010 Janis Skarnelis
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support i... | JavaScript |
/*!
* jQuery Raty - A Star Rating Plugin - http://wbotelhos.com/raty
* -------------------------------------------------------------------
*
* jQuery Raty is a plugin that generates a customizable star rating.
*
* Licensed under The MIT License
*
* @version 2.4.5
* @since 2010.06.11
... | JavaScript |
/*
* Autocomplete - jQuery plugin 1.1pre
*
* Copyright (c) 2007 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Revision: $Id: jquery.aut... | JavaScript |
// ColorBox v1.3.17.1 - a full featured, light-weight, customizable lightbox based on jQuery 1.3+
// Copyright (c) 2011 Jack Moore - [email protected]
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
(function ($, document, window) {
var
// ColorBox Default Settings.
/... | JavaScript |
// This list may be created by a server logic page PHP/ASP/ASPX/JSP in some backend system.
// There templates will be displayed as a dropdown in all media dialog if the "template_external_list_url"
// option is defined in TinyMCE init.
var tinyMCETemplateList = [
// Name, URL, Description
["Simple snippet", "... | JavaScript |
// This list may be created by a server logic page PHP/ASP/ASPX/JSP in some backend system.
// There links will be displayed as a dropdown in all link dialogs if the "external_link_list_url"
// option is defined in TinyMCE init.
var tinyMCELinkList = new Array(
// Name, URL
["Moxiecode", "http://www.moxiecode.... | JavaScript |
// This list may be created by a server logic page PHP/ASP/ASPX/JSP in some backend system.
// There images will be displayed as a dropdown in all image dialogs if the "external_link_image_url"
// option is defined in TinyMCE init.
var tinyMCEImageList = new Array(
// Name, URL
["Logo 1", "media/logo.jpg"],
... | JavaScript |
// This list may be created by a server logic page PHP/ASP/ASPX/JSP in some backend system.
// There flash movies will be displayed as a dropdown in all media dialog if the "media_external_list_url"
// option is defined in TinyMCE init.
var tinyMCEMediaList = [
// Name, URL
["Some Flash", "media/sample.swf"],
... | JavaScript |
// ColorBox v1.3.17.1 - a full featured, light-weight, customizable lightbox based on jQuery 1.3+
// Copyright (c) 2011 Jack Moore - [email protected]
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
(function ($, document, window) {
var
// ColorBox Default Settings.
/... | JavaScript |
window.onload = function() {
myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
} | JavaScript |
/*
moo.fx, simple effects library built with prototype.js (http://prototype.conio.net).
by Valerio Proietti (http://mad4milk.net) MIT-style LICENSE.
for more info (http://moofx.mad4milk.net).
10/24/2005
v(1.0.2)
*/
//base
var fx = new Object();
fx.Base = function(){};
fx.Base.prototype = {
setOptions: function(option... | JavaScript |
function create_menu(basepath)
{
var base = (basepath == 'null') ? '' : basepath;
document.write(
'<table cellpadding="0" cellspaceing="0" border="0" style="width:98%"><tr>' +
'<td class="td" valign="top">' +
'<ul>' +
'<li><a href="'+base+'index.html">User Guide Home</a></li>' +
'<li><a href="'+base+'toc.... | JavaScript |
// This list may be created by a server logic page PHP/ASP/ASPX/JSP in some backend system.
// There templates will be displayed as a dropdown in all media dialog if the "template_external_list_url"
// option is defined in TinyMCE init.
var tinyMCETemplateList = [
// Name, URL, Description
["Simple snippet", "... | JavaScript |
// This list may be created by a server logic page PHP/ASP/ASPX/JSP in some backend system.
// There links will be displayed as a dropdown in all link dialogs if the "external_link_list_url"
// option is defined in TinyMCE init.
var tinyMCELinkList = new Array(
// Name, URL
["Moxiecode", "http://www.moxiecode.... | JavaScript |
// This list may be created by a server logic page PHP/ASP/ASPX/JSP in some backend system.
// There images will be displayed as a dropdown in all image dialogs if the "external_link_image_url"
// option is defined in TinyMCE init.
var tinyMCEImageList = new Array(
// Name, URL
["Logo 1", "media/logo.jpg"],
... | JavaScript |
// This list may be created by a server logic page PHP/ASP/ASPX/JSP in some backend system.
// There flash movies will be displayed as a dropdown in all media dialog if the "media_external_list_url"
// option is defined in TinyMCE init.
var tinyMCEMediaList = [
// Name, URL
["Some Flash", "media/sample.swf"],
... | JavaScript |
//全局变量
var net = new Object();
//var ajax=new AJAXRequest([url],[callback],[content],[method],[async]);
//下面是其构造函数
net.AjaxRequest = function (url, onload, onerror, method, params) {
this.req = null;
this.onload = onload;
this.onerror = (onerror) ? onerror : this.defaultError;
this.loadDate(url, method, params... | JavaScript |
var p =new Array();
p[0] = "选择省份";
p[1] = "北京";
p[2] = "上海";
p[3] = "天津";
p[4] = "重庆";
p[5] = "河北";
p[6] = "山西";
p[7] = "内蒙古 ";
p[8] = "辽宁 ";
p[9] = "吉林";
p[10] = "黑龙江 ";
p[11] = "江苏";
p[12] = "浙江";
p[13] = "安徽";
p[14] = "福建";
p[15] = "江西";
p[16] = "山东";
p[17] = "河南";
p[18] = "湖北";
p[19] = "湖南";
... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* An info panel, which complements the map view of the Store Locator.
* Provides a list of stores, location search, feature filter, and directions.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @name Store Locator for Google Maps API V3
* @version 0.1
* @author Chris Broadfoot (Google)
* @fileoverview
* This library makes it easy to create a fully-featured Store Locator for
* your business's website.
*/
/**
* @license
*
* Copyright 2012 Google Inc.
*
* License... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* Allows developers to specify a static set of stores to be used in the
* storelocator.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* Store model class for Store Locator library.
*/
/**
* 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 ... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* FeatureSet class for Store Locator library. A mutable, ordered set of
* storeLocator.Features.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with th... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* This library makes it easy to create a fully-featured Store Locator for
* your business's website.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wit... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.