Skip to content

Commit 707bbee

Browse files
committed
Almost passing w3c validator (only 3 errors left), some more seo.
1 parent 50936ff commit 707bbee

File tree

2 files changed

+60
-55
lines changed

2 files changed

+60
-55
lines changed

dublin.rdf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<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/">
3+
<rdf:Description rdf:about="http://gcode.ws/">
44
<dc:contributor>hudbrog</dc:contributor>
55
<dc:date>2013-02-01</dc:date>
66
<dc:description>gcode viewer - gCodeViewer is a visual G-Code visualizer, viewer and analyzer online in your own browser!</dc:description>

index.html

+59-54
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2-
<html>
1+
<!DOCTYPE html>
2+
<html xmlns="http://www.w3.org/1999/xhtml">
33
<head>
44
<title>gcode viewer - online gcode viewer and analyzer in your browser!</title>
5-
<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">
5+
<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 http-equiv="Content-Type" content="text/html;charset=utf-8" />
88
<meta name="language" content="english" />
99

1010
<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/">
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/" />
1414

1515

1616
<link rel="stylesheet" type="text/css" href="css/cupertino/jquery-ui-1.9.0.custom.css" media="screen" />
@@ -44,13 +44,6 @@
4444
})();
4545

4646
</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>
5447

5548
<meta property="og:title" content="gCodeViewer - online gcode viewer and analyzer!" />
5649
<meta property="og:type" content="website" />
@@ -62,15 +55,16 @@
6255
</head>
6356
<body>
6457
<div id="fb-root"></div>
65-
<script>(function(d, s, id) {
58+
<script type="text/javascript">(function(d, s, id) {
6659
var js, fjs = d.getElementsByTagName(s)[0];
6760
if (d.getElementById(id)) return;
6861
js = d.createElement(s); js.id = id;
6962
js.src = "//connect.facebook.net/ru_RU/all.js#xfbml=1&appId=122261684619414";
7063
fjs.parentNode.insertBefore(js, fjs);
7164
}(document, 'script', 'facebook-jssdk'));</script>
65+
7266
<div id="dialog-modal" title="Basic modal dialog" style="display: none;">
73-
Generating 3d model<br>
67+
Generating 3d model<br />
7468
<div id="progressbar"></div>
7569
</div>
7670

@@ -92,7 +86,7 @@
9286
</a>
9387
<ul class="dropdown-menu">
9488
<li class="socials">
95-
<g:plusone annotation="inline" width="150"></g:plusone>
89+
<div class="g-plusone" data-annotation="inline" data-width="150"></div>
9690
</li>
9791
<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>
9892
<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>
@@ -136,10 +130,10 @@
136130
<div class="accordion-inner">
137131
<div id="progressBlock">
138132
<div class="progress" >
139-
<div id="loadProgress" class="bar" style="width: 0%;"></div>
133+
<div id="loadProgress" class="bar" style="width: 0;"></div>
140134
</div>
141135
<div class="progress" >
142-
<div id="analyzeProgress" class="bar" style="width: 0%;"></div>
136+
<div id="analyzeProgress" class="bar" style="width: 0;"></div>
143137
</div>
144138
</div>
145139
</div>
@@ -177,13 +171,13 @@
177171
</div>
178172
<div id="options2DAccordionTab" class="accordion-body collapse">
179173
<div class="accordion-inner">
180-
<input type="checkbox" id="showMovesCheckbox" value="1" onclick="GCODE.ui.processOptions()" checked>Show non-extrusion moves</input><br>
181-
<input type="checkbox" id="showRetractsCheckbox" value="2" onclick="GCODE.ui.processOptions()" checked>Show retracts and restarts</input><br>
182-
<input type="checkbox" id="moveModelCheckbox" value="3" onclick="GCODE.ui.processOptions()" checked>Move model to the center of the grid</input><br>
183-
<input type="checkbox" id="differentiateColorsCheckbox" value="7" onclick="GCODE.ui.processOptions()" checked>Show different speeds with different colors</input><br>
184-
<input type="checkbox" id="thickExtrusionCheckbox" value="8" onclick="GCODE.ui.processOptions()">Emulate extrusion width</input><br>
185-
Width modifier: <input type="text" value="2" id="widthModifier" onchange="GCODE.ui.processOptions()"/><br>
186-
<input type="checkbox" id="showNextLayer" value="9" onclick="GCODE.ui.processOptions()" >Show +1 layer</input><br>
174+
<label for="showMovesCheckbox"><input type="checkbox" id="showMovesCheckbox" value="1" onclick="GCODE.ui.processOptions()" checked> Show non-extrusion moves</label>
175+
<label for="showRetractsCheckbox"><input type="checkbox" id="showRetractsCheckbox" value="2" onclick="GCODE.ui.processOptions()" checked> Show retracts and restarts</label>
176+
<label for="moveModelCheckbox"><input type="checkbox" id="moveModelCheckbox" value="3" onclick="GCODE.ui.processOptions()" checked> Move model to the center of the grid</label>
177+
<label for="differentiateColorsCheckbox"><input type="checkbox" id="differentiateColorsCheckbox" value="7" onclick="GCODE.ui.processOptions()" checked> Show different speeds with different colors</label>
178+
<label for="thickExtrusionCheckbox"><input type="checkbox" id="thickExtrusionCheckbox" value="8" onclick="GCODE.ui.processOptions()"> Emulate extrusion width</label>
179+
<label for="widthModifier">Width modifier: <input type="text" value="2" id="widthModifier" onchange="GCODE.ui.processOptions()"/></label>
180+
<label for="showNextLayer"><input type="checkbox" id="showNextLayer" value="9" onclick="GCODE.ui.processOptions()" > Show +1 layer</label>
187181
</div>
188182
</div>
189183
</div>
@@ -196,10 +190,10 @@
196190
</div>
197191
<div id="analyzeOptionsAccordioinTab" class="accordion-body collapse">
198192
<div class="accordion-inner">
199-
These require re-analyzing file:<br>
200-
<input type="checkbox" id="sortLayersCheckbox" value="4" onclick="GCODE.ui.processOptions()" checked>Sort layers by Z</input><br>
201-
<input type="checkbox" id="purgeEmptyLayersCheckbox" value="5" onclick="GCODE.ui.processOptions()" checked>Hide empty layers</input><br>
202-
<input type="checkbox" id="showGCodeCheckbox" value="6" onclick="GCODE.ui.processOptions()" checked>Show GCode in GCode tab (memory intensive!)</input><br>
193+
These require re-analyzing file:<br />
194+
<label for="sortLayersCheckbox"><input type="checkbox" id="sortLayersCheckbox" value="4" onclick="GCODE.ui.processOptions()" checked>Sort layers by Z</label>
195+
<label for="purgeEmptyLayersCheckbox"><input type="checkbox" id="purgeEmptyLayersCheckbox" value="5" onclick="GCODE.ui.processOptions()" checked>Hide empty layers</label>
196+
<label for="showGCodeCheckbox"><input type="checkbox" id="showGCodeCheckbox" value="6" onclick="GCODE.ui.processOptions()" checked>Show GCode in GCode tab (memory intensive!)</label>
203197
</div>
204198
</div>
205199
</div>
@@ -232,30 +226,33 @@
232226
<div class="tab-pane active" id="tabAbout">
233227
<div class="aboutpage">
234228
<h1>gCodeViewer</h1>
235-
<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>
236-
Current features include:<br>
229+
<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 />
230+
Current features include:<br />
237231
<ul>
238-
<li>Visualize GCode in 2D, layer by layer</li>
239-
<ul>
240-
<li>Show retracts and restarts</li>
241-
<li>Show print/move/retract speeds</li>
242-
<li>Display only part of layer, animate sequence of layer printing</li>
243-
<li><b>NEW!!</b> Show two layers simultaneously so you can check overhangs</li>
244-
<li><b>NEW!!</b> Adjust line width to simulate print more closely</li>
245-
</ul>
246-
<li>Analyze GCode</li>
247-
<ul>
248-
<li>Print time, amount of plastic used, layer height, etc. for whole file and for single layer</li>
249-
<li>Reference visualized part to GCode file (i.e. select a certain part of 2d visualization, switch to GCode view - it will highlight list of lines responsible for visualized piece)</li>
250-
</ul>
251-
<li>Multiplatform, available online (but works offline too), works locally (doesn't upload you g-code anywhere or download anything but application itself)</li>
252-
<li>3D visualization (I don't know what for, it's dull and useless.. need to rewrite it to be like in repetier host)</li>
253-
<li>And yeah, it's slow, memory hungry and only supports modern browsers</li>
254-
<li>Totally open source so you can use it as you like</li>
255-
</ul><br><br>
256-
All sources are available at <a href="https://github.com/hudbrog/gCodeViewer">https://github.com/hudbrog/gCodeViewer</a><br>
257-
If you find any bugs or have feature requests - don't hesitate to post them to <a href="https://github.com/hudbrog/gCodeViewer/issues">https://github.com/hudbrog/gCodeViewer/issues</a><br>
258-
And I would appreciate if you like it on Thingiverse page: <a href="http://www.thingiverse.com/thing:35248">http://www.thingiverse.com/thing:35248</a><br>
232+
<li>Visualize GCode in 2D, layer by layer
233+
<ul>
234+
<li>Show retracts and restarts</li>
235+
<li>Show print/move/retract speeds</li>
236+
<li>Display only part of layer, animate sequence of layer printing</li>
237+
<li><b>NEW!!</b> Show two layers simultaneously so you can check overhangs</li>
238+
<li><b>NEW!!</b> Adjust line width to simulate print more closely</li>
239+
</ul>
240+
</li>
241+
<li>Analyze GCode
242+
<ul>
243+
<li>Print time, amount of plastic used, layer height, etc. for whole file and for single layer</li>
244+
<li>Reference visualized part to GCode file (i.e. select a certain part of 2d visualization, switch to GCode view - it will highlight list of lines responsible for visualized piece)</li>
245+
</ul>
246+
</li>
247+
<li>Multiplatform, available online (but works offline too), works locally (doesn't upload you g-code anywhere or download anything but application itself)</li>
248+
<li>3D visualization (I don't know what for, it's dull and useless.. need to rewrite it from scratch)</li>
249+
<li>And yeah, it's slow, memory hungry and only supports modern browsers</li>
250+
<li>Totally open source so you can use it as you like</li>
251+
</ul>
252+
<br /><br />
253+
All sources are available at <a href="https://github.com/hudbrog/gCodeViewer">https://github.com/hudbrog/gCodeViewer</a><br />
254+
If you find any bugs or have feature requests - don't hesitate to post them to <a href="https://github.com/hudbrog/gCodeViewer/issues">https://github.com/hudbrog/gCodeViewer/issues</a><br />
255+
And I would appreciate if you like it on Thingiverse page: <a href="http://www.thingiverse.com/thing:35248">http://www.thingiverse.com/thing:35248</a><br />
259256
</div>
260257

261258
</div>
@@ -267,5 +264,13 @@ <h1>gCodeViewer</h1>
267264
window.onload = GCODE.ui.initHandlers;
268265
</script>
269266

267+
<script type="text/javascript">
268+
(function() {
269+
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
270+
po.src = 'https://apis.google.com/js/plusone.js';
271+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
272+
})();
273+
</script>
274+
270275
</body>
271276
</html>

0 commit comments

Comments
 (0)