code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/*
* File : examRecord.js
* Version : 0.1
* Description : 针对检查结果模块所做的一系列js处理
* Author : hxin
* Created :2011/8/4
*
*/
$(document).ready(function(){
$.getJSON("exam-record!checkExamRecord.action",{id:0},function(json){
//输出返回的json数据
$("#examRecord").html("");
$.each(json,function(i){
$("#e... | JavaScript |
//jquery插件autocomplete-ui获取到json数据的js(待诊列表)
var statu = null;
$(function() {
function getJsonData() {
$("#example").html("");
$.getJSON("clinic-record!returnJsonData.action", function(json) {
$.each(json, function(i) {
var obj = "\/Date(" + json[i].registerTime + ")\/";
var time = eval(obj.repla... | JavaScript |
/*
* File : examRecord.js
* Version : 0.1
* Description : 针对体格检查所做的一系列js处理
* Author : hxin
* Created :2011/8/4
*
*/
$(document).ready(function(){
$.getJSON("physical!checkJsonData.action",function(json){
common(json);
});
});
//输出返回的json数据
function common(json){
$("#checkId").html("");
... | JavaScript |
/*
* File : medication.js
* Version : 0.1
* Description : 针对用药记录模块所做的一系列js处理
* Author : hxin
* Created :2011/8/4
*
*/
//页面加载时显示获符合条件的数据
$(document).ready(function(){
$("#medication").html("");
$.getJSON("medication!checkRecords.action",{id:0},function(json){
$.each(json,function(i){
if(jso... | JavaScript |
(function ($) {
$.format = (function () {
function strDay(value) {
switch (parseInt(value)) {
case 0:
return "Sunday";
case 1:
return "Monday";
case 2:
return "Tuesday";
case 3:
return... | JavaScript |
var tsetTimeout;
var isshowbg = false;
function ShowDialog() {
this.msgobjname = "";
/* closegourl 关闭跳转页面 nowurl 不变
autoclose 自动关闭时间 0不关闭
//dofunction 要执行的function
btns [{text:'',func:''}{}]
closefunction 关闭页面执行操作
*/
this.show = function(title, height, width, msg, ifr... | JavaScript |
function showsetp(val) {
if (val == 1) title = "第一阶段";
if (val == 2) title = "第二阶段";
if (val == 3) title = "第三阶段";
height = "auto";
width = 680 + "px";
closegourl = "nowurl";
autoclose = 0; //自动关闭时间(秒)
var msg = $$("step" + val).innerHTML;
ShowDialogo.show(title, height, ... | JavaScript |
function setInput(){
$("#inputName").attr("value",$("'selectName':selected").text());
location.replace("physical-exam-set!onClickPhysicalName.action?id=" + $("'selectName':selected").val());
}
function onClickLargeItem(){
$("#id").attr("value",$("'selectName':selected").val());
$("#itemParentId").attr... | JavaScript |
function list() {
peFeeMainForm.action = "pe-fee-record!execute.action";
peFeeMainForm.submit();
}
function save() {
var payType = $("#payTypeId").val();
if(payType == null || payType == ""){
alert("请选择付款方式!");
}else{
peFeeMainForm.action = "pe-fee-record!save.action";
peFeeMai... | JavaScript |
function changeRecord(id) {
/* 增加一个点击事件 - 使被选中的列具有相应的背景颜色 */
$("#bigItemId").html("");
$("#exampleId").html("");
var index;
$("#example tr").click(function() {
$("#example tr").removeClass('bg');
$(this).addClass('bg');
index = $(this).index();
});
$("#recordId").val(id);
jQuery.pos... | JavaScript |
/**
* 同步人员信息函数
*/
function synchoPerson() {
$("#personForm").action = "person!save.action";
$("#personForm").submit();
}
/**
* 分页跳转
* @param pageNo
*/
function jumpPage(pageNo) {
$("#pageNo").val(pageNo);
$("#personForm").submit();
}
/**
* 分页统计
* @param orderBy
* @param defaultOrder
*/... | JavaScript |
(function(){
/**************************************************************
*
* Firebug Lite 1.3.0
*
* Copyright (c) 2007, Parakey Inc.
* Released under BSD license.
* More information: http://getfirebug.com/firebuglite
*
***********************************************************... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @name Store Locator for Google Maps API V3
* @version 0.1
* @author Chris Broadfoot (Google)
* @fileoverview
* This library makes it easy to create a fully-featured Store Locator for
* your business's website.
*/
/**
* @license
*
* Copyright 2012 Google Inc.
*
* License... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* Allows developers to specify a static set of stores to be used in the
* storelocator.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* Feature model class for Store Locator library.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Licens... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* An info panel, which complements the map view of the Store Locator.
* Provides a list of stores, location search, feature filter, and directions.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* This library makes it easy to create a fully-featured Store Locator for
* your business's website.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wit... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* Store model class for Store Locator library.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License ... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* FeatureSet class for Store Locator library. A mutable, ordered set of
* storeLocator.Features.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with th... | JavaScript |
// A simple demo showing how to grab places using the Maps API Places Library.
// Useful extensions may include using "name" filtering or "keyword" search.
google.maps.event.addDomListener(window, 'load', function() {
var map = new google.maps.Map(document.getElementById('map-canvas'), {
center: new google.maps.... | JavaScript |
/**
* @implements storeLocator.DataFeed
* @constructor
*/
function MedicareDataSource() {
}
MedicareDataSource.prototype.getStores = function(bounds, features, callback) {
var center = bounds.getCenter();
var that = this;
var audioFeature = this.FEATURES_.getById('Audio-YES');
var wheelchairFeature = this.F... | JavaScript |
google.maps.event.addDomListener(window, 'load', function() {
var map = new google.maps.Map(document.getElementById('map-canvas'), {
center: new google.maps.LatLng(-28, 135),
zoom: 4,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
var panelDiv = document.getElementById('panel');
var data = new Medic... | JavaScript |
/**
* @extends storeLocator.StaticDataFeed
* @constructor
*/
function MedicareDataSource() {
$.extend(this, new storeLocator.StaticDataFeed);
var that = this;
$.get('medicare.csv', function(data) {
that.setStores(that.parse_(data));
});
}
/**
* @const
* @type {!storeLocator.FeatureSet}
* @private
*... | JavaScript |
// Store locator with customisations
// - custom marker
// - custom info window (using Info Bubble)
// - custom info window content (+ store hours)
var ICON = new google.maps.MarkerImage('medicare.png', null, null,
new google.maps.Point(14, 13));
var SHADOW = new google.maps.MarkerImage('medicare-shadow.png', nul... | JavaScript |
/*
* cordova is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
*
* Copyright (c) 2005-2010, Nitobi Software Inc.
* Copyright (c) 2011, IBM Corporation
*/
/**
* Constructor
*/
function ChildBrowser() {
... | JavaScript |
var cb=new ChildBrowser();
function init2() {
}
function init() {
// the next line makes it impossible to see Contacts on the HTC Evo since it
// doesn't have a scroll button
// document.addEventListener("touchmove", preventBehavior, false);
document.addEventListener("deviceready", init2, true);
}
f... | JavaScript |
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
| JavaScript |
/*
* SimpleModal Basic Modal Dialog
* http://simplemodal.com
*
* Copyright (c) 2013 Eric Martin - http://ericmmartin.com
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*/
jQuery(function ($) {
// Load dialog on page load
//$('#basic-modal-content').modal();
// Lo... | JavaScript |
/**************************************************************************************************************/
/*
MVC Ajax Toolkit
Functions : BaseRequestURL, CrudRequestURL
*/
/**************************************************************************************************************/
jQuery.HulkAjax = {
... | JavaScript |
| JavaScript |
//***************************CHECK ********************************************************
var IsSupportHtml5 = typeof (Storage) !== "undefined";
var WindowHeight = $(window).height();
var WindowWidth = $(window).width();
function ToParameterType(type) {
switch (type) {
case 'system.datetime':
... | JavaScript |
/* Utilities */
function findElement(id) {
if (document.getElementById) return document.getElementById(id);
else if (document.layers) return document.layers[id];
else if (document.all) return document.all[id];
else return false;
}
function setCookie(cName, cValue, cDays) {
cExpires = ""
if (cDays) {
var exDat... | JavaScript |
var menu=function(){
var t=15,z=50,s=6,a;
function dd(n){this.n=n; this.h=[]; this.c=[];}
dd.prototype.init=function(p,c){
a=c; var w=document.getElementById(p), s=w.getElementsByTagName('ul'), l=s.length, i=0;
for(i;i<l;i++){
var h=s[i].parentNode; this.h[i]=h; this.c[i]=s[i];
h.onmouseover=new Function(t... | JavaScript |
$(document).ready( function() {
$("#formularioContato").validate({
// Define as regras
rules:{
login:{
// campoNome será obrigatório (required) e terá tamanho mínimo (minLength)
required: true, minlength: 2
},
senha:{
// campoEmail será obrigatório (required) e precisará ser um e-ma... | JavaScript |
//****************************************************************
$(function(){
$("#slides ul").cycle({
fx: 'toss',
speed: 2000,
timeout : 3000,
pager: '#linhas',
})
})
//****************************************************************
| JavaScript |
/*
Uniform v1.7.5
Copyright © 2009 Josh Pyles / Pixelmatrix Design LLC
http://pixelmatrixdesign.com
Requires jQuery 1.4 or newer
Much thanks to Thomas Reynolds and Buck Wilson for their help and advice on this
Disabling text selection is made possible by Mathias Bynens <http://mathiasbynens.be/>
and his noSelect pl... | JavaScript |
// JavaScript Document
$(function(){
$("#menu li ul").hide();
$("#menu ul li a").click(function(){
$(this).next().slideToggle("slow");
})
}) | JavaScript |
window.onload = function() {
myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
} | JavaScript |
/*
moo.fx, simple effects library built with prototype.js (http://prototype.conio.net).
by Valerio Proietti (http://mad4milk.net) MIT-style LICENSE.
for more info (http://moofx.mad4milk.net).
10/24/2005
v(1.0.2)
*/
//base
var fx = new Object();
fx.Base = function(){};
fx.Base.prototype = {
setOptions: function(option... | JavaScript |
function create_menu(basepath)
{
var base = (basepath == 'null') ? '' : basepath;
document.write(
'<table cellpadding="0" cellspaceing="0" border="0" style="width:98%"><tr>' +
'<td class="td" valign="top">' +
'<ul>' +
'<li><a href="'+base+'index.html">User Guide Home</a></li>' +
'<li><a href="'+base+'toc.... | JavaScript |
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
| JavaScript |
// SpryMenuBar.js - version 0.12 - Spry Pre-Release 1.6.1
//
// Copyright (c) 2006. Adobe Systems Incorporated.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistribution... | JavaScript |
/*---------------------------------------------------------------------------*/
/**
* @fileOverview Contem o JavaScript necessario para a aplicacao
* "Fala para Texto/Libras".
*
* @author Robson Martins (robson@robsonmartins.com)
* @version 1.0
*/
/*-----------------------------------------... | JavaScript |
/*---------------------------------------------------------------------------*/
/**
* @fileOverview Implementa classes para manipular captura de audio via HTML5.
*
* @author Robson Martins (robson@robsonmartins.com)
* @version 1.0
*/
/*----------------------------------------------------------------------... | JavaScript |
/*---------------------------------------------------------------------------*/
/**
* @fileOverview Contem o JavaScript necessario para a aplicacao
* "Texto para Fala/Libras".
*
* @author Robson Martins (robson@robsonmartins.com)
* @version 1.0
*/
/*-----------------------------------------... | JavaScript |
/*---------------------------------------------------------------------------*/
/**
* @fileOverview Implementa classes para verificar features do browser.
*
* @author Robson Martins (robson@robsonmartins.com)
* @version 1.0
*/
/*---------------------------------------------------------------------------*/... | JavaScript |
/*---------------------------------------------------------------------------*/
/**
* @fileOverview Implementa classes para manipular consultas e respostas
* de Servicos AcaaS (Accessibility as a Service).
* <p>
* Incorpora as bibliotecas:
* <p>
* <b>Json2.js</b>: http://www.JSON.org/js.html<br/>
... | JavaScript |
/**
* @fileOverview Contains standard code in the namespace 'wbos' and code specifically written for Codeview in the namespace 'codeview'
* @author Wouter Bos (www.thebrightlines.com)
* @since 1.0 - 2010-09-10
* @version 1.0 - 2010-09-10
*/
if (typeof(wbos) == "undefined") {
/**
* @namespace... | JavaScript |
/** Called automatically by JsDoc Toolkit. */
function publish(symbolSet) {
publish.conf = { // trailing slash expected for dirs
ext: ".html",
outDir: JSDOC.opt.d || SYS.pwd+"../out/jsdoc/",
templatesDir: JSDOC.opt.t || SYS.pwd+"../templates/jsdoc/",
staticDir: "static/",
symbolsDir: ... | JavaScript |
/** Called automatically by JsDoc Toolkit. */
function publish(symbolSet) {
publish.conf = { // trailing slash expected for dirs
ext: ".html",
outDir: JSDOC.opt.d || SYS.pwd+"../out/jsdoc/",
templatesDir: JSDOC.opt.t || SYS.pwd+"../templates/jsdoc/",
symbolsDir: "symbols/",
srcDir: ... | JavaScript |
load("app/frame/Dumper.js");
function symbolize(opt) {
symbols = null;
JSDOC.JsDoc(opt);
symbols = JSDOC.JsDoc.symbolSet;
}
var testCases = [
function() {
symbolize({a:true, p:true, _: [SYS.pwd+"test/overview.js"]});
//print(Dumper.dump(symbols));
is('symbols.getSymbolByName("My Cool Library").na... | JavaScript |
/**
* @fileOverview
* A bootstrap script that creates some basic required objects
* for loading other scripts.
* @author Michael Mathews, micmath@gmail.com
* @version $Id: run.js 756 2009-01-07 21:32:58Z micmath $
*/
/**
* @namespace Keep track of any messages from the running script.
*/
LOG = {
w... | JavaScript |
JSDOC.PluginManager.registerPlugin(
"JSDOC.tagParamConfig",
{
onDocCommentTags: function(comment) {
var currentParam = null;
var tags = comment.tags;
for (var i = 0, l = tags.length; i < l; i++) {
if (tags[i].title == "param") {
if (tags[i].name.indexOf(".") == -1) {
currentPa... | JavaScript |
JSDOC.PluginManager.registerPlugin(
"JSDOC.tagSynonyms",
{
onDocCommentSrc: function(comment) {
comment.src = comment.src.replace(/@methodOf\b/i, "@function\n@memberOf");
comment.src = comment.src.replace(/@fieldOf\b/i, "@field\n@memberOf");
},
onDocCommentTags: function(comment) {
for (var... | JavaScript |
JSDOC.PluginManager.registerPlugin(
"JSDOC.publishSrcHilite",
{
onPublishSrc: function(src) {
if (src.path in JsHilite.cache) {
return; // already generated src code
}
else JsHilite.cache[src.path] = true;
try {
var sourceCode = IO.readFile(src.path);
}
catch(e) {
print... | JavaScript |
JSDOC.PluginManager.registerPlugin(
"JSDOC.frameworkPrototype",
{
onPrototypeClassCreate: function(classCreator) {
var desc = "";
if (classCreator.comment) {
desc = classCreator.comment;
}
var insert = desc+"/** @name "+classCreator.name+"\n@constructor\n@scope "+classCreator.name+".prototyp... | JavaScript |
JSDOC.PluginManager.registerPlugin(
"JSDOC.commentSrcJson",
{
onDocCommentSrc: function(comment) {
var json;
if (/^\s*@json\b/.test(comment)) {
comment.src = new String(comment.src).replace("@json", "");
eval("json = "+comment.src);
var tagged = "";
for (var i in json) {
var t... | JavaScript |
JSDOC.PluginManager.registerPlugin(
"JSDOC.functionCall",
{
onFunctionCall: function(functionCall) {
if (functionCall.name == "dojo.define" && functionCall.arg1) {
functionCall.doc = "/** @lends "+eval(functionCall.arg1)+".prototype */";
}
}
}
); | JavaScript |
JSDOC.PluginManager.registerPlugin(
"JSDOC.symbolLink",
{
onSymbolLink: function(link) {
// modify link.linkPath (the href part of the link)
// or link.linkText (the text displayed)
// or link.linkInner (the #name part of the link)
}
}
); | JavaScript |
/**@constructor*/
function Foo() {
/**
@public
@static
@field
*/
var bar = function(x) {
}
} | JavaScript |
/**
@class
@inherits Bar#zop as #my_zop
*/
function Foo() {
/** this is a zip. */
this.zip = function() {}
/** from Bar */
this.my_zop = new Bar().zop;
}
/**
@class
@borrows Foo#zip as this.my_zip
*/
function Bar() {
/** this is a zop. */
this.zop = function() {}
/** from Foo */
th... | JavaScript |
/** @constructor */
function Foo() {
var bar = 1;
bar = 2; // redefining a private
this.baz = 1;
baz = 2; // global
/** a private */
var blap = {
/** in here */
tada: 1
}
} | JavaScript |
// testing circular borrows
/**
@class
@borrows Bar#zop as this.my_zop
*/
function Foo() {
/** this is a zip. */
this.zip = function() {}
this.my_zop = new Bar().zop;
}
/**
@class
@borrows Foo#zip as this.my_zip
*/
function Bar() {
/** this is a zop. */
this.zop = function() {}
this... | JavaScript |
/** @namespace */
myProject = myProject || {};
/** @namespace */
myProject.myModule = (function () {
/** describe myPrivateVar here */
var myPrivateVar = "";
var myPrivateMethod = function () {
}
/** @scope myProject.myModule */
return {
myPublicMethod: function () {
}
};
})(); | JavaScript |
function example(/**Circle*/a, b) {
/** a global defined in function */
var number = a;
var hideNumber = function(){
}
setNumber = function(){
}
alert('You have chosen: ' + b);
}
function initPage() {
var supported = document.createElement && document.getElementsByTagName;
if (!supported) r... | JavaScript |
/** the options */
opt = Opt.get(
arguments,
{
d: "directory",
c: "conf",
"D[]": "define"
}
);
/** configuration */
opt.conf = {
/** keep */
keep: true,
/** base */
base: getBase(this, {p: properties})
}
| JavaScript |
/** an anonymous constructor executed inline */
a = new function() {
/** a.b*/
this.b = 1;
/** a.f */
this.f = function() {
/** a.c */
this.c = 2;
}
}
/**
named function executed inline
*/
bar1 = function Zoola1() {
/** property of global */
this.g = 1;
}();
/**
na... | JavaScript |
String.prototype.reverse = function() {
}
String.prototype.reverse.utf8 = function() {
}
Function.count = function() {
}
/** @memberOf Function */
Function.count.reset = function() {
}
/** @memberOf Function */
count.getValue = function() {
}
/** @memberOf Function.prototype */
getSig = function(... | JavaScript |
startOver = function(){
} | JavaScript |
/**
* A test constructor.
* @constructor
* @ignore
*/
function Ignored() {
/** a method */
this.bar = function() {
}
} | JavaScript |
/**
* @param {Page[]} pages
* @param {number} [id] Specifies the id, if applicable.
* @param {String} [title = This is untitled.] Specifies the title.
*/
function Document(pages, id, title){
} | JavaScript |
/**
* @constructor
* @param person The person.
* @param {string} person.name The person's name.
* @config {integer} age The person's age.
* @config [id=1] Optional id number to use.
* @param connection
*/
function Contact(person, connection) {
}
/**
* @constructor
* @param persons
* @config {... | JavaScript |
var Person = makeClass(
/**
@scope Person
*/
{
/**
This is just another way to define a constructor.
@constructs
@param {string} name The name of the person.
*/
initialize: function(name) {
this.name = name;
},
... | JavaScript |
/**
@constructor
*/
function Layout(p) {
this.init = function(p) {
}
this.getId = function() {
}
/** @type Page */
this.orientation = "landscape";
}
/**
@constructor
@augments Layout
*/
function Page() {
this.reset = function(b) {
}
}
/**
@extends Page
@constructor
*/
function T... | JavaScript |
/**
Get the entire flavor.
@name flavor^3
@function
@returns {Object} The entire flavor hash.
*/
/**
Get a named flavor.
@name flavor^2
@function
@param {String} name The name of the flavor to get.
@returns {String} The value of that flavor.
*/
/**
Set the flavor.
@param {String} name The na... | JavaScript |
/** @constructor */
pack = function() {
this.init = function(){}
function config(){}
}
pack.build = function(task) {};
/** @memberOf pack */
pack.install = function() {}
/** @memberOf pack */
pack.install.overwrite = function() {}
/** @memberOf pack */
clean = function() {}
/** @memberOf pack-... | JavaScript |
// /**#=+
// * {
// * 'D': 'Date.prototype',
// * '$N': 'Number'
// * }
// */
// var D = Date.prototype,
// $N = Number;
//
// D.locale = function(){
// };
//
// /**
// @return {string} The cardinal number string.
// */
// $N.nth = function(n){
// };
//
// LOAD.file = function(){
// }
//
... | JavaScript |
/**
@constructor
*/
function LibraryItem() {
this.reserve = function() {
}
}
/**
@constructor
*/
function Junkmail() {
this.annoy = function() {
}
}
/**
@inherits Junkmail.prototype.annoy as pester
@augments ThreeColumnPage
@augments LibraryItem
@constructor
*/
function NewsletterPage() {
... | JavaScript |
/**
* @overview This "library" contains a
* lot of classes and functions.
* @example
<pre>
var x (x < 1);
alert("This 'is' \"code\"");
</pre>
* @name My Cool Library
* @author Joe Smith jsmith@company.com
* @version 0.1
*/
/**
* Gets the current foo
* @param {String} fo... | JavaScript |
/**
@class
*/
function thisiscode() {
} | JavaScript |
/**
* @constructor
*/
function Outer() {
/**
* @constructor
*/
function Inner(name) {
/** The name of this. */
this.name = name;
}
this.open = function(name) {
return (new Inner(name));
}
} | JavaScript |
/**
@name Response
@class
*/
Response.prototype = {
/**
@name Response#text
@function
@description
Gets the body of the response as plain text
@returns {String}
Response as text
*/
text: function() {
return this.nativeResponse.responseText;
}
} | JavaScript |
/**#nocode+*/
/**
@name star
@function
*/
function blahblah() {
}
/**#nocode-*/
function yaddayadda() {
} | JavaScript |
/** @constructor */
function Zop() {
}
/**
@class
*/
Foo = function(id) {
// this is a bit twisted, but if you call Foo() you will then
// modify Foo(). This is kinda, sorta non-insane, because you
// would have to call Foo() 100% of the time to use Foo's methods
Foo.prototype.methodOne = function(bar)... | JavaScript |
/**
* @fileoverview This file is to be used for testing the JSDoc parser
* It is not intended to be an example of good JavaScript OO-programming,
* nor is it intended to fulfill any specific purpose apart from
* demonstrating the functionality of the
* <a href='http://sourceforge.net/projects/jsdoc'>JSDoc<... | JavaScript |
/** @constructor */
function Circle(){}
/**
@constructor
@memberOf Circle#
*/
Circle.prototype.Tangent = function(){};
// renaming Circle#Tangent to Circle#Circle#Tangent
/**
@memberOf Circle#Tangent#
*/
Circle.prototype.Tangent.prototype.getDiameter = function(){};
| JavaScript |
/** @class */
var Person = Class.create(
/**
@lends Person.prototype
*/
{
initialize: function(name) {
this.name = name;
},
say: function(message) {
return this.name + ': ' + message;
}
}
);
/** @lends Person.prototype */
{
... | JavaScript |
/**
* Builtin object.
* @class
* @name Array
*/
/**#@+
* Extension to builtin array.
* @memberOf Array
* @method
*/
/**
* @returns Boolen if some array members...
*/
Array.prototype.some = function(){};
/**
* Change every element of an array.
* @returns Filtered array copy.
*/
A... | JavaScript |
/**
@namespace This is the first namespace.
*/
ns1 = {};
/**
This is the second namespace.
@namespace
*/
ns1.ns2 = {};
/**
This part of ns1.ns2
@constructor
*/
ns1.ns2.Function1 = function() {
};
ns1.staticFunction = function() {
};
/** A static field in a namespace. */
ns1.ns2.staticFi... | JavaScript |
/**
* @name Foo
* @class
*/
/**#@+
* @memberOf Foo#
* @field
*/
/**
* @name bar
* @type Object[]
*/
/**#@-*/
/**
* @name Foo2
* @class
*/
/**#@+
* @memberOf Foo2#
* @field
*/
/**
* @name bar
* @type Object[]
*/
/**#@-*/ | JavaScript |
/**
@constructor
*/
function Layout(p) {
/** initilize 1 */
this.init = function(p) {
}
/** get the id */
this.getId = function() {
}
/** @type string */
this.orientation = "landscape";
function getInnerElements(elementSecretId){
}
}
/** A static method. */
Layout.units = function()... | JavaScript |
/**
* @param {Object} object
* @return {string}
*/
function valueOf(object) {}
/**
* @param {Object} object
* @return {string}
*/
function toString(object) {}
/**
* @param {Object} object
* @return {string}
*/
function toSource(object) {}
/**
* @param {Object} object
* @return {string}... | JavaScript |
/**
* @Constructor
* @desc 配置文件
* @class 什么也不返回
*/
function Test(conf) {
// do something;
}
| JavaScript |
/** the parent */
var box = {};
/** @namespace */
box.holder = {}
box.holder.foo = function() {
/** the counter */
this.counter = 1;
}
box.holder.foo();
print(box.holder.counter);
| JavaScript |
/**
* @constructor
*/
function Foo() {
/**
@memberOf Foo.prototype
*/
function bar(a, b) {
}
/**
@memberOf Foo
*/
var zip = function(p, q) {
}
/**
@memberOf Foo
*/
function zop( x,y ) {
}
/**
@memberOf Foo
... | JavaScript |
/** @namespace */
var mxn = {};
(function(){
/** @exports Map as mxn.Map */
var Map =
/** @constructor */
mxn.Map = function() {
};
/** A method. */
Map.prototype.doThings = function() {
};
})(); | JavaScript |
/**
* @name bar
* @namespace
*/
new function() {
/**
* @name bar-foo
* @function
* @param {number} x
*/
function foo(x) {
}
} | JavaScript |
/**
@constructor
@param columns The number of columns.
*/
function Layout(/**int*/columns){
/**
@param [id] The id of the element.
@param elName The name of the element.
*/
this.getElement = function(
/** string */ elName,
/** number|string */ id
) {
};
/**
@constructor
*/
this... | JavaScript |
/** ecks */
var x = [1, 2, 4];
var y = {
foo: function(){
}
}
bar = function() {
}
function zop() {
}
| JavaScript |
/**
* @name Kitchen
* @constructor
* @fires Bakery#event:donutOrdered
*/
/**
* Fired when some cake is eaten.
* @name Kitchen#event:cakeEaten
* @function
* @param {Number} pieces The number of pieces eaten.
*/
/**
* Find out if cake was eaten.
* @name Kitchen#cakeEaten
* @function
* @par... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.