Skip to content

Commit 50936ff

Browse files
committed
Tons of SEO, added social sharing buttons, some css fixes.
1 parent 3dd6805 commit 50936ff

File tree

6 files changed

+77
-5
lines changed

6 files changed

+77
-5
lines changed

css/style.css

+5
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,8 @@ html {
167167

168168
.activeline {background: #fff0b6 !important;}
169169

170+
.socials {
171+
padding: 10px;
172+
}
173+
174+
H1 { text-align: center }

dublin.rdf

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0"?>
2+
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc= "http://purl.org/dc/elements/1.1/">
3+
<rdf:Description rdf:about="http://www.yoursite.com/">
4+
<dc:contributor>hudbrog</dc:contributor>
5+
<dc:date>2013-02-01</dc:date>
6+
<dc:description>gcode viewer - gCodeViewer is a visual G-Code visualizer, viewer and analyzer online in your own browser!</dc:description>
7+
<dc:language>EN</dc:language>
8+
<dc:publisher>hudbrog</dc:publisher>
9+
<dc:source>http://gcode.ws/</dc:source>
10+
</rdf:Description>
11+
</rdf:RDF>

favicon.ico

318 Bytes
Binary file not shown.

index.html

+54-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
22
<html>
33
<head>
4-
<title>gCodeViewer - online gcode viewer and analyzer in your browser!</title>
4+
<title>gcode viewer - online gcode viewer and analyzer in your browser!</title>
55
<meta name="description" content="Visual GCode viewer and analyzer in your browser. No need to upload you GCode anywhere, everything is done locally.">
6+
<meta name="keywords" content="GCode,g-code,viewer,online,javascript">
7+
<meta charset="UTF-8">
8+
<meta name="language" content="english" />
9+
10+
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="favicon.ico" />
11+
<link rel="sitemap" type="application/xml" title="Sitemap" href="sitemap.xml" />
12+
<link rel="meta" type="application/rdf+xml" title="Dublin" href="dublin.rdf" />
13+
<link rel="canonical" href="http://gcode.ws/">
14+
15+
616
<link rel="stylesheet" type="text/css" href="css/cupertino/jquery-ui-1.9.0.custom.css" media="screen" />
717
<link rel="stylesheet" type="text/css" href="css/bootstrap.css" media="screen" />
818
<link rel="stylesheet" type="text/css" href="lib/codemirror.css" media="screen" />
@@ -24,7 +34,7 @@
2434
<script type="text/javascript">
2535

2636
var _gaq = _gaq || [];
27-
_gaq.push(['_setAccount', 'UA-35746662-1']);
37+
_gaq.push(['_setAccount', 'UA-38437619-1']);
2838
_gaq.push(['_trackPageview']);
2939

3040
(function() {
@@ -34,10 +44,31 @@
3444
})();
3545

3646
</script>
47+
<script type="text/javascript">
48+
(function() {
49+
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
50+
po.src = 'https://apis.google.com/js/plusone.js';
51+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
52+
})();
53+
</script>
54+
55+
<meta property="og:title" content="gCodeViewer - online gcode viewer and analyzer!" />
56+
<meta property="og:type" content="website" />
57+
<meta property="og:url" content="http://gcode.ws" />
58+
<meta property="og:image" content="http://gcode.ws/screenshot.jpg" />
59+
<meta property="og:site_name" content="Online GCode Viewer" />
60+
<meta property="fb:admins" content="1537520789" />
3761

3862
</head>
3963
<body>
40-
64+
<div id="fb-root"></div>
65+
<script>(function(d, s, id) {
66+
var js, fjs = d.getElementsByTagName(s)[0];
67+
if (d.getElementById(id)) return;
68+
js = d.createElement(s); js.id = id;
69+
js.src = "//connect.facebook.net/ru_RU/all.js#xfbml=1&appId=122261684619414";
70+
fjs.parentNode.insertBefore(js, fjs);
71+
}(document, 'script', 'facebook-jssdk'));</script>
4172
<div id="dialog-modal" title="Basic modal dialog" style="display: none;">
4273
Generating 3d model<br>
4374
<div id="progressbar"></div>
@@ -51,14 +82,32 @@
5182
<a class="brand" href="#">GCode Viewer</a>
5283
</li>
5384
</ul>
85+
<ul class="nav pull-right">
86+
<li class="dropdown">
87+
<a href="#"
88+
class="dropdown-toggle"
89+
data-toggle="dropdown">
90+
Spread the word
91+
<b class="caret"></b>
92+
</a>
93+
<ul class="dropdown-menu">
94+
<li class="socials">
95+
<g:plusone annotation="inline" width="150"></g:plusone>
96+
</li>
97+
<li class="socials"><div class="fb-like" data-href="http://gcode.ws" data-send="false" data-layout="button_count" data-width="150" data-show-faces="true" data-action="recommend"></div></li>
98+
<li class="socials"><a href="https://twitter.com/share" class="twitter-share-button" data-url="http://gcode.ws" data-text="Check out a nice online gcode viewer!">Tweet</a>
99+
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></li>
100+
</ul>
101+
</li>
102+
</ul>
54103
</div>
55104
</div>
56105
</div>
57106

58107

59108
<div id="wrap" class="ui-widget ui-widget-content ui-corner-all">
60109
<div id="control">
61-
<center><img src="img/logo.png" /></center>
110+
<img src="img/logo.png" alt="gCodeViewer - an online gcode viewer"/>
62111

63112
<div id="accordion2" class="accordion">
64113
<div class="accordion-group">
@@ -182,7 +231,7 @@
182231
</div>
183232
<div class="tab-pane active" id="tabAbout">
184233
<div class="aboutpage">
185-
<h2><center>gCodeViewer</center></h2>
234+
<h1>gCodeViewer</h1>
186235
<b>gCodeViewer</b> is a visual GCode visualizer, viewer and analyzer in your own browser! It works on any OS in almost any modern browser (chrome, ff, safari 6, opera, ie10 should work too). All you need to do - is drag your *.gcode file to the designated zone.<br><br>
187236
Current features include:<br>
188237
<ul>

robots.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
User-agent: *
2+
Allow: *
3+
Sitemap: /sitemap.xml

sitemap.xml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3+
<url><loc>index.html</loc></url>
4+
</urlset>

0 commit comments

Comments
 (0)