Skip to content

Commit

Permalink
New videos. #32
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuNls committed Jul 7, 2015
1 parent d671cf6 commit ad66a1e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions application/controllers/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,15 @@ private function homeMessage(){
$rand = rand ( 0 , 3 );

$watchBrands = array('Seiko', 'Rolex', 'Omega');
$videos = array('Omega.mp4', 'Rolex.mp4', 'Zenith.mp4');
$videos = array('Omega.mp4', 'Rolex.mp4', 'Zenith.mp4', 'Vacheron.mp4');

$video = vid_url('Zenith.mp4');

if($rand >= 0 && $rand <= 2){
return array('title'=>$this->measure
->getMeasuresCountByWatchBrand($watchBrands[$rand]) .
return array('title'=>$this->measure
->getMeasuresCountByWatchBrand($watchBrands[rand ( 0 , 2 )]) .
' ' . $watchBrands[$rand] . ' measured on Toolwatch.io',
'video_url'=>vid_url($videos[$rand]));
}else{
return array('title'=>$this->measure->getMeasuresWeeklyAverageAccuracy() .
' spd average accuracy measured this week', 'video_url'=>$video);
}
'video_url'=>vid_url($videos[rand ( 0 , 3 )]));

}

function logout()
Expand Down
Binary file modified assets/videos/Omega.mp4
100755 → 100644
Binary file not shown.
Binary file modified assets/videos/Rolex.mp4
100755 → 100644
Binary file not shown.
Binary file added assets/videos/Vacheron.mp4
Binary file not shown.
Binary file modified assets/videos/Zenith.mp4
100755 → 100644
Binary file not shown.

0 comments on commit ad66a1e

Please sign in to comment.