MediaWiki:Common.js: Difference between revisions

From innovaphone wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 135: Line 135:
ul {
ul {
margin-top: -0.5em;
margin-top: -0.5em;
margin-bottom: 0.5em;
margin-bottom: 5px;
}
}

Revision as of 17:02, 3 January 2023

/* Any JavaScript here will be loaded for all users on every page load. */

// redirect v13 namepsace view to special overview page if (window.location.href == 'http://wiki.innovaphone.com/index.php?title=Special:Prefixindex/Reference13r1:') {

 window.location.href = 'http://wiki.innovaphone.com/index.php?title=Reference13r1:Overview';

} if (window.location.href == 'http://wiki.innovaphone.com/index.php?title=Special:Prefixindex/Reference13r2:') {

 window.location.href = 'http://wiki.innovaphone.com/index.php?title=Reference13r2:Overview';

} if (window.location.href == 'http://wiki.innovaphone.com/index.php?title=Special:Prefixindex/Reference13r3:') {

 window.location.href = 'http://wiki.innovaphone.com/index.php?title=Reference13r3:Overview';

}

// show v13 flowchart on overview window.onload = function v13_overview() { if (window.location.href.includes('13r1:Overview') || window.location.href.includes('13r2:Overview') || window.location.href.includes('13r3:Overview')) { // create structure var div = document.getElementById('v13_overview'); var img = document.createElement('img'); div.appendChild(img); img.setAttribute('id', 'v13_overview_image'); img.setAttribute('usemap', '#v13_map');

// add current picture img.setAttribute('src', 'http://wiki.innovaphone.com/img_auth.php/0/0e/13r1_guide.jpg'); } }

if (window.location.href.includes('13r1:Overview')) { // add current image maps

 var maps = '<map id="v13_map" name="v13_map"><area shape="rect" alt="Usecases" title="Usecases" coords="129,158,229,206" href="http://wiki.innovaphone.com/index.php?title=Howto:V13_Installation_Scenarios" target="_self" /><area shape="rect" alt="License Guide" title="License Guide" coords="879,299,979,348" href="http://wiki.innovaphone.com/index.php?title=Reference13r1:Licenses" target="_blank" /><area shape="rect" alt="FAQ" title="FAQ" coords="250,157,349,205" href="http://wiki.innovaphone.com/index.php?title=Reference13r1:Overview#faq" target="_self" /><area shape="rect" alt="OnPremise Installation" title="OnPremise Installation" coords="8,228,107,279" href="http://wiki.innovaphone.com/index.php?title=Reference13r1:Install" target="_self" /><area shape="rect" alt="Greenfield - IT Connect" title="Greenfield - IT Connect" coords="33,300,133,348" href="/index.php?title=Special%3APrefixindex&from=IT+Connect&namespace=150" target="_self" /><area shape="rect" alt="Upgrade" title="Upgrade" coords="33,370,132,419" href="http://wiki.innovaphone.com/index.php?title=Howto:V13_Firmware_Upgrade_V12r2_V13r1" target="_self" /><area shape="rect" alt="SDK" title="SDK" coords="274,298,373,348" href="https://sdk.innovaphone.com/" target="_blank" /><area shape="rect" alt="Forum" title="Forum" coords="274,370,374,419" href="http://class.innovaphone.com/moodle2/mod/forum/view.php?id=127446" target="_blank" /><area shape="rect" alt="AppPlatform" title="AppPlatform" coords="372,229,470,276" href="http://wiki.innovaphone.com/index.php?title=Reference13r1:Concept_App_Platform" target="_self" /><area shape="rect" alt="Apps" title="Apps" coords="613,228,712,276" href="http://wiki.innovaphone.com/index.php?title=Reference13r1:Concept_Apps" target="_self" /><area shape="rect" alt="Roadmaps" title="Roadmaps" coords="976,229,1074,276" href="http://wiki.innovaphone.com/index.php?title=Support:What_are_the_Roadmap_Documents%3F" target="_self" /><area shape="rect" alt="Training" title="Training" coords="1096,227,1196,276" href="https://www.innovaphone.com/en/partner/training.html" target="_blank" /><area shape="rect" alt="MyApps" title="MyApps" coords="493,229,591,276" href="http://wiki.innovaphone.com/index.php?title=Reference13r1:Concept_myApps" target="_self" /><area shape="rect" alt="PhoneApp" title="PhoneApp" coords="637,299,737,348" href="http://wiki.innovaphone.com/index.php?title=Reference13r1:Concept_App_PhoneApp" target="_self" /><area shape="rect" alt="SoftphoneApp" title="SoftphoneApp" coords="638,369,736,418" href="http://wiki.innovaphone.com/index.php?title=Reference13r1:Concept_App_SoftphoneApp" target="_self" /><area shape="rect" alt="Devices" title="Devices" coords="637,441,737,490" href="http://wiki.innovaphone.com/index.php?title=Reference13r1:Concept_App_Service_Devices" target="_self" /><area shape="rect" alt="Contacts" title="Contacts" coords="639,512,738,561" href="http://wiki.innovaphone.com/index.php?title=Reference13r1:Concept_App_Service_Contacts" target="_self" /><area shape="rect" alt="Chat" title="Chat" coords="638,584,736,632" href="http://wiki.innovaphone.com/index.php?title=Reference13r1:Concept_Chat" target="_self" /><area shape="rect" alt="All Apps" title="All Apps" coords="638,653,737,702" href="http://wiki.innovaphone.com/index.php?title=Special%3APrefixindex&from=Concept+App&namespace=148" target="_self" /><area shape="rect" alt="Offline Proivisoning" title="Offline Proivisoning" coords="759,299,858,348" href="http://wiki.innovaphone.com/index.php?title=Reference13r1:Concept_Offline_Provisioning" target="_self" /><area shape="rect" alt="Online Proivisoning" title="Online Proivisoning" coords="759,370,858,418" href="http://wiki.innovaphone.com/index.php?title=Reference13r1:Concept_Provisioning" target="_self" /><area shape="rect" alt="Roadmap Firmware 13r1" title="Roadmap Firmware 13r1" coords="1000,298,1099,348" href="http://wiki.innovaphone.com/index.php?title=Support:DVL-Roadmap_Firmware_13r1" target="_self" /><area shape="rect" alt="Roadmap SDK 13r1" title="Roadmap SDK 13r1" coords="1000,369,1100,418" href="http://wiki.innovaphone.com/index.php?title=Support:DVL-Roadmap_SDK_13r1" target="_self" /><area shape="rect" alt="IT Connect Training" title="IT Connect Training" coords="1120,298,1221,348" href="http://wiki.innovaphone.com/index.php?title=Special%3APrefixindex&from=IT+Connect&namespace=150" target="_self" /><area shape="rect" alt="IT Advanced Training" title="IT Advanced Training" coords="1122,370,1220,419" href="http://wiki.innovaphone.com/index.php?title=Special%3APrefixindex&from=IT+Advanced&namespace=150" target="_self" /><area shape="rect" alt="Central AppPlatform" title="Central AppPlatform" coords="155,299,253,348" href="http://wiki.innovaphone.com/index.php?title=Howto:V13_Hosting_-_Central_AP_for_multiple_customers" target="_self" /><area shape="rect" alt="My innovaphone" title="My innovaphone" coords="881,369,979,418" href="https://my.innovaphone.com/" target="_blank" /><area shape="rect" alt="Software Rental" title="Software Rental" coords="881,440,979,490" href="http://wiki.innovaphone.com/index.php?title=Reference13r1:Concept_Software_Rental" target="_self" /><area shape="rect" alt="Partner Portal" title="Partner Portal" coords="1242,299,1342,348" href="https://www.innovaphone.com/en/services/partner-login.html" target="_blank" /><area shape="rect" alt="The Story" title="The Story" coords="1243,370,1341,418" href="https://www.innovaphone.com/en/myapps/what-is-myapps.html" target="_blank" /><area shape="rect" alt="Videos" title="Videos" coords="1243,442,1342,490" href="http://wiki.innovaphone.com/index.php?title=Howto:Instructional_Videos_for_Users_-_English" target="_self" /><area shape="rect" alt="Hosting" title="" coords="131,229,229,277" href="http://wiki.innovaphone.com/index.php?title=Howto:V13_Hosting" target="_self" /><area shape="rect" alt="Dedicated AppPlatforms" title="" coords="156,371,254,419" href="http://wiki.innovaphone.com/index.php?title=Howto:V13_Hosting_-_Dedicated_AP_for_every_customer" target="_self" /><area shape="rect" alt="Twitter" title="" coords="1241,511,1343,561" href="https://twitter.com/innovaphone_tec" target="_blank" /><area shape="rect" alt="RSS Feeds" title="" coords="1242,584,1343,631" href="http://wiki.innovaphone.com/index.php?title=RSS_Feeds" target="_self" /></map>';
 //write it
 document.write(maps); 

}

if (window.location.href.includes('13r2:Overview')) { // add current image maps

 var maps = '<map id="v13_map" name="v13_map"><area shape="rect" alt="Usecases" title="Usecases" coords="129,158,229,206" href="http://wiki.innovaphone.com/index.php?title=Howto:V13_Installation_Scenarios" target="_self" /><area shape="rect" alt="License Guide" title="License Guide" coords="879,299,979,348" href="http://wiki.innovaphone.com/index.php?title=Reference13r2:Licenses" target="_blank" /><area shape="rect" alt="FAQ" title="FAQ" coords="250,157,349,205" href="http://wiki.innovaphone.com/index.php?title=Reference13r2:Overview#faq" target="_self" /><area shape="rect" alt="OnPremise Installation" title="OnPremise Installation" coords="8,228,107,279" href="http://wiki.innovaphone.com/index.php?title=Reference13r2:Install" target="_self" /><area shape="rect" alt="Greenfield - IT Connect" title="Greenfield - IT Connect" coords="33,300,133,348" href="/index.php?title=Special%3APrefixindex&from=IT+Connect&namespace=150" target="_self" /><area shape="rect" alt="Upgrade" title="Upgrade" coords="33,370,132,419" href="http://wiki.innovaphone.com/index.php?title=Howto:V13_Firmware_Upgrade_V12r2_V13r2" target="_self" /><area shape="rect" alt="SDK" title="SDK" coords="274,298,373,348" href="https://sdk.innovaphone.com/" target="_blank" /><area shape="rect" alt="Forum" title="Forum" coords="274,370,374,419" href="http://class.innovaphone.com/moodle2/mod/forum/view.php?id=127446" target="_blank" /><area shape="rect" alt="AppPlatform" title="AppPlatform" coords="372,229,470,276" href="http://wiki.innovaphone.com/index.php?title=Reference13r2:Concept_App_Platform" target="_self" /><area shape="rect" alt="Apps" title="Apps" coords="613,228,712,276" href="http://wiki.innovaphone.com/index.php?title=Reference13r2:Concept_Apps" target="_self" /><area shape="rect" alt="Roadmaps" title="Roadmaps" coords="976,229,1074,276" href="http://wiki.innovaphone.com/index.php?title=Support:What_are_the_Roadmap_Documents%3F" target="_self" /><area shape="rect" alt="Training" title="Training" coords="1096,227,1196,276" href="https://www.innovaphone.com/en/partner/training.html" target="_blank" /><area shape="rect" alt="MyApps" title="MyApps" coords="493,229,591,276" href="http://wiki.innovaphone.com/index.php?title=Reference13r2:Concept_myApps" target="_self" /><area shape="rect" alt="PhoneApp" title="PhoneApp" coords="637,299,737,348" href="http://wiki.innovaphone.com/index.php?title=Reference13r2:Concept_App_PhoneApp" target="_self" /><area shape="rect" alt="SoftphoneApp" title="SoftphoneApp" coords="638,369,736,418" href="http://wiki.innovaphone.com/index.php?title=Reference13r2:Concept_App_SoftphoneApp" target="_self" /><area shape="rect" alt="Devices" title="Devices" coords="637,441,737,490" href="http://wiki.innovaphone.com/index.php?title=Reference13r2:Concept_App_Service_Devices" target="_self" /><area shape="rect" alt="Contacts" title="Contacts" coords="639,512,738,561" href="http://wiki.innovaphone.com/index.php?title=Reference13r2:Concept_App_Service_Contacts" target="_self" /><area shape="rect" alt="Chat" title="Chat" coords="638,584,736,632" href="http://wiki.innovaphone.com/index.php?title=Reference13r2:Concept_Chat" target="_self" /><area shape="rect" alt="All Apps" title="All Apps" coords="638,653,737,702" href="http://wiki.innovaphone.com/index.php?title=Special%3APrefixindex&from=Concept+App&namespace=152" target="_self" /><area shape="rect" alt="Offline Proivisoning" title="Offline Proivisoning" coords="759,299,858,348" href="http://wiki.innovaphone.com/index.php?title=Reference13r2:Concept_Offline_Provisioning" target="_self" /><area shape="rect" alt="Online Proivisoning" title="Online Proivisoning" coords="759,370,858,418" href="http://wiki.innovaphone.com/index.php?title=Reference13r2:Concept_Provisioning" target="_self" /><area shape="rect" alt="Roadmap Firmware 13r2" title="Roadmap Firmware 13r2" coords="1000,298,1099,348" href="http://wiki.innovaphone.com/index.php?title=Support:DVL-Roadmap_Firmware_13r2" target="_self" /><area shape="rect" alt="Roadmap SDK 13r2" title="Roadmap SDK 13r2" coords="1000,369,1100,418" href="http://wiki.innovaphone.com/index.php?title=Support:DVL-Roadmap_SDK_13r2" target="_self" /><area shape="rect" alt="IT Connect Training" title="IT Connect Training" coords="1120,298,1221,348" href="http://wiki.innovaphone.com/index.php?title=Special%3APrefixindex&from=IT+Connect&namespace=150" target="_self" /><area shape="rect" alt="IT Advanced Training" title="IT Advanced Training" coords="1122,370,1220,419" href="http://wiki.innovaphone.com/index.php?title=Special%3APrefixindex&from=IT+Advanced&namespace=150" target="_self" /><area shape="rect" alt="Central AppPlatform" title="Central AppPlatform" coords="155,299,253,348" href="http://wiki.innovaphone.com/index.php?title=Howto:V13_Hosting_-_Central_AP_for_multiple_customers" target="_self" /><area shape="rect" alt="My innovaphone" title="My innovaphone" coords="881,369,979,418" href="https://my.innovaphone.com/" target="_blank" /><area shape="rect" alt="Software Rental" title="Software Rental" coords="881,440,979,490" href="http://wiki.innovaphone.com/index.php?title=Reference13r2:Concept_Software_Rental" target="_self" /><area shape="rect" alt="Partner Portal" title="Partner Portal" coords="1242,299,1342,348" href="https://www.innovaphone.com/en/services/partner-login.html" target="_blank" /><area shape="rect" alt="The Story" title="The Story" coords="1243,370,1341,418" href="https://www.innovaphone.com/en/myapps/what-is-myapps.html" target="_blank" /><area shape="rect" alt="Videos" title="Videos" coords="1243,442,1342,490" href="http://wiki.innovaphone.com/index.php?title=Howto:Instructional_Videos_for_Users_-_English" target="_self" /><area shape="rect" alt="Hosting" title="" coords="131,229,229,277" href="http://wiki.innovaphone.com/index.php?title=Howto:V13_Hosting" target="_self" /><area shape="rect" alt="Dedicated AppPlatforms" title="" coords="156,371,254,419" href="http://wiki.innovaphone.com/index.php?title=Howto:V13_Hosting_-_Dedicated_AP_for_every_customer" target="_self" /><area shape="rect" alt="Twitter" title="" coords="1241,511,1343,561" href="https://twitter.com/innovaphone_tec" target="_blank" /><area shape="rect" alt="RSS Feeds" title="" coords="1242,584,1343,631" href="http://wiki.innovaphone.com/index.php?title=RSS_Feeds" target="_self" /></map>';
 //write it
 document.write(maps); 

}

if (window.location.href.includes('13r3:Overview')) { // add current image maps

 var maps = '<map id="v13_map" name="v13_map"><area shape="rect" alt="Usecases" title="Usecases" coords="129,158,229,206" href="http://wiki.innovaphone.com/index.php?title=Howto:V13_Installation_Scenarios" target="_self" /><area shape="rect" alt="License Guide" title="License Guide" coords="879,299,979,348" href="http://wiki.innovaphone.com/index.php?title=Reference13r3:Licenses" target="_blank" /><area shape="rect" alt="FAQ" title="FAQ" coords="250,157,349,205" href="http://wiki.innovaphone.com/index.php?title=Reference13r3:Overview#faq" target="_self" /><area shape="rect" alt="OnPremise Installation" title="OnPremise Installation" coords="8,228,107,279" href="http://wiki.innovaphone.com/index.php?title=Reference13r3:Install" target="_self" /><area shape="rect" alt="Greenfield - IT Connect" title="Greenfield - IT Connect" coords="33,300,133,348" href="/index.php?title=Special%3APrefixindex&from=IT+Connect&namespace=150" target="_self" /><area shape="rect" alt="Upgrade" title="Upgrade" coords="33,370,132,419" href="http://wiki.innovaphone.com/index.php?title=Howto:V13_Firmware_Upgrade_V12r2_V13r3" target="_self" /><area shape="rect" alt="SDK" title="SDK" coords="274,298,373,348" href="https://sdk.innovaphone.com/" target="_blank" /><area shape="rect" alt="Forum" title="Forum" coords="274,370,374,419" href="http://class.innovaphone.com/moodle2/mod/forum/view.php?id=127446" target="_blank" /><area shape="rect" alt="AppPlatform" title="AppPlatform" coords="372,229,470,276" href="http://wiki.innovaphone.com/index.php?title=Reference13r3:Concept_App_Platform" target="_self" /><area shape="rect" alt="Apps" title="Apps" coords="613,228,712,276" href="http://wiki.innovaphone.com/index.php?title=Reference13r3:Concept_Apps" target="_self" /><area shape="rect" alt="Roadmaps" title="Roadmaps" coords="976,229,1074,276" href="http://wiki.innovaphone.com/index.php?title=Support:What_are_the_Roadmap_Documents%3F" target="_self" /><area shape="rect" alt="Training" title="Training" coords="1096,227,1196,276" href="https://www.innovaphone.com/en/partner/training.html" target="_blank" /><area shape="rect" alt="MyApps" title="MyApps" coords="493,229,591,276" href="http://wiki.innovaphone.com/index.php?title=Reference13r3:Concept_myApps" target="_self" /><area shape="rect" alt="PhoneApp" title="PhoneApp" coords="637,299,737,348" href="http://wiki.innovaphone.com/index.php?title=Reference13r3:Concept_App_PhoneApp" target="_self" /><area shape="rect" alt="SoftphoneApp" title="SoftphoneApp" coords="638,369,736,418" href="http://wiki.innovaphone.com/index.php?title=Reference13r3:Concept_App_SoftphoneApp" target="_self" /><area shape="rect" alt="Devices" title="Devices" coords="637,441,737,490" href="http://wiki.innovaphone.com/index.php?title=Reference13r3:Concept_App_Service_Devices" target="_self" /><area shape="rect" alt="Contacts" title="Contacts" coords="639,512,738,561" href="http://wiki.innovaphone.com/index.php?title=Reference13r3:Concept_App_Service_Contacts" target="_self" /><area shape="rect" alt="Chat" title="Chat" coords="638,584,736,632" href="http://wiki.innovaphone.com/index.php?title=Reference13r3:Concept_Chat" target="_self" /><area shape="rect" alt="All Apps" title="All Apps" coords="638,653,737,702" href="http://wiki.innovaphone.com/index.php?title=Special%3APrefixindex&from=Concept+App&namespace=154" target="_self" /><area shape="rect" alt="Offline Proivisoning" title="Offline Proivisoning" coords="759,299,858,348" href="http://wiki.innovaphone.com/index.php?title=Reference13r3:Concept_Offline_Provisioning" target="_self" /><area shape="rect" alt="Online Proivisoning" title="Online Proivisoning" coords="759,370,858,418" href="http://wiki.innovaphone.com/index.php?title=Reference13r3:Concept_Provisioning" target="_self" /><area shape="rect" alt="Roadmap Firmware 13r3" title="Roadmap Firmware 13r3" coords="1000,298,1099,348" href="http://wiki.innovaphone.com/index.php?title=Support:DVL-Roadmap_Firmware_13r3" target="_self" /><area shape="rect" alt="Roadmap SDK 13r3" title="Roadmap SDK 13r3" coords="1000,369,1100,418" href="http://wiki.innovaphone.com/index.php?title=Support:DVL-Roadmap_SDK_13r3" target="_self" /><area shape="rect" alt="IT Connect Training" title="IT Connect Training" coords="1120,298,1221,348" href="http://wiki.innovaphone.com/index.php?title=Special%3APrefixindex&from=IT+Connect&namespace=150" target="_self" /><area shape="rect" alt="IT Advanced Training" title="IT Advanced Training" coords="1122,370,1220,419" href="http://wiki.innovaphone.com/index.php?title=Special%3APrefixindex&from=IT+Advanced&namespace=150" target="_self" /><area shape="rect" alt="Central AppPlatform" title="Central AppPlatform" coords="155,299,253,348" href="http://wiki.innovaphone.com/index.php?title=Howto:V13_Hosting_-_Central_AP_for_multiple_customers" target="_self" /><area shape="rect" alt="My innovaphone" title="My innovaphone" coords="881,369,979,418" href="https://my.innovaphone.com/" target="_blank" /><area shape="rect" alt="Software Rental" title="Software Rental" coords="881,440,979,490" href="http://wiki.innovaphone.com/index.php?title=Reference13r3:Concept_Software_Rental" target="_self" /><area shape="rect" alt="Partner Portal" title="Partner Portal" coords="1242,299,1342,348" href="https://www.innovaphone.com/en/services/partner-login.html" target="_blank" /><area shape="rect" alt="The Story" title="The Story" coords="1243,370,1341,418" href="https://www.innovaphone.com/en/myapps/what-is-myapps.html" target="_blank" /><area shape="rect" alt="Videos" title="Videos" coords="1243,442,1342,490" href="http://wiki.innovaphone.com/index.php?title=Howto:Instructional_Videos_for_Users_-_English" target="_self" /><area shape="rect" alt="Hosting" title="" coords="131,229,229,277" href="http://wiki.innovaphone.com/index.php?title=Howto:V13_Hosting" target="_self" /><area shape="rect" alt="Dedicated AppPlatforms" title="" coords="156,371,254,419" href="http://wiki.innovaphone.com/index.php?title=Howto:V13_Hosting_-_Dedicated_AP_for_every_customer" target="_self" /><area shape="rect" alt="Twitter" title="" coords="1241,511,1343,561" href="https://twitter.com/innovaphone_tec" target="_blank" /><area shape="rect" alt="RSS Feeds" title="" coords="1242,584,1343,631" href="http://wiki.innovaphone.com/index.php?title=RSS_Feeds" target="_self" /></map>';
 //write it
 document.write(maps); 

}


// datasheet printing function inno_print() { let article = document.getElementById('content').innerHTML; article = article.replaceAll('src="./', 'src="https://wiki.innovaphone.com/'); let title = document.getElementsByClassName('firstHeading')[0].innerHTML;

const html = `<!DOCTYPE html>

   <html>
       <head>
           <title>`+title+`</title>

<style> .mw-editsection, .editsection, #siteSub, #jump-to-nav, #catlinks, .mw-jump-link, #firstHeading, .firstHeading { display: none!important; }

@media print { @page{ margin-left: 5mm; margin-right: 5mm; margin-top: 0; margin-bottom: 0; border: none!important; } body{ width: 21cm; height: 29.7cm; } }

body, html { padding: 0px!important; background: none!important; font-size: x-small; // zoom: 85%; // Chrome & Opera // -moz-transform: scale(1); // FF }

@font-face {

                   font-family: 'Titillium Web';
                   font-style: normal;
                   font-weight: 400;
                   src: url('https://wiki.innovaphone.com/extensions/inno_datasheets/fonts/TitilliumWeb-Regular.ttf') format('truetype');
                   unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
               }
                 

.inno_print_icon { display: none!important; }

.datasheets-header table { width: 100%; color: #aaaaaa; }

.datasheets-header tr, .datasheets-header td { padding: 0px; }

.datasheets-header-description table, .datasheets-header-description td { padding: 2px; text-align: left; }

* { font-family:'Titillium Web'; text-align: left; }

a { pointer-events: none!important; color: black!important; text-decoration: none!important; }

hr { background: orange; height: 6px; border: none; }

ul { margin-top: -0.5em; margin-bottom: 5px; }

ul li, ul li::marker, ol, ol li { color: #202122; line-height: 1em; margin-bottom: -0.2em; }

h1, h2, h3 { color: black; }

h3 { font-size: 100% margin-top: 0em; margin-bottom: -0.5em; }

.datasheets-capacities { display: none!important; }

.datasheets-mehrspaltig { column-count: 2; padding-top: 0; padding-bottom: 0; padding-left: 1em; padding-right: 1em; widows: 3; orphans: 3; }

.datasheets-mehrspaltig p { margin-top: -4px; line-height: 1.5em; break-before: avoid; }

.datasheets-mehrspaltig h3 { font-size: 100%; margin-top: 0em; margin-bottom: -0.5em; break-after: avoid; }

.datasheets-mehrspaltig h4 { column-span: all; color: #36b; }

.datasheets-mehrspaltig img { width: auto; max-height: 200px; margin-top: 10px; margin-bottom: 0px; margin-left: 10px; margin-right: 10px; }

.datasheets-blockline { margin-top: 5px; margin-bottom: 6px; border-top: 4px solid orange; }

.datasheets-disclaimer p { text-align: left; color: gray; line-height: 1.2em; } </style> <link rel="stylesheet" type="text/css" href="https://wiki.innovaphone.com/skins/monobook/main.css"> <script> window.addEventListener('load', function() { window.print(); }); window.onafterprint = function () { //window.close(); }; </script>

       </head>
       <body>
           `+article+`
       </body>
   </html>`;


const url = URL.createObjectURL(new Blob([html], { type: "text/html; charset=UTF-8" }));

const popup = window.open( url, "popup", 'width=793,height=1122,screenX=200,screenY=200' ); }

document.addEventListener('DOMContentLoaded', function () { console.log('dom ready'); if (document.getElementsByClassName('inno_print_icon').length) {

 console.log('inno print class exists');
 // ********************************************************
 // check for key press:
 // P & (CTRL or WIN) & not ALT & (not Shift or chrome or opera)
 // 
 //   Warning: At least as of Firefox 48, the Windows key is no longer considered the "Meta" key. 
 //   KeyboardEvent.metaKey is false when the Windows key is pressed.
 // ********************************************************

 window.addEventListener('keydown', function(event) {
   if

( event.keyCode === 80 && // p (event.ctrlKey || event.metaKey) && // STRG / CMD (mac) !event.altKey // not alt ) {

       event.preventDefault();

inno_print();

       if (event.stopImmediatePropagation) {
           event.stopImmediatePropagation();
       } else {
           event.stopPropagation();
       }
       return;
   }
 }, true);
 document.getElementsByClassName('inno_print_icon')[0].addEventListener('click', function (event) {
   inno_print();
 });
 // add local CSS
 var inno_print_css = document.createElement('style');
 inno_print_css.innerHTML = `
 @font-face {
 font-family: 'Titillium Web';
 font-style: normal;
 font-weight: 400;
 src: url('/extensions/inno_datasheets/fonts/TitilliumWeb-Regular.ttf') format('truetype');
 unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;

}

.datasheets-header table {

   width: 100%;

color: #aaaaaa; }

.datasheets-header-description table, .datasheets-header-description td {

   padding: 2px;

text-align: left; }

.datasheets-mehrspaltig {

   column-count: 2;
   padding: 1em;
   widows: 3;
   orphans: 3;

}

.datasheets-mehrspaltig h4 {

   column-span: all;
   color: #36b;

}

.datasheets-mehrspaltig h2 {

   page-break-before: always;

}

  1. content ul {
 color: #202122;

}

  1. content ul li {
 color: #202122;

}

  1. content ul li::marker {
 color: #202122;

}

  1. content ol, #content ol li {
 color: #202122;

}

  1. content * {
 font-family:'Titillium Web';
 text-align: left;

}

  1. content h1, #content h2, #content h3 {
 color: black;

}

.datasheets-blockline {

   margin-top: 20px;
   padding-top: 20px;
   border-top:  6px solid orange;

}

  1. content hr {
 background: orange;
   height: 6px;
   border: none;

}

.datasheets-disclaimer p {

 text-align: left;
 color: gray;

}

.inno_print_icon {

 background-image: url(/img_auth.php/e/e7/P2pdf.png);
 width: 60px; 
 height: 60px;
 cursor: pointer;

}

.datasheets-conformities { }

@page { // size: A4;

   margin: 0;

}

@media print {

  html, body {
    width: 210mm;
    height: 297mm;
    margin: 0;        
  }
  #firstHeading, #f-list, #lastmod, #siteSub, #footer, .printfooter {
    display: none;
  } 

}

 `;
 document.head.appendChild(inno_print_css);

} }, false);