Skip to content

Commit

Permalink
Cleaning up some files
Browse files Browse the repository at this point in the history
  • Loading branch information
MFox committed Apr 22, 2017
1 parent 513d1ab commit 6cc1c86
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 22 deletions.
11 changes: 10 additions & 1 deletion Wello/www/form.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

$mysqli = new mysqli("localhost", "db10e41481317066", "jXLUjNG/cQxm4VJ1SionhDKdcT4BT1Dos7sZMddIapa/8LYDpDNz+3hwGCz8Shon", "db10e41481317066");
if ( (isset($_GET['Well_ID'])) && (is_numeric($_GET['Well_ID'])) ) {
$Well_ID = $_GET['Well_ID'];
}
else if ( (isset($_POST['Well_ID'])) && (is_numeric($_POST['Well_ID'])) ) {
$Well_ID = $_POST['Well_ID'];
}
else {
$Well_ID = "0";
}
?>
<!doctype html>
<html class="no-js" lang="">
Expand Down
13 changes: 0 additions & 13 deletions Wello/www/js/main.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
function initMap() {
var location = {lat: 41.812013, lng: -72.249019};
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 16,
center: location
});
var marker = new google.maps.Marker({
position: location,
map: map
});
}


$('select').change(function() {

if ($(this).val() == "Other"){
Expand Down
10 changes: 2 additions & 8 deletions Wello/www/map.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<nav class="top-nav">
<div class="main-bttns">
<button onclick="document.getElementById('menu').classList.toggle('closed'); document.getElementById('close-menu').classList.toggle('closed')"><img src="img/menu.svg" alt="menu" /></button> <h1>Well Report App</h1>
<a href="search.html"><button><img src="img/search.svg" alt="menu" /></button></a>
<a href="search.php"><button><img src="img/search.svg" alt="menu" /></button></a>
</div>

<div class="close-menu closed" id="close-menu" onclick="document.getElementById('menu').classList.toggle('closed'); document.getElementById('close-menu').classList.toggle('closed')"></div>
Expand Down Expand Up @@ -65,7 +65,7 @@
<div>
<h2>Well Name</h2>
<p>short well description</p>
<a href="details.html">DETAILS</a>
<a href="details.php">DETAILS</a>
</div>
</div>

Expand All @@ -88,19 +88,13 @@
<button class="add-well"><a href="form.php"> <img src="img/add.svg" alt="add well" /></a></button>
</nav>






<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script>
window.jQuery || document.write('<script src="js/vendor/jquery-1.12.0.min.js"><\/script>')
</script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>


<script>

function initMap() {
Expand Down

0 comments on commit 6cc1c86

Please sign in to comment.