This file contains hidden or 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
| <script> | |
| window.AudioContext = (function(){ | |
| return window.webkitAudioContext || window.AudioContext ; | |
| })(); | |
| // Global variables | |
| var audioContext; | |
| var audioBuffer = 0; | |
| var audioUrl = "/tutorial_support/5/Doctor_Who_theme_excerpt.ogg"; |
This file contains hidden or 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
| <audio autoplay="autoplay" controls="controls"> | |
| <source src="/assets/Doctor_Who_theme_excerpt.ogg" /> | |
| <p>Your browser does not support the audio element.</p> | |
| </audio> |
This file contains hidden or 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
| <iframe width="420" height="315" src="//www.youtube.com/embed/vzeBDcmrjjY" frameborder="0" allowfullscreen></iframe> |
This file contains hidden or 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
| <iframe id="forecast_embed" type="text/html" frameborder="0" height="245" width="100%" | |
| src="http://forecast.io/embed/#lat=69.649205&lon=18.955324&name=Tromso, Norway&color=#00aaff&font=Helvetica&units=us"> | |
| </iframe> |
This file contains hidden or 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
| <iframe id="forecast_embed" type="text/html" frameborder="0" height="245" width="100%" | |
| src="http://forecast.io/embed/#lat=64.133753&lon=-21.879272&name=Reykjavik, Iceland&color=#00aaff&font=Helvetica&units=us"> | |
| </iframe> |
This file contains hidden or 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
| <a class="twitter-timeline" href="https://twitter.com/BBCWorld" data-widget-id="395313647477481472">Tweets by @BBCWorld</a> | |
| <script>!function(d,s,id){ | |
| var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https'; | |
| if(!d.getElementById(id)){ | |
| js=d.createElement(s); | |
| js.id=id; | |
| js.src=p+"://platform.twitter.com/widgets.js"; | |
| fjs.parentNode.insertBefore(js,fjs); | |
| } | |
| }(document,"script","twitter-wjs"); |
This file contains hidden or 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
| <blockquote class="twitter-tweet"> | |
| <p>Brazil to export low-cost measles & rubella vaccines to developing countries | |
| <a href="http://t.co/moEfOssAqQ">http://t.co/moEfOssAqQ</a> | |
| </p> | |
| — BBC News (World) (@BBCWorld) | |
| <a href="https://twitter.com/BBCWorld/statuses/395287088033447936">October 29, 2013</a> | |
| </blockquote> | |
| <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> |
This file contains hidden or 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
| <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=eiffel+tower,+Paris,+France&aq=t&sll=47.613028,-122.342064&sspn=0.367071,0.644073&ie=UTF8&hq=&hnear=&t=m&iwloc=A&ll=48.858228,2.294388&spn=0.006295,0.006295&output=embed"></iframe> | |
| <br /> | |
| <small> | |
| <a href="https://maps.google.com/maps?f=q&source=embed&hl=en&geocode=&q=eiffel+tower,+Paris,+France&aq=t&sll=47.613028,-122.342064&sspn=0.367071,0.644073&ie=UTF8&hq=&hnear=&t=m&iwloc=A&ll=48.858228,2.294388&spn=0.006295,0.006295" style="color:#0000FF;text-align:left">View Larger Map</a> | |
| </small> |
This file contains hidden or 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
| # Helper method - place in application_helper.rb | |
| def custom_sort_helper(path, sort_term, sort_label, search, sort_string) | |
| uri = String.new(path) | |
| # copy the current search terms but exclude meta_sort | |
| search_array = Array.new | |
| search.search_attributes.each { |key, val| (search_array << "search[#{key}]=#{val}") unless key == 'meta_sort' } | |
| uri << '?' |