code
stringlengths
1
2.08M
language
stringclasses
1 value
// 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
/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * $LastChangedDate: 2007-07-21 18:44:59 -0500 (Sat, 21 Jul 2007) $ * $Rev: 2446 $ * * Versio...
JavaScript
/** * Returns an XMLHttp instance to use for asynchronous downloading. This method * will never throw an exception, but will return NULL if the browser does not * support XmlHttp for any reason. * * @return {XMLHttpRequest|Null} */ function createXmlHttpRequest() { try { if (typeof ActiveXObject != '...
JavaScript
$(function() { $("#ctl00_mainContent_CreateUserWizard1_btnSubmit").attr("disabled", "disabled"); $("#ctl00_mainContent_CreateUserWizard1_chkTerms").click(function() { var checked_status = this.checked; if (checked_status == true) { $("#ctl00_mainContent_CreateUserWizard1_btnSubmit").removeAttr...
JavaScript
define(['backbone', 'Channel'], function(Backbone, Channel) { "use strict"; return Backbone.Collection.extend({ model: Channel }); });
JavaScript
define(['backbone', 'amplify', 'jq.xdomainajax'], function(Backbone, amplify) { "use strict"; return Backbone.Model.extend({ resourceId: 'user.channel', defaults: { url: '', name: '', link: '', subscribers: 0 }, load: ...
JavaScript
require.config({ baseUrl : 'js', paths : { 'jquery' : 'lib/jquery-1.8.3/jquery', 'underscore' : 'lib/underscore-1.4.3/underscore', 'backbone' : 'lib/backbone-0.9.2/backbone', 'amplify' : 'lib/amplify-1.1.0/amplify', 'jq.xdomainajax' : 'lib/jq.xdomainajax-0.11...
JavaScript
define(['backbone', 'User'], function(Backbone, User) {"use strict"; return Backbone.Collection.extend({ model: User }); });
JavaScript
define(['jquery', 'underscore', 'backbone', 'd3', 'User', 'Channels'], function($, _, Backbone, d3, User, Channels) { "use strict"; return Backbone.View.extend({ width: 960, height: 500, svg: d3.select('section#content').append('svg'), force: null, nodes: [], ...
JavaScript
define(['amplify'], function(amplify) {"use strict"; var register = function() { amplify.request.define('user.profile', 'ajax', { url: 'http://gdata.youtube.com/feeds/api/users/{user}?alt=json', dataType: 'json', data: { user: 'default' ...
JavaScript
/** vim: et:ts=4:sw=4:sts=4 * @license RequireJS 2.1.2 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/requirejs for details */ //Not using strict: uneven strict support in browsers, #392, and causes //problems with requi...
JavaScript
/*! * AmplifyJS 1.1.0 - Core, Store, Request * * Copyright 2011 appendTo LLC. (http://appendto.com/team) * Dual licensed under the MIT or GPL licenses. * http://appendto.com/open-source-licenses * * http://amplifyjs.com */ /*! * Amplify Core 1.1.0 * * Copyright 2011 appendTo LLC. (http://appendto.com/team...
JavaScript
// Underscore.js 1.4.3 // http://underscorejs.org // (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc. // Underscore may be freely distributed under the MIT license. (function() { // Baseline setup // -------------- // Establish the root object, `window` in the browser, or `global` on the serve...
JavaScript
/** * jQuery.ajax mid - CROSS DOMAIN AJAX * --- * @author James Padolsey (http://james.padolsey.com) * @version 0.11 * @updated 12-JAN-10 * --- * Note: Read the README! * --- * @info http://james.padolsey.com/javascript/cross-domain-requests-with-jquery/ */ jQuery.ajax = (function(_ajax){ var proto...
JavaScript
// Backbone.js 0.9.2 // (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc. // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org (function(){ // Initial Setup // ------------- // Save a reference to the global object (`wi...
JavaScript
define(['jquery', 'backbone', 'amplify', 'Channel', 'Channels'], function($, Backbone, amplify, Channel, Channels) { "use strict"; return Backbone.Model.extend({ resourceId: 'user.profile', defaults: { key: 'default', author: '', title: '', ...
JavaScript
/** * @Author : venkatakrishnan ganesh * @file : wterm.jquery.js * @url : http://wterminal.appspot.com * @desc : * * Allows Emulation of Terminal on the browser. * Completely Extendible. * Command History. * Commandline Editing. * * */ ( function( $ ) { var VERSION = '0....
JavaScript
if($.amud==null) $.amud={}; $.amud.core={ server_debug:false, response_debug:false, user:{ id:null, charId:null, HP:null, MP:null, XP:null, commands:{ } }, password:'', key:'', intervalId:'', intervalDelay:5000, time:Math.round(new Date().getTime() / 1000), name:null, loginBox:null, ...
JavaScript
/* * SimpleModal 1.4 - jQuery Plugin * http://www.ericmmartin.com/projects/simplemodal/ * Copyright (c) 2010 Eric Martin (http://twitter.com/ericmmartin) * Dual licensed under the MIT and GPL licenses * Revision: $Id: jquery.simplemodal.js 256 2010-07-27 23:05:43Z emartin24 $ */ /** * SimpleModal is a lightweig...
JavaScript
if($.amud==null) $.amud={}; $.amud.msg={ toHtmlRecursive:function(obj,msg){ ret=msg; if(isObject(obj) || isArray(obj)){ for(var i in obj){ if(!isNumber(i)){ id="class='"+i+"'"; }else{ id=""; } ret=ret+"<div "+id+">"; if(isObject(obj[i]) || isArray(obj[i])){ ret=ret+$.amud.msg...
JavaScript
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* SHA-1 implementation in JavaScript (c) Chris Veness 2002-2009 */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ function sha1Has...
JavaScript
$.amud.room={ action:function(){ $('.door').each( function(){ $(this).children('.description').each( function(){ $(this).parent().parent().children('.direction').attr('title',$(this).html()); }); $(this).child...
JavaScript
$.amud.character={ action:function(){ var parent = $('.charId').parent('.amud_character_message').not('.process_done'); $(parent).addClass('process_done'); $(parent).children( '.room, .statusCapabilities, .capabilities, '+ '.baseStrength, .baseDexterity, .baseVitality, '+ '.baseIntelligence, ....
JavaScript
if($.amud==null) $.amud={}; $.amud.items={ action:function(){ items="<br />"; for(var item in $.amud.core.user.items){ items=items+$.amud.items.formatItem($.amud.core.user.items[item],item); } return items; }, formatItem:function(item,slot){ ret="<div class='item'>"; if(slot!=null){ ret+="<span cl...
JavaScript
var loading_image_html; //set via setLoadingImageHTML() var filterReq = ""; var sortReq = ""; var this_page; // the php file loading ajaxCRUD /* Ajax functions */ function createRequestObject() { var http_request = false; if (window.XMLHttpRequest) { // Mozilla, Safari,... http_request = new XMLH...
JavaScript
//** jQuery Scroll to Top Control script- (c) Dynamic Drive DHTML code library: http://www.dynamicdrive.com. //** Available/ usage terms at http://www.dynamicdrive.com (March 30th, 09') //** v1.1 (April 7th, 09'): //** 1) Adds ability to scroll to an absolute position (from top of page) or specific element on the page ...
JavaScript
/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. * * Copyright © 2008 George McGinley Smith * All rights reserved. * ...
JavaScript
// JavaScript Document function formSubmit(formName){ eval('document.'+ formName + '.submit();'); } function getFileExtension($file){ return ($file.substring($file.lastIndexOf('.') + 1)).toLowerCase(); } function open_popup(url,popup_name,width,height){ var left = Math.floor((screen.width - width) / 2); ...
JavaScript
// JavaScript Document /* Author : tunn Created : 3 Feb 2009 Use : var popup = new Popup('popup1 popup2 popup3 popup4 popup5 popup6'); - popup1 to popup6 is name of popup - popup.open(name_of_popup); //display popup on screen - popup.close(name_of_popup); //hide popup */ var Popup = Class.creat...
JavaScript
/*! * jQuery corner plugin: simple corner rounding * Examples and documentation at: http://jquery.malsup.com/corner/ * version 2.03 (05-DEC-2009) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */ /** * corner() takes ...
JavaScript
/* * jQuery UI 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI */ ;jQuery.ui || (function($) { var _remove = $.fn.remove, isFF2 = $.browser.mozilla && (parseFloa...
JavaScript
/* * jQuery UI Effects Scale 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Scale * * Depends: * effects.core.js */ (function($) { $.effects.puff = ...
JavaScript
/* * jQuery UI Progressbar 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Progressbar * * Depends: * ui.core.js */ (function($) { $.widget("ui.progressbar...
JavaScript
/* * jQuery UI Slider 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Slider * * Depends: * ui.core.js */ (function($) { $.widget("ui.slider", $.extend({},...
JavaScript
/* * jQuery UI Effects Fold 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Fold * * Depends: * effects.core.js */ (function($) { $.effects.fold = fu...
JavaScript
/* * jQuery UI Selectable 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Selectables * * Depends: * ui.core.js */ (function($) { $.widget("ui.selectable", $...
JavaScript
/* * jQuery UI Effects Slide 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Slide * * Depends: * effects.core.js */ (function($) { $.effects.slide =...
JavaScript
/* * jQuery UI Accordion 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Accordion * * Depends: * ui.core.js */ (function($) { $.widget("ui.accordion", { ...
JavaScript
/* * jQuery UI Dialog 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Dialog * * Depends: * ui.core.js * ui.draggable.js * ui.resizable.js */ (function($) {...
JavaScript
/* * jQuery UI Effects 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/ */ ;jQuery.effects || (function($) { $.effects = { version: "1.7.2", // Saves...
JavaScript
/* * jQuery UI Effects Drop 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Drop * * Depends: * effects.core.js */ (function($) { $.effects.drop = fu...
JavaScript
/* * jQuery UI Effects Highlight 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Highlight * * Depends: * effects.core.js */ (function($) { $.effects...
JavaScript
/* * jQuery UI Resizable 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Resizables * * Depends: * ui.core.js */ (function($) { $.widget("ui.resizable", $.ex...
JavaScript
/* * jQuery UI Sortable 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Sortables * * Depends: * ui.core.js */ (function($) { $.widget("ui.sortable", $.exten...
JavaScript
/* * jQuery UI Effects Explode 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Explode * * Depends: * effects.core.js */ (function($) { $.effects.exp...
JavaScript
/* * jQuery UI Draggable 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Draggables * * Depends: * ui.core.js */ (function($) { $.widget("ui.draggable", $.ex...
JavaScript
/* * jQuery UI Effects Clip 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Clip * * Depends: * effects.core.js */ (function($) { $.effects.clip = fu...
JavaScript
/* * jQuery UI Datepicker 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Datepicker * * Depends: * ui.core.js */ (function($) { // hide the namespace $.ex...
JavaScript
/* * jQuery UI Effects Transfer 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Transfer * * Depends: * effects.core.js */ (function($) { $.effects.t...
JavaScript
/* * jQuery UI Effects Blind 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Blind * * Depends: * effects.core.js */ (function($) { $.effects.blind =...
JavaScript
/* Japanese initialisation for the jQuery UI date picker plugin. */ /* Written by Kentaro SATO (kentaro@ranvis.com). */ jQuery(function($){ $.datepicker.regional['ja'] = { closeText: '閉じる', prevText: '&#x3c;前', nextText: '次&#x3e;', currentText: '今日', monthNames: ['1月','2月','3月','4月','5月','6月', '7...
JavaScript
/* * jQuery UI Droppable 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Droppables * * Depends: * ui.core.js * ui.draggable.js */ (function($) { $.widget(...
JavaScript
/* * jQuery UI Effects Pulsate 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Pulsate * * Depends: * effects.core.js */ (function($) { $.effects.pul...
JavaScript
/* * jQuery UI Effects Shake 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Shake * * Depends: * effects.core.js */ (function($) { $.effects.shake =...
JavaScript
/* * jQuery UI Tabs 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Tabs * * Depends: * ui.core.js */ (function($) { $.widget("ui.tabs", { _init: functio...
JavaScript
/* * jQuery UI Effects Bounce 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Bounce * * Depends: * effects.core.js */ (function($) { $.effects.bounc...
JavaScript
/* title: Funções xmlHTTPRequest Funções para se trabalhar com o xmlHTTPRequest Autor: Marcos José Setim Versão: 1.6 Criada em: 08 Maio 2005 Brought up date: 20 Abril 2006 */ /* function: checkXMLHTTP() Verifica se o XMLHTTP é suportado, caso seja retorna o object returns: ...
JavaScript
// JavaScript Document /* Caution: If you want to call javascript function by anchor tab(<a></a>) you need place it at href <a href="myFunction();" >click here </a> */ var otherTitleFirst ='other_title_textbox_'; var otherLinkFirst ='other_link_to_price_list_'; var otherUniformFirst = 'other_uniform_price_'; ...
JavaScript
/* $Id: jquery.cookie.js 62 2008-01-19 12:37:15Z Bolik@xjgc.com $ */ /** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ /** * Create a cookie wit...
JavaScript
(function ($) { var m = { '\b': '\\b', '\t': '\\t', '\n': '\\n', '\f': '\\f', '\r': '\\r', '"' : '\\"', '\\': '\\\\' }, s = { 'array': function (x) { var a = ['['], b, f, i, l = x.length, ...
JavaScript
// JavaScript Document function formSubmit(formName){ eval('document.'+ formName + '.submit();'); } function getFileExtension($file){ return ($file.substring($file.lastIndexOf('.') + 1)).toLowerCase(); } function open_popup(url,popup_name,width,height){ var left = Math.floor((screen.width - width) / 2); ...
JavaScript
// directory of where all the images are //var cmThemeOfficeBase = '../includes/js/ThemeOffice/'; var cmThemeOffice = { // main menu display attributes // // Note. When the menu bar is horizontal, // mainFolderLeft and mainFolderRight are // put in <span></span>. When the menu // bar is...
JavaScript
/* JSCookMenu v2.0.3 (c) Copyright 2002-2006 by Heng Yuan http://jscook.sourceforge.net/JSCookMenu/ 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 with...
JavaScript
/* This notice must be untouched at all times. wz_tooltip.js v. 3.26 The latest version is available at http://www.walterzorn.com or http://www.devira.com or http://www.walterzorn.de Copyright (c) 2002-2004 Walter Zorn. All rights reserved. Created 1. 12. 2002 by Walter Zorn (Web: http://www.walterzorn....
JavaScript
// <?php !! This fools phpdocumentor into parsing this file /** * @package Mambo * @author Mambo Foundation Inc see README.php * @copyright Mambo Foundation Inc. * See COPYRIGHT.php for copyright notices and details. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see * LICENSE.php * Mambo is free soft...
JavaScript
//alert(document.getElementById('get_id_product').value); function upload_OBJ(xid_product){ var id_product=document.getElementById('get_id_product').value; //var xid_product=document.getElementById('get_xid_product').value; var host_product=document.getElementById('host_product').value; //document.writeln(abc); d...
JavaScript
amun.services.php = { loadForm: function(cId, url){ var form = new amun.form(cId, url); form.onError(function(msg){ $('#response').html(msg); }); form.onLoad(function(cId){ var client = new amun.client(cId); client.beforeSubmit(function(){ $('#' + this.getContainerId() + ' input[type=sub...
JavaScript
amun.services.tracker = { loadForm: function(cId, url) { var form = new amun.form(cId, url); form.onError(function(msg){ $('#response').html(msg); }); form.onLoad(function(cId){ var client = new amun.client(cId); client.beforeSubmit(function(){ $('#' + this.getContainerId() + ' input[typ...
JavaScript
amun.services.page = { loadForm: function(cId, url){ var form = new amun.form(cId, url); form.onError(function(msg){ $('#response').html('<div class="alert alert-error">' + msg + '</div>'); }); form.onLoad(function(cId){ var client = new amun.client(cId); client.beforeSubmit(function(){ ...
JavaScript
amun.services.forum = { returnUrl: null, loadForm: function(cId, url){ var form = new amun.form(cId, url); form.onError(function(msg){ $('#response').html('<div class="alert alert-error">' + msg + '</div>'); }); form.onLoad(function(cId){ var client = new amun.client(cId); client.beforeSubm...
JavaScript
amun.services.googleproject = { loadForm: function(cId, url){ var form = new amun.form(cId, url); form.onError(function(msg){ $('#response').html(msg); }); form.onLoad(function(cId){ var client = new amun.client(cId); client.beforeSubmit(function(){ $('#' + this.getContainerId() + ' inpu...
JavaScript
/* * $Id: default.js 875 2012-09-30 13:51:45Z k42b3.x@googlemail.com $ * * amun * A social content managment system based on the psx framework. For * the current version and informations visit <http://amun.phpsx.org> * * Copyright (c) 2010 Christoph Kappestein <k42b3.x@gmail.com> * * This file is par...
JavaScript
amun.services.comment = { loadForm: function(cId, url){ var form = new amun.form(cId, url); form.onError(function(msg){ $('#response').html(msg); }); form.onLoad(function(cId){ var client = new amun.client(cId); client.beforeSubmit(function(){ $('#' + this.getContainerId() + ' input[type...
JavaScript
amun.services.pipe = { loadForm: function(cId, url){ var form = new amun.form(cId, url); form.onError(function(msg){ $('#response').html('<div class="alert alert-error">' + msg + '</div>'); }); form.onLoad(function(cId){ var client = new amun.client(cId); client.beforeSubmit(function(){ ...
JavaScript
amun.services.news = { loadForm: function(cId, url) { var form = new amun.form(cId, url); form.onError(function(msg){ $('#response').html('<div class="alert alert-error">' + msg + '</div>'); }); form.onLoad(function(cId){ var client = new amun.client(cId); client.beforeSubmit(function(){ ...
JavaScript
amun.services.plugin = { loadForm: function(cId, url) { var form = new amun.form(cId, url); form.onError(function(msg){ $('#response').html(msg); }); form.onLoad(function(cId){ var client = new amun.client(cId); client.beforeSubmit(function(){ $('#' + this.getContainerId() + ' input[type...
JavaScript
/* * $Id: default.js 875 2012-09-30 13:51:45Z k42b3.x@googlemail.com $ * * amun * A social content managment system based on the psx framework. For * the current version and informations visit <http://amun.phpsx.org> * * Copyright (c) 2010 Christoph Kappestein <k42b3.x@gmail.com> * * This file is par...
JavaScript
/* * $Id: amun.js 879 2012-10-03 17:46:43Z k42b3.x@googlemail.com $ * * amun * A social content managment system based on the psx framework. For * the current version and informations visit <http://amun.phpsx.org> * * Copyright (c) 2010 Christoph Kappestein <k42b3.x@gmail.com> * * This file is part of amun. a...
JavaScript
Ext.define('Workbench.view.Navigation', { extend: 'Ext.panel.Panel', alias: 'widget.navigation', title: 'Navigation', border: 0, layout: 'accordion', items: [], initComponent: function() { var nav = this.getNavigation(); for (var i = 0; i < nav.length; i++) {...
JavaScript
Ext.define('Workbench.view.Content', { extend: 'Ext.tab.Panel', alias: 'widget.content', title: 'Content', border: false, cls: 'wb-content', minTabWidth: 64, items: [], initComponent: function(){ /* var dashboard = { title: 'Dashboard', ...
JavaScript
Ext.define('Workbench.controller.Navigation', { extend: 'Ext.app.Controller', views: ['Navigation'], models: ['NavigationEntry'], controllers: ['Content'], init: function() { this.control({ 'dataview[cls=wb-navigation]': { itemclick: this.onLinkClick...
JavaScript
Ext.define('Workbench.controller.Content', { extend: 'Ext.app.Controller', views: ['Content'], refs: [{ selector: 'panel[cls=wb-content]', ref: 'gridContainer' }], selectedService: null, statics: { recordId: null, windowCache: {} }, i...
JavaScript
Ext.define('Workbench.model.NavigationEntry', { extend: 'Ext.data.Model', fields: [ { name: 'title', type: 'string' }, { name: 'type', type: 'string' } ] });
JavaScript
Ext.define('Amun.Service', { uri: null, types: null, constructor: function(config){ config = config || {}; Ext.apply(this, config); }, hasType: function(type){ for (var i = 0; i < this.types.length; i++) { if (this.types[i] == type) { ...
JavaScript
Ext.define('Amun.ColumnConfig', { extend: 'Ext.util.HashMap', constructor: function(config){ this.callParent(arguments); this.loadConfig(); }, loadConfig: function(){ this.add('http://ns.amun-project.org/2011/amun/content/page', { id: '60', ...
JavaScript
Ext.define('Amun.user.group.Form', { extend: 'Amun.Form', initComponent: function(){ var me = this; me.callParent(); // load group rights this.loadRights(); }, loadRights: function(){ var rightUri = Amun.xrds.Manager.findServiceUri('http://ns.amun...
JavaScript
Ext.define('Amun.content.page.Grid', { extend: 'Ext.panel.Panel', tree: null, grid: null, initComponent: function(){ var me = this; var config = { layout: 'border', border: false, items: [this.buildTree(), this.buildGrid()] };...
JavaScript
Ext.define('Amun.content.page.Form', { extend: 'Amun.Form', initComponent: function(){ var me = this; me.callParent(); // load group gadgets this.loadGadgets(); }, loadGadgets: function(){ var gadgetUri = Amun.xrds.Manager.findServiceUri('http://n...
JavaScript
Ext.define('Amun.Editor', { extend: 'Ext.form.field.Text', alias: 'widget.aceeditor', editorId: null, editor: null, initComponent: function(){ var me = this; me.editorId = Ext.id(); var config = { width: 640, height: 300, ...
JavaScript
Ext.define('Amun.Grid', { extend: 'Ext.grid.Panel', service: null, result: null, selectedRecordId: null, windowCache: {}, initComponent: function(){ var me = this; me.addEvents('reload'); var el = this.buildGrid(this.service, this.result); Ext....
JavaScript
Ext.require('Amun.Editor'); Ext.define('Amun.Form', { extend: 'Ext.form.Panel', formMethod: 'POST', initComponent: function(){ var me = this; me.addEvents('submit', 'reset'); var el = this.parseElements(this.form); Ext.apply(me, el); me.callParent...
JavaScript
Ext.define('Amun.xrds.Manager', { singleton: true, services: [], discover: function(options){ options = options || {}; var me = this, scope = options.scope || window; Ext.Ajax.request({ url: psx_url, scope: this, succe...
JavaScript
Ext.require('Amun.Auth'); Ext.require('Amun.xrds.Manager'); Ext.define('Amun.Application', { user: null, services: null, constructor: function(config){ config = config || {}; Ext.apply(this, config); }, statics: { columnConfig: Ext.create('Amun.ColumnConfi...
JavaScript
Ext.define('Amun.User', { name: null, thumbnailUrl: null, constructor: function(config){ config = config || {}; Ext.apply(this, config); } });
JavaScript
Ext.define('Amun.Auth', { singleton: true, verify: function(options){ options = options || {}; var me = this, scope = options.scope || window; // find credentials service var uri = Amun.xrds.Manager.findServiceUri('http://ns.amun-project.org/2011/amun/ser...
JavaScript
/* * $Id: workbench.js 842 2012-09-16 11:46:35Z k42b3.x@googlemail.com $ * * amun * A social content managment system based on the psx framework. For * the current version and informations visit <http://amun.phpsx.org> * * Copyright (c) 2010 Christoph Kappestein <k42b3.x@gmail.com> * * This file is part of am...
JavaScript
public class Pistol extends Weapon{ public function Pistol(){ var name: String = "Pistol"; var magCapacity: int = 12; var power: int = 17; var fireRate: double = 0.5; var reloadTime: double = 1.0; var oneHanded: boolean = true; var range: int = 100; var ammoPool:int =51; super(name, magCapacity,...
JavaScript
public class AssaultRifle extends Weapon{ public function AssaultRifle(){ var name: String = "Assault Rifle"; var magCapacity: int = 30; var power: int = 30; var fireRate: double = 0.25; var reloadTime: double = 1.0; var oneHanded: boolean = false; var range: int = 100; var ammoPool:int =90; sup...
JavaScript
public class Weapon extends UnityEngine.MonoBehaviour{ private var wName: String; private var magCap:int; //private static var weight:int; //I dont think we need this.... private var pow:int; //This is how much is subtracted from enemy or player health private var oneHanded:boolean; private var fireRate:double;...
JavaScript
public class SMG extends Weapon{ public function SMG(){ var name = "SMG"; var magCapacity:int = 51; var power:int = 12; var oneHanded:boolean=false; var fireRate:double = 0.1; var reloadTime: double = 3; var range:int=50; var ammoPool:int = 100; super(name, magCapacity, power, fireRate, rel...
JavaScript