Team:UCL Academy/js/initjs

From 2013hs.igem.org

(Difference between revisions)
Line 1: Line 1:
$(document).ready(function(){
$(document).ready(function(){
     $('<iframe />', {
     $('<iframe />', {
-
     src: 'http://www.synbiosoc.org/igemhs/' + this.hash,
+
     src: 'http://www.synbiosoc.org/igemhs/' + window.location.hash,
     id:  'injectedcontent'
     id:  'injectedcontent'
}).appendTo('body');
}).appendTo('body');
});
});

Revision as of 19:13, 11 June 2013

$(document).ready(function(){

    $('<iframe />', {
   src: 'http://www.synbiosoc.org/igemhs/' + window.location.hash,
   id:   'injectedcontent'

}).appendTo('body'); });