Skip to content

Commit

Permalink
V1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rquadling committed Mar 7, 2016
1 parent 57be1d8 commit 367d746
Show file tree
Hide file tree
Showing 179 changed files with 16,860 additions and 2,318 deletions.
17 changes: 13 additions & 4 deletions Sample/Star-WebContent/A001.html → Sample/A001.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<!DOCTYPE html>
<html lang="en">
<head>
Expand All @@ -12,8 +11,9 @@

<link rel="stylesheet" href="css/jquery.mobile-1.0rc2.min.css" />
<link rel="alternate" type="application/rss+xml" title="STAR MICRONICS CO.,LTD &raquo; Homepage Comments Feed" href="http://www.star-m.jp/eng/index.html/feed/" />
<script type='text/javascript' src='js/jquery-1.6.4.min.js?ver=3.7.1'></script>
<!-- <script type='text/javascript' src='js/jquery-1.6.4.min.js?ver=3.7.1'></script>
<script type='text/javascript' src='js/jquery.mobile-1.0rc2.min.js?ver=1.0'></script>
-->
<link rel='next' title='Product Information' href='http://www.star-m.jp/eng/products/index.html' />
<link rel='canonical' href='http://www.star-m.jp/eng/index.html' />
<link rel='shortlink' href='http://www.star-m.jp/eng/?p=2' />
Expand All @@ -37,7 +37,7 @@ <h2 class="h2-tit-01">Welcome to Star WebPRNT</h2>
<img src="images/products.png" width="100%" alt=""/>
<nav id="subnav">
<ul>
<li><a href="howto_en.html" rel="external"><span>Initial setup</span></a></li>
<li><a href="howto_en.html" rel="external" id="howto"><span>Initial setup</span></a></li>
<li><a href="A002.html" rel="external"><span>Try WebPRNT</span></a></li>
</ul>
</nav>
Expand All @@ -49,4 +49,13 @@ <h2 class="h2-tit-01">Welcome to Star WebPRNT</h2>
</footer>
</div>
</body>
</html>
</html>

<script type="text/javascript">
<!--
var link = document.getElementById("howto");
if (navigator.userAgent.indexOf('Android') > 0){
link.href = "howto_en_Android.html";
}
-->
</script>
20 changes: 16 additions & 4 deletions Sample/Star-WebContent/A002.html → Sample/A002.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<!DOCTYPE html>
<html lang="en">
<head>
Expand All @@ -9,8 +8,8 @@
<link rel="stylesheet" href="style.css" media="screen">
<link rel="stylesheet" href="css/jquery.mobile-1.0rc2.min.css" />
<link rel="alternate" type="application/rss+xml" title="STAR MICRONICS CO.,LTD &raquo; Homepage Comments Feed" href="http://www.star-m.jp/eng/index.html/feed/" />
<script type='text/javascript' src='js/jquery-1.6.4.min.js?ver=3.7.1'></script>
<script type='text/javascript' src='js/jquery.mobile-1.0rc2.min.js?ver=1.0'></script>
<!-- <script type='text/javascript' src='js/jquery-1.6.4.min.js?ver=3.7.1'></script>
<script type='text/javascript' src='js/jquery.mobile-1.0rc2.min.js?ver=1.0'></script> -->
<link rel='next' title='Product Information' href='http://www.star-m.jp/eng/products/index.html' />
<link rel='canonical' href='http://www.star-m.jp/eng/index.html' />
<link rel='shortlink' href='http://www.star-m.jp/eng/?p=2' />
Expand All @@ -20,7 +19,7 @@
<body>
<div class="menu-page">
<header id="global-header">
<h1><a href="A001.html"><img src="images/logo_01.png" alt="HOME" width="108" height="61"></a></h1>
<h1><a href="A001.html" rel="external"><img src="images/logo_01.png" alt="HOME" width="108" height="61"></a></h1>
<div id="sub-logo"><a href="http://www.star-m.jp/" target="_blank"><img src="images/logo_02.png" alt="" width="120" height="13"></a></div>
</header>

Expand All @@ -43,6 +42,19 @@ <h2 class="h2-tit-01 btmMg20">Star WebPRNT Menu</h2>
</nav>
</div>

<section class="btmMg20">
<h2 class="h2-tit-01 btmMg20">Japanese Market Only</h2>
</section>

<div id="mainnav-wrap" class="clearfix">
<nav id="mainnav" class="clearfix">
<ul>
<li><a class="typeF" href="Styled_ReceiptLetter.html" rel="external"><span>レシートレター 作成</span></a></li>
</ul>
</nav>
</div>


<footer id="global-footer" class="clearfix" style="position:relative;">
<a href="http://www.star-m.jp/products/s_print/sdk_webprnt/manual/index.htm" target="_blank"><img src="images/footer-logo.png" width="123" alt="" id="footer-logo"></a>
<img src="images/footer-image.png"height="54" alt=""/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// StarWebPRNT Sample(Canvas Handwriting)
//
// Version 1.1.0
// Version 1.2.0
//
// Copyright (C) 2012-2015 STAR MICRONICS CO., LTD. All Rights Reserved.
//
Expand Down
68 changes: 0 additions & 68 deletions Sample/Star-WebContent/howto_jpn.html

This file was deleted.

18 changes: 0 additions & 18 deletions Sample/Star-WebContent/js/StarWebPrintTrader.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// StarWebPRNT Sample(Canvas Handwriting)
//
// Version 1.1.0
// Version 1.2.0
//
// Copyright (C) 2012-2015 STAR MICRONICS CO., LTD. All Rights Reserved.
//
Expand Down Expand Up @@ -442,10 +442,16 @@
}

function updateSampleCode() {
var url = document.getElementById('url').value;
var papertype = document.getElementById('papertype').value;
var blackmark_sensor = document.getElementById('blackmark_sensor').value;

document.getElementById('message').value =
'var url = "http://localhost:8001/StarWebPRNT/SendMessage";\n\n' +
'var url = "' + url + '";\n' +
'var papertype ="' + papertype + '";\n' +
'var blackmark_sensor ="' + blackmark_sensor + '";\n\n' +
'var builder = new StarWebPrintBuilder();\n' + sampleCode + '\n' +
'var trader = new StarWebPrintTrader({url:url});\n' +
'var trader = new StarWebPrintTrader({url:url, papertype:papertype, blackmark_sensor:blackmark_sensor});\n' +
'trader.onReceive = function (response) { alert(response.responseText); }\n' +
'trader.onError = function (response) { alert(response.responseText); }\n' +
'trader.sendMessage({request:request});\n';
Expand All @@ -462,10 +468,14 @@
}

function onSendMessage() {
updateSampleCode();

nowPrinting();
var url = document.getElementById('url').value;
var url = document.getElementById('url').value;
var papertype = document.getElementById('papertype').value;
var blackmark_sensor = document.getElementById('blackmark_sensor').value;

var trader = new StarWebPrintTrader({url:url});
var trader = new StarWebPrintTrader({url:url, papertype:papertype, blackmark_sensor:blackmark_sensor});

trader.onReceive = function (response) {
var msg = '- onReceive -\n\n';
Expand Down Expand Up @@ -1135,11 +1145,41 @@ <h4 class="clearfix">Message</h4>

</div>

<hr>
<div id="combinationBlock">
<hr>
<h4 class="clearfix">Root</h4>
<d1>
<dt>URL</dt>
<dd>:
<input id="url" type="text" value="http://localhost:8001/StarWebPRNT/SendMessage" />
</dd>

<dt>Paper Type</dt>
<dd>:
<select id='papertype'>
<option value='' selected='selected'>-</option>
<option value='normal'>Normal</option>
<option value='black_mark'>Black Mark</option>
<option value='black_mark_and_detect_at_power_on'>Black Mark and Detect at Power On</option>
</select>
</dd>
</dl>
<d1>
<dt>Black Mark Sensor</dt>
<dd>:
<select id='blackmark_sensor'>
<option value='front_side' selected='selected'>Front side</option>
<option value='back_side'>Back side</option>
<option value='hole_or_gap'>Hole or Gap</option>
</select>
</dd>
</dl>

<div class="appendBlock"><input id="sendBtn" type="button" value="Send" onclick="onSendMessage()" /></div>

<hr>
</div>

<h4 class="clearfix">URL</h4>
<div><input id="url" type="text" value="http://localhost:8001/StarWebPRNT/SendMessage" /></div>
<div class="appendBlock"><input id="sendBtn" type="button" value="Send" onclick="onSendMessage()" /></div>
</div>
</form>

Expand Down
Loading

0 comments on commit 367d746

Please sign in to comment.