Advertisement
Guest User

Untitled

a guest
May 25th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. <?php require_once('include/header.php')?>
  2. <? require('include/navigation.php') ?>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <title>Coworking Spaces</title>
  7. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
  8. <script type="text/javascript">
  9. $(document).ready(function(){
  10. $( ".description" ).click(function() {
  11. $(".website" ).show( "slow", function() {
  12. // Animation complete.
  13. });
  14. $(".hideWebsite" ).show( "slow", function() {
  15. });
  16. });
  17.  
  18. $( ".hideWebsite" ).click(function() {
  19. $(".website" ).hide( "slow", function() {
  20. });
  21. $(".hideWebsite" ).hide( "slow", function() {
  22. });
  23. });
  24. });
  25. </script>
  26. </head>
  27. <body>
  28. <div id="container">
  29. <div id='city_header'>
  30. <div id='city_search'>
  31. <h1>
  32. Kansas City
  33. </h1>
  34. </div>
  35. </div>
  36. <div id="body">
  37. <?php
  38. for($i = 0; $i < count($cospaces); ++$i){
  39. ?>
  40.  
  41. <div class="company_box" style ="background-image: url(<?php echo($cospaces[$i]['image'])?>);">
  42. <button class= "hideWebsite" type="button" name="button">X</button>
  43. <iframe class= "website" src="<?php echo($cospaces[$i]['website']) ?>"></iframe>
  44. <div class="name_box">
  45. <h3 class="space_name"><?php echo($cospaces[$i]['name'])?></h3>
  46. </div>
  47. <div class="description">
  48. <p><?php echo($cospaces[$i]['description']) ?></p>
  49. </div>
  50. </div>
  51. <?php } ?>
  52. </div>
  53. <p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds</p>
  54. </div>
  55. </div>
  56. </body>
  57. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement