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 { |
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'); | |
} |
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) | |
{ |
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); |
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; | |
} |
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)); |