Skip to content

Commit

Permalink
made example look better
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Csoma committed Nov 2, 2016
1 parent 71c49b0 commit 5cb2c12
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -642,11 +642,35 @@
</div>
</div>
</template>
<script>
$(document).ready(function(){
window.mypa = {}
window.mypa.settings = {
number: '679', // String - Required
street: 'Hoofdweg', // String - Required
postal_code: '2131BC', // String - Required
price: {
morning: '&#8364; 12,00', // String - Make sure too add the currency in proper format
default: '&#8364; 6,00', // String
pickup: '&#8364; 9,00', // String
pickup_express: '&#8364; 12,00', // String
signed: '&#8364; 0,50', // String
only_recipient: '&#8364; 0,20', // String
combi_options: '&#8364; 0,60', // String
},
base_url: 'https://api.myparcel.nl/delivery_options', // Required
}
var myparcel = new MyParcel()
myparcel.updatePage()
})
</script>
</head>
<body>
<myparcel id="myparcel"></myparcel>
<input style="display:none" name='mypa-post-nl-data' id="mypa-input">
<input type="checkbox" name='mypa-signed' style="display:none" id="mypa-signed">
<input type="checkbox" name='mypa-recipient-only' style="display:none" id="mypa-recipient-only">
<div style='width:500;height:400'>
<myparcel id="myparcel"></myparcel>
<input style="display:none" name='mypa-post-nl-data' id="mypa-input">
<input type="checkbox" name='mypa-signed' style="display:none" id="mypa-signed">
<input type="checkbox" name='mypa-recipient-only' style="display:none" id="mypa-recipient-only">
</div>
</body>
</html>

0 comments on commit 5cb2c12

Please sign in to comment.