17-06-2017, 19:56
(This post was last modified: 23-01-2023, 12:38 by arnoud.
Edit Reason: Removed support for ClickOnce
)
To include the scan widget on your own website, please log in to your partner dashboard and select the "Scan widget" tab. Here you can select the desired options and copy the generated HTML code or shortcode (in combination with our WordPress or Joomla plugin) to your own web page.
The scan widget ensures that initially:
The scan widget ensures that initially:
- The required Cascading Style Sheet is added to the <header>
- All text appears in the selected language;
- Optionally, an input field for a reference code is shown with the specified label;
- Optionally, the specified URL parameter or specified fixed value is taken as a reference code;
- The correct text will be shown on the scan button (depending on the scan mode);
- The available other scan options will be shown on mouse-over;
- The "More information" link is added next to the scan button;
- The disclaimer line is shown beneath the scan button;
- A hidden link is added to the word "scan" in the disclaimer so that partners simply perform a scan in the partner mode;
- Optionally, the ScanCircle speedometer is shown.
- The content of any input fields are combined to form a reference code, optionally preceded by the indicated category;
- It checks whether the reference code is required and meets the specified format;
- The reference code is exchanged with the scan program (if possible) or via the database;
- In MSIE/Edge1, it examines whether the correct .NET version is already available and if not offers a download option;
- It examines which action is to be taken:
- Install the app from the Microsoft Store (change the label to "Opening Store ..." during 10 sec);
- Launch the app with the selected parameters (change label text to "Staring app ..." during 10 sec);
- The executable for .NET4 / Windows 8+ (change the label to "Downloading scanner ..." with 3 dots during 10 sec);
- The executable for .NET2 (change the label to "Downloading scanner .." with 2 dots during 10 sec);
- Install the app from the Microsoft Store (change the label to "Opening Store ..." during 10 sec);
- Then the text of the "More Information" link will change to "Did it not work?".
- Enter the address of your own scan page as "Own scan page" so that the links in the e-mail to registered users and social media posts refer to it;
- The best option is to include a ScanCircle logo on your homepage (http://www.scancircle.com/scancircle.png) and link this to the scan page on your website, explaining what the scan do, why you use it and that you can help solve problems;
- If you want to give the elements a different color, font, size or place, you can use the following CSS elements (use !Important to override the default value):
- #scancircle_button the scan button;
- #scancircle_dropdown the other scan options on mouse-over on the scan button;
- #scancircle_info: the more information link;
- #scancircle_terms: disclaimer (make sure it is always visible);
- #scancircle_hidden: the hidden "scan" link in the disclaimer (make sure the link and pointer is always hidden);
- #scancircle_prompt: the label for the input field;
- #scancircle_refcode: the contents of the input field;
- #speedometer: the speedometer div;
- #scancircle_button the scan button;
- If JavaScript is disabled on your computer or HTTPS does not work, then you will only see the link "ScanCircle" which links to the scan page in your partner environment (without HTTPS);
- On scancircle.com nearly the same code is used, but it also works if JavaScript is disabled.