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
; | |
(function ($, window, document, undefined) { | |
var pluginName = "overlay", | |
defaults = { | |
'stretch': 'width', | |
'scroll': false, | |
}; | |
var Plugin = (function(element, options) { | |
this.element = element; |
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
usort( $cores, function( $a, $b ) { | |
return strcmp( $a['cor'], $b['cor'] ); | |
} |
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
* { | |
padding:0; | |
margin:0; | |
outline:none; | |
} | |
#container { | |
width:980px; | |
height:600px; | |
margin:0 auto; | |
background:#CCC; |
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
$Bahia = function() { | |
try { | |
if ( !class_exists( 'DateTime' ) ) throw new Exception( "Don´t have a DateTime Class..", 1 ); | |
$date = new DateTime( 'America/Bahia' ); | |
return $date->format( 'd-m-y' ); | |
} | |
catch( NeryException $e ) { | |
return $e->getMessage(); | |
} | |
}; |
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 Class = (function () { | |
var _private = { | |
i: 0, | |
get: (function () { | |
console.log("current value:" + this.i); | |
}), | |
set: (function (val) { | |
this.i = val; | |
}), | |
run: (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 Orc = (function () { | |
"use strict"; | |
var $caps = $('#caps_tipo_orc .tipo_orc'); | |
$caps.on('click', function () { | |
var $id = $('#' + event.target.id); | |
var $active = $('#caps_tipo_orc .tipo_orc_active'); | |
//oculta item já marcado | |
$active.children().toggleClass('objVisivel'); | |
$active.removeClass('tipo_orc_active'); //ok |
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
/** | |
* pub/sub | |
*/ | |
var EventDriven = { | |
/** | |
* Adiciona um evento | |
* @param {String} event O evento que será disparado. | |
* @param {Function} callback | |
*/ |
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 Giro = (function () { | |
var getTransformProperty = (function (element) { | |
var properties = [ | |
'transform', | |
'WebkitTransform', | |
'msTransform', | |
'MozTransform', | |
'OTransform' | |
]; | |
var prop; |
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
.dropdown { | |
color: #555; | |
margin: 3px -22px 0 0; | |
width: 143px; | |
position: relative; | |
height: 17px; | |
text-align: left; | |
} | |
.submenu { |