code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
$().ready(function () {
$("form").submit(function () {
if ($(this).valid()) {
$(".btn-container input").css("disable", "disable");
$(".btn-container input").val("saving……");
}
});
$(".degree-dropdown").change(function () {
if ($(this).val() == 'Othe... | JavaScript |
/*函数方法*/
$.fn.slide=function(){
return this.children("h2").click(function(){
$(this).next(".info_t").show();
$(this).parent().siblings().children(".info_t").hide();
})
} | JavaScript |
/**
* This jQuery plugin displays pagination links inside the selected elements.
*
* @author Gabriel Birke (birke *at* d-scribe *dot* de)
* @version 1.2
* @param {int} maxentries Number of entries to paginate
* @param {Object} opts Several options (see README for documentation)
* @return {Object} jQuery Object
... | JavaScript |
function scrolling(obj,s){
object=$(obj);
i=0;
size=object.size();
speed=s;
t=setInterval(animail_back,speed);
}
//向后方
function animail_back(){
if(i==size-1){
i=0;
object.eq(i).fadeIn(3000);
object.eq(i).siblings().fadeOut(3000);
}e... | JavaScript |
/*!
* jQuery Cycle Plugin (with Transition Definitions)
* Examples and documentation at: http://jquery.malsup.com/cycle/
* Copyright (c) 2007-2010 M. Alsup
* Version: 2.88 (08-JUN-2010)
* Dual licensed under the MIT and GPL licenses.
* http://jquery.malsup.com/license.html
* Requires: jQuery v1.2.6 or later
*/
... | JavaScript |
function HtmlEncode(value) {
//create a in-memory div, set it's inner text(which jQuery automatically encodes)
//then grab the encoded contents back out. The div never exists on the page.
return $('<div/>').text(value).html();
}
function HtmlDecode(value) {
return $('<div/>').html(value).text(... | JavaScript |
/*
* jQuery FlexSlider v2.1
* http://www.woothemes.com/flexslider/
*
* Copyright 2012 WooThemes
* Free to use under the GPLv2 license.
* http://www.gnu.org/licenses/gpl-2.0.html
*
* Contributing author: Tyler Smith (@mbmufffin)
*/
; (function ($) {
//FlexSlider: Object Instance
$.flexslider = f... | JavaScript |
/*
Lightbox v2.5
by Lokesh Dhakar - http://www.lokeshdhakar.com
For more information, visit:
http://lokeshdhakar.com/projects/lightbox2/
Licensed under the Creative Commons Attribution 2.5 License - http://creativecommons.org/licenses/by/2.5/
- free for use in both personal and commercial projects
- attribution requ... | JavaScript |
(function () {
//var host = "192.168.0.100",
var host = window.location.hostname,
// Encapsulation of the vlc plugin
Stream = function (object,type,callbacks) {
var restarting = false, starting = false, error = false, restartTimer, startTimer,
// Register an event listener
registerE... | JavaScript |
(function () {
var translations = {
en: {
1:"About",
2:"Return",
3:"Change quality settings",
4:"Toggle flash",
5:"Click on the torch to enable or disable the flash",
6:"Play a prerecorded sound",
7:"Connect !!",
8:"Disconnect ?!",
9:"STATUS",
10:"NOT... | JavaScript |
document.createElement('header');
document.createElement('nav');
document.createElement('section');
document.createElement('article');
document.createElement('aside');
document.createElement('footer');
document.createElement('hgroup');
$(document).ready(function () {
$('.section-content,#status-container').addClas... | JavaScript |
//Menu
$(document).ready(function() {
$("ul.sf-menu").supersubs({
minWidth: 12, // minimum width of sub-menus in em units
maxWidth: 27, // maximum width of sub-menus in em units
extraWidth: 1 // extra width can ensure lines don't sometimes turn over
// due to slight... | JavaScript |
/**
* Really Simple Color Picker in jQuery
*
* Licensed under the MIT (MIT-LICENSE.txt) licenses.
*
* Copyright (c) 2008-2012
* Lakshan Perera (www.laktek.com) & Daniel Lacy (daniellacy.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated docum... | JavaScript |
// jQuery List DragSort v0.5.1
// Website: http://dragsort.codeplex.com/
// License: http://dragsort.codeplex.com/license
(function($) {
$.fn.dragsort = function(options) {
if (options == "destroy") {
$(this.selector).trigger("dragsort-uninit");
return;
}
var opts = $.extend({}, $.fn.dragsor... | JavaScript |
$(document).ready(function() {
// Our Confirm method
Confirm = function (question, callback) {
// Content will consist of the question and ok/cancel buttons
var message = $('<p />', { text: question }),
cancel = $('<button />', {
text: 'Yes',
... | 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 |
/*
* 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 |
/*
* 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 |
/*
* jQuery selectbox plugin
*
* Copyright (c) 2007 Sadri Sahraoui (brainfault.com)
* Licensed under the GPL license and MIT:
* http://www.opensource.org/licenses/GPL-license.php
* http://www.opensource.org/licenses/mit-license.php
*
* The code is inspired from Autocomplete plugin (http://www.dyve.n... | JavaScript |
/*!
* jQuery Templates Plugin 1.0.0pre
* http://github.com/jquery/jquery-tmpl
* Requires jQuery 1.4.2
*
* Copyright Software Freedom Conservancy, Inc.
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*/
(function( jQuery, undefined ){
var oldManip = jQuery.fn.domManip, tmplI... | JavaScript |
/**!
* project-site: http://plugins.jquery.com/project/AjaxManager
* repository: http://github.com/aFarkas/Ajaxmanager
* @author Alexander Farkas
* @version 3.12
* Copyright 2010, Alexander Farkas
* Dual licensed under the MIT or GPL Version 2 licenses.
*/
(function($){
"use strict";
var managed = {},
cache... | JavaScript |
/********************************************************************************/
// <copyright file="Utility.js" company="Asia E-Business Solutions">
// Copyright © 2012. All right reserved
// </copyright>
//
// <history>
// <change who="Hieu Nguyen" date="20/12/2012 2:53:02 PM">Created</change>
// <hist... | 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 delta... | JavaScript |
/**
* jQuery Geocoding and Places Autocomplete Plugin - V 1.4
*
* @author Martin Kleppe <kleppe@ubilabs.net>, 2012
* @author Ubilabs http://ubilabs.net, 2012
* @license MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
// # $.geocomplete()
// ## jQuery Geocoding and Places Autocomplete Plugin -... | JavaScript |
/************************
jquery-timepicker
http://jonthornton.github.com/jquery-timepicker/
requires jQuery 1.7+
************************/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else {
... | JavaScript |
/*!
* Thumbnail helper for fancyBox
* version: 1.0.7 (Mon, 01 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* thumbs: {
* width : 50,
* height : 50
* }
* }
* });
*
*/
(fun... | JavaScript |
/*!
* Media helper for fancyBox
* version: 1.0.5 (Tue, 23 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* media: true
* }
* });
*
* Set custom URL parameters:
* $(".fancybox").fancybox({
* helpers : {
* ... | JavaScript |
/*!
* Buttons helper for fancyBox
* version: 1.0.5 (Mon, 15 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* buttons: {
* position : 'top'
* }
* }
* });
*
*/
(function ($) {
//Shortcut for ... | 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 D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="... | JavaScript |
/*!
* FullCalendar v1.6.0 Google Calendar Plugin
* Docs & License: http://arshaw.com/fullcalendar/
* (c) 2013 Adam Shaw
*/
(function($) {
var fc = $.fullCalendar;
var formatDate = fc.formatDate;
var parseISO8601 = fc.parseISO8601;
var addDays = fc.addDays;
var applyAll = fc.applyAll;
fc.sourceNormalizers.push... | JavaScript |
/*
* Copyright (c) 2011 Lyconic, LLC.
*
* 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, publi... | JavaScript |
/*!
* FullCalendar v1.6.0
* 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 |
/**
* @license Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* This file was added automatically by CKEditor builder.
* You may re-use it at any time at http://ckeditor.com/builder to build CKEditor aga... | JavaScript |
/**
* @license Copyright (c) 2003-2012, 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 the complete reference:
// http://docs.ckeditor.com/#... | JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
| JavaScript |
/**
* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
// This file contains style definitions that can be used by CKEditor plugins.
//
// The most common use for it is the "stylescombo" plugin, which shows a comb... | JavaScript |
/*
* jQuery Tooltip plugin 1.2
*
* http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
* http://docs.jquery.com/Plugins/Tooltip
*
* Copyright (c) 2006 - 2008 Jörn Zaefferer
*
* $Id: jquery.tooltip.js 4569 2008-01-31 19:36:35Z joern.zaefferer $
*
* Dual licensed under the MIT and GPL licenses:
* ht... | JavaScript |
/*
* jQuery showLoading plugin v1.0
*
* Copyright (c) 2009 Jim Keller
* Context - http://www.contextllc.com
*
* Dual licensed under the MIT and GPL licenses.
*
*/
jQuery.fn.showLoading = function(options) {
var indicatorID;
var settings = {
'addClass': '',
'... | JavaScript |
$(document).ready(function() {
// Our Confirm method
function Confirm(question, callback) {
// Content will consist of the question and ok/cancel buttons
var message = $('<p />', { text: question }),
ok = $('<button />', {
text: 'Ok',
click: function(... | JavaScript |
//Load JS
var jspath = BASE_URL + "Scripts/";
var csspath = BASE_URL + "Content/css/";
//head.js(jspath + "Utility.js"); | JavaScript |
var config = {
language: 'en-gb',
scayt_autoStartup: true,
toolbar:
[
['Print', 'Templates', 'Bold', 'Italic', 'Underline', 'TextColor', 'Table', 'SpecialChar', '-', 'NumberedList', 'BulletedList', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
['Cut', 'Copy', 'Off'... | JavaScript |
head.ready(function() {
// Create namespace System.Data
// Intergrate with Jquery
System.Data.ProjectNameModel = function() {
var self = this;
//
self.availableProjects = ko.observableArray([]);
self.selected = ko.observableArray([]);
//save
... | JavaScript |
/**
* @author trixta
*/
(function($){
$.bind = function(object, method){
var args = Array.prototype.slice.call(arguments, 2);
if(args.length){
return function() {
var args2 = [this].concat(args, $.makeArray( arguments ));
return method.apply(object, args2);
};
} else {
return function() {
var args2... | JavaScript |
/**
* @author alexander.farkas
* @version 1.3
*/
(function($){
$.widget('ui.checkBox', {
_init: function(){
var that = this,
opts = this.options,
toggleHover = function(e){
if(this.disabledStatus){
return false;
}
that.hover = (e.type == 'focus' || e.ty... | JavaScript |
/*
* jQuery EasIng v1.1.2 - http://gsgd.co.uk/sandbox/jquery.easIng.php
*
* Uses the built In easIng capabilities added In jQuery 1.1
* to offer multiple easIng options
*
* Copyright (c) 2007 George Smith
* Licensed under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
*/
// t: current... | JavaScript |
/*
* jQuery selectbox plugin
*
* Copyright (c) 2007 Sadri Sahraoui (brainfault.com)
* Licensed under the GPL license and MIT:
* http://www.opensource.org/licenses/GPL-license.php
* http://www.opensource.org/licenses/mit-license.php
*
* The code is inspired from Autocomplete plugin (http://www.dyve.ne... | JavaScript |
(function($){
$.fn.validationEngineLanguage = function(){
};
$.validationEngineLanguage = {
newLang: function(){
$.validationEngineLanguage.allRules = {
"required": { // Add your regex rules here, you can take telephone as an example
"regex": "n... | JavaScript |
/*
* Inline Form Validation Engine 2.6, jQuery plugin
*
* Copyright(c) 2010, Cedric Dugas
* http://www.position-absolute.com
*
* 2.0 Rewrite by Olivier Refalo
* http://www.crionics.com
*
* Form validation engine allowing custom regex rules to be added.
* Licensed under the MIT License
*/
(function($) {
... | JavaScript |
/* Cached from: js/demo.js on Tue, 20 Mar 2012 10:17:20 -0700 */
$(document).ready(function() {
var a = $(".nav"), b = $("#demoframe"), g = $("#jsddm", a), i = $("#contentheader .toolbar"), j = $(".demo-description", a), h = $("#contentheader h2"), c = document.title, k = 0, f = "Choose a demo from above", e = doc... | JavaScript |
/*
* jQuery selectbox plugin
*
* Copyright (c) 2007 Sadri Sahraoui (brainfault.com)
* Licensed under the GPL license and MIT:
* http://www.opensource.org/licenses/GPL-license.php
* http://www.opensource.org/licenses/mit-license.php
*
* The code is inspired from Autocomplete plugin (http://www.dyve.n... | JavaScript |
/************************************************************************
*************************************************************************
@Name : jNotify - jQuery Plugin
@Revison : 2.1
@Date : 18/01/2011
@Author: ALPIXEL (www.myjqueryplugins.com - www.alpixel.fr)
@Support: FF, IE... | JavaScript |
function get_cookie(name)
{
with(document.cookie)
{
var regexp=new RegExp("(^|;\\s+)"+name+"=(.*?)(;|$)");
var hit=regexp.exec(document.cookie);
if(hit&&hit.length>2) return unescape(hit[2]);
else return '';
}
};
function set_cookie(name,value,days)
{
if(days)
{
var date=new Date();
date.setTime(date.... | JavaScript |
{
"0": {
"ShangDian": false,
"ZiZhiLv": 0,
"MapTrans": 0,
"ZuoQiLv": 0,
"ZhuaPuLv": 0,
"B": 5,
"ShiZhuang": false,
"StarLv": 0,
"Auction": false,
"DayAward": false,
"Fight": 0,
"Award": 0,
"PetSkill... | JavaScript |
/*
Holder - 2.0 - client side image placeholders
(c) 2012-2013 Ivan Malopinsky / http://imsky.co
Provided under the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
Commercial use requires attribution.
*/
var Holder = Holder || {};
(function (app, win) {
var preempted = false,
fallback = false,
canva... | JavaScript |
/*
Copyright (C) 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 law or agreed to in writing, softwa... | JavaScript |
var device_width = 0;
var device_height = 0;
function reinit()
{
$.Metro.initDropdowns('header');
$.Metro.initPulls('header');
}
$(function(){
$("[data-load]").each(function(){
$(this).load($(this).data("load"), function(){
reinit();
});
});
window.prettyPrint && prett... | JavaScript |
$(function(){
if ((document.location.host.indexOf('.dev') > -1) || (document.location.host.indexOf('modernui') > -1) ) {
$("<script/>").attr('src', base_url+'/metroui/js/metro/metro-loader.js').appendTo($('head'));
} else {
$("<script/>").attr('src', base_url+'/metroui/js/metro.min.js').appendTo... | JavaScript |
if (document.location.host.indexOf('.dev') > -1) {
//console.log('local');
} else {
if (document.location.host.indexOf('metroui') > -1) {
//document.write("<img src='http://c.hit.ua/hit?i=98055&g=0&x=2"+"&r="+encodeURI(document.referrer)+"&u="+encodeURI(window.location.href)+"' border='0' width='1' hei... | JavaScript |
var plugins = [
'global',
'core',
'locale',
'touch-handler',
'accordion',
'button-set',
'date-format',
'calendar',
'datepicker',
'carousel',
'countdown',
'dropdown',
'input-control',
'live-tile',
'progressbar',
'rating',
'slider',
'tab-control',
... | JavaScript |
(function( $ ) {
$.widget("metro.livetile", {
version: "1.0.0",
options: {
effect: 'slideLeft',
period: 4000,
duration: 700,
easing: 'doubleSqrt'
},
_frames: {},
_currentIndex: 0,
_interval: 0,
_outPosition: 0... | JavaScript |
(function( $ ) {
$.widget("metro.times", {
version: "1.0.0",
options: {
style: {
background: "bg-dark",
foreground: "fg-white",
divider: "fg-dark"
},
blink: true,
alarm: {
h: 0,
... | JavaScript |
(function( $ ) {
$.widget("metro.tablecontrol", {
version: "1.0.0",
options: {
width: '100%',
height: 'auto',
cls: 'table',
checkRow: false,
colModel: [],
data: []
},
_create: function(){
var eleme... | JavaScript |
(function( $ ) {
$.widget("metro.rating", {
version: "1.0.0",
options: {
score: 0,
half: false,
stars: 5,
static: true,
hints: ['bad', 'poor', 'regular', 'good', 'gorgeous'],
showHint: false,
showScore: false,
... | JavaScript |
/*
* Date Format 1.2.3
* (c) 2007-2009 Steven Levithan <stevenlevithan.com>
* MIT license
*
* Includes enhancements by Scott Trenda <scott.trenda.net>
* and Kris Kowal <cixar.com/~kris.kowal/>
*
* Accepts a date, a mask, or a date and a mask.
* Returns a formatted version of the given date.
* The date default... | JavaScript |
(function( $ ) {
$.widget("metro.countdown", {
version: "1.0.0",
options: {
style: {
background: "bg-dark",
foreground: "fg-white",
divider: "fg-dark"
},
blink: true,
days: 1,
stoptimer: 0,
... | JavaScript |
(function( $ ) {
$.widget("metro.scrollbar", {
version: "1.0.0",
options: {
height: '100%', /* '100%'|int */
width: '100%', /* '100%'|int */
axis: ['x','y'], /* x|y|[x,y] */
wheel: 55 /* step in px */
//size: 'auto' /* 'auto... | JavaScript |
(function( $ ) {
$.widget("metro.dragtile", {
version: "1.0.0",
options: {
},
_create: function(){
var that = this, element = tile = this.element,
area = element.parents('.tile-area'),
tiles = area.find(".tile"),
groups =... | JavaScript |
(function( $ ) {
$.widget("metro.slider", {
version: "1.0.0",
options: {
position: 0,
accuracy: 0,
color: 'default',
completeColor: 'default',
markerColor: 'default',
colors: [],
showHint: false,
change... | JavaScript |
(function($){
/*
* Init or ReInit components
* */
$.Metro.initAccordions = function(area){
if (area != undefined) {
$(area).find('[data-role=accordion]').accordion();
} else {
$('[data-role=accordion]').accordion();
}
};
$.Metro.initButtonSets ... | JavaScript |
(function($){
$.Metro = function(params){
params = $.extend({
}, params);
};
})(jQuery);
$(function(){
$('html').on('click', function(e){
$('.dropdown-menu').each(function(i, el){
if (!$(el).hasClass('keep-open') && $(el).css('display')=='block') {
$(el)... | JavaScript |
(function( $ ) {
$.widget("metro.streamer", {
version: "1.0.0",
options: {
scrollBar: false,
meter: {
start: 9,
stop: 19,
interval: 20
},
slideToGroup: 1,
slideToTime: "10:20",
s... | JavaScript |
(function($){
$.Metro.currentLocale = 'en';
if (METRO_LOCALE != undefined) $.Metro.currentLocale = METRO_LOCALE; else $.Metro.currentLocale = 'en';
//console.log(METRO_LOCALE, $.Metro.currentLocale);
$.Metro.Locale = {
'en': {
months: [
"January", "February", "Marc... | JavaScript |
(function( $ ) {
$.widget("metro.hint", {
version: "1.0.0",
options: {
position: "bottom",
background: '#FFFCC0',
shadow: false,
border: false,
_hint: undefined
},
_create: function(){
var that = this;
... | JavaScript |
(function( $ ) {
$.widget("metro.pullmenu", {
version: "1.0.0",
options: {
},
_create: function(){
var that = this,
element = this.element;
var menu = (element.data("relation") != undefined) ? element.data("relation") : element.parent().chi... | JavaScript |
(function( $ ) {
$.widget("metro.tabcontrol", {
version: "1.0.0",
options: {
effect: 'none',
activateStoredTab: false,
tabclick: function(tab){},
tabchange: function(tab){}
},
_create: function(){
var that = this,
... | JavaScript |
var METRO_LOCALE;
var METRO_WEEK_START;
var METRO_DIALOG = false;
var METRO_HINT = {
position: top,
background: '#fff',
shadow: true,
border: 'default'
}; | JavaScript |
(function( $ ) {
$.widget("metro.fluentmenu", {
version: "1.0.0",
options: {
onSpecialClick: function(e, el){},
onTabClick: function(e, el){}
},
_create: function(){
var that = this, element = this.element, o = this.options,
tabs... | JavaScript |
(function( $ ) {
$.widget("metro.inputControl", {
version: "1.0.0",
options: {
},
_create: function(){
var that = this,
control = this.element;
if (control.hasClass('text')) {
this.initTextInput(control, that);
}... | JavaScript |
(function( $ ) {
$.widget("metro.progressbar", {
version: "1.0.0",
options: {
value: 0,
color: "bg-cyan",
animate: false,
onchange: function(val){}
},
_create: function(){
var that = this,
element = this.e... | JavaScript |
(function( $ ) {
$.widget("metro.listview", {
version: "1.0.0",
options: {
onGroupExpand: function(g){},
onGroupCollapse: function(g){},
onListClick: function(l){}
},
_create: function(){
var that = this, element = this.element;
... | JavaScript |
// Calendar
(function( $ ) {
$.widget("metro.calendar", {
version: "1.0.0",
options: {
format: "yyyy-mm-dd",
multiSelect: false,
startMode: 'day', //year, month, day
weekStart: (METRO_WEEK_START != undefined ? METRO_WEEK_START : 0), // 0 - Sunday, 1... | JavaScript |
(function( $ ) {
$.widget("metro.treeview", {
version: "1.0.0",
options: {
onNodeClick: function(node){},
onNodeCollapsed: function(node){},
onNodeExpanded: function(node){}
},
_create: function(){
var that = this, element = this.ele... | JavaScript |
// DatePicker
(function( $ ) {
$.widget("metro.datepicker", {
version: "1.0.0",
options: {
format: "dd.mm.yyyy",
date: undefined,
effect: 'none',
position: 'bottom',
locale: $.Metro.currentLocale,
weekStart: (METRO_WEEK_START... | JavaScript |
(function($) {
var _notify_container = false;
var _notifies = [];
$.Notify = function(params) {
//$.Notify.settings = params;
params = $.extend({
icon: '',
caption: '',
content: '',
shadow: true,
width: 'auto',
height... | JavaScript |
(function($) {
if (METRO_DIALOG == undefined) {
//var METRO_DIALOG = false;
}
$.Dialog = function(params) {
if(!$.Dialog.opened) {
$.Dialog.opened = true;
} else {
return METRO_DIALOG;
}
$.Dialog.settings = params;
params = $.extend(... | JavaScript |
(function( $ ) {
$.widget("metro.stepper", {
version: "1.0.0",
options: {
diameter: 32
},
_create: function(){
},
_destroy: function(){
},
_setOption: function(key, value){
this._super('_setOption', key, value);
}
... | JavaScript |
(function( $ ) {
$.widget("metro.buttonset", {
version: "1.0.0",
options: {
click: function(btn, on){}
},
_buttons: {},
_create: function(){
var element = this.element;
this._buttons = element.find("button, .button");
this... | JavaScript |
(function( $ ) {
$.widget("metro.carousel", {
version: "1.0.0",
options: {
auto: true,
period: 2000,
duration: 500,
effect: 'slowdown', // slide, fade, switch, slowdown
direction: 'left',
markers: {
show: true,... | JavaScript |
(function( $ ) {
$.widget("metro.accordion", {
version: "1.0.0",
options: {
closeAny: true,
open: function(frame){},
action: function(frame){}
},
_frames: {},
_create: function(){
var element = this.element;
if ... | JavaScript |
(function( $ ) {
$.widget("metro.widget", {
version: "1.0.0",
options: {
},
_create: function(){
},
_destroy: function(){
},
_setOption: function(key, value){
this._super('_setOption', key, value);
}
})
})( jQuery );
| JavaScript |
var hasTouch = 'ontouchend' in window, eventTimer;
var moveDirection = 'undefined', startX, startY, deltaX, deltaY, mouseDown = false
function addTouchEvents(element){
if (hasTouch) {
element.addEventListener("touchstart", touch2Mouse, true);
element.addEventListener("touchmove", touch2Mouse, true)... | JavaScript |
(function( $ ) {
$.widget("metro.dropdown", {
version: "1.0.0",
options: {
effect: 'slide'
},
_create: function(){
var that = this,
menu = this.element,
name = this.name,
parent = this.element.parent(),
... | JavaScript |
/*! Copyright (c) 2013 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 |
$(function(){
if (document.location.host.indexOf('.dev') > -1) return;
var repo = "olton/Metro-UI-CSS";
$.ajax({
url: 'https://api.github.com/repos/' + repo,
dataType: 'jsonp',
error: function(result){
},
success: function(results){
var repo = results.... | JavaScript |
var showmenu = 0;
var ajaxRequest = '';
var listener = 0;
var addMode;
var printMode;
$(function() {
addMode = false;
printMode = false;
$('.mki_header_back, .mki_news_ticker_back').css({opacity:.6});
$('.mki_app_menu').css({opacity:.9});
$('.mki_app_menu').css({top:$('.mki_app_menu').outerHeight()*-1});
$('#... | JavaScript |
/*!
* jQuery Charms Plugin
* Original author: @aozora
* Licensed under the MIT license
*/
(function($, window, document, undefined){
// undefined is used here as the undefined global
// variable in ECMAScript 3 and is mutable (i.e. it can
// be changed by someone else). undefined isn't really
... | JavaScript |
/* ==========================================================
* bootstrap-pivot.js v1.0.0 alpha1
* http://aozora.github.com/bootmetro/
* ==========================================================
* Copyright 2013 Marcello Palmitessa
* ========================================================== */
!functi... | JavaScript |
/**
* @license
* Highcharts funnel module, Beta
*
* (c) 2010-2012 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
/*global Highcharts */
(function (Highcharts) {
'use strict';
// create shortcuts
var defaultOptions = Highcharts.getOptions(),
defaultPlotOptions = defaultOptions.plotOptions,
serie... | JavaScript |
/**
* @license Data plugin for Highcharts
*
* (c) 2012-2013 Torstein Hønsi
* Last revision 2012-11-27
*
* License: www.highcharts.com/license
*/
/*
* The Highcharts Data plugin is a utility to ease parsing of input sources like
* CSV, HTML tables or grid views into basic configuration options for use
* dire... | JavaScript |
/**
* @license A class to parse color values
* @author Stoyan Stefanov <sstoo@gmail.com>
* @link http://www.phpied.com/rgb-color-parser-in-javascript/
* Use it if you like it
*
*/
function RGBColor(color_string)
{
this.ok = false;
// strip any leading #
if (color_string.charAt(0) == '#') { // remov... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.