code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
//Script by Aneesh of www.bloggerplugins.org
//Released on August 19th August 2009
// Modified By Maskolis
var relatedTitles = new Array();
var relatedTitlesNum = 0;
var relatedUrls = new Array();
var thumburl = new Array();
function related_results_labels_thumbs(json) {
for (var i = 0; i < json.feed.entry.leng... | JavaScript |
/* Simple Image Panner and Zoomer (March 11th, 10)
* This notice must stay intact for usage
* Author: Dynamic Drive at http://www.dynamicdrive.com/
* Visit http://www.dynamicdrive.com/ for full source code
*/
// v1.1 (March 25th, 10): Updated with ability to zoom in/out of image
jQuery.noConflict()
var dd... | JavaScript |
Cms={};
Cms.lmenu = function(id) {
var m = $('#' + id);
m.addClass('lmenu');
m.children().each(function() {
$(this).children('a').bind('click', function() {
$(this).parent().addClass("lmenu-focus");
$(this).blur();
var li = m.focusElement;
if (li && li!=this) {
$(li).parent().removeClass(... | JavaScript |
Pn = {
version : '1.0'
};
/**
* get url parameter
*/
Pn.getParam = function(key) {
var params = location.search.substr(1).split('&');
var kv;
for (var i = 0;i < params.length; i++) {
kv = params[i].split('=');
if (kv[0] == key) {
return kv[1];
}
}
};
/**
* check checkbox.
*
* @par... | JavaScript |
$.metadata.setType("attr", "vld");
$.validator.AlertError = {
invalidHandler : function(form, validator) {
var errors = validator.numberOfInvalids();
if (errors) {
for (var name in validator.invalid) {
alert(validator.invalid[name]);
return;
}
}
},
showErrors : function(errors) {
}... | JavaScript |
/**
* AJAX Upload ( http://valums.com/ajax-upload/ )
* Copyright (c) Andrew Valums
* Licensed under the MIT license
*/
(function () {
/**
* Attaches event to a dom element.
* @param {Element} el
* @param type event name
* @param fn callback This refers to the passed element
... | JavaScript |
Cms = {};
/**
* 浏览次数
*/
Cms.viewCount = function(base, contentId, viewId, commentId, downloadId, upId,
downId) {
viewId = viewId || "views";
commentId = commentId || "comments";
downloadId = downloadId || "downloads";
upId = upId || "ups";
downId = downId || "downs";
$.getJSON(base + "/content_view... | JavaScript |
Pn = {
version : '1.0'
};
Pn.Editor = function() {
this.init();
}
Pn.Editor.prototype.init = function() {
//菜单名称
Pn.Editor.menuName=['_fontname','_fontsize','_forecolor','_link','_email','_image'];
Pn.Editor.menu=[];
Pn.Editor.popup=[];
Pn.Editor.editor = $('#_editor_textarea');
Pn.Editor.txtare... | JavaScript |
var selectNum = 0;
var total = 0;
var inputValue;
var lastValue;
var submitTimer;
var hideTimer;
function flushColor(num, color,highlightcolor, id){
for(var i = 1;i<=num;i++){
$("#"+i).css("color",color);
}
$("#"+selectNum).css("color",highlightcolor);
if(id){
setValue(id);
}
}
function setVal... | JavaScript |
(function($){
//closeDOMWindow
$.fn.closeDOMWindow = function(settings){
if(!settings){settings={};}
var run = function(passingThis){
if(settings.anchoredClassName){
var $anchorClassName = $('.'+settings.anchoredClassName);
$anchorClassName.fadeOut('fast',function(){
if($.fn.draggable)... | JavaScript |
PnEditor = function() {
this.init();
}
PnEditor.prototype.init = function() {
//菜单名称
PnEditor.menuName=['_fontname','_fontsize','_forecolor','_link','_email','_image'];
PnEditor.menu=[];
PnEditor.popup=[];
PnEditor.editor = $('#_editor_textarea');
PnEditor.txtarea = PnEditor.editor[0];
PnEditor.fil... | JavaScript |
/*
* Thickbox 3.1 - One Box To Rule Them All.
* By Cody Lindley (http://www.codylindley.com)
* Copyright (c) 2007 cody lindley
* Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/
var tb_pathToImage = "images/loadingAnimation.gif";
/*!!!!!!!!!!!!!!!!! edit below this line at... | JavaScript |
/**
* jQuery wBox plugin
* wBox是一个轻量级的弹出窗口jQuery插件,基于jQuery1.4.2开发,
* 主要实现弹出框的效果,并且加入了很多有趣的功能,比如可img灯箱效果,callback函数,显示隐藏层,Ajax页面,iframe嵌入页面等功能
* @name wBox
* @author WangYongqing - http://www.js8.in(王永清 http://www.js8.in)
* @version 0.1
* @copyright (c) 2010 WangYongqing (js8.in)
* @example Visit http:/... | JavaScript |
/**
* @authors Luke Mahe
* @authors Eric Bidelman
* @fileoverview TODO
*/
document.cancelFullScreen = document.webkitCancelFullScreen ||
document.mozCancelFullScreen;
/**
* @constructor
*/
function SlideDeck(el) {
this.curSlide_ = 0;
this.prevSlide_ = 0;
this.config_ = null;
t... | JavaScript |
(function(window) {
var ORIGIN_ = location.protocol + '//' + location.host;
function SlideController() {
this.popup = null;
this.isPopup = window.opener;
if (this.setupDone()) {
window.addEventListener('message', this.onMessage_.bind(this), false);
// Close popups if we reload the main window.
win... | JavaScript |
/*
Copyright (C) 2011 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwa... | JavaScript |
/*
* Hammer.JS
* version 0.4
* author: Eight Media
* https://github.com/EightMedia/hammer.js
*/
function Hammer(element, options, undefined)
{
var self = this;
var defaults = {
// prevent the default event or not... might be buggy when false
prevent_default : false,
css_hacks ... | JavaScript |
require(['order!../slide_config', 'order!modernizr.custom.45394',
'order!prettify/prettify', 'order!hammer', 'order!slide-controller',
'order!slide-deck'], function(someModule) {
});
| JavaScript |
var SLIDE_CONFIG = {
// Slide settings
settings: {
title: 'Title Goes Here<br>Up To Two Lines',
subtitle: 'Subtitle Goes Here',
//eventInfo: {
// title: 'Google I/O',
// date: '6/x/2013'
//},
useBuilds: true, // Default: true. False will turn off slide animation builds.
usePrettify... | JavaScript |
var siteIdfc = '15718391702910404470';
if(typeof idSiteFriendConnectGue != 'undefined'){siteIdfc = idSiteFriendConnectGue}
var idAplikasi = '193149077428986';
if(typeof idAplikasiGue != 'undefined'){idAplikasi = idAplikasiGue}
var fbLikers = '276602519055008_276611005720826';
if(typeof postIdBuatFbLikers != ... | JavaScript |
jQuery(window).load(function () {
setTimeout(function () {
$("#link").attr("href","https://andro-city-files.googlecode.com/svn/pace-theme-flat-top.css");
$("#load-white").remove();
}, 1500);
});
$(document).ready(function(){
$('#q').each(function(){
if ($(this) == $.focused()) {
alert("fo... | JavaScript |
(function() {
var AjaxMonitor, Bar, DocumentMonitor, ElementMonitor, ElementTracker, EventLagMonitor, Evented, Events, NoTargetError, RequestIntercept, SOURCE_KEYS, Scaler, SocketRequestTracker, XHRRequestTracker, animation, avgAmplitude, bar, cancelAnimation, cancelAnimationFrame, defaultOptions, extend, extendNativ... | JavaScript |
/**Example Usage:**/
if(jQuery.browser.mobile)
{
$("#pc").remove();
}
else
{
$("#mobile").remove();
}
/**Detect iPhone**/
var isiPhone = /iphone/i.test(navigator.userAgent.toLowerCase());
if (isiPhone)
{
$("#pc").remove();
}
else
{
$("#mobile").remove();
}
/**Detect iPod**/
var isiPod = /ipod/i.test(navigator.userA... | JavaScript |
var ec2ui_LeaseOfferingsTreeView = {
COLNAMES : ['offering.id',
'offering.instanceType',
'offering.azone',
'offering.duration',
'offering.fixedPrice',
'offering.usagePrice',
'offering.description'],
imageIdRegex : ne... | JavaScript |
// controller: slightly higher level of abstraction over the EC2 API
var ec2ui_controller = {
getNsResolver : function() {
return ec2_httpclient.getNsResolver();
},
registerImageInRegion : function(manifestPath, region, callback) {
region = region.toLowerCase();
// Determine the cu... | JavaScript |
var ec2_SecurityGroupDetails = {
init : function() {
var group = window.arguments[0];
document.getElementById("ec2ui.secgroup.name").value = group.name;
document.getElementById("ec2ui.secgroup.ownerid").value = group.ownerId;
document.getElementById("ec2ui.secgroup.description").valu... | JavaScript |
/////////////////////////////////////////////////
/////////////////////////////////////////////////
//
// Basic JavaScript File and Directory IO module
// By: MonkeeSage, v0.1
//
/////////////////////////////////////////////////
/////////////////////////////////////////////////
if (typeof(JSIO) != 'boolean') {
var ... | JavaScript |
function empty() { } ;
var ec2_httpclient = {
handler : null,
ec2ui_session : null,
uri : null,
auxObj : null,
serviceURL : null,
accessCode : null,
secretKey : null,
timers : {},
// Change the name since Eucalyptus 1.6.2 has a problem with Elasticfox.
USER_AGENT : "Hybridfox... | JavaScript |
var ec2ui_BundleTasksTreeView = {
COLNAMES: [
'bun.id',
'bun.instanceId',
'bun.state',
'bun.startTime',
'bun.updateTime',
'bun.s3bucket',
'bun.s3prefix',
'bun.errorMsg'
],
treeBox: null,
selection: null,
selectedBundleId: null,
task... | JavaScript |
var ec2_VolumeAttacher = {
ec2ui_session : null,
retVal : null,
volumeId : null,
attach : function() {
if (!this.validateDevice()) return false;
this.retVal.instanceId = document.getElementById("ec2ui.newattachment.instanceId").value.split(":")[0];
this.retVal.volumeId = this.volumeId;
this.re... | JavaScript |
// Copyright (c) 2005 Tom Wu
// All Rights Reserved.
// See "LICENSE" for details.
// Basic JavaScript BN library - subset useful for RSA encryption.
// Bits per digit
var dbits;
// JavaScript engine analysis
var canary = 0xdeadbeefcafe;
var j_lm = ((canary&0xffffff)==0xefcafe);
// (public) Constructor
function Bi... | JavaScript |
var ec2_KeyPairDetails = {
init : function() {
var keypair = window.arguments[0];
document.getElementById("ec2ui.keypair.name").value = keypair.name;
document.getElementById("ec2ui.keypair.fingerprint").value = keypair.fingerprint;
}
}
| JavaScript |
function generateCSVForObject(obj) {
var pairs = new Array();
for (k in obj) {
if (obj.hasOwnProperty(k)) {
var v = obj[k];
if (v != null) {
if (typeof v === 'object') {
pairs.push(generateCSVForObject(v));
} else if (typeof v !... | JavaScript |
var ec2_SnapshotDetails = {
init : function() {
var snapshot = window.arguments[0];
document.getElementById("ec2ui.snapshot.id").value = snapshot.id;
document.getElementById("ec2ui.snapshot.volumeId").value = snapshot.volumeId;
document.getElementById("ec2ui.snapshot.status").value =... | JavaScript |
/*
* A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined
* in FIPS PUB 180-1
* Version 2.1a Copyright Paul Johnston 2000 - 2002.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/md5 for details.
*/
/*
*... | JavaScript |
var ec2ui_AvailZoneTreeView = {
COLNAMES : ['azone.name','azone.state'],
treeBox : null,
selection : null,
arrLocalFiles : new Array(),
zoneList : new Array(),
registered : false,
get rowCount() { return this.zoneList.length; },
setTree : function(treeBox) { this.treeBo... | JavaScript |
var ec2_EIPSelector = {
ec2ui_session : null,
instanceId : null,
retVal : null,
eipList : null,
attach : function() {
var eipMenu = document.getElementById("ec2ui.selectEIP.eip");
var selected = eipMenu.selectedIndex;
var eipSel = this.eipList[selected];
if (eipSel.instanceid != null && eip... | JavaScript |
var ec2ui_toolsManager = {
tools : new Array(),
initDialog : function() {
ec2ui_prefs.init();
document.getElementById("ec2ui.tools.ssh.command").value = ec2ui_prefs.getSSHCommand();
document.getElementById("ec2ui.tools.ssh.args").value = ec2ui_prefs.getSSHArgs();
document.getElementById("... | JavaScript |
var ec2ui_endpointsTreeView = {
COLNAMES: ['endpoint.name','endpoint.type','endpoint.url'],
treeBox: null,
selection: null,
endpointlist : new Array(),
get rowCount() { return this.endpointlist.length; },
setTree : function(treeBox) { this.treeBox = treeBox; },
ge... | JavaScript |
var ec2_AMIDetails = {
init : function() {
var image = window.arguments[0];
document.getElementById("ec2ui.ami.id").value = image.id;
document.getElementById("ec2ui.ami.location").value = image.location;
document.getElementById("ec2ui.ami.aki").value = image.aki;
document.get... | JavaScript |
// Depends on jsbn.js and rng.js
// convert a (hex) string to a bignum object
function parseBigInt(str,r) {
return new BigInteger(str,r);
}
function linebrk(s,n) {
var ret = "";
var i = 0;
while(i + n < s.length) {
ret += s.substring(i,i+n) + "\n";
i += n;
}
return ret + s.substring(i,s.length);
}... | JavaScript |
var ec2ui_InstancesTreeView = {
COLNAMES : [
'instance.resId',
'instance.ownerId',
'instance.id',
'instance.imageId',
'instance.kernelId',
'instance.ramdiskId',
'instance.state',
'instance.publicDnsName',
'instance.privateDnsName',
'instance.keyN... | JavaScript |
function getEC2WindowsDeviceList() {
var devlist = new Array();
devlist["xvdg"] = "xvdg";
devlist["xvdh"] = "xvdh";
devlist["xvdi"] = "xvdi";
devlist["xvdj"] = "xvdj";
devlist["xvdk"] = "xvdk";
devlist["xvdl"] = "xvdl";
devlist["xvdm"] = "xvdm";
devlist["xvdn"] = "xvdn";
devlist[... | JavaScript |
var ec2_EBSVolumeAttacher = {
ec2ui_session : null,
retVal : null,
instanceId : null,
volList : null,
attach : function() {
if (!this.validateDevice()) return false;
this.retVal.device = document.getElementById("ec2ui.attachebsvolume.device").value;
var idxSel = document.ge... | JavaScript |
function encodeJSONMap(map) {
var pairs = new Array();
for (k in map) {
if (map.hasOwnProperty(k)) {
var v = map[k];
if (v != null) {
if (typeof v === 'object') {
pairs.push("'"+k+"':"+encodeJSONMap(v));
} else if (typeof v != '... | JavaScript |
var ec2_ElasticIPDetails = {
init : function() {
var eip = window.arguments[0];
document.getElementById("ec2ui.eip.address").value = eip.address;
document.getElementById("ec2ui.eip.instanceid").value = eip.instanceid;
document.getElementById("ec2ui.eip.tag").value = eip.tag || "";
}
}
| JavaScript |
var ec2_OfferingPurchaser = {
offering : null,
retVal : null,
purchase : function() {
if (!this.validateInstanceCount()) return false;
this.retVal.count = document.getElementById("ec2ui.purchase.offering.count").value.trim();
this.retVal.ok = true;
return true;
},
... | JavaScript |
var ec2ui_ElasticIPTreeView = {
COLNAMES : ['eip.address','eip.instanceid'],
treeBox : null,
selection : null,
arrLocalFiles : new Array(),
eipList : new Array(),
registered : false,
imageIdRegex : new RegExp("^\\d+\\.\\d+\\.\\d+\\.\\d+"),
get rowCount() { return this.eipList.length; },... | JavaScript |
var ec2ui_endpointManager = {
endpointmap : null,
initDialog : function() {
this.endpointmap = window.arguments[0];
document.getElementById("ec2ui.endpoints.view").view = ec2ui_endpointsTreeView;
ec2ui_endpointsTreeView.setMapping(this.endpointmap);
var lastEndpointName = ec2u... | JavaScript |
var ec2_ReservedInstancesDetails = {
init : function() {
var image = window.arguments[0];
document.getElementById("ec2ui.rsvdInst.id").value = image.id;
document.getElementById("ec2ui.rsvdInst.instType").value = image.instanceType;
document.getElementById("ec2ui.rsvdInst.azone").valu... | JavaScript |
var ec2_VolumeCreator = {
ec2ui_session : null,
retVal : null,
create : function() {
this.retVal.size = document.getElementById("ec2ui.newvolume.size").value.trim();
if (this.retVal.size.length == 0) this.retVal.size = null;
this.retVal.snapshotId = document.getElementById("ec2ui.n... | JavaScript |
var ec2_Authorizer = {
group : null,
unusedSecGroupsList : null,
usedSecGroupsList : null,
unused : new Array(),
used : new Array(),
ec2ui_session : null,
retval : null,
authorize : function() {
// Get the group's name
var newPerm = new Object();
newPerm.groupName = this.group.name;
//... | JavaScript |
var ec2ui_accountIdsTreeView = {
COLNAMES : ['accountids.accountid','accountids.displayname'],
treeBox: null,
selection: null,
accountidlist : new Array(),
get rowCount() { return this.accountidlist.length; },
setTree : function(treeBox) { this.treeBox = treeBox; },
getCellText : fun... | JavaScript |
/*
*
* Base64 encode / decode
* http://www.webtoolkit.info/javascript-base64.html
*
*/
// I'm using this even though there's a base64 implementation in sha1.js
// because it doesn't seem to deal with strings of odd-length and the 5 minutes
// I've spent looking at it doesn't suggest anything obvious. I have no ... | JavaScript |
var ec2_LeaseOfferingDetails = {
init : function() {
var image = window.arguments[0];
document.getElementById("ec2ui.offering.id").value = image.id;
document.getElementById("ec2ui.offering.instType").value = image.instanceType;
document.getElementById("ec2ui.offering.azone").value = ... | JavaScript |
var ec2ui_AMIsTreeView = {
COLNAMES: ['ami.id',
'ami.location',
'ami.state',
'ami.owner',
'ami.isPublic',
'ami.arch',
'ami.platform',
'ami.rootDeviceType',
'ami.tag'],
launchPermissionList : n... | JavaScript |
var ec2ui_accountIdManager = {
accountidmap : null,
initDialog : function() {
this.accountidmap = window.arguments[0];
document.getElementById("ec2ui.accountids.view").view = ec2ui_accountIdsTreeView;
ec2ui_accountIdsTreeView.setMapping(this.accountidmap);
document.getElementBy... | JavaScript |
var ec2_BundleTaskDetails = {
init : function() {
var task = window.arguments[0];
document.getElementById("ec2ui.bundleTask.id").value = task.id;
document.getElementById("ec2ui.bundleTask.state").value = task.state;
document.getElementById("ec2ui.bundleTask.startTime").value = task.startTime;... | JavaScript |
var ec2ui_S3_KeyCopier = {
session : null,
srcKeys : null,
params : null,
fContinue : true,
// The Total number of copy requests issued.
// This can be different from the total # keys
// to be copied if the user hit CANCEL
// The total # of keys to be migrated
totalKeys : 0,
//... | JavaScript |
// Copyright (c) 2005 Tom Wu
// All Rights Reserved.
// See "LICENSE" for details.
// Extended JavaScript BN functions, required for RSA private ops.
// (public)
function bnClone() { var r = nbi(); this.copyTo(r); return r; }
// (public) return value as integer
function bnIntValue() {
if(this.s < 0) {
if(this... | JavaScript |
var ec2_InstanceLauncher = {
image : null,
ec2ui_session : null,
retVal : null,
unusedSecGroupsList : null,
usedSecGroupsList : null,
unused : new Array(),
used : new Array(),
launch : function() {
if (!this.validateMin()) return false;
if (!this.validateMax()) return fa... | JavaScript |
var ec2ui_ReservedInstancesTreeView = {
COLNAMES: ['rsvdInst.id',
'rsvdInst.instanceType',
'rsvdInst.azone',
'rsvdInst.start',
'rsvdInst.duration',
'rsvdInst.fixedPrice',
'rsvdInst.usagePrice',
'rsvdInst.count',... | JavaScript |
var ec2ui_AMIDeleter = {
session : null,
imageLoc : null,
getProgressMeter : function() {
if (document)
return document.getElementById("ec2ui.delete.ami.progress");
},
getCurrentOperation : function() {
if (document)
return document.getElementById("ec2ui.del... | JavaScript |
var ec2_InstanceConsole = {
init : function() {
document.getElementById("ec2ui.console.instanceid").value = window.arguments[0];
document.getElementById("ec2ui.console.timestamp").value = window.arguments[1];
var output = "<no output available>";
if (window.arguments[2] != null) {
... | JavaScript |
var ec2ui_PermissionsTreeView = {
COLNAMES : ['permission.protocol','permission.fromPort','permission.toPort','permission.groups','permission.cidrs'],
treeBox : null,
selection : null,
permissionList : new Array(),
get rowCount() { return this.permissionList.length; },
setTree : function(t... | JavaScript |
// "Classes" representing objects like AMIs, Instances etc.
function Credential(name, accessKey, secretKey, regionPref) {
this.name = name;
this.accessKey = accessKey;
this.secretKey = secretKey;
this.regionPref = regionPref;
}
function AccountIdName(id, name) {
this.accountid = id;
this.displa... | JavaScript |
var ec2ui_SecurityGroupsTreeView = {
COLNAMES : ['securitygroup.ownerId','securitygroup.name','securitygroup.description'],
treeBox : null,
selection : null,
groupList : new Array(),
registered : false,
get rowCount() { return this.groupList.length; },
setTree : function(treeBox) {... | JavaScript |
/* With due thanks to http://whytheluckystiff.net */
/* other support functions -- thanks, ecmanaut! */
var strftime_funks = {
zeropad: function( n ){ return n>9 ? n : '0'+n; },
a: function(t) { return ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'][t.getDay()] },
A: function(t) { return ['Sunday','Monday','Tuedsay',... | JavaScript |
var BaseImagesView = {
COLNAMES: [],
treeBox: null,
selection: null,
selectedImageId: null, // for preserving selection across filters and refreshes
imageList : new Array(),
registered : false,
get rowCount() { return this.imageList.length; },
setTree : function(treeBox) { thi... | JavaScript |
var ec2_InstanceBundler = {
id : null,
ec2ui_session : null,
retVal : null,
getBucketName : function() {
return document.getElementById("ec2ui.bundleInstance.bucketName");
},
getPrefix : function() {
return document.getElementById("ec2ui.bundleInstance.prefix");
},
bun... | JavaScript |
// Depends on rsa.js and jsbn2.js
// Undo PKCS#1 (type 2, random) padding and, if valid, return the plaintext
function pkcs1unpad2(d,n) {
var b = d.toByteArray();
var i = 0;
while(i < b.length && b[i] == 0) ++i;
if(b.length-i != n-1 || b[i] != 2)
return null;
++i;
while(b[i] != 0)
if(++i >= b.lengt... | JavaScript |
var ec2_VolumeDetails = {
init : function() {
var volume = window.arguments[0];
document.getElementById("ec2ui.volume.id").value = volume.id;
document.getElementById("ec2ui.volume.size").value = volume.size;
document.getElementById("ec2ui.volume.snapshotId").value = volume.snapshotId... | JavaScript |
var ec2_InstanceDetails = {
init : function() {
var session = window.arguments[0];
var instance = window.arguments[1];
document.getElementById("ec2ui.instance.resid").value = instance.resId;
document.getElementById("ec2ui.instance.instanceid").value = instance.id;
var amiLab... | JavaScript |
var ec2_SecGroupCreator = {
ec2ui_session : null,
retVal : null,
createGroup : function() {
if (!this.validateGroupName()) return false;
if (!this.validateGroupDesc()) return false;
this.retVal.name = document.getElementById("ec2ui.newsecgroup.name").value.trim();
this.retVa... | JavaScript |
var ec2_ImageRegistrar = {
ec2ui_session : null,
retVal : null,
getTextBox : function() {
return document.getElementById("ec2ui.newimage.manifest");
},
registerImage : function() {
if (!this.validateManifest()) return false;
this.retVal.manifestPath = this.getTextBox().valu... | JavaScript |
//main object that holds the current session information
var ec2ui_session =
{
accessCode : "",
secretKey : "",
initialized : false,
controller : null,
model : null,
credentials : null,
accountidmap : null,
endpointmap : null,
instanceTags ... | JavaScript |
var ec2ui_credentialsTreeView = {
COLNAMES: ['credential.name','credential.accessKey'],
treeBox: null,
selection: null,
credentials : new Array(),
get rowCount() { return this.credentials.length; },
setTree : function(treeBox) { this.treeBox = treeBox; },
getCellText : function(idx, col... | JavaScript |
var ec2_PermissionDetails = {
init : function() {
var perm = window.arguments[0];
document.getElementById("ec2ui.permission.protocol").value = perm.protocol;
document.getElementById("ec2ui.permission.fromport").value = perm.fromPort;
document.getElementById("ec2ui.permission.toport")... | JavaScript |
var ec2ui_KeypairTreeView = {
COLNAMES : ['keypair.name','keypair.fingerprint'],
treeBox : null,
selection : null,
arrLocalFiles : new Array(),
keypairList : new Array(),
registered : false,
get rowCount() { return this.keypairList.length; },
setTree : function(treeBox) { t... | JavaScript |
var ec2_AMIMigrator = {
image : null,
session : null,
retVal : null,
manifest : null,
regionSelected : null,
getSourceBucketName : function() {
return document.getElementById("ec2ui.migrateAMI.bucketName.source");
},
getDestBucketName : function() {
return document.getE... | JavaScript |
// Functions to parse the EC2 RSA Private Key
// A BER object has 3 pieces
// type: (Numeric)
// Array: (Byte array)
// Value (Defined for integer)
// Expects a byte array, returns the values in hex
function parseRSAKey(bytes) {
var location = 0;
var key = new Object()
// Step 1 is to remove the wrapper
... | JavaScript |
var ec2ui_credentialManager = {
REALM : "chrome://ec2ui/",
HOST : "chrome://ec2ui/",
credentials : new Array(),
endpointmap : null,
initDialog : function() {
ec2ui_prefs.init();
document.getElementById("ec2ui.credentials.view").view = ec2ui_credentialsTreeView;
this.credentials = thi... | JavaScript |
var ec2ui_SnapshotTreeView = {
COLNAMES: ['snap.id', 'snap.volumeId', 'snap.volumeSize', 'snap.status', 'snap.startTime',
'snap.progress', 'snap.tag'],
imageIdRegex : new RegExp("^snap-"),
getSearchText : function() {
return document.getElementById('ec2ui.snapshots.search').value;
... | JavaScript |
// XpiInstaller
// By Pike (Heavily inspired by code from Henrik Gemal and Stephen Clavering)
var XpiInstaller = {
// --- Editable items begin ---
extFullName: 'Hybridfox', // The name displayed to the user (don't include the version)
extShortName: 'ec2ui', // The leafname of the JAR file (without the .ja... | JavaScript |
function toDegree(radians) {
return radians * 180 / Math.PI;
}
function toRadians(degree) {
return degree * Math.PI / 180;
}
function draw(test){
var canvas = document.getElementById(test.name);
if (canvas.getContext){
var gc = canvas.getContext('2d');
test(gc)
}
}
function exe... | JavaScript |
/*!
* validation.js
*
* Client Validation for Bootstrap Forms
*
* Requires use of jQuery.
* Tested with jQuery 1.7
*
* Copyright (c) 2012 Johannes Geppert http://www.jgeppert.com
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/l... | JavaScript |
//=============================================================================
// System : Sandcastle Help File Builder
// File : TOC.js
// Author : Eric Woodruff (Eric@EWoodruff.us)
// Updated : 04/11/2008
// Note : Copyright 2006-2008, Eric Woodruff, All rights reserved
// Compiler: JavaScript
//
//... | JavaScript |
//=============================================================================
// System : Color Syntax Highlighter
// File : Highlight.js
// Author : Eric Woodruff (Eric@EWoodruff.us)
// Updated : 11/13/2007
// Note : Copyright 2006, Eric Woodruff, All rights reserved
//
// This contains the script to... | JavaScript |
/**
@preserve CLEditor WYSIWYG HTML Editor v1.3.0
http://premiumsoftware.net/cleditor
requires jQuery v1.4.2 or later
Copyright 2010, Chris Landowski, Premium Software, LLC
Dual licensed under the MIT or GPL Version 2 licenses.
*/
// ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
// @... | JavaScript |
function loadPartiview(elementSelector, urls) {
$.ajax({
url: urls,
type: 'GET',
dataType: 'html', // <-- to expect an html response
success: function (result) {
jQuery("" + elementSelector + "").html(result);
}
});
return false;
}
functi... | JavaScript |
// Andy Langton's show/hide/mini-accordion @ http://andylangton.co.uk/jquery-show-hide
// this tells jquery to run the function below once the DOM is ready
$(document).ready(function() {
// choose text for the show/hide link - can contain HTML (e.g. an image)
var showText='Show';
var hideText='Hide';
// initialise ... | JavaScript |
// make sure the $ is pointing to JQuery and not some other library
(function($){
// add a new method to JQuery
$.fn.equalHeight = function() {
// find the tallest height in the collection
// that was passed in (.column)
tallest = 0;
this.each(function(... | JavaScript |
(function ($, undefined) {
$.extend(_TMS, {
presets:{
zoomer:{"reverseWay":false,"duration":"800","interval":"1","blocksX":"1","blocksY":"1","easing":"","way":"lines","anim":"zoomer",k:1.8,crds:{bottom:0,right:0}},
fadeThree:{"reverseWay":false,"duration":"800","interval":"1","blocksX":"1","blocksY":"1"... | JavaScript |
$(window).load(function () {
$('.slider')._TMS({
preset: 'diagonalExpand',
easing: 'easeOutQuad',
duration: 800,
pagination: true,
slideshow: 6000
});
})
$(document).ready(function () {
// initialise plugin
var example = $('ul#menu').superfish({
... | JavaScript |
/*
* Superfish v1.7.3 - jQuery menu widget
* Copyright (c) 2013 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
*/
;(function($) {
"use strict";
var methods = (function(){
// private properties and meth... | JavaScript |
jQuery(document).ready(
function($)
{
//When page loads...
$(".tab_content").hide(); //Hide all content
$("ul.tabs li:first").addClass("active").show(); //Activate first tab
$(".tab_content:first").show(); //Show first tab content
//On Click Event
$("ul.tabs li").click(function() {
$("ul.tabs li").removeClass... | 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 |
/**
* http://github.com/valums/file-uploader
*
* Multiple file upload component with progress-bar, drag-and-drop.
* © 2010 Andrew Valums ( andrew(at)valums.com )
*
* Licensed under GNU GPL 2 or later and GNU LGPL 2 or later, see license.txt.
*/
//
// Helper functions
//
var qq = qq || {};
... | JavaScript |
/**
* hoverIntent is similar to jQuery's built-in "hover" method except that
* instead of firing the handlerIn function immediately, hoverIntent checks
* to see if the user's mouse has slowed down (beneath the sensitivity
* threshold) before firing the event. The handlerOut function is only
* called after a matchi... | JavaScript |
/* jQuery based image slider
/* TMSlider 0.3 */
(function($,undefined){
var _TMS=window._TMS=$.fn._TMS=function(_){
_=_||{}
_=$.extend(clone(_TMS),_TMS.presets[_.preset],_)
_.init.call(_.me=_.holder=this,_)
return _.me.data({opt:_})
}
$.extend(_TMS,{
etal:'<div></div>',
items:'.ite... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.