This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Image { | |
private $img; | |
private $text; | |
private $fontsize; | |
public function __construct( $img, $text, $fontsize ) { | |
$this->img = $img; | |
$this->text = $text; | |
$this->fontsize = $fontsize; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Teste de Navegador... | |
var $Navegador = $Navegador || {}; | |
$Navegador.Class = (function() { | |
"use strict"; | |
var Detecta = { | |
FireFox: (function() { | |
if ( /Firefox[\/\s](\d+\.\d+)/.test( navigator.userAgent ) ) { | |
var ffversion = new Number(RegExp.$1); | |
switch( ffversion ) { | |
case ffversion >= 4: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Rascunho... | |
var canvas = null, | |
context = null, | |
bufferCanvas = null, | |
bufferCanvasCtx = null, | |
flakeArray = [], | |
flakeTimer = null, | |
maxFlakes = 200; | |
var Flake = (function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var loadXMLDoc = (function () { | |
var xmlhttp; | |
if (window.XMLHttpRequest) { | |
// code for IE7+, Firefox, Chrome, Opera, Safari | |
xmlhttp = new XMLHttpRequest(); | |
} | |
else { // code for IE6, IE5 | |
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var FullScreen = FullScreen || {}; | |
FullScreen.Class = (function(){ | |
var docElm = document.documentElement; | |
var imgUm = document.getElementById('img-um'); | |
var botaoSair = document.getElementById('btn-sair'); | |
var imgDois = document.getElementById('img-dois'); | |
var oFs = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Triângulo com Canvas | |
var NS = NS || {}; | |
NS.Class = (function() { | |
var Canvas = (function() { | |
this.canvas = document.getElementById( "canvas" ); | |
this.ctx = canvas.getContext( "2d" ); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var LOIC = LOIC || {}; | |
LOIC.Class = (function () { | |
// Global Variables | |
var fireInterval; | |
var isFiring = false; | |
var requestedCtrNode = document.getElementById("requestedCtr"); | |
var succeededCtrNode = document.getElementById("succeededCtr"); | |
var failedCtrNode = document.getElementById("failedCtr"); | |
var targetURLNode = document.getElementById("targetURL"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var get = location.search.split("?"), | |
value = get[1].split("="); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ping = (function() { | |
var time_stamp = new Date; | |
$.ajax({ type: "POST", | |
url: "server.php", | |
data: {....}, | |
success: (function( output ) { | |
ping = new Date - time_stamp; | |
}) | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Bruxarias... | |
var teste1 = null; | |
var teste2 = [1, 2, 3, 4, 5, 6]; | |
var teste3 = new Number(10); | |
var teste4 = 10; | |
var teste5 = new Array(1, 2, 3, 4, 5); | |
console.log(typeof teste1); //Como é? O null é um objeto? O.o | |
console.log(typeof teste2); //Como é? O certo seria retornar um array.. o.O | |
console.log(typeof teste3); //OK é um número... | |
console.log(typeof teste4); //Correto sem bruxaria... |