Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <script>
- if(!navigator.geolocation) {
- alert('your browser doesnt support geolocation');
- }
- else {
- navigator.geolocation.getCurrentPosition (success, error);
- }
- function success(position) {
- var lat=position.coords.latitude;
- var lng=position.coords.longitude;
- alert(lat + ', ' +lng);
- }
- function error(error) {
- alert('sorry an error occurred:'+error);
- }
- </script>
- <script src="http://platform.twitter.com/anywhere.js?id=tKROGbRIvKwAjRgo29RjvA&v=1" type="text/javascript"></script>
- <title>Untitled Document</title>
- </head>
- <!-- The key above accesses the News Builder App found at https://dev.twitter.com/apps. I have added my key and created a twitterbox. This box will access your twitter account and post the message to the site.-->
- <div id="tweetbox"></div>
- <script type="text/javascript">
- twttr.anywhere(function (T) {
- T("#tweetbox").tweetBox({
- 'defaultContent' : "#newsbuilder ",
- 'label': "What's happening in your location?",
- });
- });
- </script>
- <div id="position"> </div>
- <body>
- Welcome to News Builder. The purpose of this app is to crowdsource news.
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement