The widget can be used to embed Sharp product information on your website.
See the instructions below and...
<script src="https://dev.sharp.eu/api/product-widget/widget.js">
<div id="sharp-widget-container"></div>
sharpwidget({ container : 'sharp-widget-container', //your target container id product : 'MXC607P', //the product(s) to display. For multiple products use comma (,) as separator language : 'en-gb', //language and region like de-de, nl-be, fr-fr, ru-ru });
First you need to add a javascript file and a target container element to your website.
<div id="my-target"></div>
The script has to to be configured to deliver proper content. You will need to know
Getting to know the proper model names might be the most challenging part!
product=PAPERCUT
. Now you know that PAPERCUT is the real product name of PaperCut MF. You can use it as the parameter to configure the widget.
I bet you already came across notations like en-GB
or nl-NL
. They are used to specify geographical regions and languages. This notation consists of two tags.
Now you know everything you need to configure and execute the function sharpwidget
.
When sharpwidget
gets executed, the inner content of the defined container element will be replaced with an IFRAME
that will render a Sharp page on your webpage.
To call the function after the page has loaded, simply add following lines of code before the closing </body>
tag of your website.
<script>
window.onload = function () {
sharpwidget({
container:'YOUR_TARGET_CONTAINER_ID',
product:'THE_SHARP_MODEL_NAMES',
language:'THE_REGION_AND_LANGUAGE_CODE'
});
}</script>
Here on this page we use the onclick-event of buttons to trigger the execution of the script.
<button onclick="runAll();">Run the Demo!</button>
The function runAll()
executes all widgets on this website.
<script type="text/javascript">
function t1(){
sharpwidget({
container : 'sharp-widget-container1',
language : 'en-gb', //de-de, fr-fr, ru-ru,
product : 'MXC607P,MXB707P,MXB557P,NX8081' //multiple product at once, whoah!
});
}
function t2(){
sharpwidget({
container : 'sharp-widget-container2',
product : 'MXC607P',
language : 'en-gb'
});
}
function t3(){
sharpwidget({
container : 'sharp-widget-container3',
product : 'PNCD701',
language : 'fr-fr'
});
}
function t4(){
sharpwidget({
container : 'sharp-widget-container4',
product : 'NBJD540',
language : 'en-gb'
});
}
function runAll(){
//trigger all sharp widgets
t1();
t2();
t3();
t4();
}
</script>
With our new product widget it's really easy to display Sharp products on your website!
Need to display more than one product in one area?
Simply add more productnames to the product parameter
Half width area on medium and large screens.
Another half width area on medium and large screens.
Full width area.