Skip to content
Browse files

added vimeo embed & fitvid.js

  • Loading branch information...
1 parent aeae036 commit a16089fdd2948911d135b40eba33744a772296cc @bradcerasani bradcerasani committed Mar 9, 2013
Showing with 8 additions and 4 deletions.
  1. +4 −3 goodwork/index.html
  2. +1 −0 js/fitvids.js
  3. +3 −1 js/script.js
View
7 goodwork/index.html
@@ -35,10 +35,10 @@
<div class="wrapper">
<div class="row">
<div class="col12">
- <span class="snark snark-dark">When is it?</span>
<div class="goodwork">
- <h1>Goodwork 2013</h1>
- <p>10:00 AM - 6:30 PM<br /> Saturday, March 9th, 2013<br /> United Way Winnipeg, 580 Main St</p>
+ <h1>Goodwork was Good!</h1>
+ <!-- vimeo embed - use color 2fd9fd -->
+ <iframe src="http://player.vimeo.com/video/59584804?title=0&amp;byline=0&amp;portrait=0&amp;badge=0&amp;color=2fd9fd" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
</div>
</div>
</div>
@@ -178,6 +178,7 @@
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
+ <script src="/js/fitvids.js"></script>
<script src="/js/script.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
View
1 js/fitvids.js
@@ -0,0 +1 @@
+(function(a){"use strict";a.fn.fitVids=function(b){var c={customSelector:null},d=document.createElement("div"),e=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];return d.className="fit-vids-style",d.innerHTML="&shy;<style> .fluid-width-video-wrapper { width: 100%; position: relative; padding: 0; } .fluid-width-video-wrapper iframe, .fluid-width-video-wrapper object, .fluid-width-video-wrapper embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } </style>",e.parentNode.insertBefore(d,e),b&&a.extend(c,b),this.each(function(){var b=["iframe[src*='player.vimeo.com']","iframe[src*='www.youtube.com']","iframe[src*='www.youtube-nocookie.com']","iframe[src*='www.kickstarter.com']","object","embed"];c.customSelector&&b.push(c.customSelector);var d=a(this).find(b.join(","));d.each(function(){var b=a(this);if(!("embed"===this.tagName.toLowerCase()&&b.parent("object").length||b.parent(".fluid-width-video-wrapper").length)){var c="object"===this.tagName.toLowerCase()||b.attr("height")&&!isNaN(parseInt(b.attr("height"),10))?parseInt(b.attr("height"),10):b.height(),d=isNaN(parseInt(b.attr("width"),10))?b.width():parseInt(b.attr("width"),10),e=c/d;if(!b.attr("id")){var f="fitvid"+Math.floor(999999*Math.random());b.attr("id",f)}b.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*e+"%"),b.removeAttr("height").removeAttr("width")}})})}})(jQuery);
View
4 js/script.js
@@ -178,9 +178,11 @@ $(document).ready(function(){
});
var one = "hello", two = "secrethandshake", three = "@", four = "mail";
- $('#goodwork .next .col12').append('<a class="button button-signup" href="' + four + 'to:'+one+three+two+'.ca" title="Sign Up Now">Sign Up Now</a>');
+ // $('#goodwork .next .col12').append('<a class="button button-signup" href="' + four + 'to:'+one+three+two+'.ca" title="Sign Up Now">Sign Up Now</a>');
$('.social-icons').prepend('<a href="' + four + 'to:'+one+three+two+'.ca" title="Email"><img src="/img/email.png" /></a>');
+ $("#goodwork").fitVids();
+
});

0 comments on commit a16089f

Please sign in to comment.
Something went wrong with that request. Please try again.