Difference between revisions of "Team:Paris Bettencourt/bepo"

 
Line 2: Line 2:
 
<html>
 
<html>
 
<script>
 
<script>
function GetURLParameter(sParam)
+
$(function() {
{
+
   $("#test").load("https://2015.igem.org/wiki/index.php?title=Team:Paris_Bettencourt/bepo2&action=render");
  var sPageURL = window.location.search.substring(1);
+
  var sURLVariables = sPageURL.split('&');
+
  for (var i = 0; i < sURLVariables.length; i++)
+
  {
+
    var sParameterName = sURLVariables[i].split('=');
+
    if (sParameterName[0] == sParam)
+
    {
+
        return sParameterName[1];
+
    }
+
  }
+
}
+
$(function(){
+
  var pinc = GetURLParameter('p');
+
   $("#test").load(pinc);
+
 
});
 
});
    </script>  
+
</script>
 
<style>
 
<style>
 
#test {
 
#test {

Latest revision as of 17:31, 28 July 2015