Ero sivun ”Widget:Fullscreen” versioiden välillä
Järvi-meriwikistä
Rivi 3: | Rivi 3: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
(function() { | (function() { | ||
+ | |||
+ | console.log( "a" ); | ||
function <!--{$id|default:Fullscreen|escape:'html'}-->_jQueryTest() { | function <!--{$id|default:Fullscreen|escape:'html'}-->_jQueryTest() { | ||
Rivi 8: | Rivi 10: | ||
setTimeout( function(){ <!--{$id|default:Fullscreen|escape:'html'}-->_jQueryTest() }, 300); | setTimeout( function(){ <!--{$id|default:Fullscreen|escape:'html'}-->_jQueryTest() }, 300); | ||
} else { | } else { | ||
+ | console.log( "b" ); | ||
if ( jQuery( "#<!--{$id|default:Fullscreen|escape:'html'}-->_container" ).length > 0 ) { | if ( jQuery( "#<!--{$id|default:Fullscreen|escape:'html'}-->_container" ).length > 0 ) { | ||
<!--{$id|default:Fullscreen|escape:'html'}-->_func(); | <!--{$id|default:Fullscreen|escape:'html'}-->_func(); | ||
Rivi 18: | Rivi 21: | ||
function <!--{$id|default:Fullscreen|escape:'html'}-->_func() { | function <!--{$id|default:Fullscreen|escape:'html'}-->_func() { | ||
+ | |||
+ | console.log( "c" ); | ||
var output = '<div class="Xobschartbutton fullscreen-button" style="margin-left: 10px; float: right; border-radius: 50%;"><button title="fullscreen" style="width: 24px; height: 24px; padding: 0; margin: 0; color: #1B599B; background: none; border: none;"><i class="fas fa-expand"></i></button></div>'; | var output = '<div class="Xobschartbutton fullscreen-button" style="margin-left: 10px; float: right; border-radius: 50%;"><button title="fullscreen" style="width: 24px; height: 24px; padding: 0; margin: 0; color: #1B599B; background: none; border: none;"><i class="fas fa-expand"></i></button></div>'; |