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
<!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
# 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
(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: |
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
<h1>IAS: Pixel Tracking Debuger</h1> | |
<p>This page provides a bookmarklet to help debug the IAS tracking pixels.</p> | |
<h3>Usage</h3> | |
<ol> | |
<li>Install the bookmarklet by dragging the link below into your bookmarks bar</li> | |
<li>Go to a page which has a video player on it where IAS verification is in use</li> | |
<li>Click the bookmarklet</li> | |
<li>You should see 9 red squares appear - these are the IAS tracking pixels</li> | |
<li>You might see a the video player get a white halo around it. This will happen when the bookmarklet finds a script tag with the source of http://pixel.adsafeprotected.com/jload, and then it puts a border around the scripts parentNode.</li> |
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> | |
<body> | |
<h1>Gardner Meerkat Bookmarklet</h1> | |
<a href="javascript:(function()%7B(function()%7Bvar%20css%20%3D%20'iframe%23mkEmbedPlayer-gardner%20%7B%20width%3A%20465px%20!important%3B%20height%3A%20465px%20!important%3B%20%7D'%2Chead%20%3D%20document.head%20%7C%7C%20document.getElementsByTagName('head')%5B0%5D%2Cstyle%20%3D%20document.createElement('style')%3Bstyle.type%20%3D%20'text%2Fcss'%3Bif%20(style.styleSheet)%7Bstyle.styleSheet.cssText%20%3D%20css%3B%7D%20else%20%7Bstyle.appendChild(document.createTextNode(css))%3B%7Dhead.appendChild(style)%3Bvar%20wrapper%20%3D%20document.createElement(%22div%22)%3Bwrapper.id%20%3D%20%22meerkat-wrapper%22%3Bwrapper.style.position%20%3D%20%22fixed%22%3Bwrapper.style.bottom%20%3D%20%220%22%3Bwrapper.style.right%20%3D%20%220%22%3Bvar%20script%20%3D%20document.createElement(%22script%22)%3Bscript.src%20%3D%20%22http%3A%2F%2Fmeerkatapp.co%2Fwidgets%2Fembed.js%22%3Bscript.className%20%3D%20%22mkEmbedPlayer%22%3Bscript.setAttribute(%22data-mute%22% |
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
var onGlobalDefined = function(func, varName){ | |
if(typeof window[varName] !== "undefined"){ | |
console.log("running"); | |
func(); | |
} else { | |
console.log("waiting"); | |
setTimeout(function(){ | |
onGlobalDefined(func, varName); | |
}, 10); | |
} |
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"); | |
} |
OlderNewer