Skip to content

Instantly share code, notes, and snippets.

View craigtaub's full-sized avatar

Craig Taub craigtaub

View GitHub Profile
NAV:
tvip-links-cats-channels-container {
- Channel Items
tvip-links-cats-container {
- Category Items
- Other Nav Link Items
}
}
//open page
//var_dump($json);die;
//refresh
//Save as fixtures/bamboo/home_highlights_series_stacked.json
/iplayer?_fake=highlights@series_stacked
HTTP/1.1 200 OK
Server: Fixture
Content-Language: en-GB
Content-Type: application/json;charset=UTF-8
define('iplayer/controllers/Preview',
function() {
glow.events.addListener("#preview-opt-in a", "click", function(event) {
event.stopPropagation();
event.preventDefault();
var date = new Date(),
expires;
date.setTime(date.getTime()+(182*24*60*60*1000)); //6 months in future
expires = date.toGMTString();
<~method domReadyInit>
require([
'iplayer/controllers/DrawerManager',
'iplayer/controllers/OverlayManager',
'iplayer/controllers/UserRecommendations',
'iplayer/controllers/FriendsActivity',
'iplayer/controllers/RadioUpsell',
'iplayer/controllers/IstatsLinkTracking',
'iplayer/controllers/Arialandmarks',
'iplayer/controllers/Preview'
@craigtaub
craigtaub / gist:9022252
Created February 15, 2014 17:22
Style guide
<b>fff</b>
@craigtaub
craigtaub / gist:9414837
Last active August 29, 2015 13:57
channel switcher
@mixin channelBackgroundImage($image-name, $has-hover-state: false, $inverted-image: '') {
$base: "../../../img/channels/logos/";
$ext: "_transparent.png";
$image-location: $base + $image-name + $ext;
background-image: url("#{$image-location}");
@if $has-hover-state {
$base: $base + "/hover/";
$image-location: $base + $image-name + $ext;
@include hoverActiveFocus {
Tviplayer Bamboo
Channels -> Channels -> Base
- constructor - metadata accessor
- property accessor
- decorator
Channel
- property accessor
<?php
/***** CONTROLLER ACTIONS ******/
class Tviplayer_HomepageController
{
public function homeHighlightsAction() {
$homeHighlightsObject = new BBC_Tviplayer_Models_Highlights_Home();
$homeHighlights = $homeHighlightsObject->fetch($params = array());
foreach($homeHighlights as $item) {
B
|
T/T
| ?SHA
D
D - Use SHA
@craigtaub
craigtaub / release 1.13.0.md
Last active August 29, 2015 14:02
release 1.13.0.md
Type Story Summary
Bug IPLAYER-19138 Stay on CBBC iPlayer is not displaying the link icon pointer aka the finger
Bug IPLAYER-19136 IE8 Windows 7 - Childrens iPlayer clicking on any item inside the walled garden hides the window behind any other open window
Bug IPLAYER-19092 Off air live panel on CBBC homepage
Bug IPLAYER-19097 Exit popup - 'iPlayer' and 'Help & FAQ' selected state is persisted when the user decides to stay in children's iPlayer
Bug IPLAYER-18899 BARLESQUE-75, iStats call is duplicated
Bug IPLAYER-18973 UNIFIEDPLACE-8469, ckps_language cookie domain is not consistant between iplayer & other users of cookie
Bug IPLAYER-19077 Horrible 1px border/gap in Chrome.... again
Bug IPLAYER-19100 Mobile help URLs are redirecting to iPlayer responsive web homepage