Permalink
Browse files

No longer show location

This isn't available over HTTPS and I don't think it's that useful.
  • Loading branch information...
twe4ked committed Feb 1, 2019
1 parent f502537 commit b3643daf6420aeeab1f1fed552d4e836ee0cfc4e
Showing with 1 addition and 30 deletions.
  1. +1 −6 _layouts/default.html
  2. +0 −20 assets/javascripts/application.js
  3. +0 −4 assets/stylesheets/style.sass
@@ -9,12 +9,7 @@
<body>
<header>
<a href=/><h1>Odin Dutton</h1></a>
<h2>
Barefoot Web Developer
<span>
@ Locating...
</span>
</h2>
<h2>Developer</h2>
<ul id=social>
<li><a href=http://twitter.com/twe4ked class=twitter>Twitter</a></li>
<li><a href=https://github.com/twe4ked class=github>Github</a></li>
@@ -1,23 +1,3 @@
window.onload = function(event) {
span = document.querySelectorAll('header h2 span')[0]

request = new XMLHttpRequest()
request.open('GET', 'http://human.odin.bz/location.json')
request.onerror = function() {
span.textContent = '@ Earth'
}
request.onload = function() {
if (request.status >= 200 && request.status < 400){
data = JSON.parse(request.responseText)
span.textContent = '@ ' + data['name']
span.setAttribute('title', data['source_created_at'])
} else {
request.onerror()
}
}
request.send()
}

window.onscroll = function(event) {
if (window.cover_height == undefined) { window.cover_height = document.getElementById('cover').offsetHeight }
if (document.body.scrollTop <= window.cover_height) {
@@ -60,10 +60,6 @@ body > header
h2
font-size: 20px
color: #666
span
color: #999
a
color: #999
a.ref
font: 12px / 14px Monaco, monospace
position: absolute

0 comments on commit b3643da

Please sign in to comment.