Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
MFox committed Mar 25, 2017
2 parents 2c3600e + 623d215 commit 6648c07
Show file tree
Hide file tree
Showing 13 changed files with 580 additions and 1,035 deletions.
Empty file modified Wello/platforms/browser/cordova/build
100755 → 100644
Empty file.
Empty file modified Wello/platforms/browser/cordova/clean
100755 → 100644
Empty file.

This file was deleted.

This file was deleted.

Empty file modified Wello/platforms/browser/cordova/run
100755 → 100644
Empty file.
Empty file modified Wello/platforms/browser/cordova/version
100755 → 100644
Empty file.
5 changes: 4 additions & 1 deletion html-ONLY-site/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ <h2>Well location</h2>
</li>

<li id="get-gps-local">
<label for="gps-coordinates">GPS coordinates <button onclick="getLocation()"><img alt="get location" src="img/gps.svg"></button></label>
<label for="gps-coordinates">GPS coordinates
<img onclick="getLocation()" alt="get location" src="img/gps.svg">
</label>
<p id="demo"></p>
<label for="gps-coordinates">Latitude</label>
<input type="text" id="gps-coordinates-latitude">
<label for="gps-coordinates">Longitude</label>
Expand Down
17 changes: 3 additions & 14 deletions html-ONLY-site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,22 @@
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
</head>






<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<!-- Add your site or application content here -->







<main class="intro">

<h1>Connecticut<br>Well Report App</h1>
<p>Use this app to pull up data on any well in Connecticut on site and see it's details. Also, fill out and submit well report forms within the app.</p>
<a href="map.html">Continue</a>

</main>






<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>')
Expand Down
17 changes: 17 additions & 0 deletions html-ONLY-site/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,20 @@ $('select').change(function() {
};

});

var x = document.getElementById("demo");

function getLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
} else {
x.innerHTML = "Geolocation is not supported by this browser.";
}
}

function showPosition(position) {
$("#gps-coordinates-latitude").val(position.coords.latitude);
$("#gps-coordinates-longitude").val(position.coords.longitude);
//x.innerHTML = "Latitude: " + position.coords.latitude +
//"<br>Longitude: " + position.coords.longitude;
}
24 changes: 24 additions & 0 deletions html-ONLY-site/map.html → html-ONLY-site/map.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
<?php

$servername = "wellreportapp.uconn.edu";
$username = "db10e41481317066";
$password = "jXLUjNG/cQxm4VJ1SionhDKdcT4BT1Dos7sZMddIapa/8LYDpDNz+3hwGCz8Shon";

// Create connection
$conn = new mysqli($servername, $username, $password);

// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";

?>

<!doctype html>
<html class="no-js" lang="">

Expand Down Expand Up @@ -111,4 +128,11 @@ <h2>Well Name</h2>
</script>
</body>


</html>
// notes :



// we will need a file where we import the well name, address, longiture and latitude within the range we chose
// we need a food loop for it
Loading

0 comments on commit 6648c07

Please sign in to comment.