diff --git a/home/index.html b/home/index.html new file mode 100644 index 0000000..9b72a91 --- /dev/null +++ b/home/index.html @@ -0,0 +1,199 @@ + + + + + + + + + + + + + + + + + + + + + ENPaul + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+

+ + +

+
+

Student - Tinkerer - Programmer - (aspiring) Engineer

+
+
    +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
+
+
+
+
+
+ + + +
+ +
+
+
+

Network Services

+ +

+

+ Providing useful network services is the primary goal of the ENPaul Network (ENPN). These services provide means of entertainment, data management, and security for the network users. +

+ The full list of services provided by the ENPN can be found at the link below. Alternatively, use one of the other links to directly access specific service web-interfaces. +
+

+ +
+
+
+ + + +
+ +
+
+
+

About E.N.Paul

+ +

+

+ EN Paul is a Mechanical Engineering student at Worcester Polytechnic Institute in Worcester Massachusets with way too much time on his hands. He works at WPI Network Operations, plays around with 3DS SolidWorks, and runs this website when he's bored. +

+ He doesn't want donations, but asks that if you have a joke or funny story to share that you send it to him. +
+

+
+
+
+ + + + + diff --git a/home/weather.js b/home/weather.js new file mode 100644 index 0000000..b878a98 --- /dev/null +++ b/home/weather.js @@ -0,0 +1,58 @@ +$(document).ready(function () { + data = []; + navigator.geolocation.getCurrentPosition(positionSet, positionError); + if (data['location']['error'] == null) { + weatherCurrent(); + weatherForecast(); + } + else { + weatherError(); + } +}); + +function positionSet(position) { + data['location']['error'] = null; + data['location']['lat'] = position.coords.latitude; + data['location']['long'] = position.coords.longitude; +} + +function positionError(error) { + switch(error.code) { + case error.PERMISSION_DENIED: + data['location']['error'] = 'GEOLOCATION DENIED'; + break; + case error.POSITION_UNAVAILABLE: + data['location']['error'] = 'GEOLOCATION UNAVAILABLE'; + break; + case error.TIMEOUT: + data['location']['error'] = 'GEOLOCATION TIMEOUT'; + break; + case error.UNKNOWN_ERROR: + data['location']['error'] = 'GEOLOCATION UNKNOWN ERROR'; + break; + } +} + +function weatherCurrent() { + $.ajax({ + method: 'GET', + url: 'https://api.openweathermap.org/data/2.5/weather?lat=' + data['location']['lat'] + '&lon=' + data['location']['long'], + dataType: json, + crossDomain: true, + success: function (data) { + + }, + error: function (error) { + + } + }); + +} + +function weatherForecast() { + +} + +function weatherError() { + +} diff --git a/img/Map-Topology.png b/img/Map-Topology.png new file mode 100644 index 0000000..68a932c Binary files /dev/null and b/img/Map-Topology.png differ diff --git a/network/index.html b/network/index.html index 183ab99..064b746 100644 --- a/network/index.html +++ b/network/index.html @@ -11,12 +11,12 @@ - + - + ENPaul