diff options
author | Ca-Phun Ung <pazu2k@gmail.com> | 2008-12-30 16:27:17 +0000 |
---|---|---|
committer | Ca-Phun Ung <pazu2k@gmail.com> | 2008-12-30 16:27:17 +0000 |
commit | 1828aab85dc57aa43d6a023bf668d20f2ce2aff2 (patch) | |
tree | 50b235812fd1cc2878f78b4726000427aefd6e0a /demos/index.html | |
parent | ae282a966561584be9785c9b5898b2e63635de01 (diff) | |
download | jquery-ui-1828aab85dc57aa43d6a023bf668d20f2ce2aff2.tar.gz jquery-ui-1828aab85dc57aa43d6a023bf668d20f2ce2aff2.zip |
demos/index.html - slimmed down the php code parts.
Diffstat (limited to 'demos/index.html')
-rw-r--r-- | demos/index.html | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/demos/index.html b/demos/index.html index 1a4505af7..130b02f84 100644 --- a/demos/index.html +++ b/demos/index.html @@ -49,23 +49,6 @@ </script> </head> <body> -<?php } else { - $base = 'repository/trunk/demos/'; - $section = $base . $_GET['load']; - - ?> - <script type="text/javascript"> - var section; - - <?php printf ('section = "%s";', $section); ?> - - section && jQuery(function($){ - $('dl.nav a').each(function(){ - this.setAttribute('href', '/' + section + '/' + this.getAttribute('href')); - $(this).attr('target', 'preview'); - }); - }); - </script> <?php } ?> <table class="layout-grid" cellspacing="0" cellpadding="0"> @@ -94,16 +77,7 @@ <td class="normal"> <div class="normal"> - <?php if(isset($plain) && isset($_GET['load'])) { - echo html_entity_decode('<h4 class="demo-subheader">Functional demo:</h4>'); - echo html_entity_decode('<h3>'. $_GET['load'] .'</h3>'); - echo html_entity_decode('<div class="demo-config">'); - echo html_entity_decode('<iframe id="preview" name="preview" src="/'. $section .'/default.html" width="520" height="314" border="0" frameborder="0" style="overflow:auto"></iframe>'); - echo html_entity_decode('<div class="demo-config-menu">'); - include($section .'/index.html'); - echo html_entity_decode('</div>'); - echo html_entity_decode('</div>'); - } else { ?> + <?php if(isset($plain) && $content) { echo $content; } else { ?> <h3>Instructions</h3> <p> |