code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @website http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
* @version 4.0.3 (201... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript |
/*
highlight v3
Highlights arbitrary terms.
<http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html>
MIT license.
Johann Burkard
<http://johannburkard.de>
<mailto:jb@eaio.com>
*/
jQuery.fn.highlight = function(pat) {
function innerHighlight(node, pat) {
va... | JavaScript |
jQuery.autocomplete = function(input, options) {
// Create a link to self
var me = this;
// Create jQuery object for input element
var $input = $(input).attr("autocomplete", "off");
// Apply inputClass if necessary
if (options.inputClass) $input.addClass(options.inputClass);
// Create results
var ... | JavaScript |
/**
* SmallSilder JQuery plugin
* http://lib.kindcent.com/smallslider
* JQuery plugin for switch images, Please Open me with UTF-8 encoding
* Created under Ubuntu 9.10 OS , if you open it with notepad.exe , some black squares will appear !
* 这是一个源码开放程序,本人特意加上注释以方便大家修改,你可以自行修改,再发布,欢迎和我交流。
* 0.5版本新增加actionGap延时选项,部... | JavaScript |
/**
* @auth Logan Cai
* @email cailongqun#yahoo.com.cn (replace # with @)
* @ this plugin is based on the nice javascript provided by http://www.jtricks.com/javascript/navigation/floating.html
* @version 1.0
*
*/
function floatingBox(box, options, index)
{
this.targetX = -250;
this.targetY = 10;
this.i... | JavaScript |
// Lee dialog 1.0 http://www.xij.cn/blog/?p=68
var dialogFirst = true;
function dialog(title, content, width, height, cssName) {
if (dialogFirst == true) {
var temp_float = new String;
temp_float = "<div id=\"floatBoxBg\" style=\"height:" + $(document).height() + "px;filter:alpha(opacity=0... | JavaScript |
/*!
* Side Bar v1.0.1
* http://sideroad.secret.jp/
*
* Copyright (c) 2009 sideroad
*
* Dual licensed under the MIT licenses.
* Date: 2009-09-01
*/
//Side Bar Plugin
(function($) {
$.fn.sidebar = function(options){
return this.each(function(){
options = options || {};
//default setting
options... | JavaScript |
jQuery.cookie = function(name, value, options) {
if (typeof value != 'undefined') { // name and value given, set cookie
options = options || {};
if (value === null) {
value = '';
options.expires = -1;
}
var expires = '';
if (options.expires && ... | JavaScript |
// ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highstock JS v1.1.4 (2012-02-15)
*
* (c) 2009-2011 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout,... | JavaScript |
/**
* @license Highstock JS v1.1.4 (2012-02-15)
* Exporting module
*
* (c) 2010-2011 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, Math, setTimeout */
(function () { // encapsulate
// create shortcuts
var HC = Highcharts,
Chart = HC.Chart,... | JavaScript |
/**
* @license Highstock JS v1.1.4 (2012-02-15)
* MooTools adapter
*
* (c) 2010-2011 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Fx, $, $extend, $each, $merge, Events, Event, DOMEvent */
(function () {
var win = window,
mooVersion = win.MooTools.version.substring(0, ... | JavaScript |
/**
* Dark blue theme for Highcharts JS
* @author Torstein Hønsi
*/
Highcharts.theme = {
colors: ["#DDDF0D", "#55BF3B", "#DF5353", "#7798BF", "#aaeeee", "#ff0066", "#eeaaee",
"#55BF3B", "#DF5353", "#7798BF", "#aaeeee"],
chart: {
backgroundColor: {
linearGradient: [0, 0, 250, 500],
stops: [
[0, 'rgb(... | JavaScript |
/**
* Grid theme for Highcharts JS
* @author Torstein Hønsi
*/
Highcharts.theme = {
colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'],
chart: {
backgroundColor: {
linearGradient: [0, 0, 500, 500],
stops: [
[0, 'rgb(255, 255, 255)'],
[1, 'rg... | JavaScript |
/**
* Skies theme for Highcharts JS
* @author Torstein Hønsi
*/
Highcharts.theme = {
colors: ["#514F78", "#42A07B", "#9B5E4A", "#72727F", "#1F949A", "#82914E", "#86777F", "#42A07B"],
chart: {
className: 'skies',
borderWidth: 0,
plotShadow: true,
plotBackgroundImage: '/demo/gfx/skies.jpg',
plotBackground... | JavaScript |
/**
* Gray theme for Highcharts JS
* @author Torstein Hønsi
*/
Highcharts.theme = {
colors: ["#DDDF0D", "#7798BF", "#55BF3B", "#DF5353", "#aaeeee", "#ff0066", "#eeaaee",
"#55BF3B", "#DF5353", "#7798BF", "#aaeeee"],
chart: {
backgroundColor: {
linearGradient: [0, 0, 0, 400],
stops: [
[0, 'rgb(96, 96,... | JavaScript |
/**
* Dark blue theme for Highcharts JS
* @author Torstein Hønsi
*/
Highcharts.theme = {
colors: ["#DDDF0D", "#55BF3B", "#DF5353", "#7798BF", "#aaeeee", "#ff0066", "#eeaaee",
"#55BF3B", "#DF5353", "#7798BF", "#aaeeee"],
chart: {
backgroundColor: {
linearGradient: [0, 0, 250, 500],
stops: [
[0, 'rgb(... | JavaScript |
/*
*
* TableSorter 2.0 - Client-side table sorting with ease!
* Version 2.0.5b
* @requires jQuery v1.2.3
*
* Copyright (c) 2007 Christian Bach
* Examples and docs at: http://tablesorter.com
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http:... | JavaScript |
/*
* Metadata - jQuery plugin for parsing metadata from elements
*
* Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Revision: $Id$
... | JavaScript |
// Flash Player Version Detection - Rev 1.6
// Detect Client Browser type
// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved.
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOp... | JavaScript |
BrowserHistoryUtils = {
addEvent: function(elm, evType, fn, useCapture) {
useCapture = useCapture || false;
if (elm.addEventListener) {
elm.addEventListener(evType, fn, useCapture);
return true;
}
else if (elm.attachEvent) {
var r = elm.attachEvent... | JavaScript |
function Button(file, size_x, size_y)
{
this.image = new Image();
this.image.src = file;
this.loaded = false;
this.size_x = size_x;
this.size_y = size_y;
this.position_x = 0;
this.position_y = 0;
this.image.onload = function()
{
loaded = true;
};
this.update=function()
... | JavaScript |
function SceneIntro()
{
//Background
this.background = new Image();
this.background.src="imgs/index/menuindex.png";
this.loaded = false;
this.jogo5liberado = false;
this.game5aparecer = false;
//Criando botões
this.button_game_1 = new Button("imgs/index/button_game_1.png", 159, 75);
... | JavaScript |
function SceneCredit()
{
this.background = new Image();
this.background.src="imgs/index/menucreditos.png";
this.loaded = false;
//Botão back
this.button_back = new Button("imgs/index/button_back.png", 160, 75);
this.button_back.position_x = 320;
this.button_back.position_y = 510;
this.update=f... | JavaScript |
//ball.js
function Game1Bola()
{
//Criando bola
this.image = new Image();
this.image.src="imgs/game_1/ball.png";
this.loaded = false;
//Propriedades
this.tamanho_x = 40;
this.tamanho_y = 40;
this.posicao_x = 450
this.posicao_y = 350
this.velocidade_x = 7;
this.velocidade_y = 7;
t... | JavaScript |
function Game1SceneIntroducao()
{
//Imagem de fundo
this.imagem = new Image();
this.imagem.src = "imgs/game_1/Introducao.png"
this.loaded = false;
this.tamanho_x = 1500;
this.tamanho_y = 1366;
this.posicao_x = 0;
this.posicao_y = 0;
//Letra
this.Letra = new Image();
this.Letra.src = ... | JavaScript |
function Game_1()
{
//Pausa
//this.paused = false;
//BB2wV9Nk5RZ3
this.game1completo = false;
//Introducao
this.introducao = new Game1SceneIntroducao();
//Level1
this.level1 = new Game1SceneLevel1();
//Level2
this.level2 = new Game1SceneLevel2();
//Level3
this.level3 = new Game1SceneLevel3();
... | JavaScript |
function Game1SceneGanhou()
{
//criando a cena
this.imagem = new Image();
this.imagem.src = "imgs/game_1/Fimganhou.png"
this.loaded = false;
this.tamanho_x = 800;
this.tamanho_y = 600;
this.posicao_x = 0;
this.posicao_y = 0;
this.imagem.onload = function()
{
loaded = true;
};... | JavaScript |
function Game1PaletaInimigo()
{
//criando paleta inimiga
this.imagem = new Image();
this.imagem.src="imgs/game_1/paletainimigo.png";
this.loaded = false;
//propriedades da paleta
this.tamanho_x = 40;
this.tamanho_y = 120;
this.posicao_x = 750
this.posicao_y = 400
this.velocidade_x = 0... | JavaScript |
function Game1Bloco(source)
{
this.imagem = new Image();
this.imagem.src= source;
this.loaded = false;
this.visible = true;
//this.hp = hp;
//this.pontos = this.hp*2
this.tamanho_x = 40;
this.tamanho_y = 120;
this.posicao_x = 0
this.posicao_y = 0
this.velocidade_x = 0;
this.velocidade_y =... | JavaScript |
function Game1Background(source)
{
//criando background
this.imagem = new Image();
this.imagem.src = source;
this.loaded = false;
this.visible = true;
//Carregando imagem
this.imagem.onload = function()
{
loaded = true;
};
//propriedades
this.tamanho_x = 1200;
this.tamanho_y = 800;... | JavaScript |
function Game1ScenePerdeu()
{
//Criando a cena
this.imagem = new Image();
this.imagem.src = "imgs/game_1/Fimperdeu.png"
this.loaded = false;
this.tamanho_x = 1500;
this.tamanho_y = 1366;
this.posicao_x = 0;
this.posicao_y = 0;
//Som
this.efeito_sonoro = new Audio();
thi... | JavaScript |
//paleta.js
function Game1Paleta (player_tecla)
{
this.player_tecla = player_tecla;
//criando player
this.imagem = new Image();
this.imagem.src="imgs/game_1/paleta.png";
this.loaded = false;
//propriedades da paleta
this.tamanho_x = 40;
this.tamanho_y = 120;
this.posicao_x = 10
this.p... | JavaScript |
function Game4SceneGanhou()
{
//criando cena
this.imagem = new Image();
this.imagem.src = "imgs/game_4/Fimganhou.png"
this.loaded = false;
//propriedades
this.tamanho_x = 800;
this.tamanho_y = 600;
this.posicao_x = 0;
this.posicao_y = 0;
//criando botao voltar
this.button_b... | JavaScript |
function Game_4()
{
this.game4completo = false;
//Pausa
this.paused = false;
//Introducao
this.introducao = new Game4SceneIntroducao();
//Level
this.level1 = new Game4SceneLevel1();
//FimGanhou
this.fimganhou = new Game4SceneGanhou();
//FimPerdeu
this.fimperdeu = new Game4ScenePerdeu();... | JavaScript |
function Game4SceneLevel1()
{
this.reset=function()
{
//Player
this.player = new Game4Player("setas");
//Barra de energia player
this.interface = new Game4Interface("imgs/game_4/barra de energia.png", 300, 25, 5, 5);
this.hp_boss = new Game4Interface("imgs/game_4/barra de energia boss.png", 500, 25, ... | JavaScript |
function Game4Inimigo(source,hp)
{
//criando inimigos
this.imagem = new Image();
this.imagem.src = source;
this.loaded = false;
this.visible = true;
this.tamanho_x = 64;
this.tamanho_y = 43;
this.posicao_x = 0;
this.posicao_y = 0;
this.velocidade_x = 10;
this.velocidade_y = 10;
this.movendoC... | JavaScript |
function Game4SceneIntroducao()
{
//criando cena
this.imagem = new Image();
this.imagem.src = "imgs/game_4/Introducao.png"
this.loaded = false;
this.tamanho_x = 800;
this.tamanho_y = 600;
this.posicao_x = 0;
this.posicao_y = 0;
//Imagem dos botoes TAMANHO_X,TAMANHO_Y,POSICAO_X,POSI... | JavaScript |
function Game4Background(source, tx, ty, vx)
{
this.imagem = new Image();
this.imagem.src = source;
this.loaded = false;
this.visible = true;
this.imagem.onload = function()
{
loaded = true;
};
this.tamanho_x = tx;
this.tamanho_y = ty;
this.posicao_x = 0;
this.posicao_y = 0;
... | JavaScript |
function animacao(file, size_x, size_y, position_x, position_y)
{
//criando imagem
this.image = new Image();
this.image.src=file;
this.visible = true;
//PROPRIEDADES
this.posicao_x_dst = position_x;
this.posicao_y_dst = position_y;
this.escala_x = 1;
this.escala_y = 1;
this.size_x_src ... | JavaScript |
function Game4ScenePerdeu()
{
//criando cena
this.imagem = new Image();
this.imagem.src = "imgs/game_4/Fimperdeu.png"
this.loaded = false;
//propriedades
this.tamanho_x = 800;
this.tamanho_y = 600;
this.posicao_x = 0;
this.posicao_y = 0;
//criando botão de voltar
this.butto... | JavaScript |
function Game4Tiro(file, posicao_x, posicao_y, velocidade_x)
{
//criando tiro
this.imagem = new Image();
this.imagem.src= file;
this.loaded = false;
this.visible = true;
this.imagem.onload = function()
{
loaded = true;
};
//propriedades
this.tamanho_x = 64;
this.tamanho_y = 27;
this.posicao_x =... | JavaScript |
function Game4Interface(souce, tam_x, tam_y, pos_x, pos_y)
{
//criando tela
this.imagem = new Image();
this.imagem.src = souce;
this.visible = true;
//propriedades
this.tamanho_x_src = tam_x;
this.tamanho_y_src = tam_y;
this.posicao_x_src = 0;
this.posicao_y_src = 0;
this.posicao_x_dst = pos_x... | JavaScript |
function Bloco(source, hp)
{
//criando bloco
this.imagem = new Image();
this.imagem.src= source;
this.carregada = false;
this.visible = true;
this.hp = hp;
this.pontos = this.hp*2;
this.chancetiro = 0.002;
this.imagem.onload = function()
{
carregada = true;
};
//propriedades
this.tamanho_x = 50;
... | JavaScript |
function Game_3()
{
this.game3completo = false;
//Pausa
this.paused = false;
//Level..
this.level1 = new Game3SceneLevel1();
//FimGanhou
this.fimganhou = new Game3SceneGanhou();
//FimPerdeu
this.fimperdeu = new Game3ScenePerdeu();
this.introducao = new Game3SceneIntroducao();
//Flux... | JavaScript |
function Game3ScenePerdeu()
{
//criando cena
this.imagem = new Image();
this.imagem.src = "imgs/game_3/Fimperdeu.png"
this.loaded = false;
this.tamanho_x = 800;
this.tamanho_y = 600;
this.posicao_x = 0;
this.posicao_y = 0;
//Som
this.efeito_sonoro = new Audio();
this.efeito_... | JavaScript |
function Game3Tiro(file, posicao_x, posicao_y, velocidade_y)
{
//criando tiro
this.imagem = new Image();
this.imagem.src= file;
this.carregada = false;
this.visible = true;
this.imagem.onload = function()
{
loaded = true;
};
//propriedades
this.tamanho_x = 15;
this.tamanho_y = 26;
this.posicao_x = po... | JavaScript |
function Game3SceneIntroducao()
{
//criando cena
this.imagem = new Image();
this.imagem.src = "imgs/game_3/Introducao.png"
this.loaded = false;
this.tamanho_x = 800;
this.tamanho_y = 600;
this.posicao_x = 0;
this.posicao_y = 0;
//Imagem dos botoes TAMANHO_X,TAMANHO_Y,POSICAO_X,... | JavaScript |
function Game3Background(source)
{
//criando background
this.imagem = new Image();
this.imagem.src = source;
this.loaded = false;
this.visible = true;
this.imagem.onload = function()
{
loaded = true;
};
//propriedades
this.tamanho_x = 1200;
this.tamanho_y = 800;
this.posicao_x =... | JavaScript |
function Game3Button(arquivo, tam_x, tam_y, pos_x, pos_y)
{
this.imagem = new Image();
this.imagem.src = arquivo;
this.loaded = false;
//propriedades
this.tamanho_x = tam_x;
this.tamanho_y = tam_y;
this.posicao_x = pos_x;
this.posicao_y = pos_y;
this.posicao_origem_x = 0;
this.posicao_or... | JavaScript |
function Game3SceneLevel1()
{
this.reset=function()
{
//Player
this.player = new Game3Player("setas");
//Pause
this.paused = true;
this.botaobacklvl = new Game3Button("imgs/game_3/botao_voltar_levels.png", 55, 34, 725, 50 );
//Colocando a imagem de background
this.background = new Game3Bac... | JavaScript |
function Game3SceneGanhou()
{
//criando cena
this.imagem = new Image();
this.imagem.src = "imgs/game_3/Fimganhou.png"
this.loaded = false;
this.tamanho_x = 800;
this.tamanho_y = 600;
this.posicao_x = 0;
this.posicao_y = 0;
//Botao back TAMA... | JavaScript |
function Game2SceneLevel2()
{
this.reset=function()
{
//Som
this.musica_de_fundo = new Audio();
this.musica_de_fundo.src = "sounds/game_2/Musica_de_Fundo.mp3";
this.musica_de_fundo.load();
//Player
this.player = new Game2Paleta();
//botão p/ voltar menu
this.botaopmenu = new Button(... | JavaScript |
function Game2SceneInstrucoes()
{
//criando cena
this.imagem = new Image();
this.imagem.src = "imgs/game_2/Menu.png"//FAZER IMAGEM PARA INSTRUCAO
this.loaded = false;
this.tamanho_x = 800;
this.tamanho_y = 600;
this.posicao_x = 0;
this.posicao_y = 0;
//Som
this.efeito_sonoro = new... | JavaScript |
function Game2Paleta(player_position_x)
{
//Criando paleta
this.img = new Image();
this.img.src="imgs/game_2/paleta.png";
this.loaded = false;
this.visible = true;
this.img.onload = function()
{
loaded = true;
};
//propriedades
this.tamanho_x = 200;
this.tamanho_y = 20;
this.po... | JavaScript |
function Game2Button(arquivo, tam_x, tam_y, pos_x, pos_y)
{
//criando botao
this.imagem = new Image();
this.imagem.src = arquivo;
this.loaded = false;
//tamanho
this.tamanho_x = tam_x;
this.tamanho_y = tam_y;
this.posicao_x = pos_x;
this.posicao_y = pos_y;
//imagem carregada
this.imagem.onload = ... | JavaScript |
function Game_2()
{
this.game2completo = false;
//Pausa
this.paused = false;
//Introducao
this.instrucoes = new Game2SceneInstrucoes();
//Creditos
//this.creditos = new SceneCreditos();
//Level 1
this.level1 = new Game2SceneLevel1();
//Level 2
this.level2 = new Game2SceneLevel2();
... | JavaScript |
function Game2Background()
{
this.imagem = new Image();
this.imagem.src = "imgs/game_2/background1.png";
this.loaded = false;
this.visible = true;
this.imagem.onload = function()
{
loaded = true;
}
this.tamanho_x = 1024;
this.tamanho_y = 768;
this.posicao_x = 0;
this.posicao_y = 0;
this.... | JavaScript |
function Game2ScenePerdeu()
{
//Criando cena
this.imagem = new Image();
this.imagem.src = "imgs/game_2/gameover.png"
this.loaded = false;
//propriedades
this.tamanho_x = 800;
this.tamanho_y = 600;
this.posicao_x = 0;
this.posicao_y = 0;
//Som
this.efeito_sonoro = new Audio();
... | JavaScript |
function Game2Bloco(source, hp)
{
//criando os blocos
this.bloco_imagem = new Image();
this.bloco_imagem.src = source;
this.loaded = false;
this.visible = true;
//resistencia dos blocos
this.hp = hp;
this.pontos = this.hp*2
this.bloco_imagem.onload = function()
{
loaded = true;
};
//propriedades... | JavaScript |
function Game2SceneMenu()
{
//criando cena
this.imagem = new Image();//BACKGROUND
this.imagem.src = "imgs/game_2/Menu_teste.png"
this.loaded = false;
//propriedades
this.tamanho_x = 900;
this.tamanho_y = 700;
this.posicao_x = 0;
this.posicao_y = 0;
//Som
this.efeito_sonoro = new A... | JavaScript |
//ball.js
function Game2Ball()
{
//criando bola
this.img = new Image();
this.img.src="imgs/game_2/bola_finalizada.png";
this.loaded = false;
this.visible = true;
this.followplayer = true;
this.img.onload = function()
{
loaded = true;
};
//propriedades
this.tamanho_x = 35;
this.tamanho_y = 35;
... | JavaScript |
function Game2SceneGanhou()
{
//criando
this.imagem = new Image();
this.imagem.src = "imgs/game_2/Win.png"
this.loaded = false;
//propriedades
this.tamanho_x = 800;
this.tamanho_y = 600;
this.posicao_x = 0;
this.posicao_y = 0;
//Som
this.efeito_sonoro = new Audio();
thi... | JavaScript |
function Game_5()
{
//Pausa
//this.paused = false;
//Introducao
this.introducao = new Game5SceneIntroducao();
//Level
//this.level1 = new Game5SceneLevel1();
//FimGanhou
//this.fimganhou = new Game5SceneGanhou();
//FimPerdeu
//this.fimperdeu = new Game5ScenePerdeu();
//Fluxo das... | JavaScript |
function Game5SceneIntroducao()
{
this.imagem = new Image();
this.imagem.src = "imgs/game_5/Introducao.png"
this.loaded = false;
this.tamanho_x = 800;
this.tamanho_y = 600;
this.posicao_x = 0;
this.posicao_y = 0;
//Imagem dos botoes TAMANHO_X,TAMANHO_Y,POSICAO_X,POSICAO_Y
//t... | JavaScript |
function Game5Background(source)
{
this.imagem = new Image();
this.imagem.src = source;
this.loaded = false;
this.visible = true;
this.imagem.onload = function()
{
loaded = true;
};
this.tamanho_x = 800;
this.tamanho_y = 600;
this.posicao_x = 0;
this.posicao_y = 0;
this.ve... | JavaScript |
/**
* jQuery Yii plugin file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright Copyright © 2008-2010 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @version $Id: jquery.yii.js 3053 2011-03-12 21:25:33Z qiang.xue $
*/
;(function($) {
$.yii =... | JavaScript |
/**
* jQuery Yii plugin file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright Copyright © 2008-2010 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @version $Id: jquery.yiitab.js 1827 2010-02-20 00:43:32Z qiang.xue $
*/
;(function($) {
$.e... | JavaScript |
/*
Masked Input plugin for jQuery
Copyright (c) 2007-2011 Josh Bush (digitalbush.com)
Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license)
Version: 1.3
*/
(function($) {
var pasteEventName = ($.browser.msie ? 'paste' : 'input') + ".mask";
var iPhone = (window.orientation ... | JavaScript |
/*
* jQuery Autocomplete plugin 1.1
*
* Modified for Yii Framework:
* - Renamed "autocomplete" to "legacyautocomplete".
* - Fixed IE8 problems (mario.ffranco).
*
* Copyright (c) 2009 Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* ht... | JavaScript |
/*
* Async Treeview 0.1 - Lazy-loading extension for Treeview
*
* http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
*
* Copyright (c) 2007 Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/... | JavaScript |
(function($) {
var CLASSES = $.treeview.classes;
var proxied = $.fn.treeview;
$.fn.treeview = function(settings) {
settings = $.extend({}, settings);
if (settings.add) {
return this.trigger("add", [settings.add]);
}
if (settings.remove) {
return this.trigger("remove", [settings.remove]);
}
return p... | JavaScript |
/*
### jQuery Star Rating Plugin v3.13 - 2009-03-26 ###
* Home: http://www.fyneworks.com/jquery/star-rating/
* Code: http://code.google.com/p/jquery-star-rating-plugin/
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/... | JavaScript |
/*
* Treeview 1.5pre - jQuery plugin to hide and show branches of a tree
*
* http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
* http://docs.jquery.com/Plugins/Treeview
*
* Copyright (c) 2007 Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-... | JavaScript |
/*!
* jQuery BBQ: Back Button & Query Library - v1.2.1 - 2/17/2010
* http://benalman.com/projects/jquery-bbq-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
// Script: jQuery BBQ: Back Button & Query Library
//
// *Version... | JavaScript |
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Version 2.1.2
*/
(function($){
$.fn.bgiframe = ($.browser.msie && /msie 6\.0/i.test(navigator.userAgent) ? function(s) {
s = $.extend({
top : 'auto', // auto == .currentStyle.borderTo... | JavaScript |
/*
* Metadata - jQuery plugin for parsing metadata from elements
*
* Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Revision: $Id: j... | JavaScript |
/**
* jQuery yiiactiveform plugin file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright Copyright © 2008-2010 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @version $Id: jquery.yiiactiveform.js 3538 2012-01-14 18:24:30Z mdomba $
* @since 1.... | JavaScript |
/**
* Ajax Queue Plugin
*
* Homepage: http://jquery.com/plugins/project/ajaxqueue
* Documentation: http://docs.jquery.com/AjaxQueue
*/
/**
<script>
$(function(){
jQuery.ajaxQueue({
url: "test.php",
success: function(html){ jQuery("ul").append(html); }
});
jQuery.ajaxQueue({
url: "test.p... | 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 |
/**
* jQuery Yii GridView plugin file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright Copyright © 2008-2010 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @version $Id: jquery.yiigridview.js 3486 2011-12-16 00:25:01Z mdomba $
*/
(function ... | JavaScript |
/**
* jQuery Yii ListView plugin file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright Copyright © 2008-2010 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @version $Id: jquery.yiilistview.js 3296 2011-06-22 17:15:17Z qiang.xue $
*/
;(funct... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.