Some wordpress themes have css styles which modify the height attribute for video players, resulting in a player element which has a small height and is broken. These css styles will fix those issues.
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
#in controller test | |
# response.body.should be_valid_json | |
RSpec::Matchers.define :be_valid_json do | |
match do |actual| | |
JSON.parse(actual) | |
end | |
end |
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
# Prereqs | |
# os x (i have lion) | |
# install Xcode from the "App Store" | |
#install soloist gem | |
sudo gem install soloist --no-ri --no-rdoc | |
#create a dir to store your soloist cookbooks | |
mkdir -p ~/projects && cd ~/projects | |
mkdir -p chef/cookbooks/pivotal_workstation && cd chef/cookbooks/pivotal_workstation |
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
# app/views/layouts/application.haml | |
= render "shared/test_iframe_loaded" | |
# app/views/shared/_test_iframe_loaded.haml | |
- if Rails.env.test? | |
:javascript | |
(function(){ | |
if(window.top !== window.self){ | |
$(document).ready(function(){ |
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
window.JasmineReact = {}; | |
JasmineReact.renderComponent = function(component, container){ | |
var done = false, | |
callback = function(){ done = true; }, | |
isDone = function(){ return done; }; | |
if(typeof container === "undefined" ){ | |
container = document.getElementById("jasmine_content"); | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Video.js | HTML5 Video Player</title> | |
<link href="http://www.flashls.org/videojs/video-js.css" rel="stylesheet" type="text/css"> | |
<script src="http://www.flashls.org/videojs/video.js"></script> | |
<script> | |
videojs.options.flash.swf = "http://www.flashls.org/videojs/video-js.swf"; | |
</script> | |
</head> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Video.js | HTML5 Video Player</title> | |
<link href="http://www.flashls.org/videojs/video-js.css" rel="stylesheet" type="text/css"> | |
<script src="http://www.flashls.org/videojs/video.js"></script> | |
<script> | |
videojs.options.flash.swf = "http://tout-development.site.s3.amazonaws.com/tomhallettest/video-js-mangui-dist.swf"; | |
</script> | |
</head> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Video.js | HTML5 Video Player</title> | |
<link href="http://www.flashls.org/videojs/video-js.css" rel="stylesheet" type="text/css"> | |
<script src="http://www.flashls.org/videojs/video.js"></script> | |
<script> | |
videojs.options.flash.swf = "http://tout-development.site.s3.amazonaws.com/tomhallettest/video-js-mangui-dist.swf"; | |
videojs.options.flash.flashVars = { hls_startfromlevel: 0 }; | |
</script> |
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 salaryElementSelector = ".salary, .subheading__salary, .offer-text, .candidate-info--salary, .btn-one-click-offer span", | |
salaryElements = document.querySelectorAll(salaryElementSelector); | |
for (var i = 0; i < salaryElements.length; ++i) { | |
salaryElements[i].style.display = "none"; | |
} | |
})(); |
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
/* | |
Copyright (c) 2008-2015 Pivotal Labs | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to | |
the following conditions: |
OlderNewer