Skip to content

Commit

Permalink
V1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Quadling authored and Richard Quadling committed Nov 9, 2017
1 parent 1ee2207 commit 3b89ff6
Show file tree
Hide file tree
Showing 145 changed files with 5,302 additions and 5,971 deletions.
12 changes: 11 additions & 1 deletion Sample/A001.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Expires" content="86400">
<meta charset="UTF-8">
<title>STAR MICRONICS CO.,LTD | Miniature Technology, Infinite World</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
Expand Down Expand Up @@ -38,14 +39,19 @@ <h2 class="h2-tit-01">Welcome to Star WebPRNT</h2>
<nav id="subnav">
<ul>
<li><a href="howto_en.html" rel="external" id="howto"><span>Initial setup</span></a></li>
<li><a href="howto_scs_en.html" rel="external" id="howtoscs"><span>Star Cloud Services setup</span></a></li>
<li><a href="A002.html" rel="external"><span>Try WebPRNT</span></a></li>
</ul>
<div>
<p class="js-explanation">The WebPRNT JavaScript libraries have been updated with new functionality and to accommodate changing security requirements from Apple. Please update from the Global Support Site here:&nbsp;&nbsp;
<a href="http://www.starmicronics.com/support/sdkdocumentation.aspx" target="_blank"><span class="toGSS">English</span></a> <a href="http://sp-support.star-m.jp/SDKDocumentation.aspx" target="_blank"><span class="toGSS">Japanese</span></a></p>
</div>
</nav>
</section>

<footer id="global-footer" class="clearfix">
<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=""/>
<img src="images/footer-image.png" height="54" alt=""/>
</footer>
</div>
</body>
Expand All @@ -57,5 +63,9 @@ <h2 class="h2-tit-01">Welcome to Star WebPRNT</h2>
if (navigator.userAgent.indexOf('Android') > 0){
link.href = "howto_en_Android.html";
}
var scslink = document.getElementById("howtoscs");
if (navigator.userAgent.indexOf('Android') > 0){
scslink.href = "howto_scs_android_en.html";
}
-->
</script>
1 change: 1 addition & 0 deletions Sample/A002.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Expires" content="86400">
<title>STAR MICRONICS CO.,LTD | Miniature Technology, Infinite World</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="format-detection" content="telephone=no">
Expand Down
7 changes: 4 additions & 3 deletions Sample/ComparisonReceiptDesign.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
-->
<head>
<meta charset="UTF-8">
<meta http-equiv="Expires" content="86400">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<title>StarWebPRNT Sample(Comparison Receipt Design)</title>

Expand Down Expand Up @@ -453,7 +454,7 @@

trader.onError = function (response) {
hideNowPrinting();

var msg = '- onError -\n\n';

msg += '\tStatus:' + response.status + '\n';
Expand All @@ -478,15 +479,15 @@
}
catch (e) {
hideNowPrinting();

alert(e.message);
}
}
}

image.onerror = function () {
hideNowPrinting();

alert('Image file was not able to be loaded.');
}
}
Expand Down
20 changes: 4 additions & 16 deletions Sample/Styled_ApiCombination.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Expires" content="86400">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<title>StarWebPRNT Sample(API Combination)</title>

Expand Down Expand Up @@ -445,14 +446,12 @@
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 = "' + url + '";\n' +
'var papertype ="' + papertype + '";\n' +
'var blackmark_sensor ="' + blackmark_sensor + '";\n\n' +
'var papertype ="' + papertype + '";\n\n' +
'var builder = new StarWebPrintBuilder();\n' + sampleCode + '\n' +
'var trader = new StarWebPrintTrader({url:url, papertype:papertype, blackmark_sensor:blackmark_sensor});\n' +
'var trader = new StarWebPrintTrader({url:url, papertype:papertype});\n' +
'trader.onReceive = function (response) { alert(response.responseText); }\n' +
'trader.onError = function (response) { alert(response.responseText); }\n' +
'trader.sendMessage({request:request});\n';
Expand All @@ -474,9 +473,8 @@
showNowPrinting();
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, papertype:papertype, blackmark_sensor:blackmark_sensor});
var trader = new StarWebPrintTrader({url:url, papertype:papertype});

trader.onReceive = function (response) {
hideNowPrinting();
Expand Down Expand Up @@ -1173,16 +1171,6 @@ <h4 class="clearfix">Root</h4>
</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>

Expand Down
18 changes: 4 additions & 14 deletions Sample/Styled_ApiReceipt.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Expires" content="86400">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<title>StarWebPRNT Sample(API Receipt)</title>

Expand All @@ -23,12 +24,11 @@
<script type='text/javascript'>
<!--
function sendMessage(request) {
showNowPrinting();
showNowPrinting();
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, papertype:papertype, blackmark_sensor:blackmark_sensor});
var trader = new StarWebPrintTrader({url:url, papertype:papertype});

trader.onReceive = function (response) {
hideNowPrinting();
Expand Down Expand Up @@ -277,7 +277,7 @@
request += builder.createInitializationElement();

var encoding = document.getElementById('encoding').value;

// If you Send to printer that is not supported UTF8, DO NOT set codepage='utf8'.
// UTF8に対応していないプリンタへ、漢字を送信する場合は、
// codepage='utf8'を指定しないこと。
Expand Down Expand Up @@ -562,16 +562,6 @@ <h2 class="h2-tit-01 btmMg20">API : Receipt</h2>
</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>
</d1>

<input id="sendBtnAscii" type="button" value="Send (Ascii)" onclick="onSendAscii()" />
<input id="sendBtnKanji" type="button" value="Send (Kanji)" onclick="onSendKanji()" />
Expand Down
14 changes: 2 additions & 12 deletions Sample/Styled_CanvasBarcode.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Expires" content="86400">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<title>StarWebPRNT Sample(Canvas Barcode)</title>

Expand Down Expand Up @@ -233,9 +234,8 @@
showNowPrinting();
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, papertype:papertype, blackmark_sensor:blackmark_sensor});
var trader = new StarWebPrintTrader({url:url, papertype:papertype});

trader.onReceive = function (response) {
hideNowPrinting();
Expand Down Expand Up @@ -494,16 +494,6 @@ <h2 class="h2-tit-01 btmMg20">Canvas : Barcode</h2>
</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>
</d1>
<input id="sendBtn" type="button" value="Send" onclick="onSendMessage()" />
</footer>
</div>
Expand Down
16 changes: 3 additions & 13 deletions Sample/Styled_CanvasFigures.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Expires" content="86400">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<title>StarWebPRNT Sample(Canvas Figures)</title>

Expand Down Expand Up @@ -143,9 +144,8 @@

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, papertype:papertype, blackmark_sensor:blackmark_sensor});
var trader = new StarWebPrintTrader({url:url, papertype:papertype});

trader.onReceive = function (response) {
hideNowPrinting();
Expand Down Expand Up @@ -211,7 +211,7 @@
}
catch (e) {
hideNowPrinting();

alert(e.message);
}
}
Expand Down Expand Up @@ -360,16 +360,6 @@ <h2 class="h2-tit-01 btmMg20">Canvas : Figures</h2>
</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>
</d1>
<input id="sendBtn" type="button" value="Send" onclick="onSendMessage()" />
</footer>
</div>
Expand Down
14 changes: 2 additions & 12 deletions Sample/Styled_CanvasHandwriting.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Expires" content="86400">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<title>StarWebPRNT Sample(Canvas Handwriting)</title>

Expand Down Expand Up @@ -157,9 +158,8 @@

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, papertype:papertype, blackmark_sensor:blackmark_sensor});
var trader = new StarWebPrintTrader({url:url, papertype:papertype});

trader.onReceive = function (response) {
hideNowPrinting();
Expand Down Expand Up @@ -338,16 +338,6 @@ <h2 class="h2-tit-01 btmMg20">Canvas : Handwriting</h2>
</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>
</d1>
<input id="sendBtn" type="button" value="Send" onclick="onSendMessage()" />
</footer>
</div>
Expand Down
16 changes: 3 additions & 13 deletions Sample/Styled_CanvasImageFile.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Expires" content="86400">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<title>StarWebPRNT Sample(Canvas Image File)</title>

Expand Down Expand Up @@ -104,9 +105,8 @@

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, papertype:papertype, blackmark_sensor:blackmark_sensor});
var trader = new StarWebPrintTrader({url:url, papertype:papertype});

trader.onReceive = function (response) {
hideNowPrinting();
Expand Down Expand Up @@ -172,7 +172,7 @@
}
catch (e) {
hideNowPrinting();

alert(e.message);
}
}
Expand Down Expand Up @@ -313,16 +313,6 @@ <h1></h1>
</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>
</d1>
<input id="sendBtn" type="button" value="Send" onclick="onSendMessage()" />
</footer>
</div>
Expand Down
14 changes: 2 additions & 12 deletions Sample/Styled_CanvasReceipt.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Expires" content="86400">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<title>StarWebPRNT Sample(Canvas Receipt)</title>

Expand Down Expand Up @@ -208,9 +209,8 @@

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, papertype:papertype, blackmark_sensor:blackmark_sensor});
var trader = new StarWebPrintTrader({url:url, papertype:papertype});

trader.onReceive = function (response) {
hideNowPrinting();
Expand Down Expand Up @@ -394,16 +394,6 @@ <h2 class="h2-tit-01 btmMg20">Canvas : Receipt</h2>
</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>
</d1>
<input id="sendBtn" type="button" value="Send" onclick="onSendMessage()" />
</footer>
</div>
Expand Down
Loading

0 comments on commit 3b89ff6

Please sign in to comment.