code
stringlengths
1
2.08M
language
stringclasses
1 value
/* * MultiSelect v0.9.10 * Copyright (c) 2012 Louis Cuny * * This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What The Fuck You Want * To Public License, Version 2, as published by Sam Hocevar....
JavaScript
var App = function () { var config = {//Basic Config tooltip: true, popover: true, nanoScroller: true, nestableLists: true, hiddenElements: true, bootstrapSwitch:true, dateTime:true, select2:true, tags:true, slider:true }; var voice_methods = []; /*DASHBOARD*/ v...
JavaScript
$(function(){ function getParam(sParam) { var sPageURL = window.location.search.substring(1); var sURLVariables = sPageURL.split('&'); for (var i = 0; i < sURLVariables.length; i++) { var sParameterName = sURLVariables[i].split('='); if (sParameterName[0] == sParam) { ...
JavaScript
/** * jquery.Jcrop.js v0.9.12 * jQuery Image Cropping Plugin - released under MIT License * Author: Kelly Hallman <khallman@gmail.com> * http://github.com/tapmodo/Jcrop * Copyright (c) 2008-2013 Tapmodo Interactive LLC {{{ * * Permission is hereby granted, free of charge, to any person * obtaining a copy of th...
JavaScript
//Button Trigger (function( $ ){ var $this = new Object(); var methods = { init : function( options ) { $this = $.extend({}, this, methods); $this.searching = false; $this.o = new Object(); var defaultOptions = { overlaySelector: '.md-overlay', ...
JavaScript
/* Masked Input plugin for jQuery Copyright (c) 2007-2013 Josh Bush (digitalbush.com) Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license) Version: 1.3.1 */ (function($) { function getPasteEvent() { var el = document.createElement('input'), name = 'onpaste'; ...
JavaScript
/* Flot plugin for automatically redrawing plots as the placeholder resizes. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. It works by listening for changes on the placeholder div (through the jQuery resize event plugin) - if the size changes, it will redraw the plot. There are no opt...
JavaScript
/* Flot plugin for rendering pie charts. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. The plugin assumes that each series has a single data value, and that each value is a positive integer or zero. Negative numbers don't make sense for a pie chart, and have unpredictable results. Th...
JavaScript
/* * The MIT License Copyright (c) 2012 by Matt Burland Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,...
JavaScript
/* Javascript plotting library for jQuery, version 0.8.1. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. */ // first an inline dependency, jquery.colorhelpers.js, we inline it here // for convenience /* Plugin for jQuery for working with colors. * * Version 1.1. * * Inspiration fr...
JavaScript
/** * Intro.js v0.6.0 * https://github.com/usablica/intro.js * MIT licensed * * Copyright (C) 2013 usabli.ca - A weekend project by Afshin Mehrabani (@afshinmeh) */ (function (root, factory) { if (typeof exports === 'object') { // CommonJS factory(exports); } else if (typeof define === 'function' && ...
JavaScript
/*! * Nestable jQuery Plugin - Copyright (c) 2012 David Bushell - http://dbushell.com/ * Dual-licensed under the BSD or MIT licenses */ ;(function($, window, document, undefined) { var hasTouch = 'ontouchstart' in window; /** * Detect CSS pointer-events property * events are normally disabled on the dragging e...
JavaScript
/* * jQuery Iframe Transport Plugin 1.8.2 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2011, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /* global define, window, document */ (function (factory) { 'use strict'; ...
JavaScript
/*! * FullCalendar v1.6.4 * Docs & License: http://arshaw.com/fullcalendar/ * (c) 2013 Adam Shaw */ /* * Use fullcalendar.css for basic styling. * For event drag & drop, requires jQuery UI draggable. * For event resizing, requires jQuery UI resizable. */ (function($, undefined) { ;; var defaults = { // ...
JavaScript
(function(global) { "use strict"; /* Set up a RequestAnimationFrame shim so we can animate efficiently FOR * GREAT JUSTICE. */ var requestInterval, cancelInterval; (function() { var raf = global.requestAnimationFrame || global.webkitRequestAnimationFrame || global.mozR...
JavaScript
(function() { var ie_lt8 = /MSIE \d/.test(navigator.userAgent) && (document.documentMode == null || document.documentMode < 8); var Pos = CodeMirror.Pos; var matching = {"(": ")>", ")": "(<", "[": "]>", "]": "[<", "{": "}>", "}": "{<"}; function findMatchingBracket(cm, where, strict) { var state = cm....
JavaScript
CodeMirror.defineMode("xml", function(config, parserConfig) { var indentUnit = config.indentUnit; var multilineTagIndentFactor = parserConfig.multilineTagIndentFactor || 1; var multilineTagIndentPastTag = parserConfig.multilineTagIndentPastTag || true; var Kludges = parserConfig.htmlMode ? { autoSelfCloser...
JavaScript
CodeMirror.defineMode("htmlmixed", function(config, parserConfig) { var htmlMode = CodeMirror.getMode(config, {name: "xml", htmlMode: true}); var cssMode = CodeMirror.getMode(config, "css"); var scriptTypes = [], scriptTypesConf = parserConfig && parserConfig.scriptTypes; scriptTypes.push({matches: /^(?:text|a...
JavaScript
CodeMirror.defineMode("css", function(config, parserConfig) { "use strict"; if (!parserConfig.propertyKeywords) parserConfig = CodeMirror.resolveMode("text/css"); var indentUnit = config.indentUnit || config.tabSize || 2, hooks = parserConfig.hooks || {}, atMediaTypes = parserConfig.atMediaTypes || ...
JavaScript
// CodeMirror version 3.20 // // CodeMirror is the only global var we claim window.CodeMirror = (function() { "use strict"; // BROWSER SNIFFING // Crude, but necessary to handle a number of hard-to-feature-detect // bugs and behavior differences. var gecko = /gecko\/\d/i.test(navigator.userAgent); // IE11...
JavaScript
;(function(){ /** * Require the given path. * * @param {String} path * @return {Object} exports * @api public */ function require(path, parent, orig) { var resolved = require.resolve(path); // lookup failed if (null == resolved) { orig = orig || path; parent = parent || 'root'; var err = new ...
JavaScript
(function($, window, document, undefined) { $.fn.quicksearch = function (target, opt) { var timeout, cache, rowcache, jq_results, val = '', e = this, options = $.extend({ delay: 100, selector: null, stripeRows: null, loader: null, noResults: '', matchedResultsCount: 0, bind: 'keyup', onBe...
JavaScript
// dateiso extra validator // Guillaume Potier window.ParsleyConfig = window.ParsleyConfig || {}; window.ParsleyConfig.validators = window.ParsleyConfig.validators || {}; window.ParsleyConfig.validators.dateiso = { fn: function (value) { return /^(\d{4})\D?(0[1-9]|1[0-2])\D?([12]\d|0[1-9]|3[01])$/.test(value); ...
JavaScript
/* * Gritter for jQuery * http://www.boedesign.com/ * * Copyright (c) 2012 Jordan Boesch * Dual licensed under the MIT and GPL licenses. * * Date: February 24, 2012 * Version: 1.7.4 */ (function($){ /** * Set it up as an object under the jQuery namespace */ $.gritter = {}; /** * Set up global optio...
JavaScript
/* Set the defaults for DataTables initialisation */ $.extend( true, $.fn.dataTable.defaults, { "sDom": "<'row'<'col-sm-12'<'pull-right'f><'pull-left'l>r<'clearfix'>>>t<'row'<'col-sm-12'<'pull-left'i><'pull-right'p><'clearfix'>>>", "sPaginationType": "bs_normal", "oLanguage": { "sLengthMenu": "Show _ME...
JavaScript
/* * MultiSelect v0.9.10 * Copyright (c) 2012 Louis Cuny * * This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What The Fuck You Want * To Public License, Version 2, as published by Sam Hocevar....
JavaScript
var App = function () { var config = {//Basic Config tooltip: true, popover: true, nanoScroller: true, nestableLists: true, hiddenElements: true, bootstrapSwitch:true, dateTime:true, select2:true, tags:true, slider:true }; var voice_methods = []; /*DASHBOARD*/ v...
JavaScript
$(function(){ function getParam(sParam) { var sPageURL = window.location.search.substring(1); var sURLVariables = sPageURL.split('&'); for (var i = 0; i < sURLVariables.length; i++) { var sParameterName = sURLVariables[i].split('='); if (sParameterName[0] == sParam) { ...
JavaScript
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ $("#credit_slider").slider().on("slide", function(e) { $("#credits").html("$" + e.value); }); $("#rate_slider").slider().on("slid...
JavaScript
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ $(document).ready(function() { //initialize the javascript App.init(); App.dashBoard(); introJs().setOption('showBul...
JavaScript
/** * jquery.Jcrop.js v0.9.12 * jQuery Image Cropping Plugin - released under MIT License * Author: Kelly Hallman <khallman@gmail.com> * http://github.com/tapmodo/Jcrop * Copyright (c) 2008-2013 Tapmodo Interactive LLC {{{ * * Permission is hereby granted, free of charge, to any person * obtaining a copy of th...
JavaScript
//Button Trigger (function( $ ){ var $this = new Object(); var methods = { init : function( options ) { $this = $.extend({}, this, methods); $this.searching = false; $this.o = new Object(); var defaultOptions = { overlaySelector: '.md-overlay', ...
JavaScript
/* Masked Input plugin for jQuery Copyright (c) 2007-2013 Josh Bush (digitalbush.com) Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license) Version: 1.3.1 */ (function($) { function getPasteEvent() { var el = document.createElement('input'), name = 'onpaste'; ...
JavaScript
/* Flot plugin for automatically redrawing plots as the placeholder resizes. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. It works by listening for changes on the placeholder div (through the jQuery resize event plugin) - if the size changes, it will redraw the plot. There are no opt...
JavaScript
/* Flot plugin for rendering pie charts. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. The plugin assumes that each series has a single data value, and that each value is a positive integer or zero. Negative numbers don't make sense for a pie chart, and have unpredictable results. Th...
JavaScript
/* * The MIT License Copyright (c) 2012 by Matt Burland Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,...
JavaScript
/* Javascript plotting library for jQuery, version 0.8.1. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. */ // first an inline dependency, jquery.colorhelpers.js, we inline it here // for convenience /* Plugin for jQuery for working with colors. * * Version 1.1. * * Inspiration fr...
JavaScript
/** * Intro.js v0.6.0 * https://github.com/usablica/intro.js * MIT licensed * * Copyright (C) 2013 usabli.ca - A weekend project by Afshin Mehrabani (@afshinmeh) */ (function (root, factory) { if (typeof exports === 'object') { // CommonJS factory(exports); } else if (typeof define === 'function' && ...
JavaScript
/*! * Nestable jQuery Plugin - Copyright (c) 2012 David Bushell - http://dbushell.com/ * Dual-licensed under the BSD or MIT licenses */ ;(function($, window, document, undefined) { var hasTouch = 'ontouchstart' in window; /** * Detect CSS pointer-events property * events are normally disabled on the dragging e...
JavaScript
/* * jQuery Iframe Transport Plugin 1.8.2 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2011, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /* global define, window, document */ (function (factory) { 'use strict'; ...
JavaScript
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ function notification(title, content) { $.gritter.removeAll({ after_close: function() { $.gritter.add({ ...
JavaScript
function load_content(link) { mainbar.innerhtml = link; }
JavaScript
Cufon.replace('h1, h2, h3, h4, h5, h6', { hover: true });
JavaScript
// Copyright 2009 The Closure Library Authors. All Rights Reserved. // // 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 requ...
JavaScript
// Copyright 2006 The Closure Library Authors. All Rights Reserved. // // 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 requ...
JavaScript
/** * unzip.js * * Copyright(c) 2011 Google Inc. * Copyright(c) 2011 antimatter15 * * Reference Documentation: * * ZIP format: http://www.pkware.com/documents/casestudies/APPNOTE.TXT * DEFLATE format: http://tools.ietf.org/html/rfc1951 */ // This file expects to be invoked as a Worker (see onmessage below). ...
JavaScript
/** * untar.js * * Copyright(c) 2011 Google Inc. * * Reference Documentation: * * TAR format: http://www.gnu.org/software/automake/manual/tar/Standard.html */ // This file expects to be invoked as a Worker (see onmessage below). importScripts('io.js'); importScripts('archive.js'); // Progress variables. var c...
JavaScript
/* * io.js * * Provides readers for bit/byte streams (reading) and a byte buffer (writing). * * Licensed under the MIT License * * Copyright(c) 2011 Google Inc. * Copyright(c) 2011 antimatter15 */ var bitjs = bitjs || {}; bitjs.io = bitjs.io || {}; (function() { // mask for getting the Nth bit (zero-based) ...
JavaScript
/** * unzip.js * * Copyright(c) 2011 Google Inc. * Copyright(c) 2011 antimatter15 * * Reference Documentation: * * ZIP format: http://www.pkware.com/documents/casestudies/APPNOTE.TXT * DEFLATE format: http://tools.ietf.org/html/rfc1951 */ // This file expects to be invoked as a Worker (see onmessage below). ...
JavaScript
/** * archive.js * * Provides base functionality for unarchiving. * * Licensed under the MIT License * * Copyright(c) 2011 Google Inc. */ var bitjs = bitjs || {}; bitjs.archive = bitjs.archive || {}; (function() { // =========================================================================== // Stolen from C...
JavaScript
/** * unrar.js * * Copyright(c) 2011 Google Inc. * Copyright(c) 2011 antimatter15 * * Reference Documentation: * * http://kthoom.googlecode.com/hg/docs/unrar.html */ // This file expects to be invoked as a Worker (see onmessage below). importScripts('io.js'); importScripts('archive.js'); // Progress variable...
JavaScript
/** * archive.js * * Provides base functionality for unarchiving. * * Licensed under the MIT License * * Copyright(c) 2011 Google Inc. */ var bitjs = bitjs || {}; bitjs.archive = bitjs.archive || {}; (function() { // =========================================================================== // Stolen from C...
JavaScript
/* * Copyright 2010, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
JavaScript
// BigInt.js - Arbitrary size integer math package for JavaScript // Copyright (C) 2000 Masanao Izumo <iz@onicos.co.jp> // Version: 1.0.1 // Licence: GPL // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Softwar...
JavaScript
/* * Translated default messages for the jQuery validation plugin. * Locale: ZH (Chinese, 中文 (Zhōngwén), 汉语, 漢語) */ jQuery.extend(jQuery.validator.messages, { required: "必选字段", remote: "请修正该字段", email: "请输入正确格式的电子邮件", url: "请输入合法的网址", date: "请输入合法的日期", dateISO: "请输入合法的日期 (ISO).", number: "请输入合法的数...
JavaScript
Game.Object = function() { this.x = -100; this.y = -100; this.w = 2; // width this.h = 2; // height this.wh = 1; // half of the width - to save a division this.hh = 1; // half of the height - to save a division this.vx = 0; // velocity x-component this.vy = 0; // velocity y...
JavaScript
window.Game = { state: { running: false, lastTick: 1, dTime: 1, now: new Date().getTime(), // current time fps: 0 }, dimensions: { w: 100, h: 100 }, keys: { left: false, right: false, up: false, down: false, fire1: false, fire2: false }, player: { vx: 0.0, // player's horiozont...
JavaScript
Game.queue = { objs: [], move: function(dt) { var obj = null; for (var i = 0, ix = Game.queue.objs.length; i < ix; i++) { obj = Game.queue.objs[i]; if (obj.valid) { obj.move(dt); obj.updateValid(); } } }, draw: function() { var obj = null; for (var i = 0, ix = Game.queue.obj...
JavaScript
var http = require('http'), io = require('socket.io'), server = http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/html'}); res.write('<h1>game server </h1>'); res.end(); }); server.listen(8080); var io = io.listen(server), buffer = []; io.on('connection', function (cl...
JavaScript
/*global Game document*/ /*jslint onevar: false*/ Game.Player = function () { this.vx = 0.0; // player's horiozontal velocity this.vy = 0.0; // player's vertical velocity this.x = 320; // player's x-coordinate this.y = 300; // player's y-coordinate this.w = 46; // player's width this.wh...
JavaScript
/*global Game*/ Game.Object = function () { this.x = -100; this.y = -100; this.w = 2; // width this.h = 2; // height this.wh = 1; // half of the width - to save a division this.hh = 1; // half of the height - to save a division this.vx = 0; // velocity x-component this.vy = 0; // veloc...
JavaScript
/*global window document Image*/ var Game = { state: { running: false, lastTick: 1, dTime: 1, now: new Date().getTime(), // current time fps: 0, lst: 0, afp: 300, // autofire pause - time between autofired shots mfp: 100, // manuel fire pause - lowest possible time between ma...
JavaScript
/*global Game*/ /*jslint onevar: false*/ Game.queue = { objs: [], move: function (dt) { var obj = null; for (var i = 0, ix = Game.queue.objs.length; i < ix; i = i + 1) { obj = Game.queue.objs[i]; if (obj.valid) { obj.move(dt); obj.updateValid(); } } }, ...
JavaScript
Game.Player = function () { this.vx = 0.0; // player's horiozontal velocity this.vy = 0.0; // player's vertical velocity this.x = 320; // player's x-coordinate this.y = 300; // player's y-coordinate this.w = 46; // player's width this.wh = 23; // half of...
JavaScript
Game.Object = function() { this.x = -100; this.y = -100; this.w = 2; // width this.h = 2; // height this.wh = 1; // half of the width - to save a division this.hh = 1; // half of the height - to save a division this.vx = 0; // velocity x-component this.vy = 0; // velocity y...
JavaScript
window.Game = { state: { running: false, lastTick: 1, dTime: 1, now: new Date().getTime(), // current time fps: 0, lst: 0, afp: 300, // autofire pause - time between autofired shots mfp: 100, // manuel fire pause - lowest possible time between manual shots. cfp: 300 // cur...
JavaScript
Game.queue = { objs: [], move: function(dt) { var obj = null; for (var i = 0, ix = Game.queue.objs.length; i < ix; i++) { obj = Game.queue.objs[i]; if (obj.valid) { obj.move(dt); obj.updateValid(); } } }, draw: function() { var obj = null; for (var i = 0, ix = Game.queue.obj...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
JavaScript
/** * Creates a new Floor. * @constructor * @param {google.maps.Map=} opt_map */ function Floor(opt_map) { /** * @type Array.<google.maps.MVCObject> */ this.overlays_ = []; /** * @type boolean */ this.shown_ = true; if (opt_map) { this.setMap(opt_map); } } /** * @param {google.maps.M...
JavaScript
/** * Creates a new level control. * @constructor * @param {IoMap} iomap the IO map controller. * @param {Array.<string>} levels the levels to create switchers for. */ function LevelControl(iomap, levels) { var that = this; this.iomap_ = iomap; this.el_ = this.initDom_(levels); google.maps.event.addList...
JavaScript
/** * @license * * Copyright 2011 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 l...
JavaScript
// Copyright 2011 Google /** * 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 wri...
JavaScript
/* * JQuery URL Parser plugin * Developed and maintanined by Mark Perkins, mark@allmarkedup.com * Source repository: https://github.com/allmarkedup/jQuery-URL-Parser * Licensed under an MIT-style license. See https://github.com/allmarkedup/jQuery-URL-Parser/blob/master/LICENSE for details. */ /** * version 2.0....
JavaScript
/*! * jQuery Form Plugin * version: 3.09 (16-APR-2012) * @requires jQuery v1.3.2 or later * * Examples and documentation at: http://malsup.com/jquery/form/ * Project repository: https://github.com/malsup/form * Dual licensed under the MIT and GPL licenses: * http://malsup.github.com/mit-license.txt * htt...
JavaScript
// Simple Set Clipboard System // Author: Joseph Huckaby var ZeroClipboard = { version: "1.0.7", clients: {}, // registered upload clients on page, indexed by id moviePath: 'ZeroClipboard.swf', // URL to movie nextId: 1, // ID of next movie $: function(thingy) { // simple DOM lookup utility function if (t...
JavaScript
// Copyright 2012, Terry Tai, Pragmatic.ly // https://pragmatic.ly/ // Licensed under the MIT license. // https://github.com/pragmaticly/smart-time-ago/blob/master/LICENSE (function() { var TimeAgo; TimeAgo = (function() { function TimeAgo(element, options) { this.startInterval = 60000; this.init...
JavaScript
var masonryHandler = $("#waterfall"); var page_offset = 0; var limit = 8; var refresh_lock = false; function resetWaterfall() { masonryHandler.empty().masonry('destroy'); page_offset = 0; refresh_lock = false; } function Waterfall( json_url, functype, options ) { var paramWidth = options.width ? o...
JavaScript
/* * UPDATED: 12.19.07 * * jNice * by Sean Mooney (sean@whitespace-creative.com) * * To Use: place in the head * <link href="inc/style/jNice.css" rel="stylesheet" type="text/css" /> * <script type="text/javascript" src="inc/js/jquery.jNice.js"></script> * * And apply the jNice class the form you...
JavaScript
/*! * jQuery Form Plugin * version: 2.96 (16-FEB-2012) * @requires jQuery v1.3.2 or later * * Examples and documentation at: http://malsup.com/jquery/form/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */ ;(...
JavaScript
/* 后台公共Javascript函数 */ var alert_delete_affirm = "确认删除?"; var alert_delete_success = "删除成功"; var alert_delete_faild = "删除失败"; function checkAll( n, fldName ) { if (!fldName) { fldName = 'cb'; } var f = document.adminForm; var c = f.toggle.checked; var n2 = 0; for (i=0; i < n; i++) { cb =...
JavaScript
$(function() { if ($.browser.msie && parseInt($.browser.version, 10) === 6) { $('.row div[class^="span"]:last-child').addClass('last-child'); $('[class*="span"]').addClass('margin-left-20'); $('[class*="span"][class*="offset"]').removeClass('margin-left-20'); $(':button[class="btn"], :reset[c...
JavaScript
/******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy <luolonghao@gmail.com> * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php ************************...
JavaScript
/******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy <luolonghao@gmail.com> * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php ************************...
JavaScript
/******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy <luolonghao@gmail.com> * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php ************************...
JavaScript
/******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy <luolonghao@gmail.com> * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php * Arabic Translation By ...
JavaScript
/******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy <luolonghao@gmail.com> * @website http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php * @version 4.0.4 (201...
JavaScript