View gist:559b956e5bf56b1d3caacdb04c0ad2eb
This file contains 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
.video-js .vjs-menu-button-popup .vjs-menu .vjs-menu-content { | |
width: 34em; | |
left: -19em; | |
} | |
.video-js .vjs-menu-button-popup .vjs-menu .vjs-menu-title { | |
background-color: #020699; | |
} | |
.video-js .vjs-menu-button-popup .vjs-menu .vjs-menu-item { |
View gist:6e489b1a4c923bad89c4b6f96712aa78
This file contains 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
class FeatureContext extends MinkContext { | |
/** | |
* @Given /^I wait for css element "([^"]+)" to (appear|disappear)$/ | |
*/ | |
public function iWaitForCssElement($element, $appear) | |
{ | |
$xpath = $this->getSession()->getSelectorsHandler()->selectorToXpath('css', $element); | |
$this->waitForXpath($xpath, $appear == 'appear'); | |
} |
View gist:39d338c011ebf2911dc12ca5d6b94530
This file contains 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
use Behat\Mink\Driver\Selenium2Driver; | |
use Behat\Behat\Hook\Scope\AfterStepScope; | |
/** | |
* @When /^I take a screnshoot "([^"]*)"$/ | |
*/ | |
public function takeScreenShotAfterFailedStep($filePath) | |
{ |
View gist:0dbf82f5a81d77ef6b83
This file contains 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($) { | |
var o = $({}); | |
$.subscribe2 = function() { | |
o.on.apply(o, arguments); | |
}; | |
$.unsubscribe2 = function() { | |
o.off.apply(o, arguments); |
View gist:d85b11af71f0d47c1194
This file contains 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
public function getUrl($image,$options){ | |
$url = Configure::read('webroot_url').'/img/myimg/empty.jpg'; | |
if($this->validate($image,$options)){ | |
/*configurar uma variavel global para pegar url padrão do site neste arquivo*/ | |
$url = 'http://'.$this->s3defaults['cloud_front'].$image['alias'].'/'.$image[$image['alias'].'_id'].'/'.(isset($options['rel'])?$options['rel'].'-':'').$image['name']; | |
} | |
return $url; | |
} |
View HtmlHelper::image()
This file contains 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
/** | |
* Verificar se a imagem existi | |
* caso ela exista retorna para o helper do html | |
* se ela não existir retorna false para não exibir a div sem imagem | |
* | |
*/ | |
public function image($path, $options = array()) | |
{ | |
$realPatch = ROOT . DS . APP_DIR . DS . WEBROOT_DIR . 'img' . DS . join(DS,explode('/',$path)); |