code
stringlengths
1
2.08M
language
stringclasses
1 value
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
//////////////////////////////////////////////////// // wordWindow object //////////////////////////////////////////////////// function wordWindow() { // private properties this._forms = []; // private methods this._getWordObject = _getWordObject; //this._getSpellerObject = _getSpellerObject; this._wo...
JavaScript
//////////////////////////////////////////////////// // controlWindow object //////////////////////////////////////////////////// function controlWindow( controlForm ) { // private properties this._form = controlForm; // public properties this.windowType = "controlWindow"; // this.noSuggestionSelection =...
JavaScript
//////////////////////////////////////////////////// // spellChecker.js // // spellChecker object // // This file is sourced on web pages that have a textarea object to evaluate // for spelling. It includes the implementation for the spellCheckObject. // //////////////////////////////////////////////////// ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
var FCKDragTableHandler = { "_DragState" : 0, "_LeftCell" : null, "_RightCell" : null, "_MouseMoveMode" : 0, // 0 - find candidate cells for resizing, 1 - drag to resize "_ResizeBar" : null, "_OriginalX" : null, "_MinimumX" : null, "_MaximumX" : null, "_LastX" : null, "_TableMap" : null, "_doc" ...
JavaScript
FCKLang['DlgSyntaxHighLighterTitle'] = '插入语法高亮代码'; FCKLang['DlgSyntaxHighLighterProperty'] = '语法高亮代码属性'; FCKLang['DlgSyntaxHighLighterSelectLang'] = '语言'; FCKLang['DlgSyntaxHighLighterCoding'] = '代码'; FCKLang['DlgSyntaxHighLighterErrLang'] = '请选择一种语言'; FCKLang['DlgSyntaxHighLighterErrEmpty'] = '代码不能为空';
JavaScript
FCKLang['DlgSyntaxHighLighterTitle'] = 'Insert highLight code'; FCKLang['DlgSyntaxHighLighterProperty'] = 'HighLight Properties'; FCKLang['DlgSyntaxHighLighterSelectLang'] = 'Lang'; FCKLang['DlgSyntaxHighLighterCoding'] = 'Code'; FCKLang['DlgSyntaxHighLighterErrLang'] = 'Please select a language'; FCKLang['DlgSyn...
JavaScript
window.onload = function () { dp.SyntaxHighlighter.ClipboardSwf = 'Scripts/clipboard.swf'; dp.SyntaxHighlighter.HighlightAll('code'); }
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
<!-- '下拉框检查' Function Check_ListBox(Value,ErrMsg) If value<1 Then Check_ListBox=ErrMsg Else Check_ListBox="" End If End Function '单/复选框检查' Function Check_SelectBox(RadioObject,ErrMsg) Dim Radio,blCheck blCheck=False For Each Radio in RadioObject If Radio.checked=True T...
JavaScript
function atCalendarControl(){ var calendar=this; this.calendarPad=null; this.prevMonth=null; this.nextMonth=null; this.prevYear=null; this.nextYear=null; this.goToday=null; this.calendarClose=null; this.calendarAbout=null; this.head=null; this.body=null; this.today=[]; this.currentDate=[]; t...
JavaScript
<!-- NS4 = (document.layers) ? 1 : 0; IE4 = (document.all) ? 1 : 0; ver4 = (NS4 || IE4) ? 1 : 0; function expandIt(index){//----------------------------------------- var menuitem=new Array() menuitem[1]=System_Child_1 menuitem[2]=System_Child_2 menuitem[3]=System_Child_3 if (menuitem[index].style.display=="b...
JavaScript
<!-- /** * Calendar * @param beginYear 1990 * @param endYear 2010 * @param language 0(zh_cn)|1(en_us)|2(en_en)|3(zh_tw) * @param patternDelimiter "-" * @param date2StringPattern "yyyy-MM-dd" * @param string2DatePattern "ymd" * @version 1.0 build 2006-04...
JavaScript
/* SWFObject v2.2 <http://code.google.com/p/swfobject/> is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> */ ;var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="...
JavaScript
// JavaScript Document function confirmDel(str) { return confirm(str); } //date参照时间, n表示天数 //返回参照时间n天之后的日期 function showdate(datestr,n) { if(datestr=="") { var uom = new Date(); } else { var r= datestr.replace("-","/"); var uom = new Date(""+r); } uom.setDate(uom.getDate(...
JavaScript
jQuery.fn.extend({ jsRightMenu: function(options) { options = $.extend({ menuList: [] }, options); return this.each(function() { if ($("#div_RightMenu", $(this)).size() == 0) { var menuCount = options.menuList.length; if (menuCo...
JavaScript
/* 图片延迟加载 使用方法 如: $(".switch_textarea").lazyload(); 详细出处参考:http://www.jb51.net/article/25706.htm * Lazy Load - jQuery plugin for lazy loading images * * Copyright (c) 2007-2009 Mika Tuupola * * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license.php * * Project home: *...
JavaScript
/** * 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 with the given name and value and other optional parameters. * * @examp...
JavaScript
/* * ContextMenu - jQuery plugin for right-click context menus * * Author: Chris Domigan * Contributors: Dan G. Switzer, II * Parts of this plugin are inspired by Joern Zaefferer's Tooltip plugin * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php *...
JavaScript
tmsgname=""; tdialogname=""; twidthnum="";//模似对话宽宽度 theightnum="";//模似对话框高度 /*参数为一个数组 //CsArr["title"]为显示标题 CsArr["msg"]为显示内容 CsArr["msgname"]父页面中div的id 显示对话框窗口 CsArr["dialogname"]父页面中div的id 显示对话框窗口 CsArr["heightnum"] 对话框的距离屏幕顶端高度 CsArr["widthnum"]//对话框的距离屏幕顶端宽度 */ function show(CsArr) { i...
JavaScript
/* // ClearBox Config File (JavaScript) */ var // CB layout: CB_WindowColor='transparent', // color of the CB window (note: you have to change the rounded-corner PNGs too!), transparent is also working CB_MinWidth=120, // minimum (only at images) or initial width of CB window CB_MinHeight=120, ...
JavaScript
/* // ClearBox Config File (JavaScript) */ var // CB layout: CB_WindowColor='#fff', // color of the CB window (note: you have to change the rounded-corner PNGs too!), transparent is also working CB_MinWidth=120, // minimum (only at images) or initial width of CB window CB_MinHeight=120, // ini...
JavaScript
// // ClearBox Language File (JavaScript) // var CB_NavTextPrv='previous', // text of previous image CB_NavTextNxt='next', // text of next image CB_NavTextFull='full size', // text of original size (only at pictures) CB_NavTextOpen='open in new browser window', // text of op...
JavaScript
// // ClearBox Language File (JavaScript) // var CB_NavTextPrv='上一张', // text of previous image CB_NavTextNxt='下一张', // text of next image CB_NavTextFull='', // text of original size (only at pictures) CB_NavTextOpen='Open to new Page', // text of open in a new browser windo...
JavaScript
/* // ClearBox Config File (JavaScript) */ var // CB layout: CB_WindowColor='transparent', // color of the CB window (note: you have to change the rounded-corner PNGs too!), transparent is also working CB_MinWidth=120, // minimum (only at images) or initial width of CB window CB_MinHeight=120, ...
JavaScript
/* // ClearBox Config File (JavaScript) */ var // CB layout: CB_WindowColor='#fff', // color of the CB window (note: you have to change the rounded-corner PNGs too!), transparent is also working CB_MinWidth=120, // minimum (only at images) or initial width of CB window CB_MinHeight=120, // ini...
JavaScript
// // ClearBox Language File (JavaScript) // var CB_NavTextPrv='previous', // text of previous image CB_NavTextNxt='next', // text of next image CB_NavTextFull='full size', // text of original size (only at pictures) CB_NavTextOpen='open in new browser window', // text of op...
JavaScript
// // ClearBox Language File (JavaScript) // var CB_NavTextPrv='上一张', // text of previous image CB_NavTextNxt='下一张', // text of next image CB_NavTextFull='全尺寸', // text of original size (only at pictures) CB_NavTextOpen='在新的窗口中打开', // text of open in a new browser window C...
JavaScript
var CB_ScriptDir='/jsLibrary/clearbox/clearbox'; var CB_Language='cn'; // // ClearBox load: // var CB_Scripts = document.getElementsByTagName('script'); for(i=0;i<CB_Scripts.length;i++){ if (CB_Scripts[i].getAttribute('src')){ var q=CB_Scripts[i].getAttribute('src'); if(q.match('clearbox.js')){...
JavaScript
// JavaScript Document function show(title,msg) { var d_mask=document.getElementById('mask'); var d_dialog =document.getElementById('dialog'); d_mask.style.width = document.body.clientWidth ; d_mask.style.height=document.body.clientHeight; d_dialog.style...
JavaScript
/* clearbox by pyro script home: http://www.clearbox.hu email: clearboxjs(at)gmail(dot)com MSN: pyro(at)radiomax(dot)hu suppor...
JavaScript
$.TE.plugin("bold",{ title:"标题", cmd:"bold", click:function(){ this.editor.pasteHTML("sdfdf"); }, bold:function(){ alert('sdfsdf'); }, noRight:function(e){ if(e.type=="click"){ alert('noright'); } }, init:function(){ }, ...
JavaScript
function te_upload_interface() { //初始化参数 var _args = arguments, _fn = _args.callee, _data = ''; if( _args[0] == 'reg' ) { //注册回调 _data = _args[1]; _fn.curr = _data['callid']; _fn.data = _data; jQuery('#temaxsize').val(_data['maxsize']); } el...
JavaScript
// 系统自带插件 ( function ( $ ) { //全屏 $.TE.plugin( "fullscreen", { fullscreen:function(e){ var $btn = this.$btn, opt = this.editor.opt; if($btn.is("."+opt.cssname.fulled)){ //取消全屏 this.editor.$main.removeAttr("style"); this.editor.$bottom.find("div").show(); this.editor.resize(opt.width,...
JavaScript
(function ($) { var ie = $.browser.msie, iOS = /iphone|ipad|ipod/i.test(navigator.userAgent); $.TE = { version:'1.0', // 版本号 debug: 1, //调试开关 timeOut: 3000, //加载单个文件超时时间,单位为毫秒。 defaults: { //默认参数controls,noRigths,plugins,定义加载插件 controls: "source,|...
JavaScript
//interval :D表示查询精确到天数的之差 //interval :H表示查询精确到小时之差 //interval :M表示查询精确到分钟之差 //interval :S表示查询精确到秒之差 //interval :T表示查询精确到毫秒之差 //使用方法: //alert(dateDiff('D', '2007-4-1', '2007/04/19')); //时间差的计算方法 function dateDiff(interval, date1, date2) { var objInterval = {'D':1000 * 60 * 60 * 24,'H':1000 * 60 * 60,'M':1...
JavaScript
// 获取宽度 function getWidth() { var strWidth,clientWidth,bodyWidth; clientWidth = document.documentElement.clientWidth; bodyWidth = document.body.clientWidth; if(bodyWidth > clientWidth){ strWidth = bodyWidth + 20; } else { strWidth = clientWidth; } return strWidth...
JavaScript
function MinClassBox(strMinValue,SpanID,SelectName,FieldValue) { if(strMinValue=="") { SpanID.innerHTML=""; return; } var ArrMinClass,MinClass,strSelect,strSelected; strSelected=""; strSelect=""; if(strMinValue.indexOf(",")>0) { ArrMinClass=strMinValue.split(","); } else { var ArrM...
JavaScript
function atCalendarControl(){ var calendar=this; this.calendarPad=null; this.prevMonth=null; this.nextMonth=null; this.prevYear=null; this.nextYear=null; this.goToday=null; this.calendarClose=null; this.calendarAbout=null; this.head=null; this.body=null; this.today=[]; this.currentDate=[]; t...
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 = "/wp-content/images/tool/loadingAnimation.gif"; /*!!!!!!!!!!!!!!!!! edit b...
JavaScript
/* Name: ImageFlow Version: 1.3.0 (March 9 2010) Author: Finn Rudolph Support: http://finnrudolph.de/ImageFlow License: ImageFlow is licensed under a Creative Commons Attribution-Noncommercial 3.0 Unported License (http://creativecommons.org/licenses/by-nc/3.0/). ...
JavaScript
// For an introduction to the Blank template, see the following documentation: // http://go.microsoft.com/fwlink/?LinkId=232509 (function () { "use strict"; WinJS.Binding.optimizeBindingReferences = true; var app = WinJS.Application; var activation = Windows.ApplicationModel.Activation; ...
JavaScript
AJAX_SUCCESS = false; var httpRequest = function( options ){ var default_options = { type : "GET", host : "", port : 80, uri : "/", useragent : "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US)", headers : "", getdata : "", postdata : "", ...
JavaScript
(function(){ var downloadlinks = document.querySelector(".download-box > .btn-wrap"), hasdownloadlink = downloadlinks && downloadlinks.length > 0, pickcode = /https?:\/\/115\.com\/file\/([a-zA-Z0-9]+)/.exec(document.location.href), pickcode = pickcode ? pickcode[1] : null, CRL...
JavaScript
/********************************************************** * Dialog Module * **********************************************************/ (function(){ var uid = 0;//dialog uid /******************Paper******************/ var paper = function( wrapper ){ var _th...
JavaScript
(function ($) { $.extend($.fx.step, { backgroundPosition: function (fx) { if (fx.state === 0 && typeof fx.end == 'string') { var start = $.curCSS(fx.elem, 'backgroundPosition'); start = toArray(start); fx.start = [start[0], start[2]]; ...
JavaScript
 games.game5 = { //breakout init: function () { $("#gamezone").html("<p style='font-size:18pt;padding:30px;'><strong style='font-size:20pt;'>Snowball Breakout</strong><br/>Use <span style='color:#939'>left</span> and <span style='color:#393'>right</span> to control the paddle</p><canvas id='game5-b...
JavaScript
 games.game6 = { firstChosenCard: undefined, secondChosenCard: undefined, matches: 0, init: function () { games.game6.firstChosenCard = undefined; games.game6.secondChosenCard = undefined; games.game6.matches = 0; var grid = "0,1,2,3,4,5,6,7,0,1,2,3,4,5,6,7,0,1,...
JavaScript
 games.game8 = { //hangman words: "paris,newyork,london,frankfurt,harjit,dilshini,may,february,september,germany,paddington,plumstead,ealing,georgia,jackson,starbucks".split(","), currentWord: "", usedLetters: "", guesses: 0, errors: 0, init: function () { this.playRound();...
JavaScript
games.game10 = { //asteroid init: function () { $("#gamezone").html('<table align="center" id="game10-asteroid"><tr><td align="center"><h4>[^]feed deer | [<]anti-clock | [>]clock-wise | [V]dead stop | [SPACE]drop | [c]steermode | [q]weapons</h4></td></tr><tr><td align="center" valign="middle"><canva...
JavaScript
var todaysDate = 25; todaysDate = (new Date()).getDate(); todaysDate = todaysDate >= 25 ? 24 : todaysDate; var kn = new Konami(); kn.code = function() { alert("unlocked all days"); todaysDate = 24; games.gamezone.bind(); }; kn.load() $(document).ready(function () { games.gamezone.bind(); });
JavaScript
games.game7 = { //snakes and ladders //Render big 10x10 table init: function () { var html = "<table id='game7-snakes-ladders'>"; html += "<tr><td colspan='10'><h1>Roll Dice</h1><div class='dice-value'>?</div><div class='piece-holder'></div></td></td>"; for (var i = 9; i >= 0...
JavaScript
function Asteroid(boardIdin, scrCallBack) { function GameLoader(boardId) { var canvas = document.getElementById(boardId); var ctx = canvas.getContext("2d"); this.ScoreCallBack = scrCallBack; this.boardX = 750; this.boardY = 700; this.l...
JavaScript
games.game2 = { played: new Array(), colors: "red,blue,green,yellow".split(","), clickIndex: 0, init: function () { var html = "<ul id='game2-pattern'>"; for (var i = 0; i < this.colors.length; i++) { html += "<li><a href='#' class='" + this.colors[i] + "'>&nbsp;</li>...
JavaScript
 games.game12 = { //snakes init: function () { $("#gamezone").html("<p style='font-size:18pt;padding:30px;'><strong style='font-size:20pt;'>Snakes</strong><br/>Use <span style='color:#933'>up</span>, <span style='color:#939'>down</span>, <span style='color:#339'>left</span> and <span style='color:#...
JavaScript
 games.game4 = { //bomberman worldmap: [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, ...
JavaScript
 games.game9 = { //goblin game worldmap: [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,...
JavaScript
games.game1 = { firstChosenCard: undefined, secondChosenCard: undefined, matches: 0, init: function () { games.game1.firstChosenCard = undefined; games.game1.secondChosenCard = undefined; games.game1.matches = 0; var grid = "0,1,2,3,4,5,6,7,0,1,2,3,4,5,6,7".split...
JavaScript
var elementState = {"still":1, "walking":2, "jumping":3}; element = function (x, y, size) { this.maxVelocity = 11; this.x = x; this.y = y; this.size = size; this.velocity = 0; this.state = 0; this.isFacingRight...
JavaScript
games.game11 = { // mario type game init: function () { $("#gamezone").html('<canvas id="game11-sideways-scroller" width="786" height="786"></canvas>'); gameEngine.init("game11-sideways-scroller"); document.onkeydown = function(e){ var KeyID = (window.event) ? event.key...
JavaScript
var games = {} || games; games.helper = { getRandomNumber: function (low, high) { return Math.floor(Math.random() * high) + low; } } games.gamezone = { bind:function(){ var lis = $("#windows li"); lis.each(function () { $(this).attr("class", "disabled"); ...
JavaScript
games.game3 = { wordsInPlay: 0, words: "paris,newyork,london,frankfurt,harjit,dilshini,may,february,september,germany,paddington,plumstead,ealing,georgia,jackson,starbucks".split(","), wordNumber: 0, timeBetweenWords: 2000, score: 0, stringBuffer: "", init: function () { $("...
JavaScript
/* * 12306 Auto Query => A javascript snippet to help you book tickets online. * 12306 Booking Assistant * Copyright (C) 2011 Hidden * * 12306 Auto Query => A javascript snippet to help you book tickets online. * Copyright (C) 2011 Jingqin Lynn * * 12306 Auto Login => A javascript snippet to hel...
JavaScript
var searchData= [ ['log_5fdebug',['LOG_DEBUG',['../logger_8hpp.html#a6ff63e8955665c4a58b1598f2b07c51a',1,'logger.hpp']]], ['log_5ferror',['LOG_ERROR',['../logger_8hpp.html#aced66975c154ea0e2a8ec3bc818b4e08',1,'logger.hpp']]], ['log_5ffatal',['LOG_FATAL',['../logger_8hpp.html#ac2164369b4d2bf72296f8ba6ea576ecf',1,'...
JavaScript
var searchData= [ ['adjlist_5fcontainer',['adjlist_container',['../classadjlist__container.html',1,'']]], ['als_5ffactor_5fand_5fweight',['als_factor_and_weight',['../structals__factor__and__weight.html',1,'']]], ['als_5fvertex_5fprogram',['als_vertex_program',['../classals__vertex__program.html',1,'']]], ['als...
JavaScript
var searchData= [ ['pagerank_5fkernel',['pagerank_kernel',['../structpagerank__kernel.html',1,'']]], ['pagerankprogram',['PagerankProgram',['../struct_pagerank_program.html',1,'']]], ['paircontainer',['PairContainer',['../structgraphchi_1_1_pair_container.html',1,'graphchi']]], ['paircontainer_3c_20kernel_3a_3a...
JavaScript
var searchData= [ ['edge',['edge',['../classgraphchi_1_1graphchi__vertex.html#a79aebd315e4f333e8ba0e756c265883a',1,'graphchi::graphchi_vertex']]], ['edge_5fdata',['edge_data',['../structedge__data.html#a98967d7ad71e7ef996e6b9727e97949c',1,'edge_data']]], ['elapsed_5fseconds',['elapsed_seconds',['../classgraphlab_...
JavaScript
var searchData= [ ['graphchi',['graphchi',['../namespacegraphchi.html',1,'']]], ['messages',['messages',['../namespacegraphlab_1_1messages.html',1,'graphlab']]] ];
JavaScript
var searchData= [ ['refcountptr',['refcountptr',['../structgraphchi_1_1refcountptr.html',1,'graphchi']]], ['rwlock',['rwlock',['../classgraphchi_1_1rwlock.html',1,'graphchi']]] ];
JavaScript
var searchData= [ ['load',['load',['../classgraphchi_1_1degree__data.html#a845b713beb8419274e2b5312ddd8bc5f',1,'graphchi::degree_data::load()'],['../classgraphchi_1_1vertex__data__store.html#a4885bac577540a6dcf0be31af0c3572c',1,'graphchi::vertex_data_store::load()']]], ['load_5fvertex_5fintervals',['load_vertex_int...
JavaScript
var searchData= [ ['outputlevel',['OUTPUTLEVEL',['../logger_8hpp.html#a3d18ed817dcda9f54a4f353ccf9b1b36',1,'logger.hpp']]] ];
JavaScript
var searchData= [ ['grabbed_5fedges',['grabbed_edges',['../trianglecounting_8cpp.html#ade7b20338aaa8b999330cb30c4d079f9',1,'trianglecounting.cpp']]] ];
JavaScript