code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Softw... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MP... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* The Original Code is Ajax.org Code Editor (ACE).
*
* Contributor(s):
* Jonathan Camile <jonathan.camile AT gmail DOT com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* The Original Code is Ajax.org Code Editor (ACE).
*
* Contributor(s):
* Meg Sharkey <megshark AT gmail DOT com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser... | JavaScript |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Softw... | JavaScript |
define('ace/mode/haxe', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/haxe_highlight_rules', 'ace/mode/matching_brace_outdent', 'ace/mode/behaviour/cstyle', 'ace/mode/folding/cstyle'], function(require, exports, module) {
var oop = require("../lib/oop");
var TextMode = r... | JavaScript |
ONERING = new Object();
// Base {{{
ONERING.Base = function() {};
ONERING.Base.prototype = {
_call: function(command, param) {
if (!param) { param = {}; }
param.id = this.id;
return ONERING.call_app(this.appname, command, param);
},
_create: function(command, param) {
var obj = ONERING.call_app(this.appname... | JavaScript |
/*
* This file has been generated to support Visual Studio IntelliSense.
* You should not use this file at runtime inside the browser--it is only
* intended to be used only for design-time IntelliSense. Please use the
* standard jQuery library for all runtime use.
*
* Comment version: 1.10.2
*/
/*!
* jQuery... | JavaScript |
/**!
* project-site: http://plugins.jquery.com/project/AjaxManager
* repository: http://github.com/aFarkas/Ajaxmanager
* @author Alexander Farkas
* @version 3.03
* Copyright 2010, Alexander Farkas
* Dual licensed under the MIT or GPL Version 2 licenses.
*/
(function($){
var managed = {},
cache = {}
;
$.m... | JavaScript |
/**
* jQuery Guid v1.0.0
* Requires jQuery 1.2.6+ (Not tested with earlier versions).
* Copyright (c) 2007-2008 Aaron E. [jquery at happinessinmycheeks dot com]
*
* Usage:
* jQuery.Guid.Value() // Returns value of internal Guid. If no guid has been specified, returns a new one (value is then stored inter... | JavaScript |
/**
* PeriodicalUpdater - jQuery plugin for timed, decaying ajax calls
*
* http://www.360innovate.co.uk/blog/2009/03/periodicalupdater-for-jquery/
* http://enfranchisedmind.com/blog/posts/jquery-periodicalupdater-ajax-polling/
*
* Copyright (c) 2009 by the following:
* Frank White (http://customcode.info)
* R... | JavaScript |
function getGrupo(num){
var grupo=[0,1,18,
1,2,13,14,15,16,17,18,
1,2,13,14,15,16,17,18,
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,
1,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,
1,2,3,3,3,3,3,3,3,3,3,3,3,3,3,... | JavaScript |
if (!window.Node) {
var Node = { // If there is no Node object, define one
ELEMENT_NODE: 1, // with the following properties and values.
ATTRIBUTE_NODE: 2, // Note that these are HTML node types only.
TEXT_NODE: 3, // For XML-specific nodes, you need to add
COMMENT_NODE: 8, ... | JavaScript |
jsonTable=[
{},
{
"name": "Hidrógeno",
"symbol" : "H",
"atomic_number" : 1,
"atomic_weight" : 1.00794,
"density g/cm" : "0.0708 (@ -253°C)",
"melting_point K" : 14.01,
"boiling_point K" : 20.28,
"atomic_radius pm" : 79,
"covalent... | JavaScript |
var currentElem=1;
var numElems=18*7;
function onKeyDown(event){
var keyCode = event.which;
var oldElem=currentElem;
if (keyCode == keys.ARROW_LEFT){
currentElem--;
if (currentElem<1) {
currentElem=1;
} else if (currentElem==93) {
currentElem... | JavaScript |
var currentElem=1;
var numElems=jsonTable.length-1;
function onKeyDown(event){
var keyCode = event.which;
var oldElem=currentElem;
if (keyCode == keys.ARROW_LEFT){
currentElem--;
if (currentElem<1) {
currentElem=1;
}
} else if (keyCode == keys.ARROW_... | JavaScript |
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
$(document).ready(f... | JavaScript |
/*test("Test grupo", function() {
equal(getGrupo(5), 13, "el grupo del elemento boro es 13");
equal(getGrupo(5), 13, "el grupo del elemento boro es 13");
equal(getGrupo(57), 3, "el grupo del elemento lantano es 3");
equal(getGrupo(65), 3, "el grupo del elemento terbio es 3");
equal(getGrupo(113), 13, "el grupo del... | JavaScript |
/**
* QUnit v1.12.0 - A JavaScript Unit Testing Framework
*
* http://qunitjs.com
*
* Copyright 2013 jQuery Foundation and other contributors
* Released under the MIT license.
* https://jquery.org/license/
*/
(function( window ) {
var QUnit,
assert,
config,
onErrorFnPrev,
testId = 0,
fileName = (sourceFro... | JavaScript |
var math = mathjs();
$(document).ready(function(){
// create an instance of math.js
var editor = new CommandLineEditor({
container: document.getElementById('commandline'),
math: math
});
}) | JavaScript |
function filterIn(s) {
s=s.toLowerCase();
s=s.replace(/seno/,"sin");
s=s.replace(/sen/,"sin");
s=s.replace(/\*\*/,"^");
return s;
}
function filterOut(s) {
s=s.replace(/-/," menos ");
s=s.replace(/\+/," mas ");
s=s.replace(/\*\*/," elevado a la ");
s=s.replace(/\^/... | JavaScript |
/**
* A small command line editor to demonstrate the math.js parser.
* @param {Object} params Configuration parameter. Available:
* {HTMLElement} container DOM Element to contain
* the editor
* {Object} [math] ... | JavaScript |
//esta funcion toma el form con id "form", lo serializa,
//lo manda por GET a "url" y pone el resultado en el div "responses"
function submit(form, url) {
$.ajax({
type : "GET",
url : url,
contentType : "application/json; charset=utf-8",
encoding : "UTF-8",
dataType : "json",
data : $("#" + form).serialize... | JavaScript |
/**
* Save/remove bookmarks to/from the bookmark menu item and the database
*
* @param string url The current page url path (request.get_full_path)
* @param string title The current page title
* @param string prompt_msg The message to ask for prompting
* @return void
*/
var process_bookmarks = functi... | JavaScript |
var loadScripts = function(js_files, onComplete){
var len = js_files.length;
var head = document.getElementsByTagName('head')[0];
function loadScript(index){
var testOk;
if (index >= len){
onComplete();
return;
}
try {
testOk = js_files[... | JavaScript |
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* Dashboard plugin.
* This plugin is not yet released, but should be when it will be finished.
*
* copyright (c) 2010 David Jean Louis <izimobil@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of thi... | JavaScript |
var init_dashboard = function(id, columns, preferences, url) {
$('#'+id).dashboard({
'columns': columns,
'load_preferences_function': function(options) {
return preferences;
},
'save_preferences_function': function(options, preferences) {
jQuery.post(url, { da... | 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 |
/**
* 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 |
/**
* 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 |
// 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 |
// script.aculo.us unittest.js v1.8.2, Tue Nov 18 18:30:58 +0100 2008
// Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
// (c) 2005-2008 Jon Tirsen (http://www.tirsen.com)
// (c) 2005-2008 Michael Schuerig (http://www.schuerig.de/michael/)
//
// script.aculo.us i... | JavaScript |
var AbstractList = Class.create({
initialize:function(args)
{
this.callBack = args.call_back;
this.url = args.url;
this.filter = args.filter;
if(args.params)
{
this.params = args.params;
}
else
{
this.params = new Object();
}
this.loadData();
},
... | JavaScript |
var Menu=Class.create({
FIRST_ELEM_HEIGHT:42,
ELEM_HEIGHT:30,
ELEM_WIDTH:160,
initialize:function(args)
{
var elem = $(args['id']);
this.menuList = args['menu_list'];
this.minX = [];
this.maxX = [];
this.minY = [];
this.maxY= [];
this.liIndex = -1;
for(var i=0;i<... | JavaScript |
var DayAccountList = Class.create(AbstractList,{
initialize:function($super,args)
{
args.url='/account.json',
$super(args);
},
createDataSet:function(dataSet)
{
this.sum=0;
var tableData = {option:'style="width:48em;" class="account_list"',
header:[{name:'項目',sort:'norm... | JavaScript |
var DateSelector = Class.create({
FIRSTYEAR:2008,
initialize:function(id,elem,callback,year,month,day,indicate)
{
this.id = id;
this.elem = $(elem);
this.callback = callback;
this.indicate = indicate;
var dateObj = null;
if(year && month && day)
{
dateObj = new Date(ye... | JavaScript |
var DateSelector = Class.create({
initialize:function(args)
{
this.prefix = args.prefix;
this.elem = $(args.elem_id);
this.span = args.span;
this.callback = args.callback;
this.dateObj = new Date();
this.now_year = this.dateObj.getFullYear();
this.now_month = this.dateObj.getM... | JavaScript |
var MemoList = Class.create(AbstractList,{
initialize:function($super,args)
{
this.sum=0;
args.url='/memoList.json',
$super(args);
},
createDataSet:function(dataSet)
{
var tableData = {option:'style="width:48em;" class="account_list"',
header:[{name:'日付',sort:'number',wid... | JavaScript |
// script.aculo.us slider.js v1.8.2, Tue Nov 18 18:30:58 +0100 2008
// Copyright (c) 2005-2008 Marty Haught, Thomas Fuchs
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/
if (!Control) var Control = { };
/... | JavaScript |
var SortableTable = Class.create({
initialize:function(args)
{
this.sort_col=null;
this.order=null;
this.page = 1;
this.totalPageNum= null;
this.id = args.id;
this.blockNum= args.block_num;
this.callback = args.call_back;
this.dataSet = args.data_set;
this.sortStored =... | JavaScript |
/*
parseUri 1.2.1
(c) 2007 Steven Levithan <stevenlevithan.com>
MIT License
*/
function parseUri (str) {
var o = parseUri.options,
m = o.parser[o.strictMode ? "strict" : "loose"].exec(str),
uri = {},
i = 14;
while (i--) uri[o.key[i]] = m[i] || "";
uri[o.q.name] = {};
uri[o.key[12]].... | JavaScript |
// script.aculo.us sound.js v1.8.2, Tue Nov 18 18:30:58 +0100 2008
// Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// Based on code created by Jules Gravinese (http://www.webveteran.com/)
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// ... | JavaScript |
//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
//_/
//_/ CopyRight(C) K.Tsunoda(AddinBox) 2001 All Rights Reserved.
//_/ ( http://www.h3.dion.ne.jp/~sakatsu/index.htm )
//_/
//_/ この祝日判定コードは『Excel:kt関数アドイン』で使用している
//_/ VBAマクロを[JavaScript]に移植したものです。
//_/ この関数では、2007年施行の改正祝日法(昭和の日)までを
/... | JavaScript |
// script.aculo.us scriptaculous.js v1.8.2, Tue Nov 18 18:30:58 +0100 2008
// Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"),... | JavaScript |
var AccountList = Class.create(AbstractList,{
initialize:function($super,args)
{
args.url='/accountList.json',
$super(args);
},
createDataSet:function(dataSet)
{
this.sum=0;
var tableData = {option:'style="width:52em;" class="account_list"',
header:[{name:'日付',sort:'num... | JavaScript |
// Copyright 2007 futomi http://www.html5.jp/
//
// 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 o... | JavaScript |
var CategoryData = Class.create({
initialize:function(elem,type,item)
{
this.url="/accountList.json";
this.elem = $(elem);
this.type = type;
this.item = item;
this.loadData();
},
setCategoriesData:function(categories)
{
var optStr=null;
if(this.type == "init" ... | JavaScript |
// Copyright 2007 futomi http://www.html5.jp/
//
// 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 o... | JavaScript |
var ReserveList = Class.create(AbstractList,{
initialize:function($super,args)
{
args.url='/day_reserves.json',
$super(args);
},
createDataSet:function(dataSet)
{
this.sum=0;
var tableData = {option:'style="width:48em;" class="account_list"',
header:[{name:'登録日',sort:'n... | JavaScript |
// script.aculo.us builder.js v1.8.2, Tue Nov 18 18:30:58 +0100 2008
// Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/
va... | JavaScript |
/*
* jQuery Reveal Plugin 1.0
* www.ZURB.com
* Copyright 2010, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
(function($) {
/*---------------------------
Defaults for Reveal
----------------------------*/
/*---------------------------
Listener for data-re... | JavaScript |
/**
* Bootbox Demos; crude, but effective...
*/
$(function() {
var demos = {};
$(document).on("click", "a[data-bb]", function(e) {
e.preventDefault();
var type = $(this).data("bb");
if (typeof demos[type] === 'function') {
demos[type]();
}
});
// let's na... | JavaScript |
/**
* jGrowl 1.3.0
*
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* Written by Stan Lemon <stosh1985@gmail.com>
* Last updated: 2014.04.18
*
* jGrowl is a jQuery plugin implementing unobtrusive user... | JavaScript |
/*!
* classie - class helper functions
* from bonzo https://github.com/ded/bonzo
*
* classie.has( elem, 'my-class' ) -> true/false
* classie.add( elem, 'my-new-class' )
* classie.remove( elem, 'my-unwanted-class' )
* classie.toggle( elem, 'my-class' )
*/
/*jshint browser: true, strict: true, undef: true */
/*... | JavaScript |
/*
* Project: Twitter Bootstrap Hover Dropdown
* Author: Cameron Spear
* Contributors: Mattia Larentis
*
* Dependencies: Twitter Bootstrap's Dropdown plugin, jQuery
*
* A simple plugin to enable twitter bootstrap dropdowns to active on hover and provide a nice user experience.
*
* License: MIT
*
* http://cam... | JavaScript |
/** jquery.color.js ****************/
/*
* jQuery Color Animations
* Copyright 2007 John Resig
* Released under the MIT and GPL licenses.
*/
(function(jQuery){
// We override the animation for all of these color styles
jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', '... | JavaScript |
/**********************************************************************
Copyright (C) FrontAccounting, LLC.
Released under the terms of the GNU General Public License, GPL,
as published by the Free Software Foundation, either version 3
of the License, or (at your option) any later version.
This program is ... | JavaScript |
/**
* JsHttpRequest: JavaScript "AJAX" data loader
*
* @license LGPL
* @author Dmitry Koterov, http://en.dklab.ru/lib/JsHttpRequest/
* @version 5.x
*/
// {{{
function JsHttpRequest() {
// Standard properties.
var t = this;
t.onreadystatechange = null;
t.readyState = 0;
t.responseText ... | JavaScript |
/*
Behaviour v1.1 by Ben Nolan, June 2005. Based largely on the work
of Simon Willison (see comments by Simon below).
Small fixes by J.Dobrowolski for Front Accounting May 2008
Description:
Uses css selectors to apply javascript behaviours to enable
unobtrusive javascript in html documents.
... | JavaScript |
/**********************************************************************
Copyright (C) FrontAccounting, LLC.
Released under the terms of the GNU General Public License, GPL,
as published by the Free Software Foundation, either version 3
of the License, or (at your option) any later version.
This program is ... | JavaScript |
/**********************************************************************
Copyright (C) FrontAccounting, LLC.
Released under the terms of the GNU General Public License, GPL,
as published by the Free Software Foundation, either version 3
of the License, or (at your option) any later version.
This program is ... | JavaScript |
/**********************************************************************
Copyright (C) FrontAccounting, LLC.
Released under the terms of the GNU General Public License, GPL,
as published by the Free Software Foundation, either version 3
of the License, or (at your option) any later version.
This program is ... | JavaScript |
/**********************************************************************
Copyright (C) FrontAccounting, LLC.
Released under the terms of the GNU General Public License, GPL,
as published by the Free Software Foundation, either version 3
of the License, or (at your option) any later version.
This program is ... | JavaScript |
/**********************************************************************
Copyright (C) FrontAccounting, LLC.
Released under the terms of the GNU General Public License, GPL,
as published by the Free Software Foundation, either version 3
of the License, or (at your option) any later version.
This program is ... | JavaScript |
/**********************************************************************
Copyright (C) FrontAccounting, LLC.
Released under the terms of the GNU General Public License, GPL,
as published by the Free Software Foundation, either version 3
of the License, or (at your option) any later version.
This program is ... | JavaScript |
/**********************************************************************
Copyright (C) FrontAccounting, LLC.
Released under the terms of the GNU General Public License, GPL,
as published by the Free Software Foundation, either version 3
of the License, or (at your option) any later version.
This program is ... | JavaScript |
function focus_alloc(i){save_focus(i);i.setAttribute('_last',get_amount(i.name));}
function blur_alloc(i){var change=get_amount(i.name);if(i.name!='amount'&&i.name!='charge'&&i.name!='discount')
change=Math.min(change,get_amount('maxval'+i.name.substr(6),1))
price_format(i.name,change,user.pdec);if(i.name!='amount'&&... | JavaScript |
var Behaviour={list:new Array,
register:function(sheet){Behaviour.list.push(sheet);},
start:function(){Behaviour.addLoadEvent(function(){Behaviour.apply();});},
apply:function(){for(h=0;sheet=Behaviour.list[h];h++){for(selector in sheet){var sels=selector.split(',');for(var n=0;n < sels.length;n++){list=document.getE... | JavaScript |
function set_mark(img){var box=document.getElementById('ajaxmark');if(box){if(img)box.src=user.theme+'images/'+img;box.style.visibility=img ? 'visible':'hidden';}
}
function disp_msg(msg,cl){var box=document.getElementById('msgbox');box.innerHTML="<div class='"+(cl||'err_msg')+"'>"+msg+'</div>';if(msg!='')window.scro... | JavaScript |
var _focus;var _hotkeys={'alt':false,
'list':false,
'focus':-1
};function validate(e){if(e.name&&(typeof _validate[e.name]=='function'))
return _validate[e.name](e);else{var n=e.name.indexOf('[');if(n!=-1){var key=e.name.substring(n+1,e.name.length-1);if(key.length>1&&_validate[e.name.substring(0,n)])
return _validat... | JavaScript |
function fixPNG(myImage){var arVersion=navigator.appVersion.split("MSIE")
var version=parseFloat(arVersion[1])
if((version >=5.5)&&(version < 7)&&(document.body.filters)){var imgID=(myImage.id)? "id='"+myImage.id+"' ":""
var imgClass=(myImage.className)? "class='"+myImage.className+"' ":""
var imgTitle=(myImage.title... | JavaScript |
function positionInfo(object){var p_elm=object;this.getElementLeft=getElementLeft;function getElementLeft(){var x=0;var elm;if(typeof(p_elm)=='object'){elm=p_elm;}else{elm=document.getElementById(p_elm);}
while(elm!=null){x+=elm.offsetLeft;elm=elm.offsetParent;}
return parseInt(x);}
this.getElementWidth=getElementWidt... | JavaScript |
var replinks={'a, button':function(e){e.onkeydown=function(ev){ev=ev||window.event;key=ev.keyCode||ev.which;if(key==37||key==38||key==39||key==40){move_focus(key,e,document.links);ev.returnValue=false;return false;}
}
},
'a.repopts_link':function(e){e.onclick=function(){save_focus(this);set_options(this);JsHttpReques... | JavaScript |
var Behaviour={list:new Array,
register:function(sheet){Behaviour.list.push(sheet);},
start:function(){Behaviour.addLoadEvent(function(){Behaviour.apply();});},
apply:function(){for(h=0;sheet=Behaviour.list[h];h++){for(selector in sheet){var sels=selector.split(',');for(var n=0;n < sels.length;n++){list=document.getE... | JavaScript |
function set_mark(img){var box=document.getElementById('ajaxmark');if(box){if(img)box.src=user.theme+'images/'+img;box.style.visibility=img ? 'visible':'hidden';}
}
function disp_msg(msg,cl){var box=document.getElementById('msgbox');box.innerHTML="<div class='"+(cl||'err_msg')+"'>"+msg+'</div>';if(msg!='')window.scro... | JavaScript |
var _focus;var _hotkeys={'alt':false,
'list':false,
'focus':-1
};function validate(e){if(e.name&&(typeof _validate[e.name]=='function'))
return _validate[e.name](e);else{var n=e.name.indexOf('[');if(n!=-1){var key=e.name.substring(n+1,e.name.length-1);if(key.length>1&&_validate[e.name.substring(0,n)])
return _validat... | JavaScript |
function fixPNG(myImage){var arVersion=navigator.appVersion.split("MSIE")
var version=parseFloat(arVersion[1])
if((version >=5.5)&&(version < 7)&&(document.body.filters)){var imgID=(myImage.id)? "id='"+myImage.id+"' ":""
var imgClass=(myImage.className)? "class='"+myImage.className+"' ":""
var imgTitle=(myImage.title... | JavaScript |
function positionInfo(object){var p_elm=object;this.getElementLeft=getElementLeft;function getElementLeft(){var x=0;var elm;if(typeof(p_elm)=='object'){elm=p_elm;}else{elm=document.getElementById(p_elm);}
while(elm!=null){x+=elm.offsetLeft;elm=elm.offsetParent;}
return parseInt(x);}
this.getElementWidth=getElementWidt... | JavaScript |
/**
* Neon Main JavaScript File
*
* Theme by: www.laborator.co
**/
var public_vars = public_vars || {};
;(function($, window, undefined){
"use strict";
$(document).ready(function()
{
// Sidebar Menu var
public_vars.$body = $("body");
public_vars.$pageContainer = public_vars.$body.find(".page-con... | JavaScript |
/*
Resuable Functions with Neon Theme
------
Theme by: Laborator - www.laborator.co
Developed by: Arlind Nushi
Designed by: Art Ramadani
*/
var public_vars = public_vars || {};
// ! Sidebar Menu Options
jQuery.extend(public_vars, {
sidebarCollapseClass: 'sidebar-collapsed',
sidebarOnTransitionClass: 'si... | JavaScript |
/*
* Toastr
* Version 2.0.1
* Copyright 2012 John Papa and Hans Fjällemark.
* All Rights Reserved.
* Use, reproduction, distribution, and modification of this code is subject to the terms and
* conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php
*
* Author: John ... | JavaScript |
$(document).ready(function() {
var switched = false;
var updateTables = function() {
if (($(window).width() < 767) && !switched ){
switched = true;
$("table.responsive").each(function(i, element) {
splitTable($(element));
});
return true;
}
else if (switched && ($(window)... | JavaScript |
;(function($, window, undefined){
/* Hover Intent Plugin */
(function($) {
$.fn.hoverIntent = function(handlerIn,handlerOut,selector) {
// default configuration values
var cfg = {
interval: 100,
sensitivity: 7,
timeout: 0
};
if ( typeof handlerI... | JavaScript |
/*
This function will be called in the event when browser breakpoint changes
*/
var public_vars = public_vars || {};
jQuery.extend(public_vars, {
breakpoints: {
largescreen: [991, -1],
tabletscreen: [768, 990],
devicescreen: [420, 767],
sdevicescreen: [0, 419]
},
lastBreakpoint: null
});
/* Mai... | JavaScript |
/**
* Chat Plugin
*
* Created by: Arlind Nushi
*
* www.laborator.co
*/
var neonChat = neonChat || {
$current_user: null,
isOpen: false,
chat_history: [],
statuses: {
online: {class: 'is-online', order: 1, label: 'Online'},
offline: {class: 'is-offline', order: 4, label: 'Offline'},
idle: {class: 'is-id... | JavaScript |
/**
* Neon Demo Scripts (Demo Theme Only)
*
* Developed by Arlind Nushi - www.laborator.co
*/
if(typeof Dropzone != 'undefined')
{
Dropzone.autoDiscover = false;
}
;(function($, window, undefined)
{
"use strict";
$(document).ready(function()
{
// Dropzone Example
if(typeof Dropzone != 'undefined')
... | JavaScript |
jQuery(document).ready(function($)
{
// Sample Toastr Notification
setTimeout(function()
{
var opts = {
"closeButton": true,
"debug": false,
"positionClass": rtl() || public_vars.$pageContainer.hasClass('right-sidebar') ? "toast-top-left" : "toast-top-right",
"toastClass": "black",
"on... | JavaScript |
/**
* Neon Main JavaScript File
*
* Theme by: www.laborator.co
**/
var public_vars = public_vars || {};
;(function($, window, undefined){
"use strict";
$(document).ready(function()
{
// Sidebar Menu var
public_vars.$body = $("body");
public_vars.$pageContainer = public_vars.$body.find(".page-con... | JavaScript |
/*
Resuable Functions with Neon Theme
------
Theme by: Laborator - www.laborator.co
Developed by: Arlind Nushi
Designed by: Art Ramadani
*/
var public_vars = public_vars || {};
// ! Sidebar Menu Options
jQuery.extend(public_vars, {
sidebarCollapseClass: 'sidebar-collapsed',
sidebarOnTransitionClass: 'si... | JavaScript |
/*
* Toastr
* Version 2.0.1
* Copyright 2012 John Papa and Hans Fjällemark.
* All Rights Reserved.
* Use, reproduction, distribution, and modification of this code is subject to the terms and
* conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php
*
* Author: John ... | JavaScript |
$(document).ready(function() {
var switched = false;
var updateTables = function() {
if (($(window).width() < 767) && !switched ){
switched = true;
$("table.responsive").each(function(i, element) {
splitTable($(element));
});
return true;
}
else if (switched && ($(window)... | JavaScript |
;(function($, window, undefined){
/* Hover Intent Plugin */
(function($) {
$.fn.hoverIntent = function(handlerIn,handlerOut,selector) {
// default configuration values
var cfg = {
interval: 100,
sensitivity: 7,
timeout: 0
};
if ( typeof handlerI... | JavaScript |
/*
This function will be called in the event when browser breakpoint changes
*/
var public_vars = public_vars || {};
jQuery.extend(public_vars, {
breakpoints: {
largescreen: [991, -1],
tabletscreen: [768, 990],
devicescreen: [420, 767],
sdevicescreen: [0, 419]
},
lastBreakpoint: null
});
/* Mai... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.