code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
$(function()
{
$("#postForm").submit(function (e) {
e.preventDefault();
$("#status").hide();
$("#spinner").show();
$.ajax({
url: $(this).attr('action'),
type: "post",
data: $(this).serialize(),
success: function(response)
{
$("#spinner").hide();
$("#status").html(resp... | JavaScript |
/*!
* jQuery Form Plugin
* version: 2.69 (06-APR-2011)
* @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
*/
;(functi... | JavaScript |
$(function()
{
$("#postForm").submit(function (e) {
e.preventDefault();
$("#status").hide();
$("#spinner").show();
$.ajax({
url: $(this).attr('action'),
type: "post",
data: $(this).serialize(),
success: function(response)
{
$("#spinner").hide();
$("#status").html(resp... | JavaScript |
//tri tableau
$(document).ready(function() {
$options = {
"bPaginate" : false,
"bLengthChange" : false,
"bFilter" : true,
"bSort" : true,
"bInfo" : false,
"bAutoWidth" : false
}
$('.sorter').dataTable($options);
});
//date time
$(document).ready(function(){
$('.date').datetimepicker({... | JavaScript |
$(document).ready(function(){
}) | JavaScript |
$(document).ready(function(){
}) | JavaScript |
//tri tableau
$(document).ready(function() {
$options = {
"bPaginate" : false,
"bLengthChange" : false,
"bFilter" : true,
"bSort" : true,
"bInfo" : false,
"bAutoWidth" : false
}
$('.sorter').dataTable($options);
});
//date time
$(document).ready(function(){
$('.date').datetimepicker({... | JavaScript |
/**
* @summary DataTables
* @description Paginate, search and sort HTML tables
* @version 1.9.3
* @file jquery.dataTables.js
* @author Allan Jardine (www.sprymedia.co.uk)
* @contact www.sprymedia.co.uk/contact
*
* @copyright Copyright 2008-2012 Allan Jardine, all rights reserved.
*
* T... | JavaScript |
/**
* Return the settings object for a particular table
* @param {node} nTable table we are using as a dataTable
* @returns {object} Settings object - or null if not found
* @memberof DataTable#oApi
*/
function _fnSettingsFromNode ( nTable )
{
for ( var i=0 ; i<DataTable.settings.length ; i++ )
{
if ( Dat... | JavaScript |
/**
* Add a data array to the table, creating DOM node etc. This is the parallel to
* _fnGatherData, but for adding rows from a Javascript source, rather than a
* DOM source.
* @param {object} oSettings dataTables settings object
* @param {array} aData data array to be added
* @returns {int} >=0 if successf... | JavaScript |
/**
* Generate the node required for filtering text
* @returns {node} Filter control element
* @param {object} oSettings dataTables settings object
* @memberof DataTable#oApi
*/
function _fnFeatureHtmlFilter ( oSettings )
{
var oPreviousSearch = oSettings.oPreviousSearch;
var sSearchStr = oSettings.oLangu... | JavaScript |
/**
* Update the table using an Ajax call
* @param {object} oSettings dataTables settings object
* @returns {boolean} Block the table drawing or not
* @memberof DataTable#oApi
*/
function _fnAjaxUpdate( oSettings )
{
if ( oSettings.bAjaxDataGet )
{
oSettings.iDraw++;
_fnProcessingDisplay( oSettings, tru... | JavaScript |
/**
* Add a column to the list used for the table with default values
* @param {object} oSettings dataTables settings object
* @param {node} nTh The th element for this column
* @memberof DataTable#oApi
*/
function _fnAddColumn( oSettings, nTh )
{
var oDefaults = DataTable.defaults.columns;
var iCol = oSett... | JavaScript |
/**
* Generate the node required for user display length changing
* @param {object} oSettings dataTables settings object
* @returns {node} Display length feature node
* @memberof DataTable#oApi
*/
function _fnFeatureHtmlLength ( oSettings )
{
if ( oSettings.oScroll.bInfinite )
{
return null;
}
/* This... | JavaScript |
var i=0, iLen, j, jLen, k, kLen;
var sId = this.getAttribute( 'id' );
var bInitHandedOff = false;
var bUsePassedData = false;
/* Sanity check */
if ( this.nodeName.toLowerCase() != 'table' )
{
_fnLog( null, 0, "Attempted to initialise DataTables on a node which is not a "+
"table: "+this.nodeName );
return;
}
/... | JavaScript |
/**
* Generate the node required for the info display
* @param {object} oSettings dataTables settings object
* @returns {node} Information element
* @memberof DataTable#oApi
*/
function _fnFeatureHtmlInfo ( oSettings )
{
var nInfo = document.createElement( 'div' );
nInfo.className = oSettings.oClasses.sInfo... | JavaScript |
/**
* Save the state of a table in a cookie such that the page can be reloaded
* @param {object} oSettings dataTables settings object
* @memberof DataTable#oApi
*/
function _fnSaveState ( oSettings )
{
if ( !oSettings.oFeatures.bStateSave || oSettings.bDestroying )
{
return;
}
/* Store the interesting va... | JavaScript |
/**
* Create a new TR element (and it's TD children) for a row
* @param {object} oSettings dataTables settings object
* @param {int} iRow Row to consider
* @memberof DataTable#oApi
*/
function _fnCreateTr ( oSettings, iRow )
{
var oData = oSettings.aoData[iRow];
var nTd;
if ( oData.nTr === null )
{
oDat... | JavaScript |
/**
* Convert a CSS unit width to pixels (e.g. 2em)
* @param {string} sWidth width to be converted
* @param {node} nParent parent to get the with for (required for relative widths) - optional
* @returns {int} iWidth width in pixels
* @memberof DataTable#oApi
*/
function _fnConvertToWidth ( sWidth, nParent )... | JavaScript |
/**
* Add any control elements for the table - specifically scrolling
* @param {object} oSettings dataTables settings object
* @returns {node} Node to add to the DOM
* @memberof DataTable#oApi
*/
function _fnFeatureHtmlTable ( oSettings )
{
/* Check if scrolling is enabled or not - if not then leave the DOM ... | JavaScript |
/**
* Draw the table for the first time, adding all required features
* @param {object} oSettings dataTables settings object
* @memberof DataTable#oApi
*/
function _fnInitialise ( oSettings )
{
var i, iLen, iAjaxStart=oSettings.iInitDisplayStart;
/* Ensure that the table data is fully initialised */
if ( o... | JavaScript |
/**
* Generate the node required for the processing node
* @param {object} oSettings dataTables settings object
* @returns {node} Processing element
* @memberof DataTable#oApi
*/
function _fnFeatureHtmlProcessing ( oSettings )
{
var nProcessing = document.createElement( 'div' );
if ( !oSettings.aanFeature... | JavaScript |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Note that most of the paging logic is done in
* DataTable.ext.oPagination
*/
/**
* Generate the node required for default pagination
* @param {object} oSettings dataTables settings object
* @returns {node} Paginat... | JavaScript |
/**
* Change the order of the table
* @param {object} oSettings dataTables settings object
* @param {bool} bApplyClasses optional - should we apply classes or not
* @memberof DataTable#oApi
*/
function _fnSort ( oSettings, bApplyClasses )
{
var
i, iLen, j, jLen, k, kLen,
sDataType, nTh,
aaSort = [],
... | JavaScript |
/*
* Variable: oPagination
* Purpose:
* Scope: jQuery.fn.dataTableExt
*/
$.extend( DataTable.ext.oPagination, {
/*
* Variable: two_button
* Purpose: Standard two button (forward/back) pagination
* Scope: jQuery.fn.dataTableExt.oPagination
*/
"two_button": {
/*
* Function: oPagination.two_bu... | JavaScript |
$.extend( DataTable.ext.oSort, {
/*
* text sorting
*/
"string-pre": function ( a )
{
if ( typeof a != 'string' ) {
a = (a !== null && a.toString) ? a.toString() : '';
}
return a.toLowerCase();
},
"string-asc": function ( x, y )
{
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
},
"string-desc": fu... | JavaScript |
$.extend( DataTable.ext.oStdClasses, {
"sTable": "dataTable",
/* Two buttons buttons */
"sPagePrevEnabled": "paginate_enabled_previous",
"sPagePrevDisabled": "paginate_disabled_previous",
"sPageNextEnabled": "paginate_enabled_next",
"sPageNextDisabled": "paginate_disabled_next",
"sPageJUINext": "",
"sPageJUIP... | JavaScript |
$.extend( DataTable.ext.aTypes, [
/*
* Function: -
* Purpose: Check to see if a string is numeric
* Returns: string:'numeric' or null
* Inputs: mixed:sText - string to check
*/
function ( sData )
{
/* Allow zero length strings as a number */
if ( typeof sData === 'number' )
{
return 'numeric... | JavaScript |
/**
* Perform a jQuery selector action on the table's TR elements (from the tbody) and
* return the resulting jQuery object.
* @param {string|node|jQuery} sSelector jQuery selector or node collection to act on
* @param {object} [oOpts] Optional parameters for modifying the rows to be included
* @param {string... | JavaScript |
/**
* Provide a common method for plug-ins to check the version of DataTables being used, in order
* to ensure compatibility.
* @param {string} sVersion Version string to check for, in the format "X.Y.Z". Note that the
* formats "X" and "X.Y" are also acceptable.
* @returns {boolean} true if this version of... | JavaScript |
/*
* This is really a good bit rubbish this method of exposing the internal methods
* publicly... - To be fixed in 2.0 using methods on the prototype
*/
/**
* Create a wrapper function for exporting an internal functions to an external API.
* @param {string} sFunc API function name
* @returns {function} wrap... | JavaScript |
/**
* Initialisation options that can be given to DataTables at initialisation
* time.
* @namespace
*/
DataTable.defaults = {
/**
* An array of data to use for the table, passed in at initialisation which
* will be used in preference to any data which is already in the DOM. This is
* particularly useful... | JavaScript |
/**
* DataTables settings object - this holds all the information needed for a
* given table, including configuration, data and current application of the
* table options. DataTables does not have a single instance for each DataTable
* with the settings attached to that instance, but rather instances of the
* Da... | JavaScript |
/**
* Template object for the way in which DataTables holds information about
* search information for the global filter and individual column filters.
* @namespace
*/
DataTable.models.oSearch = {
/**
* Flag to indicate if the filtering should be case insensitive or not
* @type boolean
* @default true
... | JavaScript |
/**
* Column options that can be given to DataTables at initialisation time.
* @namespace
*/
DataTable.defaults.columns = {
/**
* Allows a column's sorting to take multiple columns into account when
* doing a sort. For example first name / last name columns make sense to
* do a multi-column sort over the... | JavaScript |
/**
* Template object for the way in which DataTables holds information about
* each individual row. This is the object format used for the settings
* aoData array.
* @namespace
*/
DataTable.models.oRow = {
/**
* TR element for the row
* @type node
* @default null
*/
"nTr": null,
/**
* Data ob... | JavaScript |
/**
* DataTables extension options and plug-ins. This namespace acts as a collection "area"
* for plug-ins that can be used to extend the default DataTables behaviour - indeed many
* of the build in methods use this method to provide their own capabilities (sorting methods
* for example).
*
* Note that this na... | JavaScript |
/**
* Template object for the column information object in DataTables. This object
* is held in the settings aoColumns array and contains all the information that
* DataTables needs about each individual column.
*
* Note that this object is related to {@link DataTable.defaults.columns}
* but this one is the ... | JavaScript |
$(document).ready(function() {
abc_editor = new ABCJS.Editor("abc", {
paper_id : "solfege",
midi_id : "midi",
warnings_id : "warnings"
});
}) | JavaScript |
$(document).ready(function() {
$('#render').click(function(){
var abc = $('#abc').val();
ABCJS.renderAbc('note', abc);
ABCJS.renderMidi('midi', abc, {}, {}, {});
$('#myModal').modal('show');
});
})
| JavaScript |
$(document).ready(function() {
$('#render').click(function(){
var abc = $('#abc').val();
ABCJS.renderAbc('note', abc);
ABCJS.renderMidi('midi', abc);
$('#myModal').modal('show');
});
})
| JavaScript |
var result = {success: false};
var preferences = null;
var dataElement = null;
function GetData()
{
var url = 'https://www.malina.ru/login.php';
try
{
AnyBalance.requestGet(url); // Запрос необходим для формирования cookie
var content = AnyBalance.requestPost(url, {
login: preferences.login,
... | JavaScript |
var result = {success: false};
var preferences = null;
var dataElement = null;
function GetData()
{
var baseUrl = 'http://mnogo.ru/';
try
{
var content = AnyBalance.requestPost(baseUrl + 'enterljs.html', {
UserLogin: preferences.login,
'UserBirth[d]': preferences.date.getDate(),
'UserBirth[m... | JavaScript |
$(function () {
// Всплывающие title подсказки
$('[rel=tooltip]').tooltip({
'placement': 'bottom'
});
// Всплывающие popover подсказки
$("a[rel=popover]").popover({
'placement': 'bottom'
});
// Всплывающие уведомления
$('[rel=notice]').click(function () {
... | JavaScript |
$(function () {
$(".newCaptcha").click(function (e) {
var cmd = $(this).parent("div");
var url = cmd.prev(".captchaContainer").find("img").first().attr("src");
url = url.replace( /(.*?)\?r=\d+\.\d+$/ , "$1");
console.log(url);
var img = new Image();
$(img).loa... | 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 |
/*
* jQuery Iframe Transport Plugin 1.3
* 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
*/
/*jslint unparam: true, nomen: true */
/*global define, window, document */
(funct... | JavaScript |
/*
* jQuery File Upload Plugin Localization Example 6.5
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2012, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
window.locale = {
"fileupload": {
"errors": {
... | JavaScript |
/*
* jQuery File Upload Plugin JS Example 6.5.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*jslint nomen: true, unparam: true, regexp: true */
/*global $, window, do... | JavaScript |
///////////////////////////////////////////////////////////////////////
// Constants
var ProgressBar = function () {
var that = {};
// Store the XHR object being used
that._xhr = null;
// Get the current task ID
that._taskId = 0;
// Get the timer ID used to push refreshes
... | JavaScript |
// This file is part of the jQuery formatCurrency Plugin.
//
// The jQuery formatCurrency Plugin 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 Software Foundation, either version 3 of the License, or
// (at... | JavaScript |
/*
* jQuery autoResize (textarea auto-resizer)
* @copyright James Padolsey http://james.padolsey.com
* @version 1.04
*/
(function($){
$.fn.autoResize = function(options) {
// Just some abstracted details,
// to make plugin users happy:
var settings = $.extend({... | JavaScript |
/*
Totem Ticker Plugin
Copyright (c) 2011 Zach Dunn / www.buildinternet.com
Released under MIT License
--------------------------
Structure based on Doug Neiner's jQuery plugin blueprint: http://starter.pixelgraphics.us/
*/
(function( $ ){
if(!$.omr){
$.omr = new Object();
};
$.omr.totemticker = function(e... | JavaScript |
$(function () {
$('#vertical-ticker').totemticker({
row_height: '100px',
mousestop: true,
});
$(".news_content").each(function (e) {
var divHeight = $(this).height();
var $p = $("p", $(this)).eq(0);
while ($p.outerHeight() > divHeight) {
$p.te... | JavaScript |
/*global window */
if (!window.ABCJS)
window.ABCJS = {};
if (!window.ABCJS.parse)
window.ABCJS.parse = {};
window.ABCJS.parse.parseKeyVoice = {};
(function() {
var tokenizer;
var warn;
var multilineVars;
var tune;
window.ABCJS.parse.parseKeyVoice.initialize = function(tokenizer_, warn_, multilineVars_, tune_... | JavaScript |
// abc_parse.js: parses a string representing ABC Music Notation into a usable internal structure.
// Copyright (C) 2010 Paul Rosen (paul at paulrosen dot net)
//
// 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
/... | JavaScript |
/*global window */
if (!window.ABCJS)
window.ABCJS = {};
if (!window.ABCJS.parse)
window.ABCJS.parse = {};
window.ABCJS.parse.parseDirective = {};
(function() {
var tokenizer;
var warn;
var multilineVars;
var tune;
window.ABCJS.parse.parseDirective.initialize = function(tokenizer_, warn_, multilineVars_, tun... | JavaScript |
// abc_parse.js: parses a string representing ABC Music Notation into a usable internal structure.
// Copyright (C) 2010 Paul Rosen (paul at paulrosen dot net)
//
// 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
/... | JavaScript |
// abc_tokenizer.js: tokenizes an ABC Music Notation string to support abc_parse.
// Copyright (C) 2010 Paul Rosen (paul at paulrosen dot net)
//
// 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 Sof... | JavaScript |
// abc_parse_header.js: parses a the header fields from a string representing ABC Music Notation into a usable internal structure.
// Copyright (C) 2010 Paul Rosen (paul at paulrosen dot net)
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General ... | JavaScript |
// abc_tune.js: a computer usable internal structure representing one tune.
// Copyright (C) 2010 Paul Rosen (paul at paulrosen dot net)
//
// 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 Software ... | JavaScript |
/*global window, document, setTimeout */
if (!window.ABCJS)
window.ABCJS = {};
if (!window.ABCJS.midi)
window.ABCJS.midi = {};
(function() {
function setAttributes(elm, attrs){
for(var attr in attrs)
if (attrs.hasOwnProperty(attr))
elm.setAttribute(attr, attrs[attr]);
return elm;
}
//TODO-PER: put t... | JavaScript |
Raphael.fn.toRelative = function(pathArray) {
var R = this.raphael;
var push = "push";
var length = "length";
var proto = "prototype"
var lowerCase = String[proto].toLowerCase
var toString = "toString";
if (!R.is(pathArray, "array") || !R.is(pathArray && pathArray[0], "array")) { // rough assumption
... | JavaScript |
var glyphnames = {
"\ue100":"rests.whole", // whole
"\ue101":"rests.half", // half
"\ue107":"rests.quarter", // quarter
"\ue109":"rests.8th", // eigth
"\ue10a":"rests.16th", // 16th
"\ue10b":"rests.32nd", // 32nd
"\ue10c":"rests.64th", // 64th
"\ue10d":"rests.128th", // 128th
"\ue10e":"accidentals.sha... | JavaScript |
// abc_editor.js
// window.ABCJS.Editor is the interface class for the area that contains the ABC text. It is responsible for
// holding the text of the tune and calling the parser and the rendering engines.
//
// EditArea is an example of using a textarea as the control that is shown to the user. As long as
// the sam... | JavaScript |
// abc2abc_write.js: Prints an abc file in text format parsed by abc_parse.js
// Copyright (C) 2010 Gregory Dyke (gregdyke at gmail dot com)
//
// 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 Softw... | JavaScript |
// abc_tunebook.js: splits a string representing ABC Music Notation into individual tunes.
// Copyright (C) 2010 Paul Rosen (paul at paulrosen dot net)
//
// 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... | JavaScript |
// A few useful prototype elements so we don't have to load the whole thing.
if (document.Prototype === undefined) {
Object.clone = function(source) {
var destination = {};
for (var property in source)
destination[property] = source[property];
return destination;
}
Object.keys = function(object) {
var k... | JavaScript |
// abc_plugin.js: Find everything which looks like abc and convert it
// Copyright (C) 2010 Gregory Dyke (gregdyke at gmail dot com)
//
// 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 Software Fou... | JavaScript |
// ==UserScript==
// @name abcjs
// @namespace http://code.google.com/p/abcjs
// @description This searches any page you load for ABC-formatted music and inserts the standard notation for it.
// ==/UserScript==
// Because the js files are concatenated, these variables will be visible to the ones in abcj... | JavaScript |
// ┌────────────────────────────────────────────────────────────────────┐ \\
// │ Raphaël 2.1.0 - JavaScript Vector Library │ \\
// ├────────────────────────────────────────────────────────────────────┤ \\
// │ Copyright © 2008-2012 Dmitry Baranovskiy (http://raphaeljs.com) │ \\
// │ Copyrig... | JavaScript |
// abc_graphelements.js: All the drawable and layoutable datastructures to be printed by ABCJS.write.Printer
// Copyright (C) 2010 Gregory Dyke (gregdyke at gmail dot com)
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as pu... | JavaScript |
// abc_write.js: Prints an abc file parsed by abc_parse.js
// Copyright (C) 2010 Gregory Dyke (gregdyke at gmail dot com)
//
// 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 Software Foundation, eit... | JavaScript |
/**
* sprintf() for JavaScript v.0.4
*
* Copyright (c) 2007 Alexandru Marasteanu <http://alexei.417.ro/>
* Thanks to David Baird (unit test and patch).
*
* 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 Software... | JavaScript |
// abc_layout.js: Creates a data structure suitable for printing a line of abc
// Copyright (C) 2010 Gregory Dyke (gregdyke at gmail dot com)
//
// 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 Soft... | JavaScript |
// abc_parser_lint.js: Analyzes the output of abc_parse.
// Copyright (C) 2010 Paul Rosen (paul at paulrosen dot net)
//
// 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 Software Foundation, either ... | JavaScript |
/**
* JSONSchema Validator - Validates JavaScript objects using JSON Schemas
* (http://www.json.com/json-schema-proposal/)
*
* Copyright (c) 2007 Kris Zyp SitePen (www.sitepen.com)
* Licensed under the MIT (MIT-LICENSE.txt) license.
To use the validator call JSONSchema.validate with an instance object and an opt... | JavaScript |
Function.prototype.extend = function(superClass) {
if (typeof superClass !== 'function') {
if (typeof superClass == 'object') {
for ( var key in superClass.prototype) {
alert(key);
this.prototype[key] = superClass.prototype[key];
}
for ( var key in superClass) {
this.prototype[key] = s... | JavaScript |
function JTextPassword() {
};
JTextPassword.extend(JControl);
JTextPassword.prototype. | JavaScript |
Abs = function() {
this.version = "1.0.0";
this.versionLabel = "Abs";
this.versionDetail = {
major : 1,
minor : 0,
patch : 0
};
};
/**
*
* @param {Object}
* original 原始
* @param {Object}
* current 当前
*/
Abs.apply = function(original, current) {
if (original && cur... | JavaScript |
function Global() {
this.locale = "zh_CN";
this.port = "8080";
this.suffix = "json";
this.host = window.location.hostname;
this.prefix = "http://"
this.contextPath = "action";
this.ajax = function(o) {
$.ajax(buildOpts(o));
};
buildOpts = function(o) {
var pots = {
type : o.type == null ? "P... | JavaScript |
/**
* @author chaoyang.li
* @since 2012-06-02
*/
V = function() {
}
V.User = function() {
}
V.User.create = "UserCreate";
V.User.load = "UserLoad";
V.User.modify = "UserModify";
V.User.remove = "UserRemove";
V.User.list = "UserList";
V.UserRole = function() {
}
V.Role = function() {
}
V.Menu = fun... | JavaScript |
/**
* Created by hiephn on 2014/08/26.
*/
define(['durandal/app', 'shell'],function (app, shell) {
var FEED_URL = app.conf.MNP_BACK_URL + "/feed",
self = null,
feedTemplate = {
"id": 1,
"name": "Loading",
"desc": "Loading",
"pubDate": null,
"lastUpdate": nul... | JavaScript |
/**
* Created by hiephn on 2014/08/28.
*/
define('modals', ['jquery'], function($) {
function hideAllModals() {
var $visibleDialogs = $('.modal:visible');
if ($visibleDialogs.size() > 0) {
$visibleDialogs.modal('hide');
}
}
function info(html) {
hideAllModals();... | JavaScript |
/**
* Created by hiephn on 2014/08/26.
*/
define(['jquery', 'knockout', 'shell'],function (require, ko, shell) {
var VM = {
activate: function() {
shell.hasSidebar(false);
},
canDeactivate: function() {
shell.hasSidebar(true);
return true;
}
... | JavaScript |
/**
* Created by hiephn on 2014/08/26.
*/
define(['durandal/app','jquery', 'shell','plugins/router', 'facebook'],function (app, $, shell, router) {
var AUTH_URL = app.conf.MNP_BACK_URL + 'security/auth',
self = null;
var VM = {
username: app.koo(),
password: app.koo(),
activat... | JavaScript |
/**
* Created by hiephn on 2014/08/28.
*/
define({
MNP_BACK_URL: 'http://localhost:8080/mnp-back/'
});
| JavaScript |
/**
* Created by hiephn on 2014/08/26.
*/
define('shell', ['durandal/app', 'knockout', 'plugins/router', 'jquery', 'theme'], function (app, ko, router, $, theme) {
var koo = ko.observable;
return {
hasHeader: koo(true),
hasSidebar: koo(true),
user: app.user(),
activate: functi... | JavaScript |
/**
* Created by hiephn on 2014/08/26.
*/
require(['jquery','knockout'], function ($, ko) {
ko.bindingHandlers.uniform = {
init: function(el) {
var $el = $(el);
$el.uniform();
}
};
ko.bindingHandlers.validate = {
init: function (el, valueAccessor, allBinding... | JavaScript |
/**
* Created by hiephn on 2014/08/26.
*/
define( "jquery", function() {
return jQuery;
});
requirejs.config({
paths: {
'text': '../plugins/requirejs-text/text',
'durandal':'../plugins/durandal/js',
'plugins' : '../plugins/durandal/js/plugins',
'transitions' : '../plugins/duran... | JavaScript |
/**
* Created by hiephn on 2014/08/28.
*/
define('http',['jquery', 'modals'], function($, modals) {
function request(method, url, data, options) {
if (!data) {
data = {};
}
var ajaxOptions = {
url: url,
method: method,
data: data,
... | JavaScript |
/**
* Created by hiephn on 2014/08/28.
*/
define('theme',['durandal/app','jquery'],function(app, $) {
var isRTL = false,
sidebarWidth = 225,
sidebarCollapsedWidth = 35,
responsiveHandlers = [],
isIE8 = false,
isIE9 = false,
isIE10 = false;
app.scrollTo = scroll... | 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 |
// 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 |
/**
* 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 |
/**
* @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 |
/**
* Insert value into existed space
* @return Boolean
*/
function updateValue(diemV) {
// diemSelect = $(diemV + ' .ds-diem a.select').html();
// $(diemV + ' .title span').html('( '+diemSelect+ ' )');
$(diemV + ' .ds-diem a').click(function(){
$(diemV + ' .ds-diem a').removeClass('select');
... | JavaScript |
/**
* jQuery.ScrollTo
* Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
* Dual licensed under MIT and GPL.
* Date: 5/25/2009
*
* @projectDescription Easy element scrolling using jQuery.
* http://flesler.blogspot.com/2007/10/jqueryscrollto.html
* Works with jQuery ... | 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
*/
jQuery.no... | JavaScript |
/*
* bubbletip
*
* Copyright (c) 2009-2010, UhLeeKa.
* Version:
* 1.0.6
* Licensed under the GNU Lesser General Public License:
* http://www.gnu.org/licenses/lgpl-3.0.html
* Author Website:
* http://www.uhleeka.com
* Project Hosting on Google Code:
* http://code.google.com/p/bubbletip/
*/
; (functio... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.