Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php require_once('include/header.php')?>
- <? require('include/navigation.php') ?>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Coworking Spaces</title>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $( ".description" ).click(function() {
- $(".website" ).show( "slow", function() {
- // Animation complete.
- });
- $(".hideWebsite" ).show( "slow", function() {
- });
- });
- $( ".hideWebsite" ).click(function() {
- $(".website" ).hide( "slow", function() {
- });
- $(".hideWebsite" ).hide( "slow", function() {
- });
- });
- });
- </script>
- </head>
- <body>
- <div id="container">
- <div id='city_header'>
- <div id='city_search'>
- <h1>
- Kansas City
- </h1>
- </div>
- </div>
- <div id="body">
- <?php
- for($i = 0; $i < count($cospaces); ++$i){
- ?>
- <div class="company_box" style ="background-image: url(<?php echo($cospaces[$i]['image'])?>);">
- <button class= "hideWebsite" type="button" name="button">X</button>
- <iframe class= "website" src="<?php echo($cospaces[$i]['website']) ?>"></iframe>
- <div class="name_box">
- <h3 class="space_name"><?php echo($cospaces[$i]['name'])?></h3>
- </div>
- <div class="description">
- <p><?php echo($cospaces[$i]['description']) ?></p>
- </div>
- </div>
- <?php } ?>
- </div>
- <p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds</p>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement