I am using bootstrap framework. I have not been able to produce correct code to print a page. I have loaded google cloud print print in index.html file.
<script src="//www.google.com/cloudprint/client/cpgadget.js"></script>
the line that follows:
gadget.setPrintDocument("[document mimetype]", "[document title]", "[document content]", "[encoding] )";
the document content requires a URL. I have a page id.
I have a onclick for the page
<div class="upage vertical-col left hidden" id="stndpg" onclick="myprint('stndpg')">
My question is how do i print the page.